1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 08:17:47 +02:00

Updated to use create_date rather than date

git-svn-id: file:///svn/phpbb/trunk@227 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-05-02 00:50:27 +00:00
parent 65bf7081c1
commit 3ffd49782c
3 changed files with 26 additions and 15 deletions

View File

@@ -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", "<BR>", $message);
$message = str_replace("\n", "<br />", $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]$", "<BR>_________________<BR>" . nl2br($user_sig), $message);
$message = eregi_replace("\[addsig]$", "<br />_________________<br />" . 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,