최신갤러리 바로가기 설정 관련 질문입니다. 정보
최신갤러리 바로가기 설정 관련 질문입니다.
본문
http://fan.wsgvet.com
위의 사이트가 제가 이번에 만든 사이트이구요
빌더는
http://sir.co.kr/bbs/board.php?bo_table=g4_builder&wr_id=7301
nw빌더입니다.
최신갤러리 스킨은
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=120985
위의 ez_slider 입니다.
첫 화면에서 사진을 클릭하면 해당 게시물로 바로가기를 넣고 싶은데요
아무리해도 첫화면이나 빈화면으로 밖에 안가지네요..
소스 첨부해봅니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
* latest.skin Gallery for Gnuboard4
*
* Copyright 2012.1.2 Man Hyung, cho
*
* File encoding: Korean(EUC-KR)
*
*/
//불당썸---------------------------------------------------------------//
$img_width = 1068; //표시할 이미지의 가로사이즈
$img_height = 600; //표시할 이미지의 세로사이즈
//언샾마스트 퀄리티(썸 노이즈바지)
$th['filter'] = array();
$th['filter']['type'] = 90;
$th['filter']['arg1'] = 100;
$th['filter']['arg2'] = 1;
$th['filter']['arg3'] = 2;
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$no_img = $latest_skin_path."/img/no_img.gif";
// 불당썸을 include
include_once("$g4[path]/lib/thumb.lib.php");
//불당썸---------------------------------------------------------------//
?>
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/themes/pascal/pascal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/themes/orman/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/style.css" type="text/css" media="screen" />
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider" style="width:<?php echo "{$img_width}px" ?>">
<?php
for ($i=0; $i<count($list); $i++) {
$thumfile = "";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jpg|gif|png|bmp)$/i", $file) && file_exists($file)) {
$thumb = thumbnail($file, $img_width, $img_height, 0, 1, 90, 0, "", $filter, $noimg); //첨부파일 언샾마스크추가
} else { //에디터에서 삽입한 이미지
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) { // data/cheditor------
$file = $g4[path].'/' . $tmp[0]; // 파일명
$thumb=thumbnail($file, $img_width, $img_height, 0, 1, 90, 0, "", $filter, $noimg); //언샾마스크추가
}
}
?>
<a href="<?=set_http($list[$i][wr_link1])?>" target='_blank'><img src="<?php echo $thumb; ?>" alt="" title="" ></a>
<?php
}
?>
</div>
<div id="htmlcaption" class="nivo-html-caption">
<span class="font"><?php echo $list[$i]['subject']; ?></span>
</div>
</div>
<!--
<script type="text/javascript" src="<?php echo $latest_skin_path?>/scripts/jquery-1.7.1.min.js"></script>
-->
<script type="text/javascript" src="<?php echo $latest_skin_path?>/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
---------------------------
위의 소스 중에
<a href="<?=set_http($list[$i][wr_link1])?>" target='_blank'><img src="<?php echo $thumb; ?>" alt="" title="" ></a>
이 소스인 것 같은데
<a href="#"><img src="<?php echo $thumb; ?>" alt="" title="" ></a>
위의 소스가 원본 소스입니다.
그래서 원래는 http://fan.wsgvet.com
여기로 바로가기로 되더군요...
이틀 밤샜는데 도저히 모르겠네요 ㅠㅠ
위의 사이트가 제가 이번에 만든 사이트이구요
빌더는
http://sir.co.kr/bbs/board.php?bo_table=g4_builder&wr_id=7301
nw빌더입니다.
최신갤러리 스킨은
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=120985
위의 ez_slider 입니다.
첫 화면에서 사진을 클릭하면 해당 게시물로 바로가기를 넣고 싶은데요
아무리해도 첫화면이나 빈화면으로 밖에 안가지네요..
소스 첨부해봅니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
* latest.skin Gallery for Gnuboard4
*
* Copyright 2012.1.2 Man Hyung, cho
*
* File encoding: Korean(EUC-KR)
*
*/
//불당썸---------------------------------------------------------------//
$img_width = 1068; //표시할 이미지의 가로사이즈
$img_height = 600; //표시할 이미지의 세로사이즈
//언샾마스트 퀄리티(썸 노이즈바지)
$th['filter'] = array();
$th['filter']['type'] = 90;
$th['filter']['arg1'] = 100;
$th['filter']['arg2'] = 1;
$th['filter']['arg3'] = 2;
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$no_img = $latest_skin_path."/img/no_img.gif";
// 불당썸을 include
include_once("$g4[path]/lib/thumb.lib.php");
//불당썸---------------------------------------------------------------//
?>
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/themes/pascal/pascal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/themes/orman/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $latest_skin_path?>/style.css" type="text/css" media="screen" />
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider" style="width:<?php echo "{$img_width}px" ?>">
<?php
for ($i=0; $i<count($list); $i++) {
$thumfile = "";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jpg|gif|png|bmp)$/i", $file) && file_exists($file)) {
$thumb = thumbnail($file, $img_width, $img_height, 0, 1, 90, 0, "", $filter, $noimg); //첨부파일 언샾마스크추가
} else { //에디터에서 삽입한 이미지
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) { // data/cheditor------
$file = $g4[path].'/' . $tmp[0]; // 파일명
$thumb=thumbnail($file, $img_width, $img_height, 0, 1, 90, 0, "", $filter, $noimg); //언샾마스크추가
}
}
?>
<a href="<?=set_http($list[$i][wr_link1])?>" target='_blank'><img src="<?php echo $thumb; ?>" alt="" title="" ></a>
<?php
}
?>
</div>
<div id="htmlcaption" class="nivo-html-caption">
<span class="font"><?php echo $list[$i]['subject']; ?></span>
</div>
</div>
<!--
<script type="text/javascript" src="<?php echo $latest_skin_path?>/scripts/jquery-1.7.1.min.js"></script>
-->
<script type="text/javascript" src="<?php echo $latest_skin_path?>/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
---------------------------
위의 소스 중에
<a href="<?=set_http($list[$i][wr_link1])?>" target='_blank'><img src="<?php echo $thumb; ?>" alt="" title="" ></a>
이 소스인 것 같은데
<a href="#"><img src="<?php echo $thumb; ?>" alt="" title="" ></a>
위의 소스가 원본 소스입니다.
그래서 원래는 http://fan.wsgvet.com
여기로 바로가기로 되더군요...
이틀 밤샜는데 도저히 모르겠네요 ㅠㅠ
댓글 전체

네, 잘 찾으셨네요. Nivo slider 에서
<a href="#"><img src="<?php echo $thumb; ?>" alt="" title="" ></a>
이렇게 작성되어 있는 부분이
<a href="#"><img src="./data/file/Gallery/1062731775_aUFAybKC_2580.jpg" alt="" title="" ></a>
이런식으로 출력되고 있구요.
바로가기를 바꾸시려면
<a href="#">
이부분을 고치셔야죠.
<a href="http://abc.com/example.htm">
이런식으로요.
<a href="#"><img src="<?php echo $thumb; ?>" alt="" title="" ></a>
이렇게 작성되어 있는 부분이
<a href="#"><img src="./data/file/Gallery/1062731775_aUFAybKC_2580.jpg" alt="" title="" ></a>
이런식으로 출력되고 있구요.
바로가기를 바꾸시려면
<a href="#">
이부분을 고치셔야죠.
<a href="http://abc.com/example.htm">
이런식으로요.

음 제가 원한 것은 그 이미지를 클릭했을 때 그 해당 게시물로 바로 가기를 원하거든요 ㅠㅠ
<a href="http://abc.com/example.htm">
위와 같이 고치면 그냥 갤러리 게시판으로 밖에 안가지는데 ㅠㅠ
최신 갤러리의 해당 게시물로 가려면 어떻게 바꿔야할까요?
<a href="http://abc.com/example.htm">
위와 같이 고치면 그냥 갤러리 게시판으로 밖에 안가지는데 ㅠㅠ
최신 갤러리의 해당 게시물로 가려면 어떻게 바꿔야할까요?

자체 해결했습니다 ㅎㅎ
다른 소스보니
<a href="<?=$list[$i][href]?>" style='color:#fff;border:0px;' target='_blank'><img id="slide-img-<?=($i+1)?>" src="<?=$thumb?>" alt="<?=$list[$i][wr_subject]?>" /></a>
이렇게 바꾸면 되네요 ㅎㅎ 관심 가져주셔서 고맙습니다.
다른 소스보니
<a href="<?=$list[$i][href]?>" style='color:#fff;border:0px;' target='_blank'><img id="slide-img-<?=($i+1)?>" src="<?=$thumb?>" alt="<?=$list[$i][wr_subject]?>" /></a>
이렇게 바꾸면 되네요 ㅎㅎ 관심 가져주셔서 고맙습니다.