최근이미지두줄로 출력되게...
최근이미지가 2개씩 2줄로 출력되면 되는데 계속 가로로 한줄로만 나오네요...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding="0" cellspacing="0" width="100">
<tr>
<td width="1004" style="border-width:0; border-color:black; border-style:solid;" align="center" height="62">
<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='90' valign='top' align='center'>
<table width='90' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='90' height='50' align='center'>
<div style='width:70px;height:50px;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='90' height='70' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
<tr>
<td width='90' height='20' 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>
여기서 어디고쳐야하나요 ;;;;
그리고 그 이미지아래에 출력되는 이미지글자수를 지정할수있는데.. 그 글자수를 초과하면 ... 으로 표시되는데 ... 안나오게 할수없을까요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding="0" cellspacing="0" width="100">
<tr>
<td width="1004" style="border-width:0; border-color:black; border-style:solid;" align="center" height="62">
<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='90' valign='top' align='center'>
<table width='90' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='90' height='50' align='center'>
<div style='width:70px;height:50px;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='90' height='70' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
<tr>
<td width='90' height='20' 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>
여기서 어디고쳐야하나요 ;;;;
그리고 그 이미지아래에 출력되는 이미지글자수를 지정할수있는데.. 그 글자수를 초과하면 ... 으로 표시되는데 ... 안나오게 할수없을까요?
댓글 3개
13년 전
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 2; // 이미지 가로갯수
$td_h = 20; // 상하 간격
?>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="border-width:0; border-color:black; border-style:solid;" align="center" height="62">
<table width="98%" border="0">
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i>0 && $i%$cols==0)
echo "</tr><tr><td height='{$td_h}'><!-- 상하간격 --><td></tr><tr>";
$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='90' valign='top' align='center'>
<table width='90' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='90' height='50' align='center'>
<div style='width:70px;height:50px;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='90' height='70' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
<tr>
<td width='90' height='20' 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) { ?>자료가 없습니다.<? } ?>
</td></tr>
</table>
--------------
lib/common.lib.php 1006줄
function cut_str($str, $len, $suffix="…")
->
function cut_str($str, $len, $suffix="")
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 2; // 이미지 가로갯수
$td_h = 20; // 상하 간격
?>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="border-width:0; border-color:black; border-style:solid;" align="center" height="62">
<table width="98%" border="0">
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i>0 && $i%$cols==0)
echo "</tr><tr><td height='{$td_h}'><!-- 상하간격 --><td></tr><tr>";
$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='90' valign='top' align='center'>
<table width='90' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='90' height='50' align='center'>
<div style='width:70px;height:50px;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='90' height='70' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
<tr>
<td width='90' height='20' 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) { ?>자료가 없습니다.<? } ?>
</td></tr>
</table>
--------------
lib/common.lib.php 1006줄
function cut_str($str, $len, $suffix="…")
->
function cut_str($str, $len, $suffix="")
13년 전
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=71088
링크된 스킨의 기능을 원하시는듯 하네요..참조해보세요~~
링크된 스킨의 기능을 원하시는듯 하네요..참조해보세요~~
kajama78
13년 전
두분 다 감사합니다.
그런데
lib/common.lib.php 1006줄
function cut_str($str, $len, $suffix="…")
->
function cut_str($str, $len, $suffix="")
이렇게 수정해도 … 가 계속 뜨네요;;
그런데
lib/common.lib.php 1006줄
function cut_str($str, $len, $suffix="…")
->
function cut_str($str, $len, $suffix="")
이렇게 수정해도 … 가 계속 뜨네요;;
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66534 | 11년 전 | 3859 | ||
| 66533 |
다이아레빗
|
11년 전 | 2762 | |
| 66532 | 11년 전 | 2732 | ||
| 66531 |
alexseo
|
11년 전 | 2947 | |
| 66530 | 11년 전 | 6221 | ||
| 66529 | 11년 전 | 3247 | ||
| 66528 |
alexseo
|
11년 전 | 3330 | |
| 66527 | 11년 전 | 2894 | ||
| 66526 | 11년 전 | 3212 | ||
| 66525 |
lsj9894
|
11년 전 | 2764 | |
| 66524 |
webart
|
11년 전 | 3807 | |
| 66523 |
열라뽕똬이
|
11년 전 | 2711 | |
| 66522 | 11년 전 | 5199 | ||
| 66521 |
xargs
|
11년 전 | 2792 | |
| 66520 | 11년 전 | 2440 | ||
| 66519 | 11년 전 | 3399 | ||
| 66518 | 11년 전 | 2654 | ||
| 66517 | 11년 전 | 3604 | ||
| 66516 | 11년 전 | 5840 | ||
| 66515 | 11년 전 | 4636 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기