그누보드 인기글 스킨을 다운받았는데요..!
아래링크 배추빌더님 인기검색어 스킨
http://sir.kr/g4_skin/75552?sca=%EC%9D%B8%EA%B8%B0%EA%B2%80%EC%83%89%EC%96%B4&page=2
그누보드 5로
변환을 아무리해도 워링이 계속 나오네요..ㅠㅠ
혹시 변환좀 부탁드려도 될까요..! 이거변환도와주시면 아무래도 앞으로
교육이 많이 될거같아요..! 부탁좀 드릴게요^^
Copy
<? if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $date_gap_old = date("Y-m-d", strtotime($date_gap) - ($date_cnt * 86400)); $old = array();$sql2 = " select pp_word, count(*) as cnt from $g5['popular_table'] where pp_date between '$date_gap_old' and '$date_gap' group by pp_word order by cnt desc, pp_word limit 0, 100 ";$qry2 = sql_query($sql2);$count = mysql_num_rows($qry2);for ($j=0; $row2=sql_fetch_array($qry2); $j++) { $old[$j] = $row2;} for ($i=0; $i<$pop_cnt; $i++) { for ($j=0; $j<$count; $j++) { if ($old[$j][pp_word] == $list[$i][pp_word]) { break; } } $list[$i][pp_word] = urldecode($list[$i][pp_word]); $list[$i][pp_rank] = $i + 1; if ($count == $j) { $list[$i][old_pp_rank] = 0; $list[$i][rank_gap] = 0; } else { $list[$i][old_pp_rank] = $j + 1; $list[$i][rank_gap] = $list[$i][old_pp_rank] - $list[$i][pp_rank]; } if ($list[$i][rank_gap] > 0) $list[$i][icon] = "up"; else if ($list[$i][rank_gap] < 0) $list[$i][icon] = "down"; else if ($list[$i][old_pp_rank] == 0) $list[$i][icon] = "new"; else if ($list[$i][rank_gap] == 0) $list[$i][icon] = "nogap";} ?><style type="text/css">.mw-popular { border:1px solid #e1e1e1; text-align:center; }.mw-popular td { font-size:12px; line-height:16px; }.mw-popular a:link { color:#444; text-decoration:none; }.mw-popular a:active { color:#444; text-decoration:none; }.mw-popular a:visited { color:#444; text-decoration:none; }.mw-popular a:hover { color:#444; text-decoration:underline; }.mw-popular .subject { background:url(<?=$popular_skin_path?>/img/box-bg.gif); height:24px; margin:0 0 7px 0; }.mw-popular .subject { font-size:12px; color:#555; font-weight:bold; letter-spacing:-1px; text-decoration:none; text-align:left; }.mw-popular .subject div { margin:5px 0 0 10px;}.mw-popular table { margin:0 0 0 5px;}.mw-popular .word { width:105px; height:16px; overflow:hidden; margin:2px 0 0 5px; }.mw-popular .gap { letter-spacing:-1px; font-size:11px; }</style> <div class="mw-popular"><div style="border:1px solid #fff;"><div class="subject"><div>인기검색어</div></div><table border=0 cellpadding=0 cellspacing=0><? for ($i=0; $i<$pop_cnt; $i++) { ?><? if (!is_array($list[$i])) continue; ?><tr><td width="20" height="20"><img src="<?=$popular_skin_path?>/img/<?=sprintf("%02d", $i+1)?>.gif"></td><td width="110"> <div class="word"><a href="<?php echo G5_BBS_PATH ?>/search.php?sfl=wr_subject&sop=and&stx=<?=urlencode($list[$i][pp_word])?>"><?=$list[$i][pp_word]?></a></div></td><td width="35"> <img src="<?=$popular_skin_url?>/img/<?=$list[$i][icon]?>.gif" align=absmiddle> <span class="gap"><? if ($list[$i][icon] != "new" && $list[$i][icon] != "nogap") { echo abs($list[$i][rank_gap]); }?></span></td></tr><? } ?></table></div></div>
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
9년 전
일단..
mysql_num_rows 는 sql_num_rows 로 수정.
답변에 대한 댓글 1개
pangb
9년 전
9년 전
8번줄 $g5['popular_table']을 $g5[popular_table] 로 수정하세요
답변을 작성하려면 로그인이 필요합니다.
혹시 어떤 위치가 잘못되었을까요 ㅠㅠ?
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in