그룹갤러리에 제목이 표시되게끔 하는 방법 정보
그룹갤러리에 제목이 표시되게끔 하는 방법본문
사용중인 스킨은
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=81173&sca=&sfl=wr_subject&stx=%B1%D7%B7%EC&sop=and
입니다.
보시다싶이, 해당 이미지의 제목이 나타나질 않아, 이를 표기하고자 하는데
어디를 수정해야할지 모르겠네요 ;;;
그럼 답변좀 부탁드리겠습니다~
댓글 전체
latest.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
$cols=7; // 이미지 가로갯수
?>
<table width=95% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) {
if($i % $cols == 0 || $i==0){echo "<tr>";} //테이블 열바꿈 관련?>
<td align='center' valign='top'>
<?
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<a href='{$list[$i][href]}' onfocus='this.blur()'><img src='$g4[path]/data/file/{$list[$i][bo_table]}/$image' width='100' height='80' border=0></a>"; // 이미지크기
echo "<div style='height:2px; clear:both;'><!-- --></div>";
echo "<a href={$list[$i]['href']} onfocus='this.blur()'>{$list[$i]['subject']}</a>"; // 제목
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='100' height='80' border=0>";
?></td>
<?
if($i%$cols == ($cols-1)&& $i>0){ echo "</tr>";} //테이블 열바꿈 관련
} ?>
</table>
//--------------
특별 서비스 -> 마우스 오버시 박스 스타일 있는거
latest.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
$cols=7; // 이미지 가로갯수
?>
<style type="text/css">
.aa img { border:2px solid #D9D9D9; padding:1px; background-color:#ffffff;}
</style>
<table width=95% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) {
if($i % $cols == 0 || $i==0){echo "<tr>";} //테이블 열바꿈 관련?>
<td align='center' valign='top'>
<?
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<span class=aa><a href='{$list[$i][href]}' onfocus='this.blur()'><img src='$g4[path]/data/file/{$list[$i][bo_table]}/$image' width='100' height='80' border=0 onmouseout=\"this.style.borderColor=''\" onmouseover=\"this.style.borderColor='#FEC75D'\" /></a></span>"; // 이미지크기
echo "<div style='height:2px; clear:both;'><!-- --></div>";
echo "<a href={$list[$i]['href']} onfocus='this.blur()'>{$list[$i]['subject']}</a>"; // 제목
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='100' height='80' border=0>";
?></td>
<?
if($i%$cols == ($cols-1)&& $i>0){ echo "</tr>";} //테이블 열바꿈 관련
} ?>
</table>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
$cols=7; // 이미지 가로갯수
?>
<table width=95% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) {
if($i % $cols == 0 || $i==0){echo "<tr>";} //테이블 열바꿈 관련?>
<td align='center' valign='top'>
<?
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<a href='{$list[$i][href]}' onfocus='this.blur()'><img src='$g4[path]/data/file/{$list[$i][bo_table]}/$image' width='100' height='80' border=0></a>"; // 이미지크기
echo "<div style='height:2px; clear:both;'><!-- --></div>";
echo "<a href={$list[$i]['href']} onfocus='this.blur()'>{$list[$i]['subject']}</a>"; // 제목
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='100' height='80' border=0>";
?></td>
<?
if($i%$cols == ($cols-1)&& $i>0){ echo "</tr>";} //테이블 열바꿈 관련
} ?>
</table>
//--------------
특별 서비스 -> 마우스 오버시 박스 스타일 있는거
latest.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
$cols=7; // 이미지 가로갯수
?>
<style type="text/css">
.aa img { border:2px solid #D9D9D9; padding:1px; background-color:#ffffff;}
</style>
<table width=95% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) {
if($i % $cols == 0 || $i==0){echo "<tr>";} //테이블 열바꿈 관련?>
<td align='center' valign='top'>
<?
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<span class=aa><a href='{$list[$i][href]}' onfocus='this.blur()'><img src='$g4[path]/data/file/{$list[$i][bo_table]}/$image' width='100' height='80' border=0 onmouseout=\"this.style.borderColor=''\" onmouseover=\"this.style.borderColor='#FEC75D'\" /></a></span>"; // 이미지크기
echo "<div style='height:2px; clear:both;'><!-- --></div>";
echo "<a href={$list[$i]['href']} onfocus='this.blur()'>{$list[$i]['subject']}</a>"; // 제목
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='100' height='80' border=0>";
?></td>
<?
if($i%$cols == ($cols-1)&& $i>0){ echo "</tr>";} //테이블 열바꿈 관련
} ?>
</table>
가을하늘님 ㅠㅠ 완죤감동이심 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ