최신글 스킨 제목에 링크 거는것좀 알려주세요^^ > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신글 스킨 제목에 링크 거는것좀 알려주세요^^ 정보

최신글 스킨 제목에 링크 거는것좀 알려주세요^^

본문

http://sir.co.kr/bbs/board.php?bo_table=g4_skin_latest&wr_id=12376&page=16

위 링크 스킨인데요.. 현재는 제목에 링크가 안걸려있더라구요.. 다른 최신글에서 참고해서 넣어보려고했는데 제대로 작동을 안하네요...
latest.skin.php 코드는 아래와 같습니다..


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 

// 연동 : http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=32524&page=4
// 이미지 가로 및 세로 정렬 기능 최신글
// 썸네일이 없을경우 원본이미지 불러옴.

$cols  = 5; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h  = 10; // 이미지 상하 간격

$col_width = (int)(99 / $cols);

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<style type="text/css">
<!--
.data  { font-family:돋움; font-size:8pt; color:#999999; }
-->
</style>

<table width="590" border="0" cellspacing="0" cellpadding="0">

<tr><td height='25' background='<?=$latest_skin_path?>/img/la_titie.gif' style='padding-top:2px; padding-left:40px;'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' onfocus='this.blur()'><strong><?=$board[bo_subject]?></strong></a></td></tr>

<tr><td height='10'></td></tr>
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>

<? for ($i=0; $i<count($list); $i++) { 
  if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; } 
?> 

<td width="<?=$col_width?>%" align="center" valign='top'>

<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image;  //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];

  if ( file_exists($thumb) )
	$img = $thumb;
  
    $style = "font-family:돋움; font-size:9pt; color:#636363;";
    if ($list[$i][icon_new])
    $style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
	$subject = "<span $style>".cut_str($list[$i][subject],10)."</span>"; //제목 글자수 자르기

//    if ($list[$i]['comment_cnt']) //코
//        $cmt = "({$list[$i]['comment_cnt']})";

	$bg = "";  //새글? 
    if ($list[$i][icon_new])
        $bg="la_top_2.gif";
     else
        $bg="la_top_1.gif";

	    echo $list[$i][icon_reply] . " ";

		echo "<table width='116' cellpadding='0' cellspacing='0' border='0'>";
		echo "		<tr><td height='22' background='{$latest_skin_path}/img/$bg' style='padding-top:2px; padding-left:30px;'>{$subject}</td></tr>";
		echo "		<tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'><a href=\"javascript:;\" OnClick=\"popupImage('$g4[path]/data/file/$bo_table/$image')\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\"><img src='$img' width='100' height='70' border='0'></a></td></tr>";
		echo "		<tr><td height='21' background='{$latest_skin_path}/img/la_bot.gif' style='padding-left:25px; padding-top:7px;' class='data'>{$list[$i][datetime2]} {$cmt}</td></tr></table>";
?>
</td>
<? } ?> 

<? 
$cnt = ($i%$cols); 
for ($k=$cnt; $k<$cols && $cnt; $k++) { 
    echo "<td width=$col_width%>&nbsp;</td>"; 
} 
?> 

  <? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
  </tr>
</table></td>
</tr>
</table>

<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
  imageHandle.document.write("<title>   </title>");
  imageHandle.document.write("<style>");
  imageHandle.document.write("*{margin:0;padding:0;border:0;}");
  imageHandle.document.write("</style>");
  imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>

댓글 전체

<tr><td height='22' background='{$latest_skin_path}/img/$bg' style='padding-top:2px; padding-left:30px;'><a href='{$list[$i][href]}'>{$subject}</a></td></tr>

63번 라인에 이런식으로 수정 해보시겠어요 ?

안되시면 말씀해 주세요.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT