최근갤러리 문의드립니다.

center.gif
메인에 최근갤러리를 사용중인데요...
가로열로만 갯수와 글자수를 뿌려줄 수 있는걸로 기본적으로 알고 있습니다.

문의사항은 하나의 갤러리 게시판을 최근갤러리로 불러들일때 세로2줄로 사용하고 싶은데
방법이 있나요?

고수님들중 방법이 있는지 문의드립니다.
부탁드립니다.^&^

최근갤러리 사용중인 스킨은 "plip_gallery_last" 이고요
latest.skin.php 소스는
------->
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 style="border-collapse:collapse;" style="border-top-width:0; border-right-width:0; border-bottom-width:0; border-left-width:0; border-top-color:rgb(181,181,181); border-right-colorrgb(181,181,181); border-bottom-color:rgb(181,181,181); border-left-color:rgb(181,181,181); border-style:solid;">
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
<tr>
<td colspan="3" width="100%" style="border-width:0; border-color:black; border-style:solid;" align="center">
<table width=98% border=0>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '<td width=10></td>';

$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";

echo <<<HEREDOC
<td width='100' valign='top' align='center'>
<table width='100' border='0' cellpadding='0' cellspacing='0' align='left'>
<tr>
<td width='100' height='90' align='center'>
<div style='width:100px;height:90px;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' width='100' height='90' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
<tr>
<td width='100' height='30' align='center'><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][subject]}</a></td>
</tr>
</table>
</td>
HEREDOC;
}
?> </tr>
</table>
<? if (count($list) == 0) { ?>게시물이 없습니다.<? } ?>
</tr>
</table>

첨부파일

center.gif (40.8 KB)
0회 2008-05-16 11:46
|

댓글 3개

가로 출력수를 게시판관리의 여분필드에서 정해주고,

최근게시물 출력부분에 출력수를 두배로 정해주시면 두줄로 출력될수 있습니다..

세배일경우는 세줄....^^

아니면 펑션에 옵션을 추가하여 지정하는 방법도...
응용 해보세요..
<table>
<?
$trCount = "만들고자 하는 갯수"
for ($i=0; $i<$trCount; $i++)
{
?>

<tr><td>내용</td></tr>

<?
}
?>

</table>
최근 갤러리 는 메인에 echo latest("plip_gallery_last", "g_01", 4, 15)이렇게 해놔서 한줄로 4개의 이미지가 뿌려지고 있습니다. 제가 초짜라 잘 몰라서 그러는데 출력수와 평션을 어디서 어떻게 해야 되나요?
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 971
17년 전 조회 987
17년 전 조회 962
17년 전 조회 790
17년 전 조회 703
17년 전 조회 713
17년 전 조회 956
17년 전 조회 849
17년 전 조회 1,320
17년 전 조회 963
17년 전 조회 883
17년 전 조회 820
17년 전 조회 819
17년 전 조회 725
17년 전 조회 726
17년 전 조회 792
17년 전 조회 922
17년 전 조회 804
17년 전 조회 890
17년 전 조회 799