vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Faq Page viewing for members only (https://vborg.vbsupport.ru/showthread.php?t=121703)

Aislinn 07-20-2006 09:46 PM

Faq Page viewing for members only
 
How do I make it so only members can view the faq page like the user list?

Kirk Y 07-22-2006 08:40 AM

The easy route would be to just wrap the View FAQ button with an IF Condition like:
Code:

<if condition="!$bbuserinfo[usergroupid] == 1">View FAQ</if>
You'd need to use a plugin or a code modification to prevent them from viewing the FAQ if they know the link: /faq.php or whatever.

peterska2 07-22-2006 03:54 PM

And now tell me that I am too good to you :p

Seriously, here you go. Written specially for you.

Restrict Viewing Of FAQ To Specific User Groups

Kirk Y 07-22-2006 04:02 PM

Ha ha and there's the modification I was referring to. Right on cue Kerry-Anne. :p

peterska2 07-22-2006 04:04 PM

I came, I wrote, I released ;)

It doesn't quite have the same ring to it as I came, I saw, I conquered though :p

Kirk Y 07-22-2006 04:06 PM

lol -- Caesar would be proud. ;)

Aislinn 07-23-2006 07:20 PM

*bows down* You are too good to me! Thank you so much, you rock!


All times are GMT. The time now is 10:43 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.01077 seconds
  • Memory Usage 1,715KB
  • 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
  • (1)bbcode_code_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