aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-08-21 15:58:48 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-08-21 15:58:48 +0000
commit4553293053ba5ccdd369a181adda30e6ee0159eb (patch)
tree6da41f5ca45d8ed2feadb5dbff19da3c43f03d71 /phpBB/viewforum.php
parent1332ec033fa7e4a65895a245dbbf3e6ed0377f13 (diff)
downloadforums-4553293053ba5ccdd369a181adda30e6ee0159eb.tar
forums-4553293053ba5ccdd369a181adda30e6ee0159eb.tar.gz
forums-4553293053ba5ccdd369a181adda30e6ee0159eb.tar.bz2
forums-4553293053ba5ccdd369a181adda30e6ee0159eb.tar.xz
forums-4553293053ba5ccdd369a181adda30e6ee0159eb.zip
Initial batch of colourization changes. This includes:
- schema changes for first post and last post - display in viewforum, search and ucp of first post - update of database on posting Still outstanding - display of last post git-svn-id: file:///svn/phpbb/trunk@6309 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 36f740e210..bd7c50b8d5 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -511,7 +511,9 @@ if (sizeof($topic_list))
$template->assign_block_vars('topicrow', array(
'FORUM_ID' => $forum_id,
'TOPIC_ID' => $topic_id,
- 'TOPIC_AUTHOR' => topic_topic_author($row),
+ 'TOPIC_AUTHOR' => ($row['topic_first_poster_name']) ? $row['topic_first_poster_name'] : $user->lang['GUEST'],
+ 'TOPIC_AUTHOR_COLOUR' => ($row['topic_first_poster_colour']) ? '#' . $row['topic_first_poster_colour'] : '',
+ 'TOPIC_AUTHOR_LINK' => topic_topic_author($row),
'FIRST_POST_TIME' => $user->format_date($row['topic_time']),
'LAST_POST_TIME' => $user->format_date($row['topic_last_post_time']),
'LAST_VIEW_TIME' => $user->format_date($row['topic_last_view_time']),