웹진형 최근 게시물에 대한 질문입니다..

2004.09.10


먼저 님의 스킨이 아닌데도 불구하고 염치없이 질문을 드려 넘넘 죄송합니다...

스킨은 "앙셈님의 웹진형 최근게시물스킨angsem_webzine0806"입니다..앙셈님의 사이트가 폐쇄된듯 싶습니다...염치없지만 대류님정도의 실력이라면 해결해 줄수 있을거 같아서...

이분도 파인님의 스킨을 변형하여 만드신거 같습니다..

그럼 질문드리겠습니다..첨부파일이미지에 2번에 해당하는 내용입니다

첫째
최근게시물에서 이미지와 함께 내용이 출력될때는 글자가 커지는현상이 생깁니다..도저히 못잡겠습니다,그리고 첨부파일이미지를 보시면 출력되는 이미지주위에 테두리가 보이던데 테두리는 안나오고 그냥 이미지와 함께 본문만 나옵니다..


둘째
이미지가 없이 글자만 출력하고 싶은데 본문내용에 이미지없이 글을 올리면 최근게시물에서는 이미지자리에 글자가 나오지않고 테두리 사각형과 함께 배꼽이 표시됩니다..
그런데 희안하게도 이미지없이 출력될때는 글자가 정상적인 크기로 나옵니다..

원본파일을 보시면 아시겠지만 webzine_img.jpg 이미지가 없어서 그러는건데요..만들어 올리면 당연히 배꼽대신에 그림이 나옵니다만 제가 원하는것은 이미지없는 본문이면 축력될때도  이미지없이 출력하고 싶습니다..

나이먹어 공부할려니 힘이 드네요..죄송합니다만 해결해 줄수 있는지요..있다면 어디를 수정해야 하는지 알려주시면 공부하는데 큰 힘이 되겠습니다..


앙셈님의 원본파일입니다..

<?

// 자신의 계정에 맞게 설정해 주세요.

        $디비호스트 = "localhost";            //디비 호스트를 적습니다.
        $디비아이디 = "디비아이디";           // 디비아이디를 적습니다.
        $디비비밀번호 = "디비비밀번호";       // 디비비밀번호를 적습니다.
        $디비네임 = "디비네임";               // 디비네임을 적습니다.
        $제로보드경로 = "제로보드경로";       // 제로보드가 설치되어 있는 상대경로를 적습니다. 끝에 /는 넣지 마세요.
        $제목길이 = "20";                     // 최대 제목 글자수를 적습니다.
        
        // 다시한번 위 설정이 맞는지 확인하시고 나머지 부분은 손대지 마십시오.
                // 밑에 소스에서 $제로보드경로 라고 되어있는 곳에 정말로 경로를 넣지 마세요.  $제로보드경로 이 상태 고대로 놔두세요~
                // 밑에 소스에서 이미지경로 라고 되어있는 곳만 자신의 이미지를 저장할 경로에 맞게 수정하여 주시고 저장하세요~


/*
function cut_str($msg,$cut_size)
{
if($cut_size<=0) return $msg;
if(ereg("[re]",$msg)) $cut_size=$cut_size+4;
for($i=0;$i<$cut_size;$i++) if(ord($msg[$i])>127) $han++; else $eng++;
$cut_size=$cut_size+(int)$han*0.6;
$point=1;
for ($i=0;$i<strlen($msg);$i++)
{
if ($point>$cut_size) {return $pointtmp."..."};
if (ord($msg[$i])<=127)
{
$pointtmp.= $msg[$i];
if ($point%$cut_size==0) {return $pointtmp."..."};
}
else
{
if ($point%$cut_size==0) {return $pointtmp."..."};
$pointtmp.=$msg[$i].$msg[++$i];
$point++;
}
$point++;
}
return $pointtmp;
}
*/

function angtext($id, $number)

{

global $디비호스트,$디비아이디,$디비비밀번호,$디비네임,$제로보드경로,$제목길이,$올드아이콘,$뉴아이콘;
$디비접속=mysql_connect($디비호스트,$디비아이디,$디비비밀번호);
mysql_select_db($디비네임,$디비접속);
$result=mysql_query("select * from zetyx_board_$id order by no desc limit $number",$디비접속) or die(mysql_error());


while($data=mysql_fetch_array($result))

{
$name = stripslashes($data[name]);  
$data[memo] = stripslashes($data[memo]);
$data[memo]=cut_str($data[memo],72); // 최대 본문 글자수입니다. 150을 자신에 맞게 수정하세요.
$data[subject] = stripslashes($data[subject]);
$data[subject]=cut_str($data[subject],40); // 최대 제목 글자수입니다. 60을 자신에 맞게 수정하세요.
$passtime = (mktime()-$data[reg_date])/3600;
if($passtime <24) {
$data[subject] = "<img src=이미지경로/n.gif border=0 align=absmiddle> ".$data[subject]; //new 아이콘 경로를 자신에 맞게 수정하세요.
}else{
$data[subject] = $data[subject];
}

if (!stripslashes($data[file_name1]))
{
echo " <style>
A.webzine:link, A.webzine:visited {
        text-decoration:none;
        color:#424142;
        }
A.webzine:hover {
        text-decoration:underline;
        color:#0067FF;
        }
.memo {font-family:굴림;font-size:9pt;color:#6b696b;}
.finetitle {font_family:굴림;font-size:9pt; font-weight:bold}
.memo_s {font-family:돋움;font-size:9pt;color:#424142;}
table.picline {
        border-left-color:#CECFCE;
        border-left-width:1px;
        border-left-style:solid;
        border-top-color:#CECFCE;
        border-top-width:1px;
        border-top-style:solid;
        border-right-color:#CECFCE;
        border-right-width:1px;
        border-right-style:solid;
        border-bottom-color:#CECFCE;
        border-bottom-width:1px;
        border-bottom-style:solid;
        }
</style>";
echo("<table border='0' width='100%' cellpadding='0' cellspacing='0'>");
echo("<tr>");
echo("<TD colspan='2' BACKGROUND='이미지경로/dot.gif' HEIGHT='1'><SPACER TYPE='block' WIDTH='1' HEIGHT='1'></TD>");// 첨부된 dot.gif 이미지의 경로를 자신에 맞게 수정하세요
echo("</tr>");
echo("<tr>");
echo("<td width='17' style='padding-top:8px;' valign='top'><img src='이미지경로/arrow_red.gif' width='14' height='11' alt='' border='0'></td>");
echo("<td style='padding-top:8px;padding-bottom:12px;line-height:120%;'><a href='$제로보드경로/view.php?id=$id&no=$data[no]') onfocus='this.blur()' title='작성일: [".date("Y.m.d",$data[reg_date])."]' class=webzine><font  class='finetitle'>".stripslashes($data[subject])."</font></a> <font class='memo'>".stripslashes($data[memo])."</font></td>");
echo("</tr>");
echo("</table>");


}else{
echo("<table border='0' width='100%' cellpadding='0' cellspacing='0'>");
echo("<tr>");
echo("<TD colspan='2' BACKGROUND='이미지경로/dot.gif' HEIGHT='1'><SPACER TYPE='block' WIDTH='1' HEIGHT='1'></TD>");
echo("</tr>");
echo("<tr>");
echo("<td width='17' style='padding-top:8px;' valign='top'><img src='이미지경로/arrow_red.gif' width='14' height='11' alt='' border='0'></td>");
echo("<td style='padding-top:8px;padding-bottom:12px;line-height:120%;'><a href='$제로보드경로/view.php?id=$id&no=$data[no]') onfocus='this.blur()' title='작성일: [".date("Y.m.d",$data[reg_date])."]' class=webzine><font  class='finetitle'>".stripslashes($data[subject])."</font></a>  <font class='memo'>".stripslashes($data[memo])."</font></td>");
echo("</tr>");
echo("</table>");

}
//윗 부분에 %는 자신에게 맞게 수정해서 사용하셔면 더욱 깔끔합니다.
}  
}



function angpic($id, $number)

{

global $디비호스트,$디비아이디,$디비비밀번호,$디비네임,$제로보드경로,$제목길이,$올드아이콘,$뉴아이콘;
$디비접속=mysql_connect($디비호스트,$디비아이디,$디비비밀번호);
mysql_select_db($디비네임,$디비접속);
$result=mysql_query("select * from zetyx_board_$id order by no desc limit $number",$디비접속) or die(mysql_error());


while($data=mysql_fetch_array($result))

{
$name = stripslashes($data[name]);  
$data[memo] = stripslashes($data[memo]);
$data[memo]=cut_str($data[memo],158); // 최대 본문 글자수입니다. 150을 자신에 맞게 수정하세요.
$data[subject] = stripslashes($data[subject]);
$data[subject]=cut_str($data[subject],39); // 최대 제목 글자수입니다. 60을 자신에 맞게 수정하세요.
$passtime = (mktime()-$data[reg_date])/3600;
if($passtime <24) {
$data[subject] = $data[subject]."  <img src=이미지경로/new.gif border=0 align=absmiddle>"; //new 아이콘 경로를 자신에 맞게 수정하세요.
}else{
$data[subject] = $data[subject];
}

if (!stripslashes($data[file_name1]))
{
echo " <style>
A.webzine:link, A.webzine:visited {
        text-decoration:none;
        color:#424142;
        }
A.webzine:hover {
        text-decoration:underline;
        color:#0067FF;
        }
.memo {font-family:굴림;font-size:9pt;color:#6b696b;}
.finetitle {font_family:굴림;font-size:9pt; font-weight:bold}
.memo_s {font-family:돋움;font-size:9pt;color:#424142;}
table.picline {
        border-left-color:#CECFCE;
        border-left-width:1px;
        border-left-style:solid;
        border-top-color:#CECFCE;
        border-top-width:1px;
        border-top-style:solid;
        border-right-color:#CECFCE;
        border-right-width:1px;
        border-right-style:solid;
        border-bottom-color:#CECFCE;
        border-bottom-width:1px;
        border-bottom-style:solid;
        }
</style>";
echo("<table border='0' width='100%' cellpadding='0' cellspacing='0'>");
echo("<tr>");
echo("<td width='79'>");
echo("<table border='0' width='79' height='71' cellpadding='2' cellspacing='0' class='picline'>");
echo("<tr>");
echo("<td><a href=$제로보드경로/view.php?id=$id&no=$data[no]><img src='이미지경로/webzine_img.jpg' border=1 hspace=0  width=87 height=65 style='border-color:#6e6e6e'></a></td>");
echo("</tr>");
echo("</table>");
echo("</td>");
echo("<td style='padding-left:9px;'><div style='margin-bottom:3px;'><a href='$제로보드경로/view.php?id=$id&no=$data[no]') onfocus='this.blur()'  title='작성자:".stripslashes($data[name])."논설우원, 작성일: [".date("Y.m.d",$data[reg_date])."]' class=webzine><font class='finetitle'>".stripslashes($data[subject])."</font></a><br></div><font class='memo'>".stripslashes($data[memo])."</font></td>");
echo("</tr>");
echo("</table>");
echo("<img src=이미지경로/safer.gif border=0 height=8><br>");


}else{

echo("<table border='0' width='100%' cellpadding='0' cellspacing='0'>");
echo("<tr>");
echo("<td width='79'>");
echo("<table border='0' width='79' height='71' cellpadding='2' cellspacing='0' class='picline'>");
echo("<tr>");
echo("<td><a href=$제로보드경로/view.php?id=$id&no=$data[no]><img src=$제로보드경로/".stripslashes($data[file_name1])."  alt='".stripslashes($data[subject])."' border=1 hspace=0  width=87 height=65 style='border-color:#6e6e6e'></a></td>");
echo("</tr>");
echo("</table>");
echo("</td>");
echo("<td style='padding-left:9px;'><div style='margin-bottom:3px;'><a href='$제로보드경로/view.php?id=$id&no=$data[no]') onfocus='this.blur()'  title='작성자:".stripslashes($data[name])."논설우원, 작성일: [".date("Y.m.d",$data[reg_date])."]' class=webzine><font class='finetitle'>".stripslashes($data[subject])."</font></a><br></div><font class='memo'>".stripslashes($data[memo])."</font></td>");
echo("</tr>");
echo("</table>");
echo("<img src=이미지경로/safer.gif border=0 height=8><br>");

}
//윗 부분에 %는 자신에게 맞게 수정해서 사용하셔면 더욱 깔끔합니다.
}  
}


function angpic_s($id, $number)

{

global $디비호스트,$디비아이디,$디비비밀번호,$디비네임,$제로보드경로,$제목길이,$올드아이콘,$뉴아이콘;
$디비접속=mysql_connect($디비호스트,$디비아이디,$디비비밀번호);
mysql_select_db($디비네임,$디비접속);
$result=mysql_query("select * from zetyx_board_$id order by no desc limit $number",$디비접속) or die(mysql_error());


while($data=mysql_fetch_array($result))

{
$name = stripslashes($data[name]);  
$data[memo] = stripslashes($data[memo]);
$data[memo]=cut_str($data[memo],58); // 최대 본문 글자수입니다. 150을 자신에 맞게 수정하세요.
$data[subject] = stripslashes($data[subject]);
$data[subject]=cut_str($data[subject],29); // 최대 제목 글자수입니다. 60을 자신에 맞게 수정하세요.
$passtime = (mktime()-$data[reg_date])/3600;
if($passtime <24) {
$data[subject] = $data[subject]."  <img src=이미지경로/n.gif border=0 align=absmiddle>"; //new 아이콘 경로를 자신에 맞게 수정하세요.
}else{
$data[subject] = $data[subject];
}

if (!stripslashes($data[file_name1]))
{
echo " <style>
A.webzine:link, A.webzine:visited {
        text-decoration:none;
        color:#424142;
        }
A.webzine:hover {
        text-decoration:underline;
        color:#0067FF;
        }
.memo {font-family:굴림;font-size:9pt;color:#6b696b;}
.finetitle {font_family:굴림;font-size:9pt; font-weight:bold}
.memo_s {font-family:돋움;font-size:9pt;color:#424142;}
table.picline {
        border-left-color:#CECFCE;
        border-left-width:1px;
        border-left-style:solid;
        border-top-color:#CECFCE;
        border-top-width:1px;
        border-top-style:solid;
        border-right-color:#CECFCE;
        border-right-width:1px;
        border-right-style:solid;
        border-bottom-color:#CECFCE;
        border-bottom-width:1px;
        border-bottom-style:solid;
        }
</style>";
        
        echo("<Table border=0 cellspacing=0 cellpadding=0>");
        echo("<tr>");
                echo("<td width=40 valign=top><a href=$제로보드경로/view.php?id=$id&no=$data[no]><img src=이미지경로/comment_mike.jpg border=1 hspace=0 width=40 height=40 style='border-color:#6e6e6e'></a></td>");
                
                echo("<td width=100% style=padding-left:5px; valign=middle><div style='margin-bottom:1px;'><a href='$제로보드경로/view.php?id=$id&no=$data[no]') onfocus='this.blur()'  title='작성자:".stripslashes($data[memo])."]'  class=webzine><font face=돋움>".stripslashes($data[subject])."</font></a><br></div><font class='memo_s'>".stripslashes($data[name])."논썰우원 [".date("m.d",$data[reg_date])."]</font></td>");
        echo("</tr>");
        echo("<tr><td height=4></td></tr>");
        echo("</table>");
echo("<img src=이미지경로/safer.gif border=0 height=3><br>");

}else{

        echo("<Table border=0 cellspacing=0 cellpadding=0>");
        echo("<tr>");
                echo("<td width=40 valign=top><a href=$제로보드경로/view.php?id=$id&no=$data[no]><img src=$제로보드경로/".stripslashes($data[file_name1])."  alt='".stripslashes($data[subject])."' border=1 hspace=0 width=40 height=40 style='border-color:#6e6e6e'></a></td>");
                
                echo("<td width=100% style=padding-left:5px; valign=middle><div style='margin-bottom:1px;'><a href='$제로보드경로/view.php?id=$id&no=$data[no]') onfocus='this.blur()'  title='".stripslashes($data[memo])."'  class=webzine><font face=돋움>".stripslashes($data[subject])."</font></a><br></div><font class='memo_s'>".stripslashes($data[name])."논썰우원 [".date("m.d",$data[reg_date])."]</font></td>");
        echo("</tr>");
        echo("<tr><td height=4></td></tr>");
        echo("</table>");
echo("<img src=이미지경로/safer.gif border=0 height=3><br>");

}
//윗 부분에 %는 자신에게 맞게 수정해서 사용하셔면 더욱 깔끔합니다.
}  
}

  • 대류 2004.09.10 21:46
    저도 초보라 직접 사용해보지 않고 소스만 보고 쉽게 문제를 해결하기는 힘듭니다.
    대략적으로 설명드리자면,
    소슥의 아래쪽에 보면 " font face=돋움 " 이런 부분이 두 군데 있습니다.
    둘다 font class='finetitle' 이렇게 바꿔보시기 바랍니다.

    그리고 이미지가 없을 때 처리하는 구문은 포함되지 않은 것 같습니다.
    제가 배포한 것을 사용하시던지 파인님의 vol.9 버젼을 사용하시던지 해보세요...

List of Articles
번호 제목 글쓴이 날짜 조회 수
1292 질문이있는데요... Sverd 2003.01.24 6721
1291 안녕하세혀? ^0^;; 음악태그에 관해서..(인사차질문 ^^) 2 rulrulara 2003.01.24 6603
1290 안녕하세요... 홍석만 2003.01.24 6590
1289 근데요..... 1 홍석만 2003.01.24 4894
1288 저기요.... 정혜린 2003.01.25 4941
1287 이미지 저장을 완벽하게 막는 방법은 없을까요 ? 1 박제현 2003.01.31 4726
1286 안녕하세요~^^ 1 이옥현 2003.02.03 6765
1285 홈피 테두리 사이즈는 어케 조정하는지요? 2 정성희 2003.02.05 4244
1284 wo.to 같은 주소 짧게 해주는곳 중에 2 루팡30 2003.02.06 3255
1283 넘 간단한 질문인가..ㅡㅡ;게시판에 관해.. 1 팔콘213 2003.02.07 2884
1282 최근게시물... 2 yjylove 2003.02.08 2935
1281 최근게시물에 관한 질문입니다~!! 제발 필독!! 2 『PDS.K』 2003.02.09 3380
1280 게시판넣을때 .. 3 오유 2003.02.09 3003
1279 스킨질문~ 1 물고기 2003.02.10 2269
1278 도와주세요..최근게시물.. 2 yjylove 2003.02.11 2742
1277 최근게시물 제목 질문 ! 꼭 좀 ~ 1 아짱이 2003.02.11 2239
1276 최근 게시물 스킨에서 날짜 모양 바꾸는 법 좀 알려주세요 1 이덕수 2003.02.14 2224
1275 나모에 클립아트가 없어요(-_-;;) 1 우라누스03 2003.02.19 2041
1274 노프레임첫페이지에서 일반게시물 출력 -_-;; 2 하종근 2003.02.19 14
1273 최근게시물때문에요. 2 음.. 2003.02.19 2006
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 65 Next
/ 65