에디터로 올린 사진 나오게 하고 싶은데 안되는건가요… 정보
에디터로 올린 사진 나오게 하고 싶은데 안되는건가요…본문
질문답변 게시판에 글 올리고 이리저리 알아봤는데 안되네요..
이건 해결이 안되는건가요?
불당썸 이용한 최신글 인데요.
에디터로 올린 이미지가 최신글에 안나오는데요
어떻게 고치면 될까요.?
고수님 있으면 도움좀 주세요.!!!!
제발요. 간절히 원하고 있습니다.!
<?
include_once("$g4[path]/lib/thumb.lib.php");
$img_width = '60'; //썸네일 가로길이
$img_height = '45'; //썸네일 세로길이
$img_quality = '99'; //퀼리티 100이하로 설정
$data_path = $g4[path]."/data/file/$bo_table"; ?>
<style>
.dm-subject { font:bold; font-size:18px; color:#000000; padding:5 10 5 5; }
.dm-hit { text-align:center; font:bold; font-size:14px; color:#e95eee; }
</style>
<div align="center">
<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr> <td style="padding:5 5 5 5;" width="80%">
<div style="margin-bottom:5px;"><span class="dm-subject">
<a href="<?=$list[$i][href]?>"><?=$list[$i][subject]?></a></span></div>
</td>
<td width="10%" align="center" valign="middle">
<?
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$img = thumbnail($file, $img_width, $img_height, $img_quality);
$img = "<a href='{$list[$i][href]}'><img src='$img' width='$img_width' height='$img_height' border='0' style='border:1 #eee solid' onmouseover=this.style.filter='alpha(opacity=60)' onmouseout=this.style.filter='' title='{$list[$i][subject]}'></a>";
?><a href='<?=$list[$i][href]?>'><?=$img?></a>
</td>
</tr>
<tr><td colspan="3" height="1" bgcolor="#f3f3f3"></td></tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td align=center height=50><font color=#6A6A6A>오늘 등록된 게시물이 없습니다.</a></td></tr>"; } ?>
</table>
</div>
0
댓글 4개

몇번쨰 보고 있는 글인데 해결못하셨으면 제작의뢰를 이용하시는것도 하나의 방벙입니다.
다른분이 해결 해놓은거 보면서 공부도 되는거고요
즐거운 성탄절 보내세요 ^^

이거보고 이해 안가시면 답 안나오는데요 ㅜ.ㅜ

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img2_width = "100";
$img2_height = "75";
include_once("$g4[path]/lib/thumb.lib.php");
$mod = 5;
$td_width = (int)(100 / $mod);
?>
<table width="100%" height="112" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left">
<?
for ($i=0; $i<count($list); $i++) {
if ($i && $i%$mod==0)
echo "</tr><tr>";
// 이미지가 있으면 썸을 생성, 아니면 pass~!
if ($list[$i][file][0][file])
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$img = "<div style='width:{$img2_width}px;'><a href=\"{$list[$i][href]}\"><img src='" . thumbnail($file,$img2_width,$img2_height) . "' border=0></a></div>";
}
else
{
//소스추가 : 에디터로 저장된 사진의 썸네일을 만들기 위함
if (!$list[$i][file][0][file]) {
$file = $list[$i]['img'];
$find = strrpos($file,'data');
$file ="./".substr($file,$find);
}
$img = "<div style='width:{$img2_width}px;'><a href=\"{$list[$i][href]}\"><img src='" . thumbnail($file,$img2_width,$img2_height) . "' border=0></a></div>";
}
if (!$list[$i]['img'] && !$list[$i][file][0][file]) {
$img = "<div style='width:{$img2_width}px; height:{$img2_height}px;'></div>";
}
$subject = "<span $style>".cut_str($list[$i][subject],16)."</span>";
echo "<td width='{$td_width}%' valign=bottom style='word-break:break-all;padding:0 0 0 0px;'>";
echo "<table align=center>";
echo "<tr><td height=5></td></tr>";
echo "<tr><td align=center><a href='{$list[$i][href]}'>$img</a></td></tr>";
echo "<tr><td align=center class=lh>";
echo "<a href='{$list[$i][href]}'>$subject</a>{$comment_cnt}</nobr>";
echo "</td></tr>";
echo "</table></td>\n";
}
// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td>";
?>
</tr>
<? if (count($list) == 0) { echo "<tr><td colspan='$mod' align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>

불당썸... 사용하시는거잖아요...
http://www.opencode.co.kr (불당님 운영하시는 사이트인데요) 에 한번 문의글 올려보세요~
답을 주실수도 안주실수도 있습니다...
여기에 올리신 글도 아마 계속 보고 계시긴 하셨을텐데...
열심히 연구하시라는 뜻으로 고견을 안주시는지도 모르거든요..
어쨌거나... 남 일 같지 않아서요...