vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   if membergroup question (https://vborg.vbsupport.ru/showthread.php?t=129199)

G_Gekko 10-16-2006 07:36 AM

if membergroup question
 
Is there any way I can use an if member group function on a none VB pages so that the member group that a forum member belongs to can effect what is displayed on none VB pages?

if yes, how?

RS_Jelle 10-16-2006 02:47 PM

Have a look at this tutorial to create your own vBulletin powered pages (with usergroups integration, etc.) ;)

G_Gekko 10-16-2006 07:11 PM

Thanks. Seems to be what i need. Just have to look into it a bit more to understand it..

Sarcoth 12-18-2006 04:07 PM

Wow, I'm glad I found this. It is exactly what I have been looking for.

PHP Code:

<if condition="is_member_of($bbuserinfo, 6)">
If 
in group 6show this...
<else />
...or else, 
show this.
</if> 

What's the best way to do multiple groups? Would this work?

PHP Code:

<if condition="(is_member_of($bbuserinfo, 6)) OR (is_member_of($bbuserinfo, 7))">
If 
in group 6 or 7show this...
<else />
...or else, 
show this.
</if> 

I tested that out and it appears to work and no errors. Just wondering if there is a better way.

RS_Jelle 12-19-2006 09:04 PM

You can use is_member_of($bbuserinfo, 6, 7) then. Since vB 3.5 you can check multiple usergroups like that :)


All times are GMT. The time now is 08:22 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.01075 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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