아무리 해봐도 안됩니다. 휴.... 정보
아무리 해봐도 안됩니다. 휴....본문
config.php================
// 서버의 시간과 실제 사용하는 시간이 틀린 경우 수정하세요.
// 하루는 86400 초입니다. 1시간은 3600초
// 6시간이 빠른 경우 time() + (3600 * 6);
// 6시간이 느린 경우 time() - (3600 * 6);
$g4['server_time'] = time() + (3600 * 8);
$g4['time_ymd'] = date("Y-m-d", $g4['server_time']);
$g4['time_his'] = date("H:i:s", $g4['server_time']);
$g4['time_ymdhis'] = date("Y-m-d H:i:s", $g4['server_time']);
8시간 차이로... time() + (3600 * 8); 이렇게
수정했습니다 만....
========================
tail.php==============
<?if($select_right){?>
<td width="<?=$right_width?>" align="center" valign="top" >
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" >
<tr><td><?=banner_sero("우측배너1")?></td></tr>
<tr><td><?=latest_all("", "실시간 최신글", "5", "22", "bn_id", "" ,"60","0");//
(스킨,타이틀제목, 출력수량, 제목길이, 정렬순서-wr_hit bn_id , 확장옵션, 검색시작일, 검색종료일)?></td></tr>
<tr><td height="5"></td></tr>
<tr><td><?=latest_photo("", "최신포토갤러리", "4", "12", "bf_datetime", "72*48*2"
,"60", "0");//(스킨, 타이틀제목, 출력수량, 제목길이, 정렬순서, "가로사이즈*세로사이즈*출력수량, 검색시작일,
검색종료일")?></td></tr>
<tr><td height="5"></td></tr>
<tr><td><?=latest_all("", "지난주 시선집중", "8", "22", "wr_hit", "" ,"14","7");//
(스킨,타이틀제목, 출력수량, 제목길이, 정렬순서-wr_hit bn_id , 확장옵션, 검색시작일, 검색종료일)?></td></tr>
<tr><td height="5"></td></tr>
<tr><td><?=latest_photo("", "주간포토", "2", "12", "bf_datetime", "72*48*2" ,"120",
"3");//(스킨, 타이틀제목, 출력수량, 제목길이, 정렬순서, "가로사이즈*세로사이즈*출력수량, 검색시작일, 검색종료일")?></td></tr>
<tr><td height="5"></td></tr>
<tr><td><? echo if_conf_pro("8", "5", $show, "", $options="$gr_id"); //게시판
환경설정에서 메인 노출 8 선택시?></td></tr>
===========================
수정후...시간은 딱 맞지만요....
메인 실시간 최신글이 올라안갑니다....
어떻게 어디로 손대야 하는지요?
부탁드립니다...
http://bdkorea.hosting.paran.com/PL (학습용)
댓글 전체
기본적인 것은 여기부터 살펴 봐야겠지만......
latest_all에서 시각과 관련된 부분도
config.php처럼 수정을 해야겠네요.
각각의 latest_??? 프로그램 소스를 올리시면
더 빠른 답변을 얻으실 수 있습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$c_w = 7;
$c_h = 7;
$t_h = 27;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="<?=$c_w?>" height="<?=$t_h?>"><img src="<?=$latest_skin_path?>/img/line_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/line_2.gif">
<div style="padding:2px;">
<strong><a href='#'><?=$subject_name?></a></strong>
</div>
</td>
<td width="<?=$c_w?>" height="<?=$t_h?>"><img src="<?=$latest_skin_path?>/img/line_3.gif" ></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/line_4.gif" width="<?=$c_w?>" ></td>
<td>
<table width=100% cellpadding=0 cellspacing=0>
<?
for ($i=1;$list = sql_fetch_array($result);$i++)
{
$wr_subject = cut_str($list[wr_subject], $subject_len);
$list_href = "$g4[bbs_path]/board.php?bo_table={$list[bo_table]}&wr_id={$list[wr_id]}";
?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/hit_<?=$i?>.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list_href}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$wr_subject}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$wr_subject}</font>";
echo "</a>";
echo "(".$list[wr_hit].")"
?></td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>
<? if ($total_count == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
</td>
<td background="<?=$latest_skin_path?>/img/line_5.gif" width="<?=$c_w?>" ></td>
</tr>
<tr>
<td width="<?=$c_w?>" height="<?=$c_h?>"><img src="<?=$latest_skin_path?>/img/line_6.gif" ></td>
<td background="<?=$latest_skin_path?>/img/line_7.gif" height="<?=$c_h?>"></td>
<td width="<?=$c_w?>" height="<?=$c_h?>"><img src="<?=$latest_skin_path?>/img/line_8.gif" ></td>
</tr>
</table>
lib -> latest.lib.php //
<?
if (!defined('_GNUBOARD_')) exit;
// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
global $g4;
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/basic";
$list = array();
$sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++)
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
?>
latest_all에서 시각과 관련된 부분도
config.php처럼 수정을 해야겠네요... 위에 소스 말씀하는겁니까? 잘 모르겠네요...
수고하세요....