안녕하세요...대류님

2005.06.15
예전에 대류님의 갤러리 스킨 받아서 잘 사용하고 있습니다

Daerew_BAGICgallery_GD 를 쓰고 있습니다

제 사이트에 약간 맞춰서 사용하고있습니다

그런데 한가지 궁금한 건 이 스킨에서 그림을 사진을 클릭했을때

내용보기가 아니라, 새창으로 이미지만 보여주게 하는 방법은 없을까요?

제로보드 사이트에서 다른분들꼐서 올려주신 팁이나 노하우 같은거 검색해서 해보아도 되지를 않네요..

그래서 대류님께 직접 여쭈어봅니다..

어떤 코드로 대체해야 하는지 알려주시겠어요?

기다릴께요..
  • 대류 2005.06.15 13:01
    list_main,php 의 상단에 보시면
    $a1 = "<a href="".$view_file."?$href$sort&no=$data[no]">";

    이런 부분이 있을 겁니다.
    이것을 아래와 같이 수정해보세요...

    $a1 = "<a href='javascript:void(0)' onclick="window.open('$dir/show_pic.php?file=$data[file_name1]','img','left=10,top=10,width=$temp[0],height=$temp[1],scrollbar=no,status=no')">";

    그리고 새창으로 띄워줄 파일이 필요하니까....
    show_pic.php 를 만들어야 합니다.

    아래의 내용을 복사하여 show_pic.php 를 만들어 스킨폴더에 넣으세요
    <html>
    <head><title>View Image :: 클릭하면 창이 사라집니다~!!</title></head>
    <body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'>
    <A href=# onclick=window.close()><img src=../../<?=$file?> border=0></a>
    </body>
    </html>
  • 이종혁 2005.06.16 17:16
    예 감사합니다
    그런데 한가지 문제가 발생했어요^^;
    팝업은 뜨는데 창의 크기가 굉장히 작네요...
    어찌해야할지..
  • 대류 2005.06.16 22:36
    가로와 세로 크기 지정을 안해주었네요...
    제 스킨중 썸네일과 팝업을 동시에 지원해주는 스킨이 있습니다.
    보시고 소스를 참고하시면 되겠습니다.
  • 이종혁 2005.06.17 06:44
    수정을 해보았는데..오류가 나네요..

    <?

    if($setup[use_alllist]) $view_file="zboard.php"; else $view_file="view.php";
    $subject="<a href="".$view_file."?$href$sort&no=$data[no]"><font class=sub>".cut_str($data

    [subject],$MAX_LENGTH)."</font></a>";
    $date1=date("Y/m/d",$data[reg_date]);
    include_once $dir."/dq_thumb_engine.php";

    if($data[s_file_name1]) { // 이미지가 있을때
    $files = explode(".", $data[s_file_name1]);
    $thumb_file = get_thumbTag($data, $img_width, $img_height, $dir);
    $temp = @GetImageSize($img_name); // 화면에 표시할 그림파일 크기 정보를 구하고,

    if($temp[0] > $bbs_height ) { // 지정된 게시판 가로크기보다 클경우

    $ratio = $bbs_height/$temp[1]; // 게시판 세로크기에 대한 그림파일의 세로 비율 계산
    $img_width = $temp[1]*$ratio; // 그림파일의 가로와 세로에 동일 ratio 적용
    $img_height = $temp[1]*$ratio;
    }
    else {
    $img_width = $temp[0]; // 지정된 크기보다 작을경우 원래 싸이즈데로 출력
    $img_height = $temp[1];
    }
    }

    $a1 = "<a href='javascript:void(0)' onclick="window.open('$dir/show_pic.php?file=$data

    [file_name1]','img','left=100,top=100,width=$temp[0],height=$temp[1],scrollbar=no,status=no')">";
    $a2 = "</a>";
    $IMG_header="<table cellpadding=0 cellspacing=0 border=0 bgcolor=#F5F5F5 class=border><tr><td

    width=$imgRwidth height=$imgRheight align=center avlign=center>";
    $IMG_footer="</td></tr></table>";
    $IMG_style="onmouseover=this.style.filter='gray' onmouseout=this.style.filter=''";



    if ($count<$maxline) {
    $count++;
    ?>



    뭐가 잘못된걸까요..?
  • 대류 2005.06.17 09:26
  • 이종혁 2005.06.17 17:58
    <?
    if($data[file_name1]) {
    $img_name = $data[file_name1]; // 업로드된 이미지 파일명 출력
    $temp = @GetImageSize($img_name); // 화면에 표시할 그림파일 크기 정보를 구하고,
    if($temp[0] > $bbs_height ) { // 지정된 게시판 가로크기보다 클경우
    $ratio = $bbs_height/$temp[1]; // 게시판 세로크기에 대한 그림파일의 세로 비율 계산
    $img_width = $temp[1]*$ratio; // 그림파일의 가로와 세로에 동일 ratio 적용
    $img_height = $temp[1]*$ratio;
    } else {
    $img_width = $temp[0]; // 지정된 크기보다 작을경우 원래 싸이즈데로 출력
    $img_height = $temp[1];
    }
    }
    if($setup[use_alllist]) $view_file="zboard.php"; else $view_file="view.php";
    $subject="<a href="".$view_file."?$href$sort&no=$data[no]"><font class=sub>".cut_str($data

    [subject],$MAX_LENGTH)."</font></a>";
    $date1=date("Y/m/d",$data[reg_date]);
    include_once $dir."/dq_thumb_engine.php";
    $a1 = "<a href='javascript:void(0)' onclick="window.open('$dir/show_pic.php?file=$data

    [file_name1]','img','left=10,top=10,width=$temp[0],height=$temp[1],scrollbar=yes,status=no')">";
    $a2 = "</a>";
    $IMG_header="<table cellpadding=0 cellspacing=0 border=0 bgcolor=#F5F5F5 class=border><tr><td

    width=$imgRwidth height=$imgRheight align=center avlign=center>";
    $IMG_footer="</td></tr></table>";
    $IMG_style="onmouseover=this.style.filter='gray' onmouseout=this.style.filter=''";
    if($data[s_file_name1]) { // 이미지가 있을때
    $files = explode(".", $data[s_file_name1]);
    $thumb_file = get_thumbTag($data, $img_width, $img_height, $dir);
    }
    if ($count<$maxline) {
    $count++;
    ?>
    <td width=<?=$imgTwidth?> valign=top>
    <table cellpadding=0 cellspacing=0 class=list>
    <tr><td height=<?=$imgTheight?> width=<?=$imgTwidth?> align=center colspan=2><img src=t.gif

    width=<?=$imgTwidth?> height=1><br><?=$IMG_header?><?=$a1?><?=$thumb_file[2] ?><?=$a2?><?=$IMG_footer?

    ></td></tr>
    </table>
    </td>
    <?} if ($count!=$maxline) echo"<td> <br></td> ";
    if ($count==$maxline) { $count=0;?>
    </tr>
    <tr><td height=15 colspan=<?=($maxline*2)?>></td></tr>
    <? }; ?>



    list_main.php는 이렇게 했구요

    실행해보면

    썸네일엔진에 오류가 난걸로 뜨네요

    http://ndlex.com/gt [새창에서 열기] 포토드라이브게시판입니다...

    이미지는 팝업 실사이즈로 잘뜹니다
  • 대류 2005.06.18 01:18
    썸네일 엔진을 최신버젼으로 바꿔보세요..
    썸네일 엔진과 관련된 오류는 잘 모릅니다.

List of Articles
번호 제목 글쓴이 날짜 조회 수
1292 힛트수를 수정하는 법 질문입니다~ 1 홍석주 2003.07.28 1616
1291 흠 .. 글을 쓴다는것...?? 1 베지타 2009.04.13 10846
1290 흑흑.. 도와주세요 ㅜ_ㅜ 2 신디 2003.02.20 4218
1289 훈민정음 아이콘 추가해 주세요... 마이홈 2005.04.23 1549
1288 회원정보록(주소록겸용) 스킨을 쓰고 있는데 3 file 김명숙 2004.12.23 940
1287 회원정보 수정시에... 1 freshwood 2005.02.04 2364
1286 회원정보 관련해서 질문 합니다. 나무 2004.11.14 852
1285 회원의 최근로그인 시각을 알 수 있는 방법에 대해 질문 드려도 될까요? 3 갠대류612 2005.06.20 3296
1284 회원아이콘변경 3 sunnie 2003.02.28 1919
1283 회원사진등록에 관한 질문입니다 1 열매 2005.08.10 5653
1282 회원가입폼에 헤드풋 넣는 방법은? 3 파인애플 2004.07.10 974
1281 회원가입이 갑자기 안되요 1 file 최기태 2004.11.09 805
1280 회원가입시 2 옹이 2005.09.02 4709
1279 회원가입 페이지로 돌리면 라이센스부분의 에러.. 1 시아 2004.10.07 850
1278 회원가입 전에 회원인증에 관한 질문인데여... 2 슈니마토 2004.09.30 808
1277 회원가입 스킨이요~^^ 1 ^^ 2003.10.15 1307
1276 황당 질문 ㅡㅡ; 3 알까 2005.07.03 3429
1275 홈피를 만들었는데 로그인을 해도 안되내여 꼭쩜 냉유~ 1 화야 2004.05.28 1015
1274 홈피 테두리 사이즈는 어케 조정하는지요? 2 정성희 2003.02.05 4244
1273 홈피 제작중..도와주세요....ㅜ.ㅜ(최근게시물 관련...) 3 박세봉 2005.08.25 4453
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 65 Next
/ 65