mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00: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:
parent
65bf7081c1
commit
3ffd49782c
3 changed files with 26 additions and 15 deletions
|
@ -127,16 +127,15 @@ if($total_categories)
|
||||||
$topics = $forum_rows[$j]["forum_topics"];
|
$topics = $forum_rows[$j]["forum_topics"];
|
||||||
if($forum_rows[$j]["username"] != "" && $forum_rows[$j]["post_time"] > 0)
|
if($forum_rows[$j]["username"] != "" && $forum_rows[$j]["post_time"] > 0)
|
||||||
{
|
{
|
||||||
$last_post_time = date($date_format, $forum_rows[$j]["post_time"]);
|
$last_post_time = create_date($date_format, $forum_rows[$j]["post_time"], $sys_timezone);
|
||||||
$last_post = $last_post_time."<br>by ";
|
$last_post = $last_post_time."<br>by ";
|
||||||
$last_post .= "<a href=\"profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$forum_rows[$j]["user_id"];
|
$last_post .= "<a href=\"profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$forum_rows[$j]["user_id"];
|
||||||
$last_post .= "\">".$forum_rows[$j]["username"]."</a>";
|
$last_post .= "\">".$forum_rows[$j]["username"]."</a> <a href=\"viewtopic.".$phpEx."?t=".$forum_rows[$j]['topic_id']."\"><img src=\"images/latest_reply.gif\" width=\"20\" height=\"11\" border=\"0\" alt=\"View Latest Post\"></a>";
|
||||||
$last_post .= " <a href=\"viewtopic.".$phpEx."?t=".$forum_rows[$j]['topic_id']."\">";
|
|
||||||
$last_post .= "<img src=\"images/last_post_icon.gif\" width=\"15\" height=\"10\" border=\"0\" alt=\"View Latest Post\"></a>";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$last_post = "No Posts";
|
$last_post = "No Posts";
|
||||||
|
$forum_rows[$j]["forum_name"] = stripslashes($forum_rows[$j]["forum_name"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($row_color == "#DDDDDD")
|
if($row_color == "#DDDDDD")
|
||||||
|
|
|
@ -155,7 +155,7 @@ if($total_topics)
|
||||||
}
|
}
|
||||||
$topic_poster = stripslashes($topic_rowset[$x]["username"]);
|
$topic_poster = stripslashes($topic_rowset[$x]["username"]);
|
||||||
$views = $topic_rowset[$x]["topic_views"];
|
$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"];
|
$last_post_user = $topic_rowset[$x]["user2"];
|
||||||
$folder_img = "<img src=\"images/folder.gif\">";
|
$folder_img = "<img src=\"images/folder.gif\">";
|
||||||
$template->assign_block_vars(
|
$template->assign_block_vars(
|
||||||
|
@ -167,7 +167,7 @@ if($total_topics)
|
||||||
"REPLIES" => $replies,
|
"REPLIES" => $replies,
|
||||||
"TOPIC_TITLE" => $topic_title,
|
"TOPIC_TITLE" => $topic_title,
|
||||||
"VIEWS" => $views,
|
"VIEWS" => $views,
|
||||||
"LAST_POST" => $last_post_time . "<br><a href=\"profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$topic_rowset[$x]["id2"]."\">" . $last_post_user ."</a>"));
|
"LAST_POST" => $last_post_time . "<br />$l_by <a href=\"profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$topic_rowset[$x]["id2"]."\">" . $last_post_user ."</a>"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$count = 1;
|
$count = 1;
|
||||||
|
|
|
@ -126,7 +126,7 @@ for($x = 0; $x < $total_posts; $x++)
|
||||||
{
|
{
|
||||||
$poster = stripslashes($postrow[$x]["username"]);
|
$poster = stripslashes($postrow[$x]["username"]);
|
||||||
$poster_id = $postrow[$x]["user_id"];
|
$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_posts = $postrow[$x]["user_posts"];
|
||||||
$poster_from = ($postrow[$x]["user_from"]) ? "$l_from: ".$postrow[$x]["user_from"] : "";
|
$poster_from = ($postrow[$x]["user_from"]) ? "$l_from: ".$postrow[$x]["user_from"] : "";
|
||||||
$poster_joined = $postrow[$x]["user_regdate"];
|
$poster_joined = $postrow[$x]["user_regdate"];
|
||||||
|
@ -206,22 +206,34 @@ for($x = 0; $x < $total_posts; $x++)
|
||||||
|
|
||||||
$message = make_clickable($message);
|
$message = make_clickable($message);
|
||||||
|
|
||||||
$message = str_replace("\n", "<BR>", $message);
|
$message = str_replace("\n", "<br />", $message);
|
||||||
|
|
||||||
if(!($x % 2))
|
if(!($x % 2))
|
||||||
|
{
|
||||||
|
if(isset($theme))
|
||||||
|
{
|
||||||
|
$color = "#".$theme['td_color1'];
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
$color = "#DDDDDD";
|
$color = "#DDDDDD";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(isset($theme))
|
||||||
|
{
|
||||||
|
$color = "#".$theme['td_color2'];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$color = "#CCCCCC";
|
$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,
|
$template->assign_block_vars("postrow", array("TOPIC_TITLE" => $topic_title,
|
||||||
"L_POSTED" => $l_posted,
|
|
||||||
"L_JOINED" => $l_joined,
|
|
||||||
"POSTER_NAME" => $poster,
|
"POSTER_NAME" => $poster,
|
||||||
"POSTER_RANK" => $poster_rank,
|
"POSTER_RANK" => $poster_rank,
|
||||||
"RANK_IMAGE" => $rank_image,
|
"RANK_IMAGE" => $rank_image,
|
||||||
|
|
Loading…
Add table
Reference in a new issue