vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Right column with usergroup permissions (https://vborg.vbsupport.ru/showthread.php?t=269783)

Evoir 09-06-2011 04:46 PM

Right column with usergroup permissions
 
1 Attachment(s)
vB 3.8
I want to add a right hand column in vB which I know how to do... but I want to list all the top level forums there (like 12) but have the listing respect vB usergroup permissions. For example: The list would be something like this (could be hard coded)

Staff
Board
Classroom 1
Classroom 2
etc

If you are in the Staff usergroup, your permissions on the forum allow you to see the "Staff" link that I create. How do I have vB respect those permissions on the links I put in the right column? Attaching a sketch to illustrate (ignore the part about the breadcrumb)

What code do I use for vB to show/not show depending on usergroup?

Evoir 09-06-2011 05:41 PM

OK. I didn't realize they were called Template Conditionals
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>

For anyone else trying to do this:
https://vborg.vbsupport.ru/showthrea...e+conditionals


All times are GMT. The time now is 04:10 PM.

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.01051 seconds
  • Memory Usage 1,709KB
  • 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
  • (2)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