최신게시물 스킨에서 정보
최신게시물 스킨에서본문
http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=83003&sca=&sfl=mb_id%2C1&stx=hyunho1004&spt=-3266&page=1
위 링크에 나오는 큐티와이님의 최신게시물 스킨을 메인화면에 적용할려고 하는데요
최신게시물 리스트를 누르면 해당 게시글이 떠야 되는데 그냥 새창이 뜨면서 메인화면이 그대로 나와버리네요
php파일 원본 그대로 올립니다.
한번만 봐주세요~~
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_t_bg.gif">
<!--타이틀 시작: 실선 색상을 바꾸려면 215, 215, 215를 고치세요.-->
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="30">
<td width="10"></td>
<td><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#000000" ><b><?=$board[bo_subject]?></b></font></a></td>
<td width="40"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" border="0"></a>
<td width="5"></td>
</tr>
</table>
<!--타이틀 끝-->
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_2.gif"></td>
</tr>
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif"></td>
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) {?>
<tr>
<!--게시물 아래 점선 색상을 바꾸고 싶으시면 211,211,211부분을, 게시물 추출부분 세로 길이를 늘리시려면 25을 수정하세요-->
<td width="100%" height="23" valign=middle style="border-bottom-width:0px; border-bottom-color:rgb(211,211,211); border-bottom-style:dotted;">
<?
//날짜표시
$subject = $list[$i][subject];
$b_subject = "<strong>".$list[$i][subject]."<strong>";
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
<tr>
<td width="3"></td>
<td><span style='color:#777777;font-weight:bold;'>ㆍ</span><a href='<?=$list[$i][wr_link1]?>' target=_blank> <span class="th8"><?if ($list[$i][is_notice])
echo $b_subject;
else
echo $subject;
?></span></a>
<span style="font-size:7pt;font-family:tahoma;color:#EE5A00;vertical-align:1px;"><?=$list[$i][comment_cnt]?>
</span>
</td>
<td width='5'></td>
</tr>
</table>
<!--게시물 추출 글자 설정 끝-->
</td>
</tr>
<? } ?>
</table>
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
</tr>
<tr height="3">
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_b_bg.gif"></td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_2.gif"></td>
</tr>
</table>
위 링크에 나오는 큐티와이님의 최신게시물 스킨을 메인화면에 적용할려고 하는데요
최신게시물 리스트를 누르면 해당 게시글이 떠야 되는데 그냥 새창이 뜨면서 메인화면이 그대로 나와버리네요
php파일 원본 그대로 올립니다.
한번만 봐주세요~~
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_t_bg.gif">
<!--타이틀 시작: 실선 색상을 바꾸려면 215, 215, 215를 고치세요.-->
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="30">
<td width="10"></td>
<td><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#000000" ><b><?=$board[bo_subject]?></b></font></a></td>
<td width="40"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" border="0"></a>
<td width="5"></td>
</tr>
</table>
<!--타이틀 끝-->
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_2.gif"></td>
</tr>
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif"></td>
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) {?>
<tr>
<!--게시물 아래 점선 색상을 바꾸고 싶으시면 211,211,211부분을, 게시물 추출부분 세로 길이를 늘리시려면 25을 수정하세요-->
<td width="100%" height="23" valign=middle style="border-bottom-width:0px; border-bottom-color:rgb(211,211,211); border-bottom-style:dotted;">
<?
//날짜표시
$subject = $list[$i][subject];
$b_subject = "<strong>".$list[$i][subject]."<strong>";
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
<tr>
<td width="3"></td>
<td><span style='color:#777777;font-weight:bold;'>ㆍ</span><a href='<?=$list[$i][wr_link1]?>' target=_blank> <span class="th8"><?if ($list[$i][is_notice])
echo $b_subject;
else
echo $subject;
?></span></a>
<span style="font-size:7pt;font-family:tahoma;color:#EE5A00;vertical-align:1px;"><?=$list[$i][comment_cnt]?>
</span>
</td>
<td width='5'></td>
</tr>
</table>
<!--게시물 추출 글자 설정 끝-->
</td>
</tr>
<? } ?>
</table>
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
</tr>
<tr height="3">
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_b_bg.gif"></td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_2.gif"></td>
</tr>
</table>
댓글 전체
링크형 최신글이라 그래요...
<a href='<?=$list[$i][wr_link1]?>' target=_blank> 얘를
<a href='{$list[$i]['href']}'> <-- 얘로 바꿔보세요.
<a href='<?=$list[$i][wr_link1]?>' target=_blank> 얘를
<a href='{$list[$i]['href']}'> <-- 얘로 바꿔보세요.
음
<a href="<?=$list[$i][href];?> 이거아닌가염
오! 됩니다. +_+;;;
감사합니다.!!!!
감사합니다.!!!!