1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

Some updates to modcp to show the topic type and correct folder icons

git-svn-id: file:///svn/phpbb/trunk@1259 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-11-03 01:12:54 +00:00
parent 167b1a536b
commit 2297465c60
3 changed files with 26 additions and 13 deletions

View File

@ -995,7 +995,7 @@ switch($mode)
WHERE t.forum_id = $forum_id
AND t.topic_poster = u.user_id
AND p.post_id = t.topic_last_post_id
AND t.topic_type <> " . TOPIC_MOVED . "
AND t.topic_status <> " . TOPIC_MOVED . "
ORDER BY t.topic_type DESC, p.post_time DESC
LIMIT $start, " . $board_config['topics_per_page'];
@ -1028,20 +1028,32 @@ switch($mode)
$folder_image = "<img src=\"" . $images['folder_locked'] . "\" alt=\"Topic Locked\">";
}
else
{
if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE )
{
$folder_image = "<img src=\"" . $images['folder_announce'] . "\">";
}
else if( $topic_rowset[$i]['topic_type'] == POST_STICKY )
{
$folder_image = "<img src=\"" . $images['folder_sticky'] . "\">";
}
else
{
$folder_image = "<img src=\"" . $images['folder'] . "\">";
}
}
$topic_id = $topic_rowset[$i]['topic_id'];
$topic_type = $topic_rowset[$i]['topic_type'];
if( $topic_rowset[$i]['topic_type'] == POST_STICKY )
{
$topic_type = $lang['Topic_Sticky'] . " ";
}
else if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE )
if($topic_type == POST_ANNOUNCE)
{
$topic_type = $lang['Topic_Announcement'] . " ";
}
else if($topic_type == POST_STICKY)
{
$topic_type = $lang['Topic_Sticky'] . " ";
}
else
{
$topic_type = "";

View File

@ -23,7 +23,7 @@
<!-- BEGIN topicrow -->
<tr>
<td class="row1" align="center" valign="middle">{topicrow.FOLDER_IMG}</td>
<td class="row1">&nbsp;<span class="topictitle"><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span></td>
<td class="row1">&nbsp;<span class="topictitle">{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row1" align="center" valign="middle"><span class="postdetails">{topicrow.LAST_POST}</span></td>
<td class="row2" align="center" valign="middle">

View File

@ -431,7 +431,8 @@ if($total_topics)
}
else
{
$topic_type = ""; }
$topic_type = "";
}
if( $topic_rowset[$i]['topic_vote'] )
{