이미지 첨부파일 x자로 뜹니다... 정보
이미지 첨부파일 x자로 뜹니다...본문
http://ttin1004.woobi.co.kr/bbs/board.php?bo_table=B24&wr_id=12
해당주소구요.
이미지 첨부를 안한 공간은 x자로 뜨네요
이거 어떻게 수정해야 하는지요...?
이미지 첨부가 되면 제대로 뜨는데 첨부를 안하면 x자로 뜨네요.
즉 이미지를 기본적으로 10개를 올려야 x박스가 안뜨게 되어버립니다.
도움좀 부탁드립니다.
해당주소구요.
이미지 첨부를 안한 공간은 x자로 뜨네요
이거 어떻게 수정해야 하는지요...?
이미지 첨부가 되면 제대로 뜨는데 첨부를 안하면 x자로 뜨네요.
즉 이미지를 기본적으로 10개를 올려야 x박스가 안뜨게 되어버립니다.
도움좀 부탁드립니다.
댓글 전체

스킨이 이미지가 없을때의 처리가 않된 것 같습니다.
해당 게시판 스킨 폴더에서 view.php 부분에 이미지 처리 되는 부분을 조금 수정 및 추가 하시면 됩니다.
하지만 현재 스킨은 이미지의 갯수를 카운터 하지 않고
예를 들면 그냥 for문이나 while 에 갯수를 정해 버린 듯 합니다.
간단한 방법은 이미지가 나오는 부분에 이벤트를 주세요
< img src="경로" onerror="<?=$g4[path]?>/image /noimage.jpg" border=0>
해당 게시판 스킨 폴더에서 view.php 부분에 이미지 처리 되는 부분을 조금 수정 및 추가 하시면 됩니다.
하지만 현재 스킨은 이미지의 갯수를 카운터 하지 않고
예를 들면 그냥 for문이나 while 에 갯수를 정해 버린 듯 합니다.
간단한 방법은 이미지가 나오는 부분에 이벤트를 주세요
< img src="경로" onerror="<?=$g4[path]?>/image /noimage.jpg" border=0>
<!------- {gblist.skin.php 에서 지정한 이미지갯수만큼 뷰화면에서 한줄로 출력 } ----//---------->
<table width="590" height="490" align='center' border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="9" rowspan="7" width="490" height="390" valign="top"><img id=orgin_img src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][0][file]?>" width="480" height="380" border="0"></td>
<td rowspan="7" width="10" height="390"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg1');" id=fimg1 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][0][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg2');" id=fimg2 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][1][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg3');" id=fimg3 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][2][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg4');" id=fimg4 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][3][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td colspan="11" width="590" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg10');" id=fimg10 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][9][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg9');" id=fimg9 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][8][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg8');" id=fimg8 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][7][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg7');" id=fimg7 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][6][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg6');" id=fimg6 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][5][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg5');" id=fimg5 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0"></td>
</tr>
</table>
<!--------------- 여기까지 -------------------------------------//------->
이런식으로 되어있습니다.
어디에 추가하는 건지요;; 일리리 끼워맞춰봐도 안되는데... 도움부탁드립니다.
<table width="590" height="490" align='center' border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="9" rowspan="7" width="490" height="390" valign="top"><img id=orgin_img src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][0][file]?>" width="480" height="380" border="0"></td>
<td rowspan="7" width="10" height="390"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg1');" id=fimg1 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][0][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg2');" id=fimg2 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][1][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg3');" id=fimg3 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][2][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg4');" id=fimg4 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][3][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td colspan="11" width="590" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg10');" id=fimg10 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][9][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg9');" id=fimg9 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][8][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg8');" id=fimg8 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][7][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg7');" id=fimg7 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][6][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg6');" id=fimg6 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][5][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg5');" id=fimg5 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0"></td>
</tr>
</table>
<!--------------- 여기까지 -------------------------------------//------->
이런식으로 되어있습니다.
어디에 추가하는 건지요;; 일리리 끼워맞춰봐도 안되는데... 도움부탁드립니다.

작은 이미지 칸이 10개 네요
아래와 같이 변경 추가 하시면 됩니다.
<img onmouseover="ch_img('fimg1');" id=fimg1 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0">
를
<img onmouseover="ch_img('fimg1');" id=fimg1 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" onerror="<?=$g4[path]?>/image /noimage.jpg"
border="0">
끝 부분정도에 추가 하시면 됩니다.
물론
10개 다 하셔야죠 ^^
아래와 같이 변경 추가 하시면 됩니다.
<img onmouseover="ch_img('fimg1');" id=fimg1 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0">
를
<img onmouseover="ch_img('fimg1');" id=fimg1 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" onerror="<?=$g4[path]?>/image /noimage.jpg"
border="0">
끝 부분정도에 추가 하시면 됩니다.
물론
10개 다 하셔야죠 ^^
답변감사드립니다.
말씀하신대로 9번째 이미지 첨부파일에
<td width="90" height="90"><img onmouseover="ch_img('fimg9');" id=fimg9 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][8][file]?>" width="90" height="90" onerror="<?=$g4[path]?>/image /noimage.jpg" border="0">
라고 수정하였습니다.
처음엔 다 수정하고 해봤으나 안되어, 다시 또박또박 다시 9번째 이미지 첨부파일 부분에만 수정해봐도 차이가 없고, 스크립트 오류가 떠버립니다...
왜그런걸까요...
말씀하신대로 9번째 이미지 첨부파일에
<td width="90" height="90"><img onmouseover="ch_img('fimg9');" id=fimg9 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][8][file]?>" width="90" height="90" onerror="<?=$g4[path]?>/image /noimage.jpg" border="0">
라고 수정하였습니다.
처음엔 다 수정하고 해봤으나 안되어, 다시 또박또박 다시 9번째 이미지 첨부파일 부분에만 수정해봐도 차이가 없고, 스크립트 오류가 떠버립니다...
왜그런걸까요...