그누보드4 최신글 새창으로열기
본문
안녕하세요?
초보자인데, 그누보드4 최신글보기 스킨(php파일) 을 수정하려고 합니다.
글제목이나 more를 누르면 현재창이 아닌 새창으로 열리게 하고 싶습니다.
어느 부분에 타겟을 지정하면 될까요? 여러 고수님들의 조언 부탁드립니다.
그리고 한가지더 문제가 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>
답변 1
<span class="more_btn"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><img src='<?=$latest_skin_path?>/img/more.gif' alt="" /></a></span>
echo "<a href='{$list[$i]['href']}' target='_blank'>";