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>
해결방법 알려주세요
감사드립니다!
오류 주소 : 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>
해결방법 알려주세요
감사드립니다!
댓글 전체

sir index 페이지처럼"이란 것이 어떤 것인가요?
index보며는 오른쪽에 그누보드 추천이라고 그림이 4개 있자나요
이미지가 잘라서 자연스럽게 출력되 있자나요
(아니면 글은 쓸떼 작은 사이즈 이미지를 재작 해서 index에 올리게 할수 없나요,게시판 내용에는 그 작은 이미지가 나타나지 않도록)
이미지가 잘라서 자연스럽게 출력되 있자나요
(아니면 글은 쓸떼 작은 사이즈 이미지를 재작 해서 index에 올리게 할수 없나요,게시판 내용에는 그 작은 이미지가 나타나지 않도록)