갤러리 최신글 출력 문제..
Qxxxxx
7년 전
조회 6,131
안녕하세요
그누보드5 최신글 스킨중
https://sir.kr/bbs/board.php?bo_table=g5_skin&wr_id=10065">https://sir.kr/bbs/board.php?bo_table=g5_skin&wr_id=10065
위의 스킨을 다운받아 사용하려는데요..
http://mimidebichon.com/subpage_new.php?p=rn_gal00">http://mimidebichon.com/subpage_new.php?p=rn_gal00
위의 링크처럼 갤러리는 호출하나 이미지를 호출해오지 않네요..
갤러리안에는 썸네일 갯수처럼 10개 이미지가 등록되어있습니다ㅠ
어떤문제인지 혹시 아시는분이 계실까요?
몇일동안 고민해도 해결이 되지 않네요...
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변에 대한 댓글 2개
Q
Qxxxxx
7년 전
Q
Qxxxxx
7년 전
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
include_once $latest_skin_url. "/lib/thumbnail.lib.php";
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<link rel="stylesheet" href="<?=$latest_skin_url?>/style.css">
<link href="<?=$latest_skin_url?>/css/pgwslideshow.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?=$latest_skin_url?>/css/pgwslideshow_light.css" rel="stylesheet" type="text/css" media="screen" />
<script src="<?=$latest_skin_url?>/js/pgwslideshow.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.pgwSlideshow').pgwSlideshow();
});
</script>
<div class="wrapper">
<div>
<ul class="pgwSlideshow">
<?php for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
$image = get_editor_image($list[$i]['wr_content'],true);
preg_match_all("<img [^<>]*>", $image[0][0], $output);
eregi("[:space:]*(src)[:space:]*=[:space:]*([^ >;]+)",$image[0][0],$regs);
$regs[2] = str_replace(Array("'",'"'),"",$regs[2]);
$buff[] = $regs[2];
if($image[0][0]==""){
$sql = " select bf_file from g5_board_file where bo_table = '".$bo_table."' and wr_id = '".$list[$i]["wr_id"]."' order by bf_no ";
$result = sql_query($sql);
$img_url = mysql_result($result,0,0);
}
if($img_url){
$thumb[0]['path'] = G5_DATA_URL.'/file/'.$bo_table;
$thumb[0]['file'] = $img_url;
$big_img_url = $thumb[0]['path']."/".$thumb[0]['file'];
}else{
$thumb[0]['file'] = $buff[$i];
$big_img_url = $thumb[0]['file'];
}
?> <li>
<img src="<?=$big_img_url?>"/>
<?php $img_url="";
}
?>
</ul>
</div>
</div>
latest.skin.php파일인데..
혹시 이 소스 보시면 알수있으실까요...??
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
include_once $latest_skin_url. "/lib/thumbnail.lib.php";
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<link rel="stylesheet" href="<?=$latest_skin_url?>/style.css">
<link href="<?=$latest_skin_url?>/css/pgwslideshow.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?=$latest_skin_url?>/css/pgwslideshow_light.css" rel="stylesheet" type="text/css" media="screen" />
<script src="<?=$latest_skin_url?>/js/pgwslideshow.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.pgwSlideshow').pgwSlideshow();
});
</script>
<div class="wrapper">
<div>
<ul class="pgwSlideshow">
<?php for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
$image = get_editor_image($list[$i]['wr_content'],true);
preg_match_all("<img [^<>]*>", $image[0][0], $output);
eregi("[:space:]*(src)[:space:]*=[:space:]*([^ >;]+)",$image[0][0],$regs);
$regs[2] = str_replace(Array("'",'"'),"",$regs[2]);
$buff[] = $regs[2];
if($image[0][0]==""){
$sql = " select bf_file from g5_board_file where bo_table = '".$bo_table."' and wr_id = '".$list[$i]["wr_id"]."' order by bf_no ";
$result = sql_query($sql);
$img_url = mysql_result($result,0,0);
}
if($img_url){
$thumb[0]['path'] = G5_DATA_URL.'/file/'.$bo_table;
$thumb[0]['file'] = $img_url;
$big_img_url = $thumb[0]['path']."/".$thumb[0]['file'];
}else{
$thumb[0]['file'] = $buff[$i];
$big_img_url = $thumb[0]['file'];
}
?> <li>
<img src="<?=$big_img_url?>"/>
<?php $img_url="";
}
?>
</ul>
</div>
</div>
latest.skin.php파일인데..
혹시 이 소스 보시면 알수있으실까요...??
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
갤러리에 들어가있는 이미지는 다른 latest스킨으로는 정상적으로 불러오는데...
어렵네요ㅠㅠ