This is a major easy little modification.
To install, import the PLUGIN XML file.
By default this stops guests, awaiting email confirmation, COPPA awaiting confirmation and banned users from being able to access it. If you wish to add additional groups, add the usergroup id number to the list inside the plugin file.
Optional Template edit.
In your navbar template, find
Код:
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
and repace with
Код:
<if condition="!in_array($bbuserinfo[usergroupid], array(1,3,4,8))"><td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td></if>
Again, if you wish to block additional usergroups from accessing it, you will need to add their usergroup id's to the array found here.
Please ensure that you get the right XML file for your version of vBulletin
Please remember to click the install button, and note that no support is provide with this modification.