★ 최근게시물 링크 정보
★ 최근게시물 링크본문
최근게시물을 메인에 뽑았는데요.
내용을 클릭하면 게시판이 전체가 게시판으로 링크되어 나오네요
서브페이지 안에 아이프레임으로 게시판을 만들었는데요 notice.php
메인에서 클릭하면 그 페이지의 관련 내용으로 이동하려면 어떻게 해야하나요?
아래 latest.skin.php 소스입니다. 여기서 링크를 바꿔야하는거죠?
어느부분에 어떻게 하는지 알려주세요
-------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width=7 height=7><img src="<?=$latest_skin_path?>/img/bg_tl.gif" width=7></td>
<td background="<?=$latest_skin_path?>/img/bg_t.gif"></td>
<td width=6><img src="<?=$latest_skin_path?>/img/bg_tr.gif" width=6></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/bg_ml.gif"></td>
<td>
<div style="padding:5px; background-color:#efefef;">
<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong>
</div>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
// echo " " . $list[$i]['icon_new'];
// echo " " . $list[$i]['icon_file'];
// echo " " . $list[$i]['icon_link'];
// echo " " . $list[$i]['icon_hot'];
// echo " " . $list[$i]['icon_secret'];
?></td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
</td>
<td background="<?=$latest_skin_path?>/img/bg_mr.gif"></td>
</tr>
<tr>
<td height=7><img src="<?=$latest_skin_path?>/img/bg_bl.gif" width=7></td>
<td background="<?=$latest_skin_path?>/img/bg_b.gif"></td>
<td><img src="<?=$latest_skin_path?>/img/bg_br.gif" width=6></td>
</tr>
</table>
내용을 클릭하면 게시판이 전체가 게시판으로 링크되어 나오네요
서브페이지 안에 아이프레임으로 게시판을 만들었는데요 notice.php
메인에서 클릭하면 그 페이지의 관련 내용으로 이동하려면 어떻게 해야하나요?
아래 latest.skin.php 소스입니다. 여기서 링크를 바꿔야하는거죠?
어느부분에 어떻게 하는지 알려주세요
-------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width=7 height=7><img src="<?=$latest_skin_path?>/img/bg_tl.gif" width=7></td>
<td background="<?=$latest_skin_path?>/img/bg_t.gif"></td>
<td width=6><img src="<?=$latest_skin_path?>/img/bg_tr.gif" width=6></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/bg_ml.gif"></td>
<td>
<div style="padding:5px; background-color:#efefef;">
<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong>
</div>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
// echo " " . $list[$i]['icon_new'];
// echo " " . $list[$i]['icon_file'];
// echo " " . $list[$i]['icon_link'];
// echo " " . $list[$i]['icon_hot'];
// echo " " . $list[$i]['icon_secret'];
?></td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
</td>
<td background="<?=$latest_skin_path?>/img/bg_mr.gif"></td>
</tr>
<tr>
<td height=7><img src="<?=$latest_skin_path?>/img/bg_bl.gif" width=7></td>
<td background="<?=$latest_skin_path?>/img/bg_b.gif"></td>
<td><img src="<?=$latest_skin_path?>/img/bg_br.gif" width=6></td>
</tr>
</table>
댓글 전체

게시물을 클릭했을 때 게시물이 아닌 게시판으로 링크가 된다면
echo "<a href='{$list[$i]['href']}&wr_id={$list[$i]['wr_id']}'>";
로 수정 하셔야 할듯 합니다
echo "<a href='{$list[$i]['href']}&wr_id={$list[$i]['wr_id']}'>";
로 수정 하셔야 할듯 합니다

June44님의 말씀처럼 안되시면
아이프레임안에 게시판이 있다면,,타겟을 한번 지정해 보세요..
echo "<a href='{$list[$i]['href']}' target='_parent'>";
아이프레임안에 게시판이 있다면,,타겟을 한번 지정해 보세요..
echo "<a href='{$list[$i]['href']}' target='_parent'>";