vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Join member group & allow access to sub-forum. (https://vborg.vbsupport.ru/showthread.php?t=111576)

Jordan17 03-28-2006 01:08 PM

Join member group & allow access to sub-forum.
 
Lets say I have a sub-forum called TV Shows. I create a user group that members on the forum can subscribe to in the User CP by ticking a box.

When they have subscribed to this group, they will then be able to get access to the TV Show sub-forum. Otherwise, if they aren't subscribed they will not be able to see inside the thread. They will see a "You need to subscribe to this in order to view. Go to User CP and join this group" error message.

Anyway to do this?

PS. How would I set the variable so that this group that members subscribe to can check if people are within the group or not. For example, if I set up the group called Group20 and its id is 9, what would the variable clause be to check if someone is in this group...?

EG. on the nav bar....<if condition="$group['9']"> DISPLAY LINK</if>

How can I do this?


All times are GMT. The time now is 07:31 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.00945 seconds
  • Memory Usage 1,701KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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