방금 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>";
} //바로위에 한줄 추가
}
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 29개
나도 얼릉....멋진 스킨을.........
$wr_content = get_text(cut_str($row[wr_content], $lenth, '.......'));
위부분을 수정 바랍니다... 제목과 중복되는 부분이 잇어 ㅇㅗ류 날까바...
$lenth 이렇게 바꿉니다.. 제홈에서는 않나고 잇지만 혹시나 해서요...
고맙습니다.
만도님.. 내 포인트 3천점 드릴께요..
관리자님 이 글 읽으시면.. 만도님에게 내 포인트 3천점 드리세요..
http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&page=1&wr_id=954
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' 이부분 사이즈를 조정하면 왠만큼 되지 않을까 합니다..
새창여는그 위치 조절 하고 싶거던요..
위치는 어디 서 조절하나요..
바로써야 겠습니다.
최강그누보드
2.65 에서 3.0 으로 업그레이드 할려면 거의 불가능한가요?
아이콘이 자주 바뀌네요^^*
잘쓸게요~~~~~~~~~