회원로그인 폼 회원가입 아이디찾기
SIR 디자인몰 바로가기 SIR 반응형웹 강좌 SIR 드로잉 강좌 SIR PHP 강좌

그누4 질문답변

최근게시물 설치했는데요.. 진행중

  • cookieyou
  • 작성일시
  • 조회 225
  • 댓글 0

본문

http://best.milkyxy.milkyxy.gethompy.com/nbbs/index1.php

설치했는데..
마우스 클릭시 큰이미지 나오는게아니라 오버시 나오게끔했음좋겠는데.. 어떻게 수정해야하나요?




<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$img_width = 739; //큰 썸네일 가로
$img_height = 391; //큰 썸네일 세로
$img_quality = 100; //썸네일 퀄리티

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb_big4';
$ym = date("ym", $g4[server_time]);

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

//코멘트와 리플글은 제외
$sql = " select * from $tmp_write_table
where wr_comment = '' and wr_reply = ''
order by wr_id DESC LIMIT 0, 1 ";
$result = sql_query($sql);
$last_con = sql_fetch_array($result);
?>

<link rel="stylesheet" type="text/css" href="<?=$latest_skin_path?>/style.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script>

<script type="text/javascript">
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});


</script>

<h4><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=$latest_title?></a></h4>

<div id="featured" >
  <ul class="ui-tabs-nav">
<?
for ($i=0; $i<count($list); $i++) {
$j = $i + 1; 
if ($j == "1") {
$selected='ui-tabs-selected';
} else {
$selected='';}
//썸네일 생성
$thumfile = "";
    $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)$/i", $file) && file_exists($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 = imagecreatefrompng($file);
            else
                break;

            $rate = $img_width / $size[0];
            $height = (int)($size[1] * $rate);

            // 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
            if ($height < $img_height)
                // 계산된 이미지 높이로 복사본 이미지 생성
                $dst = imagecreatetruecolor($img_width, $height);
            else
                // 설정된 이미지 높이로 복사본 이미지 생성
                $dst = imagecreatetruecolor($img_width, $img_height);
            imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
            imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
        } else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4/{$ym}/[^<>]*\.(gif|jpg|png|bmp)", $edit_img, $tmp)) { // data/geditor------
$file = './' . $tmp[0]; // 파일명
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;

$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);

// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
    }
}

    if (file_exists($thumb))
        $thumfile = "$thumb";
else
//이미지가 없으면
$thumfile="$latest_skin_path/img/noimg.gif";
//이미지가 아니네
        if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))
      { $thumfile = "<script>doc_write(flash_movie('$file', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>"; }
?>
      <li class="ui-tabs-nav-item <?=$selected?>" id="nav-fragment-<?=$j?>"><a href="#fragment-<?=$j?>"><img src="<?=$thumfile?>" alt="" width="80" height="50" ></a></li>
<? }?>
</ul>


<!-- First Content -->
<?
for ($i=0; $i<count($list); $i++) {
$thumfile2 = $thumb_path.'/'.$list[$i][wr_id];

$j = $i + 1; 
if ($j == "1") {
$hide='';
} else {
$hide='ui-tabs-hide'; }
?>
<div id="fragment-<?=$j?>" class="ui-tabs-panel <?=$hide?>" style="">
<a href='<?=$list[$i][href]?>'><img src="<?=$thumfile2?>" alt="" /></a>
<div class="info" >
<h2><a href='<?=$list[$i][href]?>'><strong><?=$list[$i][subject]?></strong></a></h2>
<p><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=cut_str(strip_tags($list[$i][wr_content]),120,"...더보기")?></a></p>
</div>
</div>
    <? }?>
</div>
</div>
  • 이 글을 내 페이스북 계정으로 보내기
  • 이 글을 내 트위터 계정으로 보내기
  • 이 글을 내 미투데이 계정으로 보내기
  • 이 글을 내 요즘 계정으로 보내기
  • 이 글을 내 구글플러스 계정으로 보내기

댓글쓰기

로그인 하시면 댓글을 남길 수 있습니다.

그누보드4 버전에 대한 질문을 할 수 있습니다.
쪽지나 메일로 해결해 주겠다는 답변은 정상적인 답변으로 보기 어려우므로 신고해 주시기 바랍니다.

그누4 질문답변 내용 검색
TOTAL 63,734 RSS 글쓰기
그누4 질문답변 목록
번호 제목 작성자 조회 날짜
공지 미채택초보자를 위한 HOWTO (질문하는 방법?) 댓글30 31876 11.08.18
공지 채택됨syntax highlight 기능 추가 안내 댓글47 48245 10.03.23
63734 진행중기본적 질문이에요. 게시판 생성했는데 안들어가져요. 5 13.05.24
63733 진행중write.skin.php파일 작업하는데 radio버튼 기본 체크에 관해서.. 9 13.05.24
63732 진행중글쓴이 클릭시 나오는 레이어메뉴 12 13.05.24
63731 채택됨CSS 중복안되게 할 수 없나요 ㅠㅠ??? 게시판 상단,하단 파일 입력시... 댓글2 23 13.05.24
63730 진행중검색속도 질문요..ㅠㅠ 14 13.05.24
63729 진행중공사완료부분에 날짜가 나타나지 않아요 ㅠㅠ 14 13.05.24
63728 진행중pdf 파일을 바로 볼 수 있게 댓글1 16 13.05.24
63727 진행중그룹 메인 페이지 변경........ 댓글1 25 13.05.24
63726 채택됨게시판에서 다운로드 되게... 댓글2 20 13.05.24
63725 진행중li:hover 이 안먹히는 이유 뭔가요? ㅠㅠ 댓글1 24 13.05.24
63724 진행중그누보드4 cms관련해서.. 23 13.05.24
63723 진행중초보자입니다.그누보드를 설치했는데 관리자 페이지를 어떻게 들어가죠? 댓글2 31 13.05.24
63722 진행중리스트상에서 해당분류를 맨뒤페이지에 나오게 하려면 ? 댓글1 19 13.05.24
63721 진행중데이콤 결제가 되다가 안되다가 하는 이유가 뭘까요 14 13.05.24
63720 채택됨배열에서요 target 을 새창으로 줄려고 변수 지정해도 target 이 제대로 안먹는… 댓글2 14 13.05.24
63719 진행중(급)새도로 주소... 댓글1 24 13.05.24
63718 진행중최신글 글자수 제한_subject -> wr_subject로 변경사용시 댓글2 23 13.05.24
63717 진행중그누보드4 cms 글수정.. 13 13.05.24
63716 채택됨게시판 리스트 카운트 질문있습니다. 댓글1 15 13.05.24
63715 진행중DB접근이 안된다고 뜹니다 20 13.05.24