최신갤러리 제목 출력 질문 정보
최신갤러리 제목 출력 질문관련링크
첨부파일
본문
안녕하세요,
휴온에서 제공하는 무료 빌더로 홈페이지를 제작 중에 있습니다.
그런데, 여기서 기본으로 제공되는 최근갤러리 스킨에서는 그림의 제목을 출력하는 기능이 없더군요.
그래서 리스트배열변수
$list[$i]['subject']
를 추가했는데, 정확한 위치가 아닌지 그림 옆에 위치하는군요... (링크)
제목을 그림 아래쪽에 위치시켜서 그림 4개가 한 라인에 존재하도록 하고싶습니다...
php를 모르고 접근하려니 어려운 부분이 많은데, 도와주실 수 있는지요?
<ul>
<?
for ($i=0; $i<count($list); $i++) {
$org_img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]); //원본 이미지
$img[$i] = "$g4[path]/data/file/$bo_table/thumb/".$list[$i][wr_id];//썸네일 이미지
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}"; // 링크
//썸네일 없으면 원본이미지로 보여준다.
if(!file_exists( $img[$i]) )
$img[$i]=$org_img;
//원본이미지가 없으면 기본이미지 출력
if (!file_exists( $img[$i]) || !$list[$i][file][0][file])
$img[$i] = "$latest_skin_path/img/no_image.gif";
?>
<li><a href="<?=$href?>"><img src="<?=$img[$i]?>" width="<?=$lt_thumb_w?>" height="<?=$lt_thumb_h?>" alt="썸네일이미지<?=$i?>" onmouseout="this.style.borderColor='#eee'" onmouseover="this.style.borderColor='#FFCC33'"><? echo nl2br($list[$i]['subject'])?></a></li>
<? } ?>
<? if (count($list) == 0) { ?><li><div style="margin:15px 0 20px; text-align:center; color:#666; font-size:12px;">게시물이 없습니다.</div></li><? } ?>
</ul>
휴온에서 제공하는 무료 빌더로 홈페이지를 제작 중에 있습니다.
그런데, 여기서 기본으로 제공되는 최근갤러리 스킨에서는 그림의 제목을 출력하는 기능이 없더군요.
그래서 리스트배열변수
$list[$i]['subject']
를 추가했는데, 정확한 위치가 아닌지 그림 옆에 위치하는군요... (링크)
제목을 그림 아래쪽에 위치시켜서 그림 4개가 한 라인에 존재하도록 하고싶습니다...
php를 모르고 접근하려니 어려운 부분이 많은데, 도와주실 수 있는지요?
<ul>
<?
for ($i=0; $i<count($list); $i++) {
$org_img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]); //원본 이미지
$img[$i] = "$g4[path]/data/file/$bo_table/thumb/".$list[$i][wr_id];//썸네일 이미지
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}"; // 링크
//썸네일 없으면 원본이미지로 보여준다.
if(!file_exists( $img[$i]) )
$img[$i]=$org_img;
//원본이미지가 없으면 기본이미지 출력
if (!file_exists( $img[$i]) || !$list[$i][file][0][file])
$img[$i] = "$latest_skin_path/img/no_image.gif";
?>
<li><a href="<?=$href?>"><img src="<?=$img[$i]?>" width="<?=$lt_thumb_w?>" height="<?=$lt_thumb_h?>" alt="썸네일이미지<?=$i?>" onmouseout="this.style.borderColor='#eee'" onmouseover="this.style.borderColor='#FFCC33'"><? echo nl2br($list[$i]['subject'])?></a></li>
<? } ?>
<? if (count($list) == 0) { ?><li><div style="margin:15px 0 20px; text-align:center; color:#666; font-size:12px;">게시물이 없습니다.</div></li><? } ?>
</ul>
Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, null given in /home/kagla/new-sir/old/lib/common.lib.php:2339 Stack trace: #0 /home/kagla/new-sir/old/lib/common.lib.php(2339): mysqli_fetch_assoc() #1 /home/kagla/new-sir/old/skin/board/v16/view.skin.php(795): sql_fetch_array() #2 /home/kagla/new-sir/old/bbs/view.php(403): include_once('...') #3 /home/kagla/new-sir/old/bbs/board.php(300): include_once('...') #4 {main} thrown in /home/kagla/new-sir/old/lib/common.lib.php on line 2339