diff --git a/phpBB/index.php b/phpBB/index.php index b2dbe59c58..adfd585707 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -127,16 +127,15 @@ if($total_categories) $topics = $forum_rows[$j]["forum_topics"]; if($forum_rows[$j]["username"] != "" && $forum_rows[$j]["post_time"] > 0) { - $last_post_time = date($date_format, $forum_rows[$j]["post_time"]); - $last_post = $last_post_time."
by "; - $last_post .= "".$forum_rows[$j]["username"].""; - $last_post .= " "; - $last_post .= "\"View"; + $last_post_time = create_date($date_format, $forum_rows[$j]["post_time"], $sys_timezone); + $last_post = $last_post_time."
by "; + $last_post .= "".$forum_rows[$j]["username"]." \"View"; } else { $last_post = "No Posts"; + $forum_rows[$j]["forum_name"] = stripslashes($forum_rows[$j]["forum_name"]); } if($row_color == "#DDDDDD") diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 91295ebc89..1205800e31 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -155,7 +155,7 @@ if($total_topics) } $topic_poster = stripslashes($topic_rowset[$x]["username"]); $views = $topic_rowset[$x]["topic_views"]; - $last_post_time = date($date_format, $topic_rowset[$x]["post_time"]); + $last_post_time = create_date($date_format, $topic_rowset[$x]["post_time"], $sys_timezone); $last_post_user = $topic_rowset[$x]["user2"]; $folder_img = ""; $template->assign_block_vars( @@ -167,7 +167,7 @@ if($total_topics) "REPLIES" => $replies, "TOPIC_TITLE" => $topic_title, "VIEWS" => $views, - "LAST_POST" => $last_post_time . "
" . $last_post_user ."")); + "LAST_POST" => $last_post_time . "
$l_by " . $last_post_user ."")); } $count = 1; diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 2f89b1e8d6..594dc97d94 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -126,7 +126,7 @@ for($x = 0; $x < $total_posts; $x++) { $poster = stripslashes($postrow[$x]["username"]); $poster_id = $postrow[$x]["user_id"]; - $post_date = date($date_format, $postrow[$x]["post_time"]); + $post_date = create_date($date_format, $postrow[$x]["post_time"], $sys_timezone); $poster_posts = $postrow[$x]["user_posts"]; $poster_from = ($postrow[$x]["user_from"]) ? "$l_from: ".$postrow[$x]["user_from"] : ""; $poster_joined = $postrow[$x]["user_regdate"]; @@ -206,22 +206,34 @@ for($x = 0; $x < $total_posts; $x++) $message = make_clickable($message); - $message = str_replace("\n", "
", $message); + $message = str_replace("\n", "
", $message); if(!($x % 2)) { - $color = "#DDDDDD"; + if(isset($theme)) + { + $color = "#".$theme['td_color1']; + } + else + { + $color = "#DDDDDD"; + } } else { - $color = "#CCCCCC"; + if(isset($theme)) + { + $color = "#".$theme['td_color2']; + } + else + { + $color = "#CCCCCC"; + } } - $message = eregi_replace("\[addsig]$", "
_________________
" . nl2br($user_sig), $message); + $message = eregi_replace("\[addsig]$", "
_________________
" . nl2br($user_sig), $message); $template->assign_block_vars("postrow", array("TOPIC_TITLE" => $topic_title, - "L_POSTED" => $l_posted, - "L_JOINED" => $l_joined, "POSTER_NAME" => $poster, "POSTER_RANK" => $poster_rank, "RANK_IMAGE" => $rank_image,