최근이미지두줄로 출력되게...
최근이미지가 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 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66554 | 11년 전 | 17733 | ||
| 66553 | 11년 전 | 12554 | ||
| 66552 |
alexseo
|
11년 전 | 10188 | |
| 66551 | 11년 전 | 10923 | ||
| 66550 | 11년 전 | 10494 | ||
| 66549 | 11년 전 | 11846 | ||
| 66548 | 11년 전 | 15029 | ||
| 66547 |
스타크루즈
|
11년 전 | 11493 | |
| 66546 |
kimch
|
11년 전 | 11599 | |
| 66545 | 11년 전 | 11423 | ||
| 66544 | 11년 전 | 12271 | ||
| 66543 |
별을기다리며
|
11년 전 | 14432 | |
| 66542 |
별을기다리며
|
11년 전 | 11924 | |
| 66541 | 11년 전 | 9692 | ||
| 66540 | 11년 전 | 10566 | ||
| 66539 | 11년 전 | 16399 | ||
| 66538 | 11년 전 | 10451 | ||
| 66537 | 11년 전 | 9134 | ||
| 66536 | 11년 전 | 10574 | ||
| 66535 |
alexseo
|
11년 전 | 5590 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기