유용한 팁 공유 게시판
팁공유라고 해서 아주 특별하거나 기발한거 아니어도 됩니다.
자신이 제로보드를 사용하면서 생긴 자신만의 노하우나 아주 사소한 팁이어도 좋습니다.
자신에겐 아무것도 아니더라도 다른분들께는 분명 중요하고 소중한 팁이 될수 있을겁니다.
안녕하세요 LYH입니다 ^^ 제 홈에 쓰고 있는데요. 똑같이 구현하실 수 있습니다.
include/list_check.php 를 여신 후, // 제목에 링크 거는 부분; 이 빨강 소스를 찾은 다음, 아래 소스를 그 위에 넣어주세요
/* 새로운 코멘트 표시 */
$last_comment = mysql_fetch_array(mysql_query("select * from $t_comment"."_$id where parent='$data[no]' order by reg_date desc limit 1"));
$last_comment_time = $last_comment['reg_date'];
if(time()-$last_comment_time<60*60*24) $comment_num = "<img src=http://leeyounghoon.com/images/iconcommentnew.gif align='texttop'> <strong><span style='font-size:7pt;'><font face='tahoma' color=ef5900 style=\"cursor:hand\" title=\"".cut_str(stripslashes($last_comment['memo']),$textlen)."\">".$data[total_comment]."</font></span></strong>";
elseif(time()-$last_comment_time<60*60*24) $comment_num = "<img src=http://leeyounghoon.com/images/iconcommentnew.gif align='texttop'> <strong><span style='font-size:7pt;'><font face='tahoma' color=ef5900 style=\"cursor:hand\" title=\"".cut_str(stripslashes($last_comment['memo']),$textlen)."\">[".$data[total_comment]."]</font></span></strong>";
else $comment_num = "<img src=http://leeyounghoon.com/images/iconcomment.gif align='texttop'> <strong><span style='font-size:7pt;'><font color=ef5900 face='tahoma' style=\"cursor:hand\" title=\"".cut_str(stripslashes($last_comment['memo']),$textlen)."\">".$data[total_comment]."</font></span></strong>";
if($data[total_comment]==0) $comment_num="";
if($setup[use_alllist]) $view_file="zboard.php"; else $view_file="view.php";
위에 빨강 부분은 본인 주소로 변경해주세요. 파일 경로 잘 설정하시고요.
... 그런 다음 그 위쯤에 $comment_num=" ... 요게 있을겁니다. 원래 코멘트 설정 부분인데요. 이부분을 주석처리해줍니다.
//$comment_num=" 요렇게~
그런 다음 첨부파일을 다운받으셔서, 지정한 위치에 업로드 시키세요.
사진 처럼 새 코멘트가 붙으면 오렌지줄 두개가 생겨서 기존의 아래 아이콘과 구별이 됩니다.
첫번째줄에 오류나오면서 안되는구먼요.ㅠㅠ
에러나는 분들은 이렇게 해보세요. 조민님이 조언해주셨습니다.ㅎ
/* 새로운 코멘트 표시 */
$last_comment = mysql_fetch_array(mysql_query("select * from $t_comment"."_$id where parent='$data[no]' order by reg_date desc limit 1"));
위에 소스를 아래 소스로 변경하세요..
/* 새로운 코멘트 표시 */
$t_comment = "zetyx_board_comment";
$last_comment = mysql_fetch_array(mysql_query("select * from $t_comment"."_$id where parent='$data[no]' order by reg_date desc limit 1"));
*밑의 나머지 부분은 그대로 적어주시구요.
//$comment_num=" 요렇게~
에서 그 위쯤이 어디서부터 위라는건지 잘 모르겠네요.
수정하면 아래의 소스가 된다능
$t_comment = "zetyx_board_comment";
$last_comment = mysql_fetch_array(mysql_query("select * from $t_comment"."_$id where parent='$data[no]' order by reg_date desc limit 1"));
$last_comment_time = $last_comment['reg_date'];
if(time()-$last_comment_time<60*60*24) $comment_num = "<img src=images/iconcommentnew.gif align='texttop'> <strong><span style='font-size:7pt;'><font face='tahoma' color=ef5900 style=\"cursor:hand\" title=\"".cut_str(stripslashes($last_comment['memo']),$textlen)."\">".$data[total_comment]."</font></span></strong>";
elseif(time()-$last_comment_time<60*60*24) $comment_num = "<img src=images/iconcommentnew.gif align='texttop'> <strong><span style='font-size:7pt;'><font face='tahoma' color=ef5900 style=\"cursor:hand\" title=\"".cut_str(stripslashes($last_comment['memo']),$textlen)."\">[".$data[total_comment]."]</font></span></strong>";
else $comment_num = "<img src=images/iconcomment.gif align='texttop'> <strong><span style='font-size:7pt;'><font color=ef5900 face='tahoma' style=\"cursor:hand\" title=\"".cut_str(stripslashes($last_comment['memo']),$textlen)."\">".$data[total_comment]."</font></span></strong>";
if($data[total_comment]==0) $comment_num="";
if($setup[use_alllist]) $view_file="zboard.php"; else $view_file="view.php";



ㄳ ^^