The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
is_member_of wont work!
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 |
#2
|
||||
|
||||
is_member_of does work instead bbuserinfo doesn't !!
try this Code:
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)">......</if> |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
$bbuserinfo rather than $vbulletin->userinfo is correct - however, it could be something else depending on how the template is being called.
|
#5
|
|||
|
|||
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?
|
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
uh... this is a simple question about a template i created. where do you suggest i go ask?
|
#8
|
|||
|
|||
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. Quote:
|
#9
|
|||
|
|||
sorry, i didnt realize there were thread police here. ill move along. thanks for the help!
|
#10
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|