최신글 스킨에서 이미지 사이즈 조절방법 정보
최신글 스킨에서 이미지 사이즈 조절방법본문
동영상 최신글로 사용중인 스킨인데요..
아래는 latest.skin.php 내용인데요..
출력되는 이미지 사이즈를 가로 300 x 세로 200 으로 고정시키려면..
어디를 수정해야하나요?
고수님들 답변좀 부탁드려요~
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if(!$options) $options=3;
$cols = $options; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 5; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<link rel="stylesheet" href="<?=$latest_skin_path?>/style.css" type="text/css" />
<table border="0" cellspacing="0" bordercolordark="white" bordercolorlight="blue">
<tr>
<td>
<table width='100%' border="0" cellspacing=0 valign="top" bgcolor="white" bordercolordark="white" bordercolorlight="blue">
<tr>
<td width="980" bgcolor="#e0a1a1"> <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><font color="#FFFFFF"><?=$board[bo_subject]?> </font></a></strong></td>
<td width="52" align="right" bgcolor="#e0a1a1">
<p align="center"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><font color="#FFFFFF">더보기</font></a></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td background="<?=$latest_skin_path?>/img/box01_left.gif"></td>
<td valign="top" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- 이미지보이는 부분 시작 -->
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height='2'></td></tr>
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>";
}
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$string = $list[$i][wr_3];
$url = parse_url($string);
parse_str($url['query']);
$sm = "$v";
$img = "<img src='http://i3.ytimg.com/vi/$string/1.jpg' border=0 title='유튜브이미지'>";
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "style='font-family:돋움; font-size:9pt; color:#686695;' ";
if ($list[$i][icon_new]) {
$style = "style='font-family:돋움; font-size:9pt; color:#134980;' "; }
$subject = "<span $style>".$list[$i][subject]."</span>"; //제목 글자수 자르기
$wr_id = $list[$i]['wr_id'];
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'>";
echo "<a href='{$list[$i][href]}'>";
echo $img;
echo "</a></td></tr>";
echo " <tr><td height='16' align='center'>";
$style = "";
if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";
echo "<a href='{$list[$i][href]}' $style>";
echo "[{$list[$i]['subject']}]";
echo "</a></td></tr>";
//echo " <tr><td height='12' align='center' style='font-size:11px; color:#CCCCCC;'>조회수 : {$wr_hit}</td></tr>";
echo "</table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if ($i+1 < count($list)) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; } ?>
<? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
</table>
<!-- 이미지보이는 부분 끝 -->
</td>
</tr>
</table></td>
</tr>
</table></td>
<td background="<?=$latest_skin_path?>/img/box01_right.gif"></td>
</tr>
</table>
아래는 latest.skin.php 내용인데요..
출력되는 이미지 사이즈를 가로 300 x 세로 200 으로 고정시키려면..
어디를 수정해야하나요?
고수님들 답변좀 부탁드려요~
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if(!$options) $options=3;
$cols = $options; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 5; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<link rel="stylesheet" href="<?=$latest_skin_path?>/style.css" type="text/css" />
<table border="0" cellspacing="0" bordercolordark="white" bordercolorlight="blue">
<tr>
<td>
<table width='100%' border="0" cellspacing=0 valign="top" bgcolor="white" bordercolordark="white" bordercolorlight="blue">
<tr>
<td width="980" bgcolor="#e0a1a1"> <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><font color="#FFFFFF"><?=$board[bo_subject]?> </font></a></strong></td>
<td width="52" align="right" bgcolor="#e0a1a1">
<p align="center"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><font color="#FFFFFF">더보기</font></a></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td background="<?=$latest_skin_path?>/img/box01_left.gif"></td>
<td valign="top" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- 이미지보이는 부분 시작 -->
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height='2'></td></tr>
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>";
}
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$string = $list[$i][wr_3];
$url = parse_url($string);
parse_str($url['query']);
$sm = "$v";
$img = "<img src='http://i3.ytimg.com/vi/$string/1.jpg' border=0 title='유튜브이미지'>";
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "style='font-family:돋움; font-size:9pt; color:#686695;' ";
if ($list[$i][icon_new]) {
$style = "style='font-family:돋움; font-size:9pt; color:#134980;' "; }
$subject = "<span $style>".$list[$i][subject]."</span>"; //제목 글자수 자르기
$wr_id = $list[$i]['wr_id'];
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'>";
echo "<a href='{$list[$i][href]}'>";
echo $img;
echo "</a></td></tr>";
echo " <tr><td height='16' align='center'>";
$style = "";
if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";
echo "<a href='{$list[$i][href]}' $style>";
echo "[{$list[$i]['subject']}]";
echo "</a></td></tr>";
//echo " <tr><td height='12' align='center' style='font-size:11px; color:#CCCCCC;'>조회수 : {$wr_hit}</td></tr>";
echo "</table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if ($i+1 < count($list)) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; } ?>
<? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
</table>
<!-- 이미지보이는 부분 끝 -->
</td>
</tr>
</table></td>
</tr>
</table></td>
<td background="<?=$latest_skin_path?>/img/box01_right.gif"></td>
</tr>
</table>
댓글 전체