vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   is_member_of Help please. (https://vborg.vbsupport.ru/showthread.php?t=174393)

lutics 03-28-2008 04:50 AM

is_member_of Help please.
 
for some reason it doesn't want to work, it either shows for everyone or for no one. This is what I have tried so far.
PHP Code:

<if condition="is_member_of($user, "567")"><li>Staff License</li></if>
<if 
condition="is_member_of($user, 5, 6, 7)"><li>Staff License</li></if>
<if 
condition="is_member_of($bbuserinfo, 5, 6, 7)"><li>Staff License</li></if>
<if 
condition="is_member_of($vbulletin->userinfo, 5, 6, 7)"><li>Staff License</li></if>
<if 
condition="is_member_of($vbulletin->userinfo, array(5, 6, 7))"><li>Staff License</li></if> 

Nothing seems to work, this is my first time working with this function. I am editing the template. MEMBERSINFO aka profile.

Any help would be much appreciated

Boofo 03-28-2008 04:56 AM

Which version of vBulletin are you using?

lutics 03-28-2008 07:11 AM

sorry umm 3.6.8 patch 2.

Michael Biddle 03-28-2008 07:13 AM

Try this:
HTML Code:

<if condition="is_member_of($vbulletin->userinfo, 5,6,7)">Staff Member</if>

Opserty 03-28-2008 09:49 AM

Which member are you trying to match? The User's Profile? or the viewing member?

lutics 03-28-2008 11:02 AM

Quote:

Originally Posted by Opserty (Post 1476619)
Which member are you trying to match? The User's Profile? or the viewing member?

User Profile.

Quote:

Originally Posted by whitemike (Post 1476552)
Try this:
HTML Code:

<if condition="is_member_of($vbulletin->userinfo, 5,6,7)">Staff Member</if>

Just tried... and it appears on every profile, so I'm guessing thats for the user logged in, which isn't want I want. Thanks anyway.

Dismounted 03-28-2008 11:44 AM

Code:

<if condition="is_member_of($userinfo, 5,6,7)">Staff Member</if>

Opserty 03-28-2008 11:51 AM

Quote:

Originally Posted by lutics (Post 1476651)
User Profile.

Ah well no wonder it wasn't working. Try and give as much information as possible in future. It will save not only us time but you too. ;)

Dismounted's reply should work.

lutics 03-28-2008 01:20 PM

ok Ill try next time. Thanks Dismounted it worked :)


All times are GMT. The time now is 08:17 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.01169 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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