[재질문]또다른 간단한 방법 정보
그누보드 [재질문]또다른 간단한 방법본문
또다른 방법
해당 스킨 gbview.skin.php상단에
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1]; 를 추가하고
보여줄 곳에
<img src='$file[$i][file1_v]' width='???' height='????'>
이렇게 함 해보셔요...
해당 스킨 gbview.skin.php상단에
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1]; 를 추가하고
보여줄 곳에
<img src='$file[$i][file1_v]' width='???' height='????'>
이렇게 함 해보셔요...
댓글 전체
드렸어요... ^_~
zzzz님 홈피에서 저 올인 됬어요....
포인트 좀 줘요...
포인트 좀 줘요...
그럼 감사히 먹지요... ^_________^
울면 거시기에 뭐가 어찌 된다던데..
꽃감 하나드릴까요^^
꽃감 하나드릴까요^^
ㅠ_ㅠ 흑흑...
zzzz님 오해 마셔요 욕하거 아닌데.....
맞아요^^
제가 쪽지로 구원 요청까지 했건만~~~
zzzz님 얄밉죠잉~~~
제가 쪽지로 구원 요청까지 했건만~~~
zzzz님 얄밉죠잉~~~
헉..... 왜 제가 욕먹는거죠? ㅜ_ㅜ
죄송해요... ㅠ_______ㅠ
죄송해요... ㅠ_______ㅠ
어휴 진짜 얄밉네요...zzzz님....
이제 나타나서.............
지금 껏 모니터만 하다가...ㅋㅋㅋ
이제 나타나서.............
지금 껏 모니터만 하다가...ㅋㅋㅋ
만도님 , 7쟁이님 수고 많으셨습니다.
읍~~~
됩니다^^
만도님의 끈질긴 공략으로 함락^^
감사 합니다^^
야호~~~~~
됩니다^^
만도님의 끈질긴 공략으로 함락^^
감사 합니다^^
야호~~~~~
상단에
<?
if($write[wr_file1]){
$row=$write;
$file1_v= "<img src='./data/file/$board[bo_table]/$row[wr_file1]' width='223' height='208' align='center' style='border:1 solid #222222' >";} <=== 사이즈는 여기서 조정하시구요
?>
이렇게 하구요
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) {
echo "$file1_v"; }
}
?>
<?
if($write[wr_file1]){
$row=$write;
$file1_v= "<img src='./data/file/$board[bo_table]/$row[wr_file1]' width='223' height='208' align='center' style='border:1 solid #222222' >";} <=== 사이즈는 여기서 조정하시구요
?>
이렇게 하구요
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) {
echo "$file1_v"; }
}
?>
이것도 안되는군요..끙
상단에 아래를 삭제하시고
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];
이렇게 해보세요
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) {
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];
echo "<img src='$file[$i][file1_v]' width='???' height='????'>"; }
}
?>
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];
이렇게 해보세요
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) {
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];
echo "<img src='$file[$i][file1_v]' width='???' height='????'>"; }
}
?>
안 먹히는구먼유~~~~
zzzz님이 답변을 해주시면 빠를텐데...
"<img src='{$file[$i][file1_v]}' width='???' height='????'>";
{}로 막아조 보세요...
{}로 막아조 보세요...
http://arttoart.pe.kr/gnu3/?doc=bbs/gnuboard.php&bo_table=best_book&page=1&wr_id=7
이미지가 배꼽으로 나오네요^^
크기는 되는것 같은데
이미지가 배꼽으로 나오네요^^
크기는 되는것 같은데
아래부분을 위처럼 수정해 보셔요
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) { echo $file[$i][view]; }
}
?>
<!-- 내용 출력 -->
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) { echo $file[$i][view]; }
}
?>
<!-- 내용 출력 -->
?>
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) { echo "<img src='$file[$i][file1_v]' width='???' height='????'>"; }
}
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) { echo "<img src='$file[$i][file1_v]' width='???' height='????'>"; }
}
뷰어스킨 입니다
<?
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];
?>
<!-- 2003.11.26 작성 -->
<!-- 원글 내용 -->
<style>
.tt {font-size:9pt; COLOR: #575757;}
</style>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr height=30 bgcolor=#F5F3EE>
<td> <span class=tt><b><?=$subject?></b></span></td>
<td align=right><span class=tt><?=$datetime?></span> </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#C3BEB2></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">이름</font> : <?=$name?> (<?=$ip?>) <font color="cf4900">조회</font> : <?=$hit?> <? if ($is_good) echo "<font color='#cf4900'>추천</font> : " . $good; ?> <? if ($is_nogood) echo "<font color='#cf4900'>비추천</font> : " . $nogood; ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">평점</font> : <?=$write[wr_1]?></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">감독</font> : <?=$write[wr_2]?></td></tr>
<? if ($is_category) echo "<tr><td colspan=2 height=25> <font color='cf4900'>장르</font> : $category_name</td></tr>"; ?>
<tr><td colspan=2 height=25> <font color="cf4900">주연</font> : <?=$write[wr_3]?></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">상영일</font> : <?=$write[wr_4]?></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">O.S.T</font> : <embed src=<?=$write[wr_5]?> autostart="false" align=absmiddle></td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
<td colspan=2>
<table width=100% cellpadding=5>
<tr>
<td style='word-break:break-all;' class='lh' height=100>
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) { echo $file[$i][view]; }
}
?>
<!-- 내용 출력 -->
<span class=content><?=$content?></span>
<!-- 테러 태그 방지용 -->
</xml></xmp><a href=""></a><a href=''></a>
</td>
</tr>
<?
// 링크 설정한 값만큼 출력
for ($i=1; $i<=$cfg[link_count]; $i++) {
if ($link[$i][link]) { echo "<tr><td class=tt> <img src='$board_skin/icon_link.gif' align='absmiddle'> <a href='{$link[$i][href]}' target='$default[de_link_target]'><span class=tt>{$link[$i][link]}</span></a>, Hit:{$link[$i][hit]}</td></tr>"; }
}
?>
<?
// 파일 업로드 설정한 값만큼 출력
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][source]) { echo "<tr><td class=tt> <img src='$board_skin/icon_download.gif' align='absmiddle'> <a href='{$file[$i][href]}'><span class=tt>{$file[$i][source]} ({$file[$i][size]})</span></a>, Down:{$file[$i][download]}</td></tr>"; }
}
?>
<? if ($is_signature) { echo "<tr><td>$signature</td></tr>"; } // 서명 출력 ?>
</table>
</td>
</tr>
</table><br>
<? if ($is_comment) { ?>
<!-- 코멘트 내용 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<a name='c<?=$list[$i][wr_id]?>'></a>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td height=25 bgcolor=#F1F1F1> <?=$list[$i][name]?></td>
<td align=right bgcolor=#F1F1F1><font color="cf4900"><?=$list[$i][datetime]?></font> <? if ($list[$i][is_del]) { echo "{$list[$i][del_href]}<img src='$board_skin/com_del.gif' border=0 align=absmiddle></a> "; } ?></td>
</tr>
<tr>
<td colspan=2 valign=top>
<table width=100% cellpadding=7 cellspacing=0>
<tr>
<td style='word-break:break-all; text-align:justify;' class='lh tt'><?=$list[$i][content]?></td>
</tr>
<tr><td colspan=2 align=right> <?=$list[$i][ip]?></td></tr>
</table>
</td>
</tr>
</table>
<? } // for ?>
<? if ($is_comment_write) { ?>
<!-- 코멘트 쓰기 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table><br>
<table width=<?=$width?> align=center cellpadding=0 cellspacing=0 border=0>
<form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
<input type=hidden name=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=sselect value='<?=$sselect?>'>
<input type=hidden name=stext value='<?=$stext?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=section value='<?=$section?>'>
<colgroup width=170>
<colgroup width=''>
<colgroup width=50>
<tr>
<td>
<table width=100%>
<tr>
<td width=70><img src='<?=$board_skin?>/img_name.gif'></td>
<td width=100><?=$c_name?></td>
</tr>
<? if ($is_guest) { ?>
<tr>
<td><img src='<?=$board_skin?>/img_pw.gif'></td>
<td><input type=password name=wr_passwd size=10 class=input required itemname='비밀번호'></td>
</tr>
<? } ?>
</table>
</td>
<td> <textarea name=wr_content rows=3 style='width:98%; line-height:150%;' required itemname='내용' class=textarea></textarea></td>
<td>
<table width=100%>
<tr><td><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td></tr>
<tr><td><a href='javascript:textarea_size(document.fgbview.wr_content, 5)'><img src='<?=$board_skin?>/icon_down.gif' border=0></a> <a href='javascript:textarea_size(document.fgbview.wr_content, -5)'><img src='<?=$board_skin?>/icon_up.gif' border=0></a></td></tr>
</table>
</td>
</tr>
</form>
</table><br>
<? } // if ?>
<? } // if ?>
<!-- 링크 -->
<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
<td width=70% height=35>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록' align=absmiddle></a>"; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천' align=absmiddle></a>"; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; } ?>
</td>
<td width=30% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글' align=absmiddle></a>"; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글' align=absmiddle></a>"; } ?>
</td>
</tr>
</table>
만도님,zzzz님 저는 초보 랍니다^^
어느부분에 넣어야 할지 모르것슈...
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];
?>
<!-- 2003.11.26 작성 -->
<!-- 원글 내용 -->
<style>
.tt {font-size:9pt; COLOR: #575757;}
</style>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr height=30 bgcolor=#F5F3EE>
<td> <span class=tt><b><?=$subject?></b></span></td>
<td align=right><span class=tt><?=$datetime?></span> </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#C3BEB2></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">이름</font> : <?=$name?> (<?=$ip?>) <font color="cf4900">조회</font> : <?=$hit?> <? if ($is_good) echo "<font color='#cf4900'>추천</font> : " . $good; ?> <? if ($is_nogood) echo "<font color='#cf4900'>비추천</font> : " . $nogood; ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">평점</font> : <?=$write[wr_1]?></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">감독</font> : <?=$write[wr_2]?></td></tr>
<? if ($is_category) echo "<tr><td colspan=2 height=25> <font color='cf4900'>장르</font> : $category_name</td></tr>"; ?>
<tr><td colspan=2 height=25> <font color="cf4900">주연</font> : <?=$write[wr_3]?></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">상영일</font> : <?=$write[wr_4]?></td></tr>
<tr><td colspan=2 height=25> <font color="cf4900">O.S.T</font> : <embed src=<?=$write[wr_5]?> autostart="false" align=absmiddle></td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
<td colspan=2>
<table width=100% cellpadding=5>
<tr>
<td style='word-break:break-all;' class='lh' height=100>
<?
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][view]) { echo $file[$i][view]; }
}
?>
<!-- 내용 출력 -->
<span class=content><?=$content?></span>
<!-- 테러 태그 방지용 -->
</xml></xmp><a href=""></a><a href=''></a>
</td>
</tr>
<?
// 링크 설정한 값만큼 출력
for ($i=1; $i<=$cfg[link_count]; $i++) {
if ($link[$i][link]) { echo "<tr><td class=tt> <img src='$board_skin/icon_link.gif' align='absmiddle'> <a href='{$link[$i][href]}' target='$default[de_link_target]'><span class=tt>{$link[$i][link]}</span></a>, Hit:{$link[$i][hit]}</td></tr>"; }
}
?>
<?
// 파일 업로드 설정한 값만큼 출력
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($file[$i][source]) { echo "<tr><td class=tt> <img src='$board_skin/icon_download.gif' align='absmiddle'> <a href='{$file[$i][href]}'><span class=tt>{$file[$i][source]} ({$file[$i][size]})</span></a>, Down:{$file[$i][download]}</td></tr>"; }
}
?>
<? if ($is_signature) { echo "<tr><td>$signature</td></tr>"; } // 서명 출력 ?>
</table>
</td>
</tr>
</table><br>
<? if ($is_comment) { ?>
<!-- 코멘트 내용 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<a name='c<?=$list[$i][wr_id]?>'></a>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td height=25 bgcolor=#F1F1F1> <?=$list[$i][name]?></td>
<td align=right bgcolor=#F1F1F1><font color="cf4900"><?=$list[$i][datetime]?></font> <? if ($list[$i][is_del]) { echo "{$list[$i][del_href]}<img src='$board_skin/com_del.gif' border=0 align=absmiddle></a> "; } ?></td>
</tr>
<tr>
<td colspan=2 valign=top>
<table width=100% cellpadding=7 cellspacing=0>
<tr>
<td style='word-break:break-all; text-align:justify;' class='lh tt'><?=$list[$i][content]?></td>
</tr>
<tr><td colspan=2 align=right> <?=$list[$i][ip]?></td></tr>
</table>
</td>
</tr>
</table>
<? } // for ?>
<? if ($is_comment_write) { ?>
<!-- 코멘트 쓰기 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#D4CFC3></td></tr>
</table><br>
<table width=<?=$width?> align=center cellpadding=0 cellspacing=0 border=0>
<form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
<input type=hidden name=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=sselect value='<?=$sselect?>'>
<input type=hidden name=stext value='<?=$stext?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=section value='<?=$section?>'>
<colgroup width=170>
<colgroup width=''>
<colgroup width=50>
<tr>
<td>
<table width=100%>
<tr>
<td width=70><img src='<?=$board_skin?>/img_name.gif'></td>
<td width=100><?=$c_name?></td>
</tr>
<? if ($is_guest) { ?>
<tr>
<td><img src='<?=$board_skin?>/img_pw.gif'></td>
<td><input type=password name=wr_passwd size=10 class=input required itemname='비밀번호'></td>
</tr>
<? } ?>
</table>
</td>
<td> <textarea name=wr_content rows=3 style='width:98%; line-height:150%;' required itemname='내용' class=textarea></textarea></td>
<td>
<table width=100%>
<tr><td><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td></tr>
<tr><td><a href='javascript:textarea_size(document.fgbview.wr_content, 5)'><img src='<?=$board_skin?>/icon_down.gif' border=0></a> <a href='javascript:textarea_size(document.fgbview.wr_content, -5)'><img src='<?=$board_skin?>/icon_up.gif' border=0></a></td></tr>
</table>
</td>
</tr>
</form>
</table><br>
<? } // if ?>
<? } // if ?>
<!-- 링크 -->
<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
<td width=70% height=35>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록' align=absmiddle></a>"; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천' align=absmiddle></a>"; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; } ?>
</td>
<td width=30% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글' align=absmiddle></a>"; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글' align=absmiddle></a>"; } ?>
</td>
</tr>
</table>
만도님,zzzz님 저는 초보 랍니다^^
어느부분에 넣어야 할지 모르것슈...
추천합니다.