[최신글]갤러리 형식/제목 글내용 원하는 길이 만큼 보이는 스킨. 정보
최신글 [최신글]갤러리 형식/제목 글내용 원하는 길이 만큼 보이는 스킨.관련링크
http://viva-mando.pe.kr
325회 연결
첨부파일
본문
방금 3시29분에 수정하였읍니다
이미지가 없을 경우 노이미지 그림이 나오게.....
받으신 삼분 다시 받으세요..ㅋㅋ
사용방법
1.압축을 풀면 mando_add 라는 폴더가 생김
폴더를 bbs/skin/latest/ 에업로드합니다.
2.main.php에서 원하는 부분에 삽입 합니다..
latest('mando_add', 게시판아이디, 글수, 제목자르기);
EX)latest('mando_add', cool_site, 5, 35);
아래 4줄을 아래와 같이 lib/latest.lib.php에 추가 합니다
$len=250;//글내용 글자수 조정
$wr_content = get_text(cut_str($row[wr_content], $len, '.......'));
$list[$i][content] = conv_content($wr_content, $html);;
$list[$i][file1_v]= "<div style='cursor:hand;border:1 solid #222222;width:125;height:100;'><img src='./data/file/$bo_table/$row[wr_file1]' width='125' height='100' border=0 onclick=\"view('./data/file/$bo_table/$row[wr_file1]')\" alt= 클릭하시면 큰사진이..></div>";
그리고 아래 한줄은 주석처리합니다
//$list[$i][content] = get_text($row[wr_content]);
EX)
for ($i=0; $row = mysql_fetch_array($result); $i++) {
$list[$i] = $row;
$list[$i][href] = "./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id=$row[wr_id]";
// 코멘트 카운트
$list[$i][commentcnt] = "";
if ($row[wr_commentcnt] > 0) {
$list[$i][commentcnt] = "($row[wr_commentcnt])";
}
$list[$i][name] = gblayer($row[mb_id], cut_str($row[wr_name],10), $row[wr_email], $row[wr_homepage], $row[mb_open]);
$list[$i][subject] = conv_subject($row[wr_subject], $len,"…");
//$list[$i][content] = get_text($row[wr_content]); <=== 주석처리
$len=250;//글내용 글자수 조정 ----
$wr_content = get_text(cut_str($row[wr_content], $len, '.......')); ---- 3줄추가
$list[$i][content] = conv_content($wr_content, $html); ----
$list[$i][date] = substr($row[wr_datetime],2,8);
$list[$i][icon_new] = "";
if ($row[wr_datetime] >= date("Y-m-d H:i:s", time() - $bo[bo_new] * 3600)) {
$list[$i][icon_new] = "<img src='$latest_skin/icon_new.gif' align=absmiddle> ";
}
for ($k=1; $k<=$cfg[file_count]; $k++) {
if (@preg_match($cfg[image_extension], $row["wr_file".$k])) {
$list[$i]["file_image".$k] = "./data/file/$bo_table/" . $row["wr_file".$k];
요기부터해서 $list[$i][file1_v]= "<div style='cursor:hand;border:1 solid #222222;width:125;height:100;'><img src='./data/file/$bo_table/$row[wr_file1]' width='125' height='100' border=0 onclick=\"view('./data/file/$bo_table/$row[wr_file1]')\" alt= 클릭하시면 큰사진이..></div>";
} //바로위에 한줄 추가
}
이미지가 없을 경우 노이미지 그림이 나오게.....
받으신 삼분 다시 받으세요..ㅋㅋ
사용방법
1.압축을 풀면 mando_add 라는 폴더가 생김
폴더를 bbs/skin/latest/ 에업로드합니다.
2.main.php에서 원하는 부분에 삽입 합니다..
latest('mando_add', 게시판아이디, 글수, 제목자르기);
EX)latest('mando_add', cool_site, 5, 35);
아래 4줄을 아래와 같이 lib/latest.lib.php에 추가 합니다
$len=250;//글내용 글자수 조정
$wr_content = get_text(cut_str($row[wr_content], $len, '.......'));
$list[$i][content] = conv_content($wr_content, $html);;
$list[$i][file1_v]= "<div style='cursor:hand;border:1 solid #222222;width:125;height:100;'><img src='./data/file/$bo_table/$row[wr_file1]' width='125' height='100' border=0 onclick=\"view('./data/file/$bo_table/$row[wr_file1]')\" alt= 클릭하시면 큰사진이..></div>";
그리고 아래 한줄은 주석처리합니다
//$list[$i][content] = get_text($row[wr_content]);
EX)
for ($i=0; $row = mysql_fetch_array($result); $i++) {
$list[$i] = $row;
$list[$i][href] = "./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id=$row[wr_id]";
// 코멘트 카운트
$list[$i][commentcnt] = "";
if ($row[wr_commentcnt] > 0) {
$list[$i][commentcnt] = "($row[wr_commentcnt])";
}
$list[$i][name] = gblayer($row[mb_id], cut_str($row[wr_name],10), $row[wr_email], $row[wr_homepage], $row[mb_open]);
$list[$i][subject] = conv_subject($row[wr_subject], $len,"…");
//$list[$i][content] = get_text($row[wr_content]); <=== 주석처리
$len=250;//글내용 글자수 조정 ----
$wr_content = get_text(cut_str($row[wr_content], $len, '.......')); ---- 3줄추가
$list[$i][content] = conv_content($wr_content, $html); ----
$list[$i][date] = substr($row[wr_datetime],2,8);
$list[$i][icon_new] = "";
if ($row[wr_datetime] >= date("Y-m-d H:i:s", time() - $bo[bo_new] * 3600)) {
$list[$i][icon_new] = "<img src='$latest_skin/icon_new.gif' align=absmiddle> ";
}
for ($k=1; $k<=$cfg[file_count]; $k++) {
if (@preg_match($cfg[image_extension], $row["wr_file".$k])) {
$list[$i]["file_image".$k] = "./data/file/$bo_table/" . $row["wr_file".$k];
요기부터해서 $list[$i][file1_v]= "<div style='cursor:hand;border:1 solid #222222;width:125;height:100;'><img src='./data/file/$bo_table/$row[wr_file1]' width='125' height='100' border=0 onclick=\"view('./data/file/$bo_table/$row[wr_file1]')\" alt= 클릭하시면 큰사진이..></div>";
} //바로위에 한줄 추가
}
추천
3
3
댓글 전체
감사합니다.
감시합니다!!
감사합니다.~~

심플하군요.
감사합니다.^^
잘쓰겠습니다..^^&
잘,쓸께요.......
잘,쓸께요.......
다운하러 뱅뱅도네요.. 일단 보고 코멘트하는게 순서같은데..
수고하셨습니다.. 잘쓰겠습니다.
감사합니다~ 잘쓸께요^^
WoW ~ 물건 하나 또 나왔네 ^^
멋지네요.. 부럽습니다.. ^^
이쁘네염..^^
아 나도 스킨 만들고 싶은데..누가 스킨 제작법 강의 안해주나여?^^;;
좋은 스킨이 뜨니까....많은 코멘트와 찬사가......수고하셨습니다. 만도님...
나도 얼릉....멋진 스킨을.........
나도 얼릉....멋진 스킨을.........
$lenth=250;//글내용 글자수 조정
$wr_content = get_text(cut_str($row[wr_content], $lenth, '.......'));
위부분을 수정 바랍니다... 제목과 중복되는 부분이 잇어 ㅇㅗ류 날까바...
$lenth 이렇게 바꿉니다.. 제홈에서는 않나고 잇지만 혹시나 해서요...
$wr_content = get_text(cut_str($row[wr_content], $lenth, '.......'));
위부분을 수정 바랍니다... 제목과 중복되는 부분이 잇어 ㅇㅗ류 날까바...
$lenth 이렇게 바꿉니다.. 제홈에서는 않나고 잇지만 혹시나 해서요...
굳. ..
고맙습니다.
만도님.. 내 포인트 3천점 드릴께요..
관리자님 이 글 읽으시면.. 만도님에게 내 포인트 3천점 드리세요..
고맙습니다.
만도님.. 내 포인트 3천점 드릴께요..
관리자님 이 글 읽으시면.. 만도님에게 내 포인트 3천점 드리세요..
역시 만도님은 Good!! 입니다.....
업그레이드 가능할것같은데요..아래글을 참조하세요..3.0을 새로인스톨한후에살리는방법입니다.
http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&page=1&wr_id=954
http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&page=1&wr_id=954
참고로 width=해상도 가로사이즈
height=해상도 가로사이즈
myWidth= 원그림 가로사이즈
myHeight=원그림 가로사이즈
가 되겠군요...
height=해상도 가로사이즈
myWidth= 원그림 가로사이즈
myHeight=원그림 가로사이즈
가 되겠군요...
저도 스크립트 긁어다 쓴거라서
잘은 모르지만
스크립트 내용중에
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write(" self.moveTo(leftpos, toppos);\n");
위부분의 숫자를 조정허면 될것 같군요..
그리고 시작할때 작은창에서 커지는 스크립트이기 때문에..
전체적으로 뜯어고쳐야 하기때문에 저는 못할것 같군요.. 다만
시작 사이즈는
첫줄에
function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
width=10,height=10' 이부분 사이즈를 조정하면 왠만큼 되지 않을까 합니다..
잘은 모르지만
스크립트 내용중에
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write(" self.moveTo(leftpos, toppos);\n");
위부분의 숫자를 조정허면 될것 같군요..
그리고 시작할때 작은창에서 커지는 스크립트이기 때문에..
전체적으로 뜯어고쳐야 하기때문에 저는 못할것 같군요.. 다만
시작 사이즈는
첫줄에
function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
width=10,height=10' 이부분 사이즈를 조정하면 왠만큼 되지 않을까 합니다..
만도님 다 잘데는데요..
새창여는그 위치 조절 하고 싶거던요..
위치는 어디 서 조절하나요..
새창여는그 위치 조절 하고 싶거던요..
위치는 어디 서 조절하나요..
와~우! 멋지네요..ㅎㅎㅎ
오 스킨 직이네요,
바로써야 겠습니다.
최강그누보드
바로써야 겠습니다.
최강그누보드
2.65 버젼 이런거 하나 있었으면 좋으련만 ㅠ_ㅠ
2.65 에서 3.0 으로 업그레이드 할려면 거의 불가능한가요?
2.65 에서 3.0 으로 업그레이드 할려면 거의 불가능한가요?
수고 하셨습니다.... ^^ ㄱ ㅅ ㄱ ㅅ
만도님 수고 하셨습니다.
아이콘이 자주 바뀌네요^^*
잘쓸게요~~~~~~~~~
아이콘이 자주 바뀌네요^^*
잘쓸게요~~~~~~~~~

잘 쓱겠습니다. 감사합니다...^^
