포인트 이전을 게시판별로 적용시키거나... 정보
포인트 이전을 게시판별로 적용시키거나...본문
전에 균이님의 도움으로
독자가 글을 읽을 시 원글작성자에게 포인트가 이전되도록 만들어보았습니다.
그런데 게시판별로 그런 걸 정할 수 있는지 궁금합니다.
그리고 현재 댓글만 새창으로 보기 기능을 사용하고 있는데,
포인트가 차감이 되더군요.
이걸 멈추게 할 수 있는 방법이 있는지 궁금합니다.
자세한 건 제 사이트를 한번 찾아와주셔서 진단을 해주셨으면 합니다.
http://pandorabox.hosting.paran.com/
입니다.
해결방법만 알려주셔도 좋습니다.
독자가 글을 읽을 시 원글작성자에게 포인트가 이전되도록 만들어보았습니다.
그런데 게시판별로 그런 걸 정할 수 있는지 궁금합니다.
그리고 현재 댓글만 새창으로 보기 기능을 사용하고 있는데,
포인트가 차감이 되더군요.
이걸 멈추게 할 수 있는 방법이 있는지 궁금합니다.
자세한 건 제 사이트를 한번 찾아와주셔서 진단을 해주셨으면 합니다.
http://pandorabox.hosting.paran.com/
입니다.
해결방법만 알려주셔도 좋습니다.
댓글 전체
게시판이 여러개 이고 스킨이 여러개라면 스킨마다 넣으려면 불편할테니 bbs/view.php에서 하는게
편리하겠습니다
view.php 첫 부분에 넣으세요
$acc_board=array("free","test1",..................); //적용할 게시판 등록
if( in_array($bo_table, $acc_board)){
$point=-1 * $board[bo_read_point];
if($view[mb_id]!=$member[mb_id])
insert_point($view[mb_id],$point, $bo_table, "$board[bo_subject] $wr_id 읽기:, $member[mb_i
d]);
}
새창으로 댓글보기는 소스를 알수 없으니 모르겠네요
편리하겠습니다
view.php 첫 부분에 넣으세요
$acc_board=array("free","test1",..................); //적용할 게시판 등록
if( in_array($bo_table, $acc_board)){
$point=-1 * $board[bo_read_point];
if($view[mb_id]!=$member[mb_id])
insert_point($view[mb_id],$point, $bo_table, "$board[bo_subject] $wr_id 읽기:, $member[mb_i
d]);
}
새창으로 댓글보기는 소스를 알수 없으니 모르겠네요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding="0" cellspacing="0" width="100%" background="<?=$latest_skin_path?>/img/subject_bg.gif">
<tr>
<td>
<table cellpadding="5" cellspacing="0" width="100%" border="0">
<tr height="35">
<td style="padding-left:10;"><strong><a href="<?=$g4[bbs_path]?>/new.php?view=c"><?=$title?></a></strong></td>
<td align="right"><img src='<?=$latest_skin_path?>/img/icon.gif'><span style="font-size: 12px; color: #646464; font-family:dotum; letter-spacing:-1;"><a href='<?=$g4[bbs_path]?>/new.php?view=c' > 더 보기</a></span> </td>
</tr>
</table>
</td>
</tr>
</table>
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="201" border="0">
<tr valign="top"><td height="7"></td></tr>
<tr valign="top">
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%" valign="top" border="0">
<? for ($i=0; $i<count($comment); $i++) { ?>
<tr valign="top">
<td>
<div align="left" style="padding-left:10;line-height:1.7em;">
<?
echo "<a href='{$comment[$i]['href']}'>";
echo "<font style='font-family:돋움; font-size:9pt; color:#555555;'>{$comment[$i]['content1']}</font>";
echo "</a>";
?>
</div>
</td>
</tr>
<? }?>
<? if (count($comment) == 0) { ?><tr><td align=center height=100 valign="middle"><font color=#6A6A6A>최근 코멘트가 없습니다.</a></td></tr><? } ?>
</table>
</td>
<!--게시물 추출 글자 설정 끝-->
</tr>
<tr height="3"><td></td></tr>
</table>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding="0" cellspacing="0" width="100%" background="<?=$latest_skin_path?>/img/subject_bg.gif">
<tr>
<td>
<table cellpadding="5" cellspacing="0" width="100%" border="0">
<tr height="35">
<td style="padding-left:10;"><strong><a href="<?=$g4[bbs_path]?>/new.php?view=c"><?=$title?></a></strong></td>
<td align="right"><img src='<?=$latest_skin_path?>/img/icon.gif'><span style="font-size: 12px; color: #646464; font-family:dotum; letter-spacing:-1;"><a href='<?=$g4[bbs_path]?>/new.php?view=c' > 더 보기</a></span> </td>
</tr>
</table>
</td>
</tr>
</table>
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="201" border="0">
<tr valign="top"><td height="7"></td></tr>
<tr valign="top">
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%" valign="top" border="0">
<? for ($i=0; $i<count($comment); $i++) { ?>
<tr valign="top">
<td>
<div align="left" style="padding-left:10;line-height:1.7em;">
<?
echo "<a href='{$comment[$i]['href']}'>";
echo "<font style='font-family:돋움; font-size:9pt; color:#555555;'>{$comment[$i]['content1']}</font>";
echo "</a>";
?>
</div>
</td>
</tr>
<? }?>
<? if (count($comment) == 0) { ?><tr><td align=center height=100 valign="middle"><font color=#6A6A6A>최근 코멘트가 없습니다.</a></td></tr><? } ?>
</table>
</td>
<!--게시물 추출 글자 설정 끝-->
</tr>
<tr height="3"><td></td></tr>
</table>
답장 주셔서 감사하고, 위에 있는 것이 게시글에서 댓글만 축출하는 코드입니다.
균이님껜 언제나 감사드리고 있습니다^^
위 소스로는 아무것도 알 수 없는데요?