배추 게시판 스킨의 베스트글 소스입니다.
#mw_basic #mw_basic_hot_list li.hot_icon_1 { background:url(<?=$board_skin_path?>/img/icon_hot_1.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_2 { background:url(<?=$board_skin_path?>/img/icon_hot_2.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_3 { background:url(<?=$board_skin_path?>/img/icon_hot_3.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_4 { background:url(<?=$board_skin_path?>/img/icon_hot_4.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_5 { background:url(<?=$board_skin_path?>/img/icon_hot_5.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_6 { background:url(<?=$board_skin_path?>/img/icon_hot_6.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_7 { background:url(<?=$board_skin_path?>/img/icon_hot_7.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_8 { background:url(<?=$board_skin_path?>/img/icon_hot_8.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_9 { background:url(<?=$board_skin_path?>/img/icon_hot_9.gif) no-repeat left 2px; }#mw_basic #mw_basic_hot_list li.hot_icon_10 { background:url(<?=$board_skin_path?>/img/icon_hot_10.gif) no-repeat left 2px; }</style><? if ($mw_basic[cf_hot]) { ?><?switch ($mw_basic[cf_hot]) {case "1": $hot_start = ""; $hot_title = "실시간"; break;case "2": $hot_start = date("Y-m-d H:i:s", $g4[server_time]-60*60*24*7); $hot_title = "주간"; break;case "3": $hot_start = date("Y-m-d H:i:s", $g4[server_time]-60*60*24*30); $hot_title = "월간"; break;case "4": $hot_start = date("Y-m-d H:i:s", $g4[server_time]-60*60*24); $hot_title = "일간"; break;case "5": $hot_start = date("Y-m-d H:i:s", $g4[server_time]-60*60*24*365); $hot_title = "연간"; break;}$sql_between = 1;if ($mw_basic[cf_hot] > 1) {$sql_between = " wr_datetime between '$hot_start' and '$g4[time_ymdhis]' ";}$sql_except = "";$tmp = explode("\n", $board[bo_notice]);for ($i=0, $m=sizeof($tmp); $i<$m; $i++) {if (!trim($tmp[$i])) continue;$bo_notice[] = trim($tmp[$i]);}if (count($bo_notice)>0)$sql_except = " and wr_id not in (".implode(",", $bo_notice).") ";$sql = "select *from $write_tablewhere wr_is_comment = 0and $sql_between $sql_exceptorder by wr_{$mw_basic[cf_hot_basis]} desclimit 10";$qry = sql_query($sql);?><div id=mw_basic_hot_list><h3> <?=$hot_title?> 인기 게시물 </h3><ul class=mw_basic_hot_dot><? for ($i=0; $row = sql_fetch_array($qry); $i++) { ?><? $row[wr_subject] = mw_reg_str($row[wr_subject]); ?><? $row[wr_subject] = bc_code($row[wr_subject], 0); ?><li class=hot_icon_<?=($i+1)?>><nobr><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$row[wr_id]?>"><?=cut_str($row[wr_subject], 40)?></a></nobr></li><? if (($i+1)%5==0) echo "</ul><ul>"; ?><? } ?></ul></div><? } ?>
출력되는 부분이 베스트글 스킨을 적용한 해당하는 그 게시판의 글만 출력되는데,
사이트의 모든 글을 대상으로 출력되게 하는 방법이 없나요?
그리고 head.php의 좌측 부분에 넣고싶은데,
<?include "$g4[path]/skin/board/spawn/mw.proc/mw.list.hot.skin.php"; // 베스트10 ?>
이렇게 include해도 그냥 빈 공간(아무것도 적용되지 않은 것처럼 보임)만 만들어지네요..
며칠간 계속 고생했습니다..ㅠㅠ 답변 부탁드릴게요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5230 | 13년 전 | 3062 | ||
| 5229 | 13년 전 | 566 | ||
| 5228 | 13년 전 | 609 | ||
| 5227 | 13년 전 | 715 | ||
| 5226 | 13년 전 | 9170 | ||
| 5225 | 13년 전 | 2182 | ||
| 5224 | 13년 전 | 2594 | ||
| 5223 | 13년 전 | 2564 | ||
| 5222 | 13년 전 | 3129 | ||
| 5221 |
visualp
|
13년 전 | 716 | |
| 5220 |
|
13년 전 | 749 | |
| 5219 | 13년 전 | 4645 | ||
| 5218 |
|
13년 전 | 679 | |
| 5217 |
크라이스트
|
13년 전 | 1365 | |
| 5216 | 13년 전 | 1219 | ||
| 5215 | 13년 전 | 1239 | ||
| 5214 | 13년 전 | 1107 | ||
| 5213 | 13년 전 | 646 | ||
| 5212 | 13년 전 | 1335 | ||
| 5211 | 13년 전 | 732 | ||
| 5210 |
visualp
|
13년 전 | 1451 | |
| 5209 |
visualp
|
13년 전 | 1084 | |
| 5208 |
mammoth
|
13년 전 | 727 | |
| 5207 | 13년 전 | 2106 | ||
| 5206 | 13년 전 | 1074 | ||
| 5205 | 13년 전 | 691 | ||
| 5204 |
|
13년 전 | 2259 | |
| 5203 | 13년 전 | 1173 | ||
| 5202 | 13년 전 | 1193 | ||
| 5201 |
kastel
|
13년 전 | 1353 | |
| 5200 | 13년 전 | 1062 | ||
| 5199 | 13년 전 | 561 | ||
| 5198 | 13년 전 | 626 | ||
| 5197 | 13년 전 | 1563 | ||
| 5196 | 13년 전 | 775 | ||
| 5195 | 13년 전 | 1791 | ||
| 5194 | 13년 전 | 1293 | ||
| 5193 | 13년 전 | 606 | ||
| 5192 | 13년 전 | 4048 | ||
| 5191 | 13년 전 | 729 | ||
| 5190 |
|
13년 전 | 1849 | |
| 5189 | 13년 전 | 1169 | ||
| 5188 | 13년 전 | 1542 | ||
| 5187 |
믹스디자인
|
13년 전 | 804 | |
| 5186 |
|
13년 전 | 2382 | |
| 5185 | 13년 전 | 1427 | ||
| 5184 | 13년 전 | 887 | ||
| 5183 | 13년 전 | 1402 | ||
| 5182 | 13년 전 | 680 | ||
| 5181 | 13년 전 | 711 | ||
| 5180 |
프리온관리자
|
13년 전 | 715 | |
| 5179 | 13년 전 | 983 | ||
| 5178 | 13년 전 | 647 | ||
| 5177 | 13년 전 | 570 | ||
| 5176 | 13년 전 | 680 | ||
| 5175 | 13년 전 | 1396 | ||
| 5174 | 13년 전 | 848 | ||
| 5173 | 13년 전 | 589 | ||
| 5172 |
|
13년 전 | 561 | |
| 5171 | 13년 전 | 899 | ||
| 5170 |
KhanSu
|
13년 전 | 692 | |
| 5169 | 13년 전 | 2157 | ||
| 5168 | 13년 전 | 1486 | ||
| 5167 |
sir24
|
13년 전 | 679 | |
| 5166 | 13년 전 | 1741 | ||
| 5165 | 13년 전 | 727 | ||
| 5164 | 13년 전 | 1650 | ||
| 5163 |
|
13년 전 | 991 | |
| 5162 |
곰도리푸우
|
13년 전 | 4084 | |
| 5161 |
UltraUCC
|
13년 전 | 1224 | |
| 5160 |
|
13년 전 | 883 | |
| 5159 |
그런듯아닌듯
|
13년 전 | 544 | |
| 5158 |
|
13년 전 | 517 | |
| 5157 | 13년 전 | 1651 | ||
| 5156 | 13년 전 | 1152 | ||
| 5155 | 13년 전 | 2631 | ||
| 5154 | 13년 전 | 785 | ||
| 5153 | 13년 전 | 781 | ||
| 5152 |
|
13년 전 | 622 | |
| 5151 | 13년 전 | 826 | ||
| 5150 |
senseme
|
13년 전 | 549 | |
| 5149 |
워드앤코드
|
13년 전 | 999 | |
| 5148 | 13년 전 | 693 | ||
| 5147 |
프로프리랜서
|
13년 전 | 902 | |
| 5146 | 13년 전 | 2392 | ||
| 5145 |
투코아미디어
|
13년 전 | 1488 | |
| 5144 |
there007
|
13년 전 | 1502 | |
| 5143 | 13년 전 | 1363 | ||
| 5142 | 13년 전 | 2085 | ||
| 5141 |
silky
|
13년 전 | 757 | |
| 5140 |
silky
|
13년 전 | 632 | |
| 5139 |
silky
|
13년 전 | 1971 | |
| 5138 |
silky
|
13년 전 | 568 | |
| 5137 |
silky
|
13년 전 | 591 | |
| 5136 |
silky
|
13년 전 | 878 | |
| 5135 |
silky
|
13년 전 | 614 | |
| 5134 |
silky
|
13년 전 | 467 | |
| 5133 |
|
13년 전 | 829 | |
| 5132 |
복이219
|
13년 전 | 969 | |
| 5131 |
바부바부팅이
|
13년 전 | 996 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기