форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.6.x > Hacks, mods and scripts [3.6.x]
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
ssmol
Специалист
 
ssmol's Avatar
Default Restrict Viewing Of FAQ To Specific User Groups
1

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

Code:
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
and repace with
Code:
<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.
Attached Files
File Type: xml FAQ_permissions-plugins-36x.xml (333 Bytes, 6 views)
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 07:45 AM.


Powered by vBulletin® Version 3.0.14
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...