Sofia
05-30-2009, 10:00 PM
3.7.x
This mod allows you to add in the navbar a dropdown menu with modcp links.
This menu is (of course) only available for admins and moderators
It appears only for moderators who have mod link in the footer.
http://www.picdo.net/Fichiers/f3628fb9df13f4d93333616ab9e33ca1/1.png
Installation
In the template navbar (or header if you've a customized style with navbar in the header template)
Find:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase</a></td>
</if>Add above:
<if condition="$show['modcplink']"><td id="mod" class="vbmenu_control"><a href="$modcpdir/index.php" accesskey="4" rel="nofollow">Mod</a> <script type="text/javascript"> vbmenu_register("mod"); </script></td></if>
[U]In the template Navbar (or Header),
Find:
<!-- / PAGENAV POPUP -->Add below:
<!-- / Mod menu -->
<if condition="$show['modcplink']">
<div class="vbmenu_popup" id="mod_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Announcements</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/announcement.php?do=add">Post New Announcement</a></td>
</tr>
<tr>
<td class="thead">Moderation</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=posts">Moderate Threads</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=posts#posts">Moderate Posts</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=attachments">Moderate Attachments</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=events">Moderate Events</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=messages">Moderate Visitor Messages</a></td>
</tr>
<tr>
<td class="thead">Users</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/user.php?do=find">Search for Users</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/banning.php?do=banuser">Ban Users</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/banning.php?do=modify">View Banned Users</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/user.php?do=doips">Search IP Addresses</a></td>
</tr>
</table>
</div></if>
<!-- / Mod menu -->
This mod allows you to add in the navbar a dropdown menu with modcp links.
This menu is (of course) only available for admins and moderators
It appears only for moderators who have mod link in the footer.
http://www.picdo.net/Fichiers/f3628fb9df13f4d93333616ab9e33ca1/1.png
Installation
In the template navbar (or header if you've a customized style with navbar in the header template)
Find:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase</a></td>
</if>Add above:
<if condition="$show['modcplink']"><td id="mod" class="vbmenu_control"><a href="$modcpdir/index.php" accesskey="4" rel="nofollow">Mod</a> <script type="text/javascript"> vbmenu_register("mod"); </script></td></if>
[U]In the template Navbar (or Header),
Find:
<!-- / PAGENAV POPUP -->Add below:
<!-- / Mod menu -->
<if condition="$show['modcplink']">
<div class="vbmenu_popup" id="mod_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Announcements</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/announcement.php?do=add">Post New Announcement</a></td>
</tr>
<tr>
<td class="thead">Moderation</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=posts">Moderate Threads</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=posts#posts">Moderate Posts</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=attachments">Moderate Attachments</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=events">Moderate Events</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/moderate.php?do=messages">Moderate Visitor Messages</a></td>
</tr>
<tr>
<td class="thead">Users</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/user.php?do=find">Search for Users</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/banning.php?do=banuser">Ban Users</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/banning.php?do=modify">View Banned Users</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/user.php?do=doips">Search IP Addresses</a></td>
</tr>
</table>
</div></if>
<!-- / Mod menu -->