Quote:
Originally Posted by Spikeman
Can I request that the Bug Tracker nav tab be viewable by usergroup? Right now I have setup permissions for only one usergroup to have access to the Bug Tracker however all users can se the tab in the navbar, I just want to declutter the navbar and stop users getting the message - You do not have permission to access this area.
thanks in advance.
|
No problem. You need to go into "Plugin Manager" and edit the "vBug Tracker Nav Tab" and replace the code with this:
PHP Code:
if ($vbulletin->userinfo['permissions']['vbugpermissions'] & $vbulletin->bf_ugp['vbugpermissions']['canviewbugs'])
{
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'vbugs')
{
$vbulletin->options['selectednavtab']='vBug';
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="vbugs.php?do=new">Submit Bug</a></li>
<li><a href="vbugs.php">View Bugs</a></li>
</ul> ';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="vbugs.php">vBug Tracker</a>'.$tablinks.'</li>';
}
Bob