View Full Version : is_member_of wont work!
tecdady
06-04-2008, 07:02 PM
man this is driving me nuts. im using a template that is being pulled by vbadvanced cpms. i want some text that is only viewable by supporting member group, and other text for non supporting member group.
i have tryed the <if condition="is_member_of($bbuserinfo, ID1, ID2, ID3,.....)">
and it just wont work no matter what i do. can anyone give some help on this issue. thank you very much.
-chris
veenuisthebest
06-04-2008, 07:04 PM
is_member_of does work instead bbuserinfo doesn't !!
try this
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)">......</if>
refer to link in my signature for conditionals list
tecdady
06-04-2008, 07:08 PM
thanks for the fast response. ive tryed that as well. no matter what i put in there, it wont work. its very strange.
here is my code:
<if condition="is_member_of($vbulletin->userinfo, 6, 5, 22)">test</if>
im in usergroup 6 as the admin. and i see nothing when the page is loaded.
Paul M
06-04-2008, 07:10 PM
$bbuserinfo rather than $vbulletin->userinfo is correct - however, it could be something else depending on how the template is being called.
tecdady
06-04-2008, 07:16 PM
i think maybe that is the problem. is there something at the top of the template that i need to put for these conditionals to work?
Opserty
06-04-2008, 07:41 PM
Questions regarding modifications should be asked in the thread/board/site from which you downloaded.
Seeing as you are not using a default vBulletin page you need to contact the authors of the custom page on which you are using it for assistance.
tecdady
06-04-2008, 07:57 PM
uh... this is a simple question about a template i created. where do you suggest i go ask?
Opserty
06-04-2008, 08:01 PM
All templates can be affected by the PHP code around them, this doesn't sound like a template issue as your code would work fine under normal circumstances.
As for where to ask, the answer is in your initial post.
im using a template that is being pulled by vbadvanced cpms
Ask at the vBadvanced site.
tecdady
06-04-2008, 08:15 PM
sorry, i didnt realize there were thread police here. ill move along. thanks for the help!
Opserty
06-04-2008, 08:26 PM
It is a general recommendation that you post from where you downloaded the modification, it is impossible for us to know the code behind each and every modification. Therefore to make it easier and quicker for you, people are instructed to post in the modification thread as the authors are the ones who will know how to advise you best.
Regards
tecdady
06-04-2008, 09:45 PM
even thought its a template that im using with my vbadvanced, its using a vbulletin conditional statement. its a template i wrote that really has nothing to do with vbadvanced as much as it does with vbuleltin since its a vbulletin condition. but what the hell do i know. i thought maybe help was universal when it comes to something that is part of vbulletin. guess i was wrong.
Marco van Herwaarden
06-05-2008, 05:49 AM
What happens if you put the same conditional on a non-vBAdvanced page?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.