View Full Version : FAQ viewable by user/usergroup only?
ghost.cimmeria
05-25-2010, 11:48 AM
Can the FAQ itself, or individual pages/parents, be made viewable only by registered members/certain usergroups? I am having difficulty searching the forums for this information, as the search term "faq" really undermines the search itself. :confused:
Thank you for your time.
Marco van Herwaarden
05-25-2010, 11:54 AM
No the FAQ is not permission based.
ghost.cimmeria
05-25-2010, 11:56 AM
No the FAQ is not permission based.
Is there not a manual way, outside of UI permissions settings, to add in this requirement?
I've used this, for example, on other sections:
<if condition="$bbuserinfo['userid']">
...content...
</if>
--------------- Added 1274795136 at 1274795136 ---------------
I wrapped the faq.php (per style/template) with
right after the $header / $navbar
<if condition="(in_array($vbulletin->userinfo['usergroupid'], array(x,x,x)))">
and this right above the $footer
</if>
Seems to work, but it's all-or-nothing. Wondering if I can somehow get it to a per-FAQ-entry level. Any suggestions?
Lynne
05-25-2010, 02:06 PM
I think you would need a few plugins. Look at faq.php and you'll see the different hooks available. You'll want to hook into any query and not allow searching of that particular faq item if it is that usergroup and also not display that faq item if it is that usergroup.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.