그룹갤러리에 제목이 표시되게끔 하는 방법


사용중인 스킨은

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

입니다.



보시다싶이, 해당 이미지의 제목이 나타나질 않아, 이를 표기하고자 하는데
어디를 수정해야할지 모르겠네요 ;;;

그럼 답변좀 부탁드리겠습니다~
|

댓글 2개

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>
가을하늘님 ㅠㅠ 완죤감동이심 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 1,232
16년 전 조회 1,381
16년 전 조회 1,089
16년 전 조회 1,010
16년 전 조회 1,053
16년 전 조회 1,572
16년 전 조회 2,763
16년 전 조회 1,271
16년 전 조회 1,788
16년 전 조회 1,114
16년 전 조회 1,561
16년 전 조회 1,904
16년 전 조회 1,010
16년 전 조회 978
16년 전 조회 4,043
16년 전 조회 851
16년 전 조회 851
16년 전 조회 825
16년 전 조회 976
16년 전 조회 1,217