갤러리 게시판 활용을 못해서 3일을 고생하고 있습니다. 도와주세요 ㅠㅠ > 그누4 질문답변

그누4 질문답변

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

갤러리 게시판 활용을 못해서 3일을 고생하고 있습니다. 도와주세요 ㅠㅠ 정보

갤러리 게시판 활용을 못해서 3일을 고생하고 있습니다. 도와주세요 ㅠㅠ

본문

빌더:그누독스 (웹) bootstrap(모바일)을 사용하고 있습니다.

웹에서는 갤러리 게시판을 적용하면 정상적으로 이미지 출력이 가능한데,

모바일에서 만은 기본 게시판 (bootstrap_bbs) 이외에는

다른 스킨(그누홈피에서 다운) 을 적용하여 사용하면 이미지를 불러오지 못하고 있습니다.

이 곳 게시판을 3일 동안 열심히 읽어보며 적용하려 애를 써보았지만, 성공하지 못하고 있습니다.

list.skin.php 에 섬네일 적용을 하고 싶고,

view.php 에도 이미지가 정상적으로 출력이 되고 싶습니다.

제 컴퓨터에 APM_SETUP7 을 깔아서 사용하고 있습니다.



경로는
http://localhost(웹)
http://localhost/m(모바일)

아직 초보인지라 잘 사용을 못하고 있습니다.

혹시 data 불러 올수 있는 방법은 없나요?

제발 도와주세요 ㅠㅠ
  • 복사

댓글 전체

제 list.skin.php 입니다.


$board[bo_1] = "150";
$board[bo_2] = "150";
$board[bo_3] = "100";


$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);

$mod = $board[bo_gallery_cols];
$td_width = (int)(100 / $mod);

?>

<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>

<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
    <? if ($is_category) { ?><form name="fcategory" method="get"><td width="50%"><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select></td></form><? } ?>
    <td align="right" style="font:normal 11px tahoma; color:#BABABA;">
        Total <?=number_format($total_count)?>
        <? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" title="관리자" border="0" align="absmiddle"></a><?}?></td>
</tr>
<tr><td height=5></td></tr>
</table>

<!-- 여백 --><table width="100%" cellspacing="0" cellpadding="0"><tr><td height="12"></td></tr></table>

<table width="100%" cellspacing="0" cellpadding="0" border=0>
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl"  value="<?=$sfl?>">
<input type="hidden" name="stx"  value="<?=$stx?>">
<input type="hidden" name="spt"  value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw"  value="">
<? if ($is_admin) { ?><tr><td height=30 colspan='<?=$board[bo_gallery_cols]?>' style='padding-left:20px;'><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox> 전체선택</td></tr><? } ?>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{

$thumb = $thumb_path.'/'.$list[$i][wr_id];
// 썸네일 이미지가 존재하지 않는다면
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];

if(preg_match("/\.(jp[e]?g|gif|png|bmp)$/i", $file) && file_exists($file)){
$file = $file; //파일첨부
}elseif(preg_match("/data\/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)/i", $list[$i]['wr_content'], $tmp)){
$file = '../' . $tmp[0]; //에디터 이미지 첨부 및 링크 이미지까지
}else{
$file = "";
}

if ($file){
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = i

어디서 경로를 수정해 주어야 하나요?
© SIRSOFT
현재 페이지 제일 처음으로