블로그스킨 사용시 목록만 뽑을려고할때..... 정보
그누보드 블로그스킨 사용시 목록만 뽑을려고할때.....본문
블로그 스킨 사용시 목록만 뽑아서 나타낼려구합니다.
블로그를 생성시
bo_gallery_width 가 3개로 정해졌고
bo_page_rows 가 6개로 정하는바람에 목록만 뽑으니깐
아래 링크처럼 6개 밖에나오질 않습니다.
게시판 설정과 상관없이 소스상단에
bo_gallery_width 과 bo_page_rows 를 정할수있는 방법이 없나요?
bo_gallery_width 는 20개로 bo_page_rows 는3개로.......
하다 하다 지쳐서 다시올립니다.
블로그를 생성시
bo_gallery_width 가 3개로 정해졌고
bo_page_rows 가 6개로 정하는바람에 목록만 뽑으니깐
아래 링크처럼 6개 밖에나오질 않습니다.
게시판 설정과 상관없이 소스상단에
bo_gallery_width 과 bo_page_rows 를 정할수있는 방법이 없나요?
bo_gallery_width 는 20개로 bo_page_rows 는3개로.......
하다 하다 지쳐서 다시올립니다.
댓글 전체
좀더 발전시켜서 첫번째 그림파일이 있는 경우에만 갤러리 형식에서 보여 주었으면 좋겠네요..
우선 게시판 설정에서 보여줄 목록큰 쪽에 맞추거나 더 크게 잡아줍니다.
그리고 gallery.php와 list.php의 count($list) 대신에 나타내고자하는 갯수를 형태별로 숫자로 적어주시면 됩니다.
그리고 gallery.php와 list.php의 count($list) 대신에 나타내고자하는 갯수를 형태별로 숫자로 적어주시면 됩니다.
일반 gblist.skin.php 에 gblist.php를 인쿠르드시켰습니다.
------------------------------------------------------------
<?
for ($i=0; $i<count($list); $i++) {
if ($i > 0) {
echo "<tr><td colspan=3 background='$board_skin/skin_img/dot.gif' height=1></td></tr>";
}
?>
<? if ($list[$i][num] == '공지') { $list[$i][num] = "<img src='$board_skin/skin_img/icon_notice.gif' border=0>"; } // 공지를 이미지로 변환 ?>
<? if ($list[$i][num] == '<font color=crimson><b>→</b></font>') { $list[$i][num] = "<img src='$board_skin/skin_img/icon_arrow.gif' border=0>"; } // 화살표표시를 이미지로 변환 ?>
<tr align=center>
<td height=30 align=left width=' '>
<? if ($is_checkdelete) { ?><input type=checkbox name=chk_wr_id[] value='<?=$list[$i][wr_id]?>'><? } ?>
<?=$list[$i][reply]?>
<?=$list[$i][icon_reply]?>
<a href='<?=$list[$i][href]?>'><? if ($list[$i][is_notice]) echo "<b><span class=notice>"; ?><?=$list[$i][subject]?><? if ($list[$i][is_notice]) echo "</span></b>"; ?></a>
<?=$list[$i][commentcnt]?>
<?=$list[$i][icon_file]?>
<?=$list[$i][icon_link]?>
<?=$list[$i][icon_new]?>
<?=$list[$i][icon_hot]?>
<?=$list[$i][icon_battle]?>
<?=$list[$i][icon_secret]?>(<?=$list[$i][wr_hit]?>)</td>
<td align=center><?=$list[$i][name]?></td>
<td align=left><?=$list[$i][datetime]?></td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=100 class='content'>자료가 없습니다.</td></tr>"; } ?>
------------------------------------------------------------
<?
for ($i=0; $i<count($list); $i++) {
if ($i > 0) {
echo "<tr><td colspan=3 background='$board_skin/skin_img/dot.gif' height=1></td></tr>";
}
?>
<? if ($list[$i][num] == '공지') { $list[$i][num] = "<img src='$board_skin/skin_img/icon_notice.gif' border=0>"; } // 공지를 이미지로 변환 ?>
<? if ($list[$i][num] == '<font color=crimson><b>→</b></font>') { $list[$i][num] = "<img src='$board_skin/skin_img/icon_arrow.gif' border=0>"; } // 화살표표시를 이미지로 변환 ?>
<tr align=center>
<td height=30 align=left width=' '>
<? if ($is_checkdelete) { ?><input type=checkbox name=chk_wr_id[] value='<?=$list[$i][wr_id]?>'><? } ?>
<?=$list[$i][reply]?>
<?=$list[$i][icon_reply]?>
<a href='<?=$list[$i][href]?>'><? if ($list[$i][is_notice]) echo "<b><span class=notice>"; ?><?=$list[$i][subject]?><? if ($list[$i][is_notice]) echo "</span></b>"; ?></a>
<?=$list[$i][commentcnt]?>
<?=$list[$i][icon_file]?>
<?=$list[$i][icon_link]?>
<?=$list[$i][icon_new]?>
<?=$list[$i][icon_hot]?>
<?=$list[$i][icon_battle]?>
<?=$list[$i][icon_secret]?>(<?=$list[$i][wr_hit]?>)</td>
<td align=center><?=$list[$i][name]?></td>
<td align=left><?=$list[$i][datetime]?></td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=100 class='content'>자료가 없습니다.</td></tr>"; } ?>