mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fix bug #46865 - Add unapproved topic icon for moderators on forum list
Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9635 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ab5194ced4
commit
0d626d77bf
5 changed files with 11 additions and 3 deletions
|
@ -148,6 +148,7 @@
|
||||||
<li>[Feature] ATOM Feeds (Idea and diversed from RSS Feed 2.0 MOD (Version 1.0.8/9) by leviatan21)</li>
|
<li>[Feature] ATOM Feeds (Idea and diversed from RSS Feed 2.0 MOD (Version 1.0.8/9) by leviatan21)</li>
|
||||||
<li>[Feature] New groups option to excempt group leaders from group permissions</li>
|
<li>[Feature] New groups option to excempt group leaders from group permissions</li>
|
||||||
<li>[Feature] Add new option to disable avatars board-wide (Bug #46785 - Patch by cYbercOsmOnauT and nickvergessen)</li>
|
<li>[Feature] Add new option to disable avatars board-wide (Bug #46785 - Patch by cYbercOsmOnauT and nickvergessen)</li>
|
||||||
|
<li>[Feature] Add unapproved topic icon for moderators on forum list (Bug #46865 - Patch by nickvergessen)</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a name="v304"></a><h3>1.ii. Changes since 3.0.4</h3>
|
<a name="v304"></a><h3>1.ii. Changes since 3.0.4</h3>
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,8 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
|
||||||
$forum_tracking_info[$forum_id] = (isset($tracking_topics['f'][$forum_id])) ? (int) (base_convert($tracking_topics['f'][$forum_id], 36, 10) + $config['board_startdate']) : $user->data['user_lastmark'];
|
$forum_tracking_info[$forum_id] = (isset($tracking_topics['f'][$forum_id])) ? (int) (base_convert($tracking_topics['f'][$forum_id], 36, 10) + $config['board_startdate']) : $user->data['user_lastmark'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Count the difference of real to public topics, so we can display an information to moderators
|
||||||
|
$row['forum_topics_unapproved'] = ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] - $row['forum_topics'] : 0;
|
||||||
$row['forum_topics'] = ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] : $row['forum_topics'];
|
$row['forum_topics'] = ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] : $row['forum_topics'];
|
||||||
|
|
||||||
// Display active topics from this forum?
|
// Display active topics from this forum?
|
||||||
|
@ -212,6 +214,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
|
||||||
$subforums[$parent_id][$row['parent_id']]['children'][] = $forum_id;
|
$subforums[$parent_id][$row['parent_id']]['children'][] = $forum_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$forum_rows[$parent_id]['forum_topics_unapproved'] += $row['forum_topics_unapproved'];
|
||||||
$forum_rows[$parent_id]['forum_topics'] += $row['forum_topics'];
|
$forum_rows[$parent_id]['forum_topics'] += $row['forum_topics'];
|
||||||
|
|
||||||
// Do not list redirects in LINK Forums as Posts.
|
// Do not list redirects in LINK Forums as Posts.
|
||||||
|
@ -451,6 +454,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
|
||||||
'L_FORUM_FOLDER_ALT' => $folder_alt,
|
'L_FORUM_FOLDER_ALT' => $folder_alt,
|
||||||
'L_MODERATOR_STR' => $l_moderator,
|
'L_MODERATOR_STR' => $l_moderator,
|
||||||
|
|
||||||
|
'U_UNAPPROVED_TOPICS' => ($row['forum_topics_unapproved'] > 0) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&mode=unapproved_topics&f=' . $row['forum_id']) : '',
|
||||||
'U_VIEWFORUM' => $u_viewforum,
|
'U_VIEWFORUM' => $u_viewforum,
|
||||||
'U_LAST_POSTER' => get_username_string('profile', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
|
'U_LAST_POSTER' => get_username_string('profile', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
|
||||||
'U_LAST_POST' => $last_post_url)
|
'U_LAST_POST' => $last_post_url)
|
||||||
|
@ -473,8 +477,9 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
|
||||||
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'hash=' . generate_link_hash('global') . '&f=' . $root_data['forum_id'] . '&mark=forums') : '',
|
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'hash=' . generate_link_hash('global') . '&f=' . $root_data['forum_id'] . '&mark=forums') : '',
|
||||||
'S_HAS_SUBFORUM' => ($visible_forums) ? true : false,
|
'S_HAS_SUBFORUM' => ($visible_forums) ? true : false,
|
||||||
'L_SUBFORUM' => ($visible_forums == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS'],
|
'L_SUBFORUM' => ($visible_forums == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS'],
|
||||||
'LAST_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'))
|
'LAST_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
|
||||||
);
|
'UNAPPROVED_IMG' => $user->img('icon_topic_unapproved', 'TOPICS_UNAPPROVED'),
|
||||||
|
));
|
||||||
|
|
||||||
if ($return_moderators)
|
if ($return_moderators)
|
||||||
{
|
{
|
||||||
|
|
|
@ -602,6 +602,7 @@ $lang = array_merge($lang, array(
|
||||||
|
|
||||||
'TOPIC' => 'Topic',
|
'TOPIC' => 'Topic',
|
||||||
'TOPICS' => 'Topics',
|
'TOPICS' => 'Topics',
|
||||||
|
'TOPICS_UNAPPROVED' => 'At least one topic in this forum has not been approved.',
|
||||||
'TOPIC_ICON' => 'Topic icon',
|
'TOPIC_ICON' => 'Topic icon',
|
||||||
'TOPIC_LOCKED' => 'This topic is locked, you cannot edit posts or make further replies.',
|
'TOPIC_LOCKED' => 'This topic is locked, you cannot edit posts or make further replies.',
|
||||||
'TOPIC_LOCKED_SHORT'=> 'Topic locked',
|
'TOPIC_LOCKED_SHORT'=> 'Topic locked',
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
<dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
|
<dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
|
||||||
<dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>
|
<dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>
|
||||||
<dd class="lastpost"><span>
|
<dd class="lastpost"><span>
|
||||||
|
<!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a><!-- ENDIF -->
|
||||||
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}
|
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}
|
||||||
<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />{forumrow.LAST_POST_TIME}<!-- ELSE -->{L_NO_POSTS}<br /> <!-- ENDIF --></span>
|
<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />{forumrow.LAST_POST_TIME}<!-- ELSE -->{L_NO_POSTS}<br /> <!-- ENDIF --></span>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<td class="row2" align="center"><p class="topicdetails">{forumrow.POSTS}</p></td>
|
<td class="row2" align="center"><p class="topicdetails">{forumrow.POSTS}</p></td>
|
||||||
<td class="row2" align="center" nowrap="nowrap">
|
<td class="row2" align="center" nowrap="nowrap">
|
||||||
<!-- IF forumrow.LAST_POST_TIME -->
|
<!-- IF forumrow.LAST_POST_TIME -->
|
||||||
<p class="topicdetails">{forumrow.LAST_POST_TIME}</p>
|
<p class="topicdetails"><!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a> <!-- ENDIF -->{forumrow.LAST_POST_TIME}</p>
|
||||||
<p class="topicdetails">{forumrow.LAST_POSTER_FULL}
|
<p class="topicdetails">{forumrow.LAST_POSTER_FULL}
|
||||||
<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a><!-- ENDIF -->
|
<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a><!-- ENDIF -->
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue