y

최근 갤러리 세로줄수 문의입니다.

최근 갤러리에서 현재 1줄로 출력되게 되어져 있습니다.
 
이걸 2줄로 출력 되게 할려는데... 어떻게 하면 되나요?
 
어떤 부분을 수정하면 좋을까요? ^^;;
 
 
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>

<table width='100%' cellpadding='0' cellspacing='0' border='0' align='left'>
<tr><td align='center'>
<table width='99%'>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
        echo '<td width=10>&nbsp;</td>';
     $title = cut_str(get_text($list[$i][wr_subject]), 20);
    $content = cut_str(get_text($list[$i][wr_content]), 52);
    //$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
 $img = $g4[path]."/data/file/".$bo_table."/thumb/".$list[$i][wr_id];
    if (!file_exists($img) || !$list[$i][file][0][file])
        $img = "$latest_skin_path/img/no_image.gif";
    $href1 = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}";
 $href = "$g4[bbs_path]/link.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}&no=1";
 $link_hit = "{$list[$i][wr_link1_hit]}"; //히트수
 
 
   if ($link_hit<0)
   $graph = "<img src='$latest_skin_path/img/icon_graph00.gif' border=0 align=absmiddle>";
   elseif ($link_hit<=50)
   $graph = "<img src='$latest_skin_path/img/icon_graph01.gif' border=0 align=absmiddle>";
   elseif($link_hit<=100)
   $graph = "<img src='$latest_skin_path/img/icon_graph02.gif' border=0 align=absmiddle>";
   elseif($link_hit<=150)
   $graph = "<img src='$latest_skin_path/img/icon_graph03.gif' border=0 align=absmiddle>";
   elseif($link_hit<=200)
   $graph = "<img src='$latest_skin_path/img/icon_graph04.gif' border=0 align=absmiddle>";
   elseif($link_hit<=250)
   $graph = "<img src='$latest_skin_path/img/icon_graph05.gif' border=0 align=absmiddle>";
   elseif($link_hit<=300)
   $graph = "<img src='$latest_skin_path/img/icon_graph06.gif' border=0 align=absmiddle>";
   elseif($link_hit>=350)
   $graph = "<img src='$latest_skin_path/img/icon_graph07.gif' border=0 align=absmiddle>";
   
    echo <<<HEREDOC
    <td width='160' valign='top' align='center'>
        <table width='160' border='0' cellpadding='0' cellspacing='0' align='center'>
 <tr>
            <td width='160' height='5' align='center'></td>
 </tr>
 <tr>
            <td width='160' height='20' align='center'><a href="{$href1}"><span class="style_02">{$title}</span></a></td>
 </tr>
        <tr>
            <td width='160' height='110' align='center'>
  <div style='width:160px;height:120px;border:1px solid #CCCCCC;padding:3px' align='center'>
  <a href="{$href}" target=_blank><img src='{$img}' width='162' height='122' border='0' align='absmiddle' title='$title'></a>
  </div>
     </td>
        </tr>
 <tr>
            <td width='160' height='5' align='center'></td>
 </tr>
 <tr>
            <td width='160' height='20' align='center'><b>인기도 {$graph} &nbsp;&nbsp; <b>HIT. {$link_hit}</td>
 </tr>
 <tr>
            <td width='160' height='20' align='center'><a href="{$href1}">{$content}</a></td>
 </tr>
 </table>
    </td>
HEREDOC;
}
?>
</tr>
<? if (count($list) == 0) { ?>
<tr><td colspan=2 align='center' height=25>게시물이 없습니다.</td></tr>
<? } ?>
</table>
</td></tr>
</table>
|

댓글 4개

게시판 설정 > 이미지 수 설정 (배포되는 기본 버전에서는 갤러리 형태의 스킨이라면 4개씩 출력됨)
갤러리 형태의 최신글 추출에서 세로로 2줄 나오게 할려고 합니다.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=9707&sca=&sfl=wr_subject&stx=%C7%CF%B9%D9%B3%AA&sop=and

스킨내에 언급되어 있는 $mod값을 조정하십시오.
배포되는 버전에는 $mod = 1;이라고 지정되어 있는데,
이것을 $mod = 2;와 같이 $mod값을 사용자의 환경에 맞게 설정하십시오.
$mod = 1;이 어디에 있나요? 위의 소스에서는 안보이는데....
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,599
18년 전 조회 2,852
18년 전 조회 1,502
18년 전 조회 1,529
18년 전 조회 1,514
18년 전 조회 1,576
18년 전 조회 2,369
18년 전 조회 1,716
18년 전 조회 1,818
18년 전 조회 1,530
18년 전 조회 1,556
18년 전 조회 1,510
18년 전 조회 1,583
18년 전 조회 3,636
18년 전 조회 1,746
18년 전 조회 1,760
18년 전 조회 1,558
18년 전 조회 2,032
18년 전 조회 1,530
18년 전 조회 1,649
🐛 버그신고