vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Making An FAQ Top Level Item Only Visible To Certain Usergroups (https://vborg.vbsupport.ru/showthread.php?t=324377)

HM666 02-05-2017 06:28 PM

Making An FAQ Top Level Item Only Visible To Certain Usergroups
 
Is there a way to make a top level FAQ item only visible to certain usergroups? For example, I'd like to create a FAQ for staff only where regular members could not see the info and only the usergroups that are deemed as staff would be able to see that FAQ item. Is this possible or does anyone know of a mod that already is out there that allows for this?

Kane@airrifle 02-05-2017 06:53 PM

Assuming you will integrating the FAQ into Vbulletin;

You would limit viewing rights to specific user groups like so:
<vb:if condition="is_member_of($bbuserinfo, 5,6,7)">

Substitute the comma separated numbers with the user group numbers you want to grant the rights to.

HM666 02-05-2017 10:05 PM

Quote:

Originally Posted by Kane@airrifle (Post 2581901)
Assuming you will integrating the FAQ into Vbulletin;

You would limit viewing rights to specific user groups like so:
<vb:if condition="is_member_of($bbuserinfo, 5,6,7)">

Substitute the comma separated numbers with the user group numbers you want to grant the rights to.

I'm talking about using the built in vBulletin FAQ. I wanted to limit the FAQ system that comes installed already.

Paul M 02-06-2017 11:56 AM

That isnt possible without a modification, and I have never seen one that would do that.

(In fact, I dont think Ive ever seen a modification for anything related to the FAQ).

HM666 02-06-2017 12:50 PM

Quote:

Originally Posted by Paul M (Post 2581943)
That isnt possible without a modification, and I have never seen one that would do that.

(In fact, I dont think Ive ever seen a modification for anything related to the FAQ).

Yeah me either, but I was hoping that maybe someone knew of something of that nature. Well guess I go with plan B and just put that info into threads in the private admin section of the forum.

MarkFL 02-28-2017 03:28 AM

1 Attachment(s)
Hello Len,

I've put together a simple mod that does what you're after. Please let me know if it fits the bill, and if you'd like any additional features. :)

HM666 02-28-2017 10:36 AM

Quote:

Originally Posted by MarkFL (Post 2582980)
Hello Len,

I've put together a simple mod that does what you're after. Please let me know if it fits the bill, and if you'd like any additional features. :)

Awesome! Thanks Mark will give it a go! Just a side note, I'll be moving so I probably will not test it out until around March 7th.


All times are GMT. The time now is 05:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01012 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete