(수정) 글 내용보기에서 '이전글'과 '다음글' 제목 보이기 정보
그누호환 (수정) 글 내용보기에서 '이전글'과 '다음글' 제목 보이기관련링크
본문
==================================
안녕하세요..
모두들 알고 계시는 내용인데 제가 뒷북치는게 아닌가 싶네요. (뒷북이면 지우겠습니다.)
뉴스(신문) 클리핑 스킨을 만들고 있는데, 뉴스게시물 보기 화면 하단에 적용된 것입니다.
아래의 내용을 gbview.skin.php 에 적용하시면 됩니다.
수정내용 (03.12.21) : 게시판 설정화면에서 '전체목록보이기 사용'을 '예'로 하면 현재 게시물 제목만 나타나 보기에 엉성하여 이때는 나타나지 않게 하였습니다. ^^;
참고 링크는 http://cpu.nozo.net/?doc=bbs/gnuboard.php&bo_table=news&wr_id=199
==================================
<!--// 이전뉴스, 다음뉴스 시작 -->
<? if (!$board[bo_use_listview]) { ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<tr><td height=2></td></tr>
<? if ($prev_href) { echo "<tr><td height=22> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=22> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=22> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table>
<? } ?>
<!--// 이전뉴스, 다음뉴스 종료 -->
==================================
그럼...
안녕하세요..
모두들 알고 계시는 내용인데 제가 뒷북치는게 아닌가 싶네요. (뒷북이면 지우겠습니다.)
뉴스(신문) 클리핑 스킨을 만들고 있는데, 뉴스게시물 보기 화면 하단에 적용된 것입니다.
아래의 내용을 gbview.skin.php 에 적용하시면 됩니다.
수정내용 (03.12.21) : 게시판 설정화면에서 '전체목록보이기 사용'을 '예'로 하면 현재 게시물 제목만 나타나 보기에 엉성하여 이때는 나타나지 않게 하였습니다. ^^;
참고 링크는 http://cpu.nozo.net/?doc=bbs/gnuboard.php&bo_table=news&wr_id=199
==================================
<!--// 이전뉴스, 다음뉴스 시작 -->
<? if (!$board[bo_use_listview]) { ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<tr><td height=2></td></tr>
<? if ($prev_href) { echo "<tr><td height=22> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=22> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=22> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table>
<? } ?>
<!--// 이전뉴스, 다음뉴스 종료 -->
==================================
그럼...
추천
0
0
댓글 전체
자~알 쓰고 있습니다.
[카피레프트]님의 적용예를 구현하기 위해서는,
기본적으로 해당되는 게시판에 코멘트 쓰기를 열어놔야 하는 군요.
물론, 코멘트 작성할 수 없도록 권한설정을 높이면, 깨끗한 게시판에,
깔끔한 팁을 유용하게 쓸 수 있습니다.
1. 선행조건 : 전체목록 사용 -> 사용하지 않음.
2. 선행조건 : 게시판 내 코멘트 -> 코멘트 작성.
두 가지 요건을 최고관리자 모드에서 지정해 놓으면, 아주 아주 깔쌈(^^;)하게
적용시킬 수 있군요.
팁!!! 감사합니다.
[카피레프트]님의 적용예를 구현하기 위해서는,
기본적으로 해당되는 게시판에 코멘트 쓰기를 열어놔야 하는 군요.
물론, 코멘트 작성할 수 없도록 권한설정을 높이면, 깨끗한 게시판에,
깔끔한 팁을 유용하게 쓸 수 있습니다.
1. 선행조건 : 전체목록 사용 -> 사용하지 않음.
2. 선행조건 : 게시판 내 코멘트 -> 코멘트 작성.
두 가지 요건을 최고관리자 모드에서 지정해 놓으면, 아주 아주 깔쌈(^^;)하게
적용시킬 수 있군요.
팁!!! 감사합니다.
여러모로 유용한 팁인것 같습니다.
잘 쓰도록 하겠습니다. ^^
잘 쓰도록 하겠습니다. ^^
기달려 봐요..
수강료라기 보단 "복채"가 맞을듯^^
이상하게 게시판에 소스를 복사해서 보면 잘 보이는 이유는 뭐죠...
수강료라기 보단 "복채"가 맞을듯^^
이상하게 게시판에 소스를 복사해서 보면 잘 보이는 이유는 뭐죠...
맞을것 같기도 하고 아닌것 같기도 해서 저도 테스트 삼아
해 봤습니다.^^; 역시 몸으로 부딪치는게 최고인듯 합니다.
7쟁이님이 눈을 조금 더 크게 뜨셨으면 보셨을 겁니다.
<? 와
echo 와
?> 를 ....^^;
현재뉴스 항목에는 아무것도 (좌우로) 없지만 ....
이전뉴스 다음뉴스는 위 이상한 문자(?)들이 감싸고 있습니다.^^;
수강료는 언제 입금 되나요? ^^
해 봤습니다.^^; 역시 몸으로 부딪치는게 최고인듯 합니다.
7쟁이님이 눈을 조금 더 크게 뜨셨으면 보셨을 겁니다.
<? 와
echo 와
?> 를 ....^^;
현재뉴스 항목에는 아무것도 (좌우로) 없지만 ....
이전뉴스 다음뉴스는 위 이상한 문자(?)들이 감싸고 있습니다.^^;
수강료는 언제 입금 되나요? ^^
참 !
대충보고 작업을 하니 이런문제가 꼭 생기는군요..
코멘트가 위/아래 있는거 오늘 첨 봤네요^^ 으~~~~~
대충보고 작업을 하니 이런문제가 꼭 생기는군요..
코멘트가 위/아래 있는거 오늘 첨 봤네요^^ 으~~~~~
으~흐
무섭다 무서워^^
성길님 자리 피시죠...
속을 훤히 보시니.....크
굿 입니다..
땡큐..당케..아리가또
또 뭐가있지..??
무섭다 무서워^^
성길님 자리 피시죠...
속을 훤히 보시니.....크
굿 입니다..
땡큐..당케..아리가또
또 뭐가있지..??
코멘트 쓰기가 아닌 코멘트 내용위로 옮기시구요.
관리자모드 -> 해당게시판 에서 전체목록보이기 사용 항목을 아니오 선택 후
해 보세요.
관리자모드 -> 해당게시판 에서 전체목록보이기 사용 항목을 아니오 선택 후
해 보세요.
gbview.skin.php 소스입니다
아상하게 안되는군요.....
<!-- 2003.11.26 작성 -->
<!-- 원글 내용 -->
<style>
.tt {font-size:9pt; COLOR: #575757;}
</style>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr height=30 bgcolor=#EBF4CC>
<td> <span class=tt><b><? if ($is_category) echo "[$category_name] "; ?><?=$subject?></b></span></td>
<td align=right><span class=tt><?=$datetime?></span> </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#C3BEB2></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">이름</font> : <?=$name?> (<?=$ip?>) <font
color="cf4900">조회</font> : <?=$hit?> <? if ($is_good) echo "<font color='#cf4900'>추천</font> : " . $good; ?
> <? if ($is_nogood) echo "<font color='#cf4900'>비추천</font> : " . $nogood; ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
<td colspan=2>
<table width=100% cellpadding=5>
<tr>
<td style='word-break:break-all;' class='lh' height=100>
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) { echo $file[$i][view]; }
}
?>
<!-- 내용 출력 -->
<span class=content><?=$content?></span>
<!-- 테러 태그 방지용 -->
</xml></xmp>
</td>
</tr>
<?
// 링크 설정한 값만큼 출력
for ($i=1; $i<=$cfg[link_count]; $i++) {
if ($link[$i][link]) { echo "<tr><td class=tt> <img src='$board_skin/icon_link.gif' align='absmiddle'> <a href='{$link[$i][href]}'
target='$default[de_link_target]'><span class=tt>{$link[$i][link]}</span></a>, Hit:{$link[$i][hit]}</td></tr>"; }
}
?>
<?
// 파일 업로드 설정한 값만큼 출력
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][source]) { echo "<tr><td class=tt> <img src='$board_skin/icon_download.gif' align='absmiddle'> <a
href='{$file[$i][href]}'><span class=tt>{$file[$i][source]} ({$file[$i][size]})</span></a>, Down:{$file[$i][download]}</td></tr>"; }
}
?>
<? if ($is_signature) { echo "<tr><td>$signature</td></tr>"; } // 서명 출력 ?>
</table>
</td>
</tr>
</table><br>
<? if ($is_comment) { ?>
<!-- 코멘트 내용 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<a name='c<?=$list[$i][wr_id]?>'></a>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td height=25 bgcolor=#F1F1F1> <?=$list[$i][name]?></td>
<td align=right bgcolor=#F1F1F1><font color="cf4900"><?=$list[$i][datetime]?></font> <? if ($list[$i][is_del]) { echo
"{$list[$i][del_href]}<img src='$board_skin/com_del.gif' border=0 align=absmiddle></a> "; } ?></td>
</tr>
<tr>
<td colspan=2 valign=top>
<table width=100% cellpadding=7 cellspacing=0>
<tr>
<td style='word-break:break-all; text-align:justify;' class='lh tt'><?=$list[$i][content]?></td>
<td></td>
</tr>
<tr><td colspan=2 align=right> <?=$list[$i][ip]?></td></tr>
</table>
</td>
</tr>
</table>
<? } // for ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<? if ($prev_href) { echo "<tr><td height=20> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=20> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=20> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
</table>
<? if ($is_comment_write) { ?>
<!-- 코멘트 쓰기 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table><br>
<table width=<?=$width?> align=center cellpadding=0 cellspacing=0 border=0>
<form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
<input type=hidden name=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=sselect value='<?=$sselect?>'>
<input type=hidden name=stext value='<?=$stext?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=section value='<?=$section?>'>
<colgroup width=170>
<colgroup width=''>
<colgroup width=50>
<tr>
<td>
<table width=100%>
<tr>
<td width=70><img src='<?=$board_skin?>/img_name.gif'></td>
<td width=100><?=$c_name?></td>
</tr>
<? if ($is_guest) { ?>
<tr>
<td><img src='<?=$board_skin?>/img_pw.gif'></td>
<td><input type=password name=wr_passwd size=10 class=input required itemname='비밀번호'></td>
</tr>
<? } ?>
</table>
</td>
<td> <textarea name=wr_content rows=3 style='width:98%; line-height:150%;' required itemname='내용'
class=textarea></textarea></td>
<td>
<table width=100%>
<tr><td><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td></tr>
<tr><td><a href='javascript:textarea_size(document.fgbview.wr_content, 5)'><img src='<?=$board_skin?>/icon_down.gif'
border=0></a> <a href='javascript:textarea_size(document.fgbview.wr_content, -5)'><img src='<?=$board_skin?>/icon_up.gif'
border=0></a></td></tr>
</table>
</td>
</tr>
</form>
</table><br>
<? } // if ?>
<? } // if ?>
<!-- 링크 -->
<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
<td width=70% height=35>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록'
align=absmiddle></a>"; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; }
?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; }
?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; }
?>
<? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; }
?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천'
align=absmiddle></a>"; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; }
?>
</td>
<td width=30% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글'
align=absmiddle></a>"; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글'
align=absmiddle></a>"; } ?>
</td>
</tr>
</table>
아상하게 안되는군요.....
<!-- 2003.11.26 작성 -->
<!-- 원글 내용 -->
<style>
.tt {font-size:9pt; COLOR: #575757;}
</style>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr height=30 bgcolor=#EBF4CC>
<td> <span class=tt><b><? if ($is_category) echo "[$category_name] "; ?><?=$subject?></b></span></td>
<td align=right><span class=tt><?=$datetime?></span> </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#C3BEB2></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">이름</font> : <?=$name?> (<?=$ip?>) <font
color="cf4900">조회</font> : <?=$hit?> <? if ($is_good) echo "<font color='#cf4900'>추천</font> : " . $good; ?
> <? if ($is_nogood) echo "<font color='#cf4900'>비추천</font> : " . $nogood; ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
<td colspan=2>
<table width=100% cellpadding=5>
<tr>
<td style='word-break:break-all;' class='lh' height=100>
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) { echo $file[$i][view]; }
}
?>
<!-- 내용 출력 -->
<span class=content><?=$content?></span>
<!-- 테러 태그 방지용 -->
</xml></xmp>
</td>
</tr>
<?
// 링크 설정한 값만큼 출력
for ($i=1; $i<=$cfg[link_count]; $i++) {
if ($link[$i][link]) { echo "<tr><td class=tt> <img src='$board_skin/icon_link.gif' align='absmiddle'> <a href='{$link[$i][href]}'
target='$default[de_link_target]'><span class=tt>{$link[$i][link]}</span></a>, Hit:{$link[$i][hit]}</td></tr>"; }
}
?>
<?
// 파일 업로드 설정한 값만큼 출력
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][source]) { echo "<tr><td class=tt> <img src='$board_skin/icon_download.gif' align='absmiddle'> <a
href='{$file[$i][href]}'><span class=tt>{$file[$i][source]} ({$file[$i][size]})</span></a>, Down:{$file[$i][download]}</td></tr>"; }
}
?>
<? if ($is_signature) { echo "<tr><td>$signature</td></tr>"; } // 서명 출력 ?>
</table>
</td>
</tr>
</table><br>
<? if ($is_comment) { ?>
<!-- 코멘트 내용 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<a name='c<?=$list[$i][wr_id]?>'></a>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td height=25 bgcolor=#F1F1F1> <?=$list[$i][name]?></td>
<td align=right bgcolor=#F1F1F1><font color="cf4900"><?=$list[$i][datetime]?></font> <? if ($list[$i][is_del]) { echo
"{$list[$i][del_href]}<img src='$board_skin/com_del.gif' border=0 align=absmiddle></a> "; } ?></td>
</tr>
<tr>
<td colspan=2 valign=top>
<table width=100% cellpadding=7 cellspacing=0>
<tr>
<td style='word-break:break-all; text-align:justify;' class='lh tt'><?=$list[$i][content]?></td>
<td></td>
</tr>
<tr><td colspan=2 align=right> <?=$list[$i][ip]?></td></tr>
</table>
</td>
</tr>
</table>
<? } // for ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<? if ($prev_href) { echo "<tr><td height=20> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=20> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=20> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
</table>
<? if ($is_comment_write) { ?>
<!-- 코멘트 쓰기 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table><br>
<table width=<?=$width?> align=center cellpadding=0 cellspacing=0 border=0>
<form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
<input type=hidden name=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=sselect value='<?=$sselect?>'>
<input type=hidden name=stext value='<?=$stext?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=section value='<?=$section?>'>
<colgroup width=170>
<colgroup width=''>
<colgroup width=50>
<tr>
<td>
<table width=100%>
<tr>
<td width=70><img src='<?=$board_skin?>/img_name.gif'></td>
<td width=100><?=$c_name?></td>
</tr>
<? if ($is_guest) { ?>
<tr>
<td><img src='<?=$board_skin?>/img_pw.gif'></td>
<td><input type=password name=wr_passwd size=10 class=input required itemname='비밀번호'></td>
</tr>
<? } ?>
</table>
</td>
<td> <textarea name=wr_content rows=3 style='width:98%; line-height:150%;' required itemname='내용'
class=textarea></textarea></td>
<td>
<table width=100%>
<tr><td><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td></tr>
<tr><td><a href='javascript:textarea_size(document.fgbview.wr_content, 5)'><img src='<?=$board_skin?>/icon_down.gif'
border=0></a> <a href='javascript:textarea_size(document.fgbview.wr_content, -5)'><img src='<?=$board_skin?>/icon_up.gif'
border=0></a></td></tr>
</table>
</td>
</tr>
</form>
</table><br>
<? } // if ?>
<? } // if ?>
<!-- 링크 -->
<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
<td width=70% height=35>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록'
align=absmiddle></a>"; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; }
?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; }
?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; }
?>
<? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; }
?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천'
align=absmiddle></a>"; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; }
?>
</td>
<td width=30% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글'
align=absmiddle></a>"; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글'
align=absmiddle></a>"; } ?>
</td>
</tr>
</table>
헉~ 우측 이네요.^^
뉴스 스킨 인가 보네요. 멋집니다.
사진이 좌측에 배열된게 독특 하네요.
사진이 좌측에 배열된게 독특 하네요.
7쟁이님께서는 <? if ($is_comment_write) { ?> 다음에 적용하신것 같네요. 이전으로 빼 주시면 될 것 같은데요..
==============
적용소스
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<? if ($prev_href) { echo "<tr><td height=20> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=20> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=20> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
</table>
<? if ($is_comment_write) { ?>
<!-- 코멘트 쓰기 -->
==============
적용소스
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<? if ($prev_href) { echo "<tr><td height=20> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=20> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=20> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
</table>
<? if ($is_comment_write) { ?>
<!-- 코멘트 쓰기 -->
어~
저는 현재 글만 나오네요
적용소스
<? if ($is_comment_write) { ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<? if ($prev_href) { echo "<tr><td height=20> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=20> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=20> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
</table>
<!-- 코멘트 쓰기 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table><br>
<table width=<?=$width?> align=center cellpadding=0 cellspacing=0 border=0>
<form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
<input type=hidden name=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=sselect value='<?=$sselect?>'>
<input type=hidden name=stext value='<?=$stext?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=section value='<?=$section?>'>
<colgroup width=170>
<colgroup width=''>
<colgroup width=50>
<tr>
<td>
http://arttoart.pe.kr/gnu3/?doc=bbs/gnuboard.php&bo_table=art_news&page=1&wr_id=33
저는 현재 글만 나오네요
적용소스
<? if ($is_comment_write) { ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<? if ($prev_href) { echo "<tr><td height=20> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=20> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=20> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
</table>
<!-- 코멘트 쓰기 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table><br>
<table width=<?=$width?> align=center cellpadding=0 cellspacing=0 border=0>
<form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
<input type=hidden name=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=sselect value='<?=$sselect?>'>
<input type=hidden name=stext value='<?=$stext?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=section value='<?=$section?>'>
<colgroup width=170>
<colgroup width=''>
<colgroup width=50>
<tr>
<td>
http://arttoart.pe.kr/gnu3/?doc=bbs/gnuboard.php&bo_table=art_news&page=1&wr_id=33
좋은 팁 입니다. 뒷북도 아니시구요.
감사합니다.
궁시렁: 뒷북이면 어떻습니까?
참여가 중요한거 라고 생각합니다.
감사합니다.
궁시렁: 뒷북이면 어떻습니까?
참여가 중요한거 라고 생각합니다.
별거아닌 팁에 많은 관심 주셔서 감사합니다. ^^;
제가 올린 소스를 <!-- 링크 --> 항목 바로 위에 붙인다면 나스카님께서 말씀하신 선행조건중에 코멘트 작성은 없어도 됩니다.
또한 게시판 환경설정에서 '전체목록 사용'을 선택하셨다면 제가 올린 소스의 내용은 나타나지 않습니다.
다음은 제가 적용한 'gbview.skin.php' 내용중 일부입니다.
<!--// 이전뉴스, 다음뉴스 시작 -->
<? if (!$board[bo_use_listview]) { ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<tr><td height=2></td></tr>
<? if ($prev_href) { echo "<tr><td height=22> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=22> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=22> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table>
<? } ?>
<!--// 이전뉴스, 다음뉴스 종료 -->
<!-- 링크 -->
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=10></td></tr>
<tr>
<td width= height=35>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록' align=absmiddle></a>"; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천' align=absmiddle></a>"; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; } ?>
</td>
<td width=170 align=right>
<img src='<?=$board_skin?>/bu05.gif' border=0 align=absmiddle>
<a href='#gnuboard_head'>위로</a>
<img src='<?=$board_skin?>/bu05.gif' border=0 align=absmiddle>
<a href='javascript:history.back();'>이전 페이지로 가기</a>
</td>
</tr>
</table>
제가 올린 소스를 <!-- 링크 --> 항목 바로 위에 붙인다면 나스카님께서 말씀하신 선행조건중에 코멘트 작성은 없어도 됩니다.
또한 게시판 환경설정에서 '전체목록 사용'을 선택하셨다면 제가 올린 소스의 내용은 나타나지 않습니다.
다음은 제가 적용한 'gbview.skin.php' 내용중 일부입니다.
<!--// 이전뉴스, 다음뉴스 시작 -->
<? if (!$board[bo_use_listview]) { ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
<tr><td height=2></td></tr>
<? if ($prev_href) { echo "<tr><td height=22> ▲ 이전뉴스: <a href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?>
<tr><td height=22> ■ 현재뉴스: <?=$subject?></td></tr>
<? if ($next_href) { echo "<tr><td height=22> ▼ 다음뉴스: <a href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table>
<? } ?>
<!--// 이전뉴스, 다음뉴스 종료 -->
<!-- 링크 -->
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=10></td></tr>
<tr>
<td width= height=35>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록' align=absmiddle></a>"; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천' align=absmiddle></a>"; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; } ?>
</td>
<td width=170 align=right>
<img src='<?=$board_skin?>/bu05.gif' border=0 align=absmiddle>
<a href='#gnuboard_head'>위로</a>
<img src='<?=$board_skin?>/bu05.gif' border=0 align=absmiddle>
<a href='javascript:history.back();'>이전 페이지로 가기</a>
</td>
</tr>
</table>