갤러리 게시판 채택완료
list.skijn.php
에서
if ($list[$i]['is_notice']) { // 公告 ?>
公告
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, false);
if($thumb['src']) {
$img_content = '
';
} else {
$img_content = 'no image';
}
echo $img_content;
}
?>
이쪽부분이 리스트 이미지를 클릭하면 view페이지로 넘어가서 게시글을 볼수있는거죠?..?
그런다음에 view.skin.php
// 显示附件
$v_img_count = count($view['file']);
if($v_img_count) {
echo "
for ($i=0; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view']) {
//echo $view['file'][$i]['view'];
echo get_view_thumbnail($view['file'][$i]['view']);
}
}
echo "
}
?>
$(function() {
$("a.view_image").click(function() {
window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
return false;
});
// 推荐, 反对
$("#good_button, #nogood_button").click(function() {
var $tx;
if(this.id == "good_button")
$tx = $("#bo_v_act_good");
else
$tx = $("#bo_v_act_nogood");
excute_good(this.href, $(this), $tx);
return false;
});
// 图片尺寸调整
$("#bo_v_atc").viewimageresize();
});
이부분이 게시글 이미지를 클릭하게 되면 원본사이즈를 볼수있게 만들어진거잔아요?
질문은.. list에서 이미지를 클릭헀을때 view 페이지 게시글을 불러오는게 아니라
게시글에 등록된 원본이미지를 볼수있게 만들고 싶습니다..
어떻게 해야할지 감을 못잡아서 그럽니다 ㅠㅠ 도와주세요
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인