시그너스님 최근게시물 질문좀 드리겠습니다 > 그누4 질문답변

그누4 질문답변

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

시그너스님 최근게시물 질문좀 드리겠습니다 정보

시그너스님 최근게시물 질문좀 드리겠습니다

본문

 
 
이 최근게시물을 설치 하였는데요   이 최근게시물이 가롤4개 세로로 3줄 나오게 할려면 어떻게 해야되나요 ~~
 
마퀴 태그를 뺴고 ~  설치를 해봤는데 ~ 전  http://www.bolggeori.com/gboard/sub3.php  이런 형식으로 옆으로 쭉~~나와버리네요 ~
 
이 최근 게시물 가로 4개 세로로 3줄 이렇게 하고싶습니다
그리고 이미지가 엑박으로 나오는데 이미지 나오게 할려면 어떻게해야되는지~
 
오늘 하루종일 이것때문에 이리저리 해보다고 안되서 이렇게 질문을 하게되네요
꼭 부탁드립니다.

댓글 전체

이와같은 질문의 경우 스킨제작자가 아닌 다른분들의 도움이 필요하실 경우

소스라도 올려 주셔야 쉽게 답을 얻을 수 있습니다.

저의 경우 해당 스킨을 사용하지 않기에 소스 확인이 불가하여 답을 드릴수가 없네요....

그렇다고 일부러 링크된 스킨을 다운 받을 수도 없는 것이고.....^^
죄송합니다 ~소스입니다  코멘트가 달려있어서 원본수정이 안되네요
코멘트에 소스 적어봅니다
---------------------------------------------------------------------------------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

if (!$board[bo_1]) alert("해당 게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)");
if (!$board[bo_2]) alert("해당 게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 스킨 입니다.");

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);

?>

<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr><td align="center">

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
        echo "<td width=20>&nbsp;</td>";

    $img = "<img src='$latest_skin_path/img/no_image.gif' border=0 title='이미지 없음'>";
    $thumb = $thumb_path.'/'.$list[$i][wr_id];
    if (!file_exists($thumb))
    {
        $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
        if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
        {
            $size = getimagesize($file);
            if ($size[2] == 1)
                $src = imagecreatefromgif($file);
            else if ($size[2] == 2)
                $src = imagecreatefromjpeg($file);
            else if ($size[2] == 3)
                $src = imagecreatefrompng($file);
            else
                break;

            $rate = $board[bo_1] / $size[0];
            $height = (int)($size[1] * $rate);

            $dst = imagecreatetruecolor($board[bo_1], $height);
            imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
            imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);
            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
        }
    }

    if (file_exists($thumb))
        $img = "<img src='$thumb' border=0>";

    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
    $wr_link1 = nl2br(stripslashes(cut_str($list[$i][wr_link1], 30, '...' )));
    echo <<<HEREDOC
    <td valign="top" align="center">
        <table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
            <td height="5" align="center"></td>
</tr>

<tr>
<td>
<table width="80" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align=center width='80' height='80' style='width:80px;height:80px;border:1px solid #CCCCCC; padding:2px'><div style='width:80; height:80; position: relative; overflow:hidden;' align=center>
<a href="#" onfocus='this.blur()' onclick="window.open('{$list[$i][link_href][1]}','_blank','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=360,height=400 top=10 left=10')">{$img}</a></div></td>
<td width="10"></td>
</tr>
                              <tr></tr>
                              <tr><td colspan="2" width="80" height="20" align="center"><a href='{$list[$i][href]}' onfocus='this.blur()'>{$list[$i][subject]}</a> <?
        echo " " . $list[$i][icon_new];
       
        //echo " " . $list[$i][icon_hot];
       

        ?></td></tr>
</table>
</td>
</tr>

<tr>
            <td height="5" align="center"></td>
</tr>
</table>
    </td>
HEREDOC;
}
?>
</tr>
</table>


</td></tr>
</table>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

if (!$board[bo_1]) alert("해당 게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)");
if (!$board[bo_2]) alert("해당 게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 스킨 입니다.");

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);

$mod = 4;

?>

<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr><td align="center">

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?
for ($i=0; $i<count($list); $i++)

    if ($i && $i%$mod==0)
        echo "</tr><tr>";
    if ($i > 0)
        echo "<td width=20>&nbsp;</td>";

    $img = "<img src='$latest_skin_path/img/no_image.gif' border=0 title='이미지 없음'>";
    $thumb = $thumb_path.'/'.$list[$i][wr_id];
    if (!file_exists($thumb))
    {
        $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
        if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
        {
            $size = getimagesize($file);
            if ($size[2] == 1)
                $src = imagecreatefromgif($file);
            else if ($size[2] == 2)
                $src = imagecreatefromjpeg($file);
            else if ($size[2] == 3)
                $src = imagecreatefrompng($file);
            else
                break;

            $rate = $board[bo_1] / $size[0];
            $height = (int)($size[1] * $rate);

            $dst = imagecreatetruecolor($board[bo_1], $height);
            imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
            imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);
            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
        }
    }

    if (file_exists($thumb))
        $img = "<img src='$thumb' border=0>";

    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
    $wr_link1 = nl2br(stripslashes(cut_str($list[$i][wr_link1], 30, '...' )));
    echo <<<HEREDOC
    <td valign="top" align="center">
        <table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
            <td height="5" align="center"></td>
</tr>

<tr>
<td>
<table width="80" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align=center width='80' height='80' style='width:80px;height:80px;border:1px solid #CCCCCC; padding:2px'><div style='width:80; height:80; position: relative; overflow:hidden;' align=center>
<a href="#" onfocus='this.blur()' onclick="window.open('{$list[$i][link_href][1]}','_blank','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=360,height=400 top=10 left=10')">{$img}</a></div></td>
<td width="10"></td>
</tr>
                              <tr></tr>
                              <tr><td colspan="2" width="80" height="20" align="center"><a href='{$list[$i][href]}' onfocus='this.blur()'>{$list[$i][subject]}</a> <?
        echo " " . $list[$i][icon_new];
     
        //echo " " . $list[$i][icon_hot];
     

        ?></td></tr>
</table>
</td>
</tr>

<tr>
            <td height="5" align="center"></td>
</tr>
</table>
    </td>
HEREDOC;
}
?>
</tr>
</table>


</td></tr>
</table>
Parse error: syntax error, unexpected T_SL in /home/bolggeori/public_html/gboard/skin/latest/portfolio/latest.skin.php on line 64

그대로 소스 복사해서 붙여넣기 했는데 ~이런 오류가 나네요
천상재회님 정말 감사합니다 ~ 그런데 나눠지기는 하는데 ~ 배열이 이상하게 되버리네요
사이 간격이랑  세로줄도 맞추게 할려면 어떻게 해야되나요 ~~자꾸 질문만 드려서 죄송합니다
아래서 7번째줄 부분입니다...

HEREDOC;
}

// 나머지 td 를 채운다.
if (($cnt = $i%$mod) != 0)
    for ($k=$cnt; $k<$mod; $k++)
        echo "<td>&nbsp;</td>\n";

?>
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT