오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://itizone.com/
최신글 클릭하면 존재하지않는게시판이라고 나옵니다. 게시글 링크주소가 제대로 안나오는데 어디가문제조
원래글주소가 http://itizone.com/bbs/board.php?bo_table=02_01&wr_id=17 인데
최신글에서는 http://itizone.com/bbs/board.php?bo_table=0&wr_id=17 이렇게 나옵니다. 어디가문제조 latest.skin 이건 소스가
<?
if (!defined("_GNUBOARD_")) exit;
// 상단 타이틀
if($gr_id){
$group_name = $group_name;
}else{
$group_name = '최신게시물';
}
?>
<table align="center" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr height="1">
<td bgcolor="#d8d8d8" colspan="3"></td>
</tr>
<tr>
<td width="1" bgcolor="#d8d8d8"></td>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="10"></td>
<td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="5"><td colspan="2"></td></tr>
<tr height="27">
<td>
<p><FONT
color=#555555><B>뉴스</B></FONT> </p>
</td>
<td align="right"><img src='<?=$latest_skin_path?>/img/icon.gif'><span style="font-size:11px; color: #646464; font-family:dotum; letter-spacing:-1;"><a href='<?=$g4[bbs_path]?>/group.php?gr_id=<?=$gr_id?>'>더보기</a></span></td>
</tr>
<tr height="1"><td colspan="2" background="<?=$latest_skin_path?>/img/line_dot.gif" border="0"></td></tr>
<tr height="5"><td colspan="2"></td></tr>
</table>
</td>
<td width="10"></td>
</tr>
</table>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) { $icon = $i + 1; // 아이콘 ?>
<tr>
<td width="10"></td>
<td height="22">
<?
//날짜표시
$subject = $list[$i][subject];
$b_subject = "<strong>".$list[$i][subject]."<strong>";
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<?if($icon <= 5) echo "<td width='16'><img src='{$latest_skin_path}/img/icon_{$icon}.gif' align='absmiddle'></td><td>"; else echo "<td width='16'><span style='color:#777777;font-weight:bold;'>ㆍ</span></td><td>";?><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$list[$i][bo_table]?>'><span style="font-size:11px; color: #aaaaaa; font-family:dotum;">[<?=$list[$i][bo_subject]?>]</span></a> <a href='<?=$list[$i][href]?>'><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]?> <?
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_secret];
?>
</span>
<td width="80" align="center"><?=$list[$i][name]?></td>
<td width="28" align="right"><span style='font:normal 11px tahoma; color:#BABABA;'><?=$list[$i][datetime2]?></span></td>
<td width='5'></td>
</tr>
</table>
<!--게시물 추출 글자 설정 끝-->
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr height="88"><td align=center><font color=#6A6A6A>현재 등록된 글이 없습니다.</a></td></tr><? } ?>
</table>
</td>
<td width="1" bgcolor="#d8d8d8"></td>
</tr>
<tr height="5">
<td width="1" bgcolor="#d8d8d8"></td>
<td></td>
<td width="1" bgcolor="#d8d8d8"></td>
</tr>
<tr height="1">
<td bgcolor="#d8d8d8" colspan="3"></td>
</tr>
</table>
알려주세요
오류 주소 : http://itizone.com/
최신글 클릭하면 존재하지않는게시판이라고 나옵니다. 게시글 링크주소가 제대로 안나오는데 어디가문제조
원래글주소가 http://itizone.com/bbs/board.php?bo_table=02_01&wr_id=17 인데
최신글에서는 http://itizone.com/bbs/board.php?bo_table=0&wr_id=17 이렇게 나옵니다. 어디가문제조 latest.skin 이건 소스가
<?
if (!defined("_GNUBOARD_")) exit;
// 상단 타이틀
if($gr_id){
$group_name = $group_name;
}else{
$group_name = '최신게시물';
}
?>
<table align="center" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr height="1">
<td bgcolor="#d8d8d8" colspan="3"></td>
</tr>
<tr>
<td width="1" bgcolor="#d8d8d8"></td>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="10"></td>
<td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="5"><td colspan="2"></td></tr>
<tr height="27">
<td>
<p><FONT
color=#555555><B>뉴스</B></FONT> </p>
</td>
<td align="right"><img src='<?=$latest_skin_path?>/img/icon.gif'><span style="font-size:11px; color: #646464; font-family:dotum; letter-spacing:-1;"><a href='<?=$g4[bbs_path]?>/group.php?gr_id=<?=$gr_id?>'>더보기</a></span></td>
</tr>
<tr height="1"><td colspan="2" background="<?=$latest_skin_path?>/img/line_dot.gif" border="0"></td></tr>
<tr height="5"><td colspan="2"></td></tr>
</table>
</td>
<td width="10"></td>
</tr>
</table>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) { $icon = $i + 1; // 아이콘 ?>
<tr>
<td width="10"></td>
<td height="22">
<?
//날짜표시
$subject = $list[$i][subject];
$b_subject = "<strong>".$list[$i][subject]."<strong>";
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<?if($icon <= 5) echo "<td width='16'><img src='{$latest_skin_path}/img/icon_{$icon}.gif' align='absmiddle'></td><td>"; else echo "<td width='16'><span style='color:#777777;font-weight:bold;'>ㆍ</span></td><td>";?><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$list[$i][bo_table]?>'><span style="font-size:11px; color: #aaaaaa; font-family:dotum;">[<?=$list[$i][bo_subject]?>]</span></a> <a href='<?=$list[$i][href]?>'><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]?> <?
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_secret];
?>
</span>
<td width="80" align="center"><?=$list[$i][name]?></td>
<td width="28" align="right"><span style='font:normal 11px tahoma; color:#BABABA;'><?=$list[$i][datetime2]?></span></td>
<td width='5'></td>
</tr>
</table>
<!--게시물 추출 글자 설정 끝-->
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr height="88"><td align=center><font color=#6A6A6A>현재 등록된 글이 없습니다.</a></td></tr><? } ?>
</table>
</td>
<td width="1" bgcolor="#d8d8d8"></td>
</tr>
<tr height="5">
<td width="1" bgcolor="#d8d8d8"></td>
<td></td>
<td width="1" bgcolor="#d8d8d8"></td>
</tr>
<tr height="1">
<td bgcolor="#d8d8d8" colspan="3"></td>
</tr>
</table>
알려주세요
댓글을 작성하시려면 로그인이 필요합니다.
댓글 7개
최근게시물 보이게 하는 메인화면에 한번 보세요
그럼
이런식으로 해야 합니다.
그리고 extend폴드에 group란 lib파일이 있어야 합니다.
[] 55 최근게시글에 마우스를 올려놓으면,
링크부분이 http://itizone.com/bbs/board.php?bo_table=0&wr_id=7 이런식으로 나오게 되죠? 이런 경로는 없다는 것이죠..
경로가 맞을려면
http://itizone.com/bbs/board.php?bo_table=02&wr_id=7 이렇게 되어야 정상적으로 그 게시물을 찾아가죠?
위 <?=latest_group("최근글스킨폴드", "그룹명", 갯수, 제목글수); ?> 이 구분에서 latest_group이란것은 다를수 있습니다. 그룹최신글을 불러오는 lib파일 내용을 보면 앞에 무엇이 와야 할지 알 수 있습니다.
정의가 어떻게 되어 있는지에 따라 다릅니다.
<?=latest_group("스킨명", "$row[gr_id]", 갯수, 제목글수); ?>
이렇게 해 보세요
"$row[gr_id]", 이부분에 그룹명을 입력을 하셔도 됩니다.