index 페이지의 이미지 사이즈에 의해서 > 그누4 질문답변

그누4 질문답변

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

index 페이지의 이미지 사이즈에 의해서 정보

index 페이지의 이미지 사이즈에 의해서

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : www.stikershop.com

index 페이지에 그림을 보면 사이즈가 고졍되여서 이상하네요

sir index 페이지처럼 이미지를 재가 고정한데로 출력할수 없나요?
혹은 작은 이미지를 재작해서 index 페이지에만 뜨게 올려고 개시판에는 않나타나도록 할수 없나요?

저히가 현제 출력하는 이미지는 아래와 같은 방법으로 사용중입니다.

<?=latest("web", "stiker", 1, 20); // 새로운 이미지 ?>

 아래는 web의 소스입니다
<?
if (!defined("_GNUBOARD_")) exit; // 
?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<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>
            <td width="100%" style="border-width:0; border-color:black; border-style:solid;">
                <table width=0 border=0>
<tr>
                        <?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
        echo '';

    $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='0' valign='top' align=''>
        <table width='0' border='0' cellpadding='0' cellspacing='0' align=''>
        <tr>
            <td width='0' height='0' align=''>
<div style='width:0px;height:0px;border:1px solid #CCCCCC;padding:3px' align=''>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' width='98' height='77' border='0' align='absmiddle' title='$title'></a>
</div>
    </td>
        </tr>
</table>
    </td>
HEREDOC;
}
?>
</tr>
</table>
<? if (count($list) == 0) { ?>이미지가 없습니다.<? } ?>
</tr>
</table>


해결방법 알려주세요
감사드립니다!

댓글 전체

index보며는 오른쪽에 그누보드 추천이라고 그림이 4개 있자나요
이미지가 잘라서 자연스럽게 출력되 있자나요

(아니면 글은 쓸떼 작은 사이즈 이미지를 재작 해서  index에 올리게 할수 없나요,게시판 내용에는 그 작은 이미지가  나타나지 않도록)
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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