최근갤러리 문의드립니다. 정보
최근갤러리 문의드립니다.본문
메인에 최근갤러리를 사용중인데요...
가로열로만 갯수와 글자수를 뿌려줄 수 있는걸로 기본적으로 알고 있습니다.
문의사항은 하나의 갤러리 게시판을 최근갤러리로 불러들일때 세로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>
가로열로만 갯수와 글자수를 뿌려줄 수 있는걸로 기본적으로 알고 있습니다.
문의사항은 하나의 갤러리 게시판을 최근갤러리로 불러들일때 세로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>
댓글 전체

가로 출력수를 게시판관리의 여분필드에서 정해주고,
최근게시물 출력부분에 출력수를 두배로 정해주시면 두줄로 출력될수 있습니다..
세배일경우는 세줄....^^
아니면 펑션에 옵션을 추가하여 지정하는 방법도...
최근게시물 출력부분에 출력수를 두배로 정해주시면 두줄로 출력될수 있습니다..
세배일경우는 세줄....^^
아니면 펑션에 옵션을 추가하여 지정하는 방법도...
응용 해보세요..
<table>
<?
$trCount = "만들고자 하는 갯수"
for ($i=0; $i<$trCount; $i++)
{
?>
<tr><td>내용</td></tr>
<?
}
?>
</table>
<table>
<?
$trCount = "만들고자 하는 갯수"
for ($i=0; $i<$trCount; $i++)
{
?>
<tr><td>내용</td></tr>
<?
}
?>
</table>
최근 갤러리 는 메인에 echo latest("plip_gallery_last", "g_01", 4, 15)이렇게 해놔서 한줄로 4개의 이미지가 뿌려지고 있습니다. 제가 초짜라 잘 몰라서 그러는데 출력수와 평션을 어디서 어떻게 해야 되나요?