테스트 사이트 - 개발 중인 베타 버전입니다

그누4스킨을 그누5로 변경 가능할까요? 채택완료

레스피아 9년 전 조회 3,616

그누보드4에서 사용하고 있는 스킨인데요.

그누보드5에서 사용을 하려고 하는데

어떤것을 어떻게 바꿔야할지를 모르겠네요....

다른 분들께서 친절하게도 설명 해 놓은신 답변이 있는것 같기는 한데...

제가 초보이다보니 들어도 잘 이해가 되지를 않더라구요... ㅠ ㅠ

도움 좀 받을 수 있을까요? ㅠ ㅠ

 

변경해야할 소스는 3가지인것 같은데요...

아래 소스는 그누보드4입니다.

 

변경해야할 소스 1.=================================================================

</strong><span style="font-size: 11pt; line-height: 1.5;"> </span></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><?</b></span></font></p><p><span style="font-size: 11pt; line-height: 1.5;"> </span><span style="font-size: 11pt; line-height: 1.5;">function latest_rank($skin_dir="", $bo_table, $rows=10, $subject_len=40, $field="wr_link1_hit")</span> </p><p>{</p><p>    global $g4;<span class="Apple-tab-span" style="white-space:pre">	</span></p><p> </p><p>    if ($skin_dir)</p><p>        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";</p><p>    else</p><p>        $latest_skin_path = "$g4[path]/skin/latest/basic";    </p><p> </p><p>    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";</p><p>    $board = sql_fetch($sql);</p><p> </p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$list = array();</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$rankinfo = array();</p><p> </p><p><span class="Apple-tab-span" style="white-space:pre">	</span>switch($field) {</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>case "wr_link1_hit":</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>$rankinfo = array("bo_subj"=>"bo_1_subj", "date"=>$board[bo_1_subj], "wr_no"=>"wr_1"); break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>case "wr_link2_hit":</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>$rankinfo = array("bo_subj"=>"bo_2_subj", "date"=>$board[bo_2_subj], "wr_no"=>"wr_2"); break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>case "wr_hit":</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>$rankinfo = array("bo_subj"=>"bo_3_subj", "date"=>$board[bo_3_subj], "wr_no"=>"wr_3"); break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>case "wr_good":</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>$rankinfo = array("bo_subj"=>"bo_4_subj", "date"=>$board[bo_4_subj], "wr_no"=>"wr_4"); break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>case "wr_nogood":</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>$rankinfo = array("bo_subj"=>"bo_5_subj", "date"=>$board[bo_5_subj], "wr_no"=>"wr_5"); break;<span class="Apple-tab-span" style="white-space:pre">			</span></p><p><span class="Apple-tab-span" style="white-space:pre">		</span>default:</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>return "<span style='font-size:12px'>$field 필드는 사용하실 수 없습니다. 
 사용가능한 필드명을 확인하시기 바랍니다.</span>";</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>}</p><p> </p><p><span class="Apple-tab-span" style="white-space:pre">	</span>// 설정</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[ori_ymd]  = $rankinfo['date'];</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[path] = "$latest_skin_path/m3cron";</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[ymd] = date("Y-m-d");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[m] = date("m");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[w] = date("D");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[d] = date("d");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[ori_m] = substr($m3_cron[ori_ymd], 5, 2);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[ori_w] = date("D", strtotime($m3_cron[ori_ymd]));</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[ori_d] = substr($m3_cron[ori_ymd], -2);<span class="Apple-tab-span" style="white-space:pre">	</span></p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$m3_cron[field] = $field;</p><p> </p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$str_notice = str_replace("\n", ",", trim($board[bo_notice]));</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>if ($str_notice) $str_notice = " and wr_id not in (" . $str_notice . ") ";</p><p> </p><p>    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름</p><p>    $sql = " select * from $tmp_write_table where wr_is_comment=0 $str_notice order by $field desc limit 0, $rows ";</p><p> </p><p>    $result = sql_query($sql);</p><p>    for ($i=0; $row = sql_fetch_array($result); $i++) </p><p>        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);</p><p>    </p><p>    ob_start();</p><p>    include "$latest_skin_path/latest.skin.php";</p><p>    $content = ob_get_contents();</p><p>    ob_end_clean();</p><p> </p><p>    return $content;</p><p>}</p><p>?></p><p><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px; letter-spacing: -0.01px; line-height: normal;">
 

​ 

 

변경해야할 소스 2.=================================================================

</strong><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><?php</span></p><p><span style="font-size: 14.6667px;">if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 </span> </p><p><span style="font-size: 14.6667px; line-height: 22px;">if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있습니다.");</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">include_once "$latest_skin_path/m3cron.extend.php";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">$img_width<span class="Apple-tab-span" style="white-space:pre">		</span>= '130';<span class="Apple-tab-span" style="white-space:pre">			</span>//썸네일 가로길이 </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">$img_height<span class="Apple-tab-span" style="white-space:pre">		</span>= '80';<span class="Apple-tab-span" style="white-space:pre">				</span>//썸네일 세로길이 </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">$img_quality<span class="Apple-tab-span" style="white-space:pre">	</span>= '100';<span class="Apple-tab-span" style="white-space:pre">				</span>//퀼리티 100이하로 설정</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">$data_path = $g4[path]."/data/file/$bo_table";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">$thumb_path = $data_path.'/thumb'; //썸네일 이미지 생성 디렉토리</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">@mkdir($thumb_path, 0707);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">@chmod($thumb_path, 0707);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">$latest_subject = $board[bo_subject];// 제목</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">// 오늘이 아니면 날짜 업데이트 해놓고 이하 실행</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">if($m3_cron[ori_ymd] != $m3_cron[ymd]) {</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">	</span>sql_query("update $g4[board_table] set $rankinfo[bo_subj] = '$m3_cron[ymd]' where bo_table='$bo_table' ");</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">	</span>rank_update($bo_table, $field, $rankinfo);<span class="Apple-tab-span" style="white-space:pre">	</span></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">}</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">?></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><style type="text/css"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">#latest_rank td {</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">	</span>text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:11px;font-family:돋움;</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">}</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">#latest_rank a:link, a:visited, a:active { text-decoration:none; }</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">#latest_rank a:hover { text-decoration:none; }</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">.lank_line { border-top:2px solid #333333; border-bottom:1px solid #CCCCCC; text-align:center; font-weight:bold; background-image:url(<?=$latest_skin_path?>/img/lank_bg.gif); height:32px; padding-left:3px; }</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">.style1 {</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">	</span>color: #0000FF;</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">	</span>font-weight: bold;</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">}</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"></style></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><script type="text/javascript" src="<?=$g4['path']?>/js/common.js"></script></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><div style="height:46px;"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">  <img src="<?=$latest_skin_path?>/img/rank_title.gif" border="0" align="absmiddle"></a></div></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><table width=100% cellpadding=0 cellspacing=0 align="center"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><tr></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">    <td align=center  style="BORDER-BOTTOM:1px solid #ebebeb; OVERFLOW: hidden"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        <table width=100% align="center" border="0" cellpadding="0" cellspacing="0"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        <tr></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        <span class="Apple-tab-span" style="white-space:pre">	</span><td width="110" valign="middle" class="lank_line">평가순위</td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <td width="150" valign="middle" class="lank_line">이미지</td> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <td valign="middle" class="lank_line">세부정보</td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <td width="150" class="lank_line">클릭수</td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <td width="50" valign="middle" class="lank_line">등락</td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        <tr></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><? for ($i=0; $i<count($list); $i++) { </span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">		</span>//썸네일 생성</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">$thumfile = "";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">    $thumb = $thumb_path.'/'.$list[$i][wr_id];</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">    // 썸네일 이미지가 존재하지 않는다면</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">    if (!file_exists($thumb)) {</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        // 업로드된 파일이 이미지라면</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)) {</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            $size = getimagesize($file);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            if ($size[2] == 1)</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">                $src = imagecreatefromgif($file);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            else if ($size[2] == 2)</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">                $src = imagecreatefromjpeg($file);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            else if ($size[2] == 3) </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">                $src = imagecreatefrompng($file); </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            else</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">                break;</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            $rate = $img_width / $size[0];</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            $height = (int)($size[1] * $rate);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            // 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            if ($height < $img_height)</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">                // 계산된 이미지 높이로 복사본 이미지 생성</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">                $dst = imagecreatetruecolor($img_width, $height);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            else</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">                // 설정된 이미지 높이로 복사본 이미지 생성</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">                $dst = imagecreatetruecolor($img_width, $img_height);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">	</span>    }</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">	</span>}</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">    if (file_exists($thumb))</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        $thumfile = "<img src='$thumb' width='{$img_width}' height='{$img_height}' border='0' style='border:5 #eee solid' onmouseover=this.style.filter='alpha(opacity=60)' onmouseout=this.style.filter='' title='{$list[$i][subject]}'></a>";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">		</span>else</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">		</span>//이미지가 없으면</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">		</span>$thumfile="<img src='$latest_skin_path/img/noimg.gif' width='{$img_width}' height='{$img_height}' style='border:1 #E7E7E7 solid'></a>";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">		</span>//이미지가 아니네</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">       { $thumfile = "<script>doc_write(flash_movie('$file', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>"; }</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;">?></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        <tr></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        <span class="Apple-tab-span" style="white-space:pre">	</span><td height="110" valign="middle" align="center" style="BORDER-BOTTOM:1px solid #ebebeb;"><span class="Apple-tab-span" style="white-space:pre">	</span></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span><span style="color:#FF0000; font-size:15px; font-weight:bold;"><strong></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span><?=$i+1;?> 위</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span></strong></span></td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        <span class="Apple-tab-span" style="white-space:pre">	</span><td valign="middle" style="BORDER-BOTTOM:1px solid #ebebeb;"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span><a href='<?=$list[$i][href]?>' target=_self><?=$thumfile?></a></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            </td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <td align="left" width="520" valign="middle" style="BORDER-BOTTOM:1px solid #ebebeb; font-size:15px; padding-left:20px; word-break:break-all; "></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <div style=" margin-bottom:10px;"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">				</span><? switch($m3_cron[field]) {</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">						</span>case "wr_hit":</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">							</span>$link = "<img src='{$latest_skin_path}/img/rank_home_btn.gif' align='absmiddle'> <a href='{$list[$i][link_href][1]}' target=_blank><span style='color:#032db4; font-weight:bold;'>{$list[$i][wr_subject]}</span></a>";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">							</span>break;</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">						</span>case "wr_hit":</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">							</span>$link = "<img src='{$latest_skin_path}/img/rank_home_btn.gif' align='absmiddle'> <a href='{$list[$i][link_href][2]}' target=_blank><span style='color:#032db4; font-weight:bold;'>{$list[$i][wr_subject]}</span></a>";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">							</span>break;</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">						</span>case "wr_hit":</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">						</span>case "wr_good":</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">						</span>case "wr_nogood":</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">							</span>$link = "<img src='{$latest_skin_path}/img/rank_home_btn.gif' align='absmiddle'> <a href='{$list[$i][href]}'><span style='color:#032db40; font-weight:bold;'>{$list[$i][subject]}</span></a>";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">							</span>break;</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">						</span>default:</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">							</span>$link = "필드를 찾을 수 없습니다.";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">						</span>}</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">						</span>echo $link;</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">				</span>?></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">              </div></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">              <div><a href="<?=$list[$i][href]?>"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">              <span style="font-size:12px; font-family:돋움; word-break:break-all; display:block; letter-spacing:-1px; line-height:14px; color:#666666; clear:both;"><?=cut_str(strip_tags($list[$i][wr_content]),250,"...")?></span></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">              </div></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">              <div style="padding-top:5px; font-size:15px; color:#009900;"><a href="<?=$list[$i][link_href][1]?>" target=_blank><span style="color:#009900;"><strong><?=cut_str($list[$i][wr_link1], 35)?></strong></span></a></div><span class="Apple-tab-span" style="white-space:pre">	</span></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span></td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <td style="BORDER-BOTTOM:1px solid #ebebeb;" align="center"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <img src="<?=$latest_skin_path?>/img/site_click.gif" align="absmiddle">
</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> <span style="color:#ff0000; font-size:14px; font-weight:bold;"><?=$list[$i][wr_hit]?></span></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            </td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            <td align=right style="font-family:돋움;font-size:17px;color:gray; BORDER-BOTTOM:1px solid #ebebeb; padding-right:14px; font-weight:bold;"></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span><?<span class="Apple-tab-span" style="white-space:pre">			</span></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>if (!empty($list[$i][$rankinfo[wr_no]])) //어제 순위가 있다면</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">				</span>$ratio = $list[$i][$rankinfo[wr_no]] - ($i+1);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>else</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">				</span>$ratio = 0; // 어제 순위가 없다면 오늘 순위</span></p><p><span class="Apple-tab-span" style="white-space: pre; font-size: 14.6667px; line-height: 22px;">				</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>echo $ratio . " ";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>if ($ratio > 0)</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">				</span>echo "<img src='$latest_skin_path/img/up.gif'>";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>else if ($ratio < 0)</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">				</span>echo "<img src='$latest_skin_path/img/down.gif'>";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>else</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">				</span>echo "<img src='$latest_skin_path/img/zero.gif'>";</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>//echo " hit: " . $list[$i][$field];</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>//echo " ye: " . $list[$i][wr_1];</span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">			</span>//echo " to: " . ($i+1);</span></p><p><span style="font-size: 14.6667px; line-height: 22px;">            ?></td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">          </tr></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">		</span><? } ?></span></p><p><span style="font-size: 14.6667px; line-height: 22px;">        </table></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><span class="Apple-tab-span" style="white-space:pre">	</span></td></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"></tr></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"> </span></p><p><span style="font-size: 14.6667px; line-height: 22px;"><? if (count($list) == 0) { ?><tr><td align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?></span></p><p><span style="font-size: 14.6667px; line-height: 22px;"></table></span></p><p> </p><p><span style="font-size: 14.6667px; line-height: 22px;"></div></span></p><div><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px; letter-spacing: -0.01px; line-height: normal;">
변경해야할 소스 3.=================================================================

</strong></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><? </b></span></font></p><p><b style="font-size: 12px; letter-spacing: -0.01px; line-height: normal; color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif;">function rank_update($bo_table, $field, $rankinfo) {</b> </p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><span class="Apple-tab-span" style="white-space:pre">	</span>global $g4;</b></span></font></p><p><span class="Apple-tab-span" style="white-space: pre; font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><b>	</b></font></span></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><span class="Apple-tab-span" style="white-space:pre">	</span>$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름</b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><span class="Apple-tab-span" style="white-space:pre">	</span>$sql = " select wr_id from $tmp_write_table where wr_is_comment = 0 order by $field desc ";</b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><span class="Apple-tab-span" style="white-space:pre">	</span>$result = sql_query($sql);<span class="Apple-tab-span" style="white-space:pre">	</span></b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b>
</b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><span class="Apple-tab-span" style="white-space:pre">	</span>for ($i=0; $row = sql_fetch_array($result); $i++)  {</b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><span class="Apple-tab-span" style="white-space:pre">		</span>$sql = "update $tmp_write_table set $rankinfo[wr_no] = '" . ($i+1) . "' where wr_id=".$row[wr_id];</b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><span class="Apple-tab-span" style="white-space:pre">		</span>sql_query($sql);</b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b><span class="Apple-tab-span" style="white-space:pre">	</span>}</b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b>}</b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b>
</b></span></font></p><p> </p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px; letter-spacing: -0.01px; line-height: normal;"><b>?></b></span></font></p><div><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px; letter-spacing: -0.01px; line-height: normal;">
댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
B
9년 전
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

9년 전

m3_cron 이 들어가 있어서 QA에서 해결하는 건 무리네요. 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인