[G5용]최근 게시물 겔러리 용 입니다. > 그누보드5 스킨

그누보드5 스킨

좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.

[G5용]최근 게시물 겔러리 용 입니다. 정보

갤러리 [G5용]최근 게시물 겔러리 용 입니다.

첨부파일

ktwgallery.zip (11.0K) 639회 다운로드 2013-10-31 12:26:07

본문

수정작업 하였습니다..

링크 안되던것이랑.. 받아서 압축 푸시면

모바일 버전까지 같이 올려 놓았습니다.

_m 붙은것이 모바일 버전입니다.



*--------------------------------------------------------------------------*

최근 게시물 갤러리를 찾는 도중에 ll시간여행ll  님께서 올려주신걸 발견...

사용하니 G5 에서는 적용이 안되는 오류를 발견하였습니다.

또한 PHP에서 테그설정 옵션을 셋팅 안하신분들께서는 오류날테구요..

그래서 G5 용으로 수정하면서 오류또한 수정한 버전입니다.

ll시간여행ll 님이 올려주신걸 토대로 수정작업 했습니다.

모바일 버전은 좀더 수정후에 올려 보도록하겠습니다.

적용 방법은 마찬가지로..

latest 에 넣어주시구요.

 index.php 에서

if($row['bo_table']=="gallery_1")
    {
        echo latest("ktwgallery","gallery_1", 5, 25);   
    }else
    {
        echo latest("basic", $row['bo_table'], 5, 25);   
    }

이런식으로 쓰시면 편할겁니다.

추천
4

댓글 전체

고맙습니다~^^

'group.php' 파일에 적용해보았고... 'style.css'를 아래와 같이 수정했습니다.


.latestList {position:relative; margin-bottom:15px; padding-bottom:15px; border-top:1px solid #ddd; font-size:12px; }
.latestList * {margin:0; padding:0; border:none;}
.latestList h2 {margin-bottom:5px; padding:8px 0px 8px 0px; font-size:12px; font-family: Nanum Gothic, Verdana, Geneva, Arial, Helvetica, sans-serif; color:#222;}
.latestList h2 a {color:#222;}
.latestList li {list-style:none; line-height:160%; font-size:12px;}
.latestList ul.thumb li {position:relative; display:inline; float:left; margin-left:[썸네일 사이 간격];}
.latestList ul.thumb li.first {margin-left:0;}
.latestList ul.thumb li img {border:1px #CCCCCC solid; vertical-align:top; width:[썸네일 가로 너비];}
.latestList ul.thumb li span {position:absolute; left:0; bottom:0; width:<?php echo $img_width?>px; overflow:hidden; text-align:center;  font-size:11px; color:#fff; background:#000; opacity:.7; filter:alpha(opacity=70);}
.latestList .btnPage {position:absolute; top:7px; right:0;}
.latestList .btnPage li {display:inline; float:left; list-style:none;}
.latestList.h2bg {border-bottom:none;}
.latestList.h2bg ul.btnPage {right:0px;}
.latestList.h2bg h2 {background:#ffffff; -moz-border-radius: 5px;}
.latestList.h2bg h2 a {color:#000;}


내부 가로 폭을 800px로 설정하여 사용하는지라...
'썸네일 사이 간격'은 24px로 하고... '썸네일 가로 너비'는 180px로 적용했습니다.

800px(내부 가로폭) = 720px(썸네일 가로폭 합계 : 180*4) + 8px(썸네일 좌우 테두리 합계 ; 2*4) + 72px(썸네일 사이 간격 합계 : 24*3)

예제 : http://internationale.kr/bbs/group.php?gr_id=group
게시판 제목이 링크되게 수정했습니다.


.latestList h2 a {text-decoration:none; color:#222;}



.latestList h2 a {color:#222;}
로...

위 내용에 수정해두었습니다.
방금 수정하고 들어와보니... 벌써 올려놓으셨네요~^^

원본에 있었던 아래 소스를 사용했습니다.


$img_content = "<a href='{$list[$i]['href']}'>$img_content</a>";


'thumbnail.php'는 필요 없네요.
전체 2,431 |RSS
그누보드5 스킨 내용 검색

회원로그인

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