갤러리형게시판.. > 그누3 스킨

그누3 스킨

갤러리형게시판.. 정보

갤러리 갤러리형게시판..

첨부파일

mando_coolsite.zip (63.2K) 235회 다운로드 2004-02-18 22:21:14

본문

허접하더라도 이해해 주세요.

상업적사이트에 사용시 해당사이트의 주소를 고지하여 주시기 바랍니다..

#특징
1. 리스트에서 그림(첨부파일1번)을 클릭함 새창으로 그림(첨부파일1번)이 보여집니다.
2. 글내용 보기에서 이전글의  그림과 다음글의 그림이 보이고, 제목도 보입니다.
3. 지정해준 사이즈 보다 그림이 클 경우,
   사이즈 조정(가로)이 가능합니다...$max 값 설정..
4. 링크가 있을경우 리스트에서 링크가 보이고, 링크를 클릭하면 링크조회수가 증가합니다.

#사용법
1. 압축을 풀어 bbs/skin/board 에 업로드합니다.
2. 관리자모드 -> 게시판설정 해당게시판의 스킨을 설정해줍니다.
3. bbs/ 폴더에 gblist.php를 열어
    190라인 쯤에    
 &nbsp; for ($k=1; $k<=$cfg[file_count]; $k++) {
 &nbsp; &nbsp; &nbsp; &nbsp;if (@preg_match($cfg[image_extension], $row["wr_file".$k])) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$list[$i]["file_image".$k] = "./data/file/$bo_table/" . $row["wr_file".$k];
 &nbsp; &nbsp; &nbsp; &nbsp;}
 &nbsp; &nbsp;} 다음에 아래를 추가해 줍니다...
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // add
 &nbsp; &nbsp;for ($k=1; $k<=$cfg[file_count]; $k++) {
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$i]["file".$k]= "./data/file/$bo_table/" . $row["wr_file".$k]; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp;if($list[$i]["file".$k]){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (@preg_match($cfg[image_extension], $list[$i][file1])){//이미지
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$list[$i][file1_v]= "<img src='./data/file/$bo_table/$row[wr_file1]'
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;width='125' height='95' align='center' style='border:1 solid #222222;cursor:hand'
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alt='클릭!하시면 큰그림을 보실수 있읍니다'
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;onclick=\"view('./data/file/$bo_table/$row[wr_file1]')\">";}
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else if (@preg_match($cfg[flash_extension], $list[$i][file1])){//플래시
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$list[$i][file1_v]= "<embed src='./data/file/$bo_table/$row[wr_file1]'
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;width='125' height='95' align='center' style='border:1 solid #222222' &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;type='application/x-shockwave-flash' play='false'></embed>";}
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (@preg_match($cfg[movie_extension], $list[$i][file1])){// 동영상
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $list[$i][file1_v]= "<embed src='./data/file/$bo_table/$row[wr_file1]'
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width='125' height='95' align='center' volume='0' mute='true'
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ClickToPlay='true' AutoStart='true' ShowControls='false' &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; style='border:1 solid #222222'></embed>";}
 &nbsp; &nbsp; &nbsp; &nbsp; }
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; if (!(preg_match($cfg[image_extension],$list[$i][file1])||
 &nbsp; &nbsp; &nbsp; &nbsp; preg_match($cfg[flash_extension], $list[$i][file1])||
 &nbsp; &nbsp; &nbsp; &nbsp; preg_match($cfg[movie_extension], $list[$i][file1]))) {
 &nbsp; &nbsp; &nbsp; &nbsp; $list[$i][file1_v]= "<img src='$board_skin/noimage2.jpg'
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;width='125' height='95' align='center' style='border:1 solid #222222' >";} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 }

#업로드 파일의 사이즈 조정
gbview.skin.php의 15번 라인의
 &nbsp; &nbsp;$max=720;//최고 큰사이즈 조정(가로사이즈입니다)를 픽셀값으로 조정합니다..

#게시판 사이즈 조정
각 해당파일(gblist/gbview/gbform.skin.php)의 상단에
$wid="100%"; 의 값을 퍼센트 또는 픽셀값으로 지정하면 됩니다...

#게시판 컬러 조정
각 해당파일(gblist/gbview/gbform.skin.php)의 상단에
$bg="FFFCF6";//게시판 &nbsp;색상
$bg2="7F5f00";//게시판 색상
$bg3="E2DFD8";//게시판 &nbsp;색상
의 각각의 값을 조정하면 됩니다..

#리스트에서 링크 보이기/감추기
1.보이기
 bbs/gblist.php에서 이미지를 보이도록 하기 위해 추가한 다음줄에
아래와 같이 추가합니다.

    for ($k=1; $k<=$cfg[link_count]; $k++) {
        if ($row["wr_link".$k]) {
            $link[$i]["link".$k] = set_http(get_text(cut_str($row["wr_link".$k], 255)));
            $link[$i]["link_href".$k] = "./?doc=$cfg[bbs_dir]/gblink.php&$qstr&wr_id=$row[wr_id]&index=$k";
            $link[$i][hit] = $row[wr_link1."_hit"];
        }

    }
 
2. 감추기
gblist.skin.php에서 123~128라인을 주석처리합니다..

      <tr>
      <? if ($is_checkdelete) { ?><td></td><? } ?>
      <td style='text-align:justify; padding-top:3px;padding-left:3px'>
          <?if ($link[$i][link1]) {?><a href='<?=$link[$i][link_href1]?>'  target='blank'>
                                        링크 : <?=$link[$i][link1]?></a> Hit :<?=$link[$i][hit]?>  <?}?>
      </td>
      </tr>
추천
5

댓글 전체

만도님 요기서 사용중인데요 오늘 스킨다운 받아서 테스트 중입니다..
http://snake.or.kr
근데요 한글 파일은 큰그림보기하면 배꼽이나오네요?...
이미지를 두개 이상 첨부 했을시 , 첨부파일 그림만 나오는걸 밑의 소스로 수정해 주세요.
스킨 뷰파일에서 187 라인..

                <?
                for ($i=1; $i<=$cfg[file_count]; $i++) {
                    if ($file[$i][view]) { echo $file1_v_big ; }
                }
                ?>

  를.... 밑에 걸로 수정하면... 잘 됩니다.

                <?
                for ($i=1; $i<=$cfg[file_count]; $i++) {
                    if ($file[$i][view]) { echo $file[$i][view]; }
                }
                ?>
공지사항일때는 일반리스트처럼 나오게 했는데요....
그림이 나오게 하려면
gblist.skin.php의 98번 라인에
  <td bgcolor=<?=$bg?>
  <? if ($list[$i][is_notice]){?>width=150 height=25<?}else{?> width=150 height=111<?}?>>
  <? if ($list[$i][is_notice])$list[$i][file1_v]="";?><?=$list[$i][file1_v]?></td>
 위부분을  아래와 같이 바꾸면 됩니다...
 <td bgcolor=<?=$bg?> width=150 height=111>
  <?=$list[$i][file1_v]?></td>
gblist.php 여기에 그게 빠져있었었군요... ㅆ *3 이네요  -_-;;
만도님 정말 수고 많으셨구요. 아주 잘 되고, 멋집니다.

특히! 버튼 아이콘과 전체적인 인터페이스가 상당히 놀라움을 금치 못하고 있습니다.
gblist.php를 에디팅 하셔야 됩니다...
방법을 올리지 않았군요... 위에 글을 다시 수정했읍니다...
실력이 딸려서 스킨안에서 해결이 안되는 군요.. 방법을 아시는 분은 ....갈쳐조요..
전체 740
그누3 스킨 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT