핑크빈

게시물 추천 비추천 확인방법

· 2024-10-07 (월) 15:36:48 · 4679

[code]

<!-- 추천 비추천 시작 { -->

<?php if ($good_href || $nogood_href) {

 

@$sql = " select * from {$g5['board_good_table']}

where bo_table = '{$bo_table}'

and wr_id = '{$wr_id}'

and mb_id = '{$member['mb_id']}'

and bg_flag in ('good', 'nogood') ";

@$row = sql_fetch($sql);

 

echo (isset($row['bg_flag']) && $row['bg_flag']) ? ($row['bg_flag'] == 'good' ? $view['wr_name'] . '님의 게시물에 추천을 하였습니다.' : $view['wr_name'] . '님의 게시물에 비추천을 하였습니다.') : '';

 

?>

<div id="bo_v_act">

<?php if ($good_href) { ?>

<span class="bo_v_act_gng">

<a href="<?php echo $good_href . '&' . $qstr ?>" id="good_button" class="bo_v_good"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></a>

</span>

<?php } ?>

<?php if ($nogood_href) { ?>

<span class="bo_v_act_gng">

<a href="<?php echo $nogood_href . '&' . $qstr ?>" id="nogood_button" class="bo_v_nogood"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></a>

<b id="bo_v_act_nogood"></b>

</span>

<?php } ?>

 

</div>

<?php } else {

if ($board['bo_use_good'] || $board['bo_use_nogood']) {

?>

<div id="bo_v_act">

<?php if ($board['bo_use_good']) { ?><span class="bo_v_good"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>

<?php if ($board['bo_use_nogood']) { ?><span class="bo_v_nogood"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>

</div>

<?php

}

}

?>

<!-- } 추천 비추천 끝 -->

[/code]

|
댓글을 작성하시려면 로그인이 필요합니다.
+
제목 글쓴이 날짜 조회
24-11-04 조회 5,520
24-11-02 조회 4,923
24-10-28 조회 5,283
24-10-24 조회 5,584
24-10-22 조회 5,697
24-10-21 조회 5,379
24-10-20 조회 5,791
24-10-17 조회 5,937
24-10-15 조회 4,730
24-10-14 조회 4,824
24-10-14 조회 4,432
24-10-13 조회 4,826
24-10-11 조회 5,063
24-10-09 조회 5,030
24-10-08 조회 4,976
24-10-07 조회 5,326
24-10-07 조회 4,680
24-10-07 조회 5,334
24-10-07 조회 7,546
24-10-02 조회 5,533
24-10-01 조회 4,801
24-10-01 조회 5,061
24-09-30 조회 5,300
24-09-28 조회 5,056
24-09-26 조회 5,093
24-09-25 조회 5,046
24-09-24 조회 4,425
24-09-21 조회 4,902
24-09-19 조회 5,681
24-09-09 조회 4,930