제가 그누보드를 사실 코딩에 문외한이라 그누보드에서 이것저것 조합해서 index.html에 아이프레임으로 우겨넣었습니다. ㅎㅎ;; 그부분의 html 소스는 이것이며
<td width="205" height="90" rowspan="2"><iframe src="http://*******.co.kr/gnuboard4/news.php" name="news" width="195" height="85" frameborder="0" scrolling="no" ALLOWTRANSPARENCY="true"></iframe></td>
<td rowspan="2">
<img src="images/index_14.jpg" width="47" height="90" alt=""></td>
<td width="205" height="90" rowspan="2"><iframe src="http://*******.co.kr/gnuboard4/qna.php" name="qna" width="195" height="85" frameborder="0" scrolling="no" ALLOWTRANSPARENCY="true"></iframe></td>
<td rowspan="2">
여기에 연결되어 있는 php파일 news.php는 아래이고 qna도 경로를 제외하고 같음
<?
include_once("_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!-- 메인화면 최신글 시작 -->
<body style="background-color:transparent">
<table width="100%" cellpadding=0 cellspacing=0><tr> <td valign=top>
<?
{
echo latest("basic", "news", 4, 28);
}
?>
</table></body>
</code>
latest.skin.php 파일의 소스는 아래와 같습니다. 스킨은 복사해서 2개로 만들어서 news와 qna를 분류시킴
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95% cellpadding=0 cellspacing=0>
<tr>
<td height=5><img src='<?=$latest_skin_path?>/img/board_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href=javascript:parent.location.href='http://********.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}' style='text-decoration:none;'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; text-decoration:none;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; text-decoration:none;'>{$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; text-decoration:none;'>{$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'];
?></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=10><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
여기보드 게시판을 뒤지면서 강제적으로 최신글을 불러오게 되기는 했는데 스킨경로가 마지막 문제점으로 남았습니다.
특히 echo "<a href=javascript:parent.location.href='http://*******.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}' style='text-decoration:none;'>"; <=== 링크주소가 보이는것으로 생각되는데 어찌해야될지 모르겠어요 ㅠ_ㅠ
도움 부탁드립니다.