최신글 more 클릭시 ㅠㅠ오류 도와주세요. 정보
최신글 more 클릭시 ㅠㅠ오류 도와주세요.본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
일단 그누보드 폴더 안에 head.php ,tail.php 이런거 몰랐구요..
제가 드림위버로 잡아서 만든 각각 php 페이지에 그누보드 게시판을 넣었어요.
메인 테이블에서 최신글 스킨적용해서 불러왔는데
그 스킨에 more 을 누르면 .. 제가만든 php페이지가 아닌..
그냥 그누보드 관리자에서 게시판 보기 누르면 나오는 페이지가 뜨더라구요.
정리하면 제가 만든 index.php 메인에 최신글 스킨을 적용해서 띄우고 그걸 누르면
board2.php라는 창이 현재창에서 떴으면 좋겠는데...
lastedskin.php 소스는 이렇구요... 방법이 없을까요 ?ㅠㅠㅠ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
.lastest {_display:inline-block; width:100%; overflow:hidden;}
.lastest .lastest_box {_display:inline-block; position:relative; overflow:hidden;}
.lastest img{border:0}
.lastest .ntitle{padding-left:7px;}
.lastest .more_btn{padding:0px;}
.lastest .lastest_box .more_btn {position:absolute; top:0px; right:5px;}
.lastest ul {list-style-image:none; padding:0 5px 0 5px;}
.lastest li {background:url(<?=$latest_skin_path?>/img/ball.gif) no-repeat 0 50%; padding:2px 0 2px 10px; font-size:12px;}
.lastest a:link {color: #888; text-decoration: none}
.lastest a:visited {color: #888; text-decoration: none}
.lastest a:active {color: #888; text-decoration: none}
.lastest a:hover { color: #888; text-decoration: none}
</style>
<div class="lastest">
<div class="lastest_box">
<span class="ntitle"><img src='<?=$latest_skin_path?>/img/title.gif' alt="title" /></span>
<span class="more_btn"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' alt="" /></a></span>
</div>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<li>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "{$list[$i]['subject']}";
else
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\">{$list[$i]['comment_cnt']}</a>";
echo " " . $list[$i]['icon_new'];
?></li>
<? } ?>
<? if (count($list) == 0) { ?><li>게시물이 없습니다.</li><? } ?>
</ul>
</div>
오류 주소 :
일단 그누보드 폴더 안에 head.php ,tail.php 이런거 몰랐구요..
제가 드림위버로 잡아서 만든 각각 php 페이지에 그누보드 게시판을 넣었어요.
메인 테이블에서 최신글 스킨적용해서 불러왔는데
그 스킨에 more 을 누르면 .. 제가만든 php페이지가 아닌..
그냥 그누보드 관리자에서 게시판 보기 누르면 나오는 페이지가 뜨더라구요.
정리하면 제가 만든 index.php 메인에 최신글 스킨을 적용해서 띄우고 그걸 누르면
board2.php라는 창이 현재창에서 떴으면 좋겠는데...
lastedskin.php 소스는 이렇구요... 방법이 없을까요 ?ㅠㅠㅠ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
.lastest {_display:inline-block; width:100%; overflow:hidden;}
.lastest .lastest_box {_display:inline-block; position:relative; overflow:hidden;}
.lastest img{border:0}
.lastest .ntitle{padding-left:7px;}
.lastest .more_btn{padding:0px;}
.lastest .lastest_box .more_btn {position:absolute; top:0px; right:5px;}
.lastest ul {list-style-image:none; padding:0 5px 0 5px;}
.lastest li {background:url(<?=$latest_skin_path?>/img/ball.gif) no-repeat 0 50%; padding:2px 0 2px 10px; font-size:12px;}
.lastest a:link {color: #888; text-decoration: none}
.lastest a:visited {color: #888; text-decoration: none}
.lastest a:active {color: #888; text-decoration: none}
.lastest a:hover { color: #888; text-decoration: none}
</style>
<div class="lastest">
<div class="lastest_box">
<span class="ntitle"><img src='<?=$latest_skin_path?>/img/title.gif' alt="title" /></span>
<span class="more_btn"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' alt="" /></a></span>
</div>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<li>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "{$list[$i]['subject']}";
else
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\">{$list[$i]['comment_cnt']}</a>";
echo " " . $list[$i]['icon_new'];
?></li>
<? } ?>
<? if (count($list) == 0) { ?><li>게시물이 없습니다.</li><? } ?>
</ul>
</div>
댓글 전체
<span class="more_btn"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' alt="" /></a></span>
부분에 경로명을 상대경로나 절대경로로 바꾸세요
<a href='원하시는 url'>
부분에 경로명을 상대경로나 절대경로로 바꾸세요
<a href='원하시는 url'>
이렇게 간단했군요..ㅠㅠㅠㅠㅠㅠ
예전 질문들 찾아서 해봐도 안됐는데 이제 되네요.
감사합니다!
예전 질문들 찾아서 해봐도 안됐는데 이제 되네요.
감사합니다!