The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Was wondering if someone would help me out with an if statement. Here is what I need:
<if bbuser = membership usergroup then show $photo></if> Thanks, Itworx4me |
#2
|
||||
|
||||
![]() Quote:
Now. where are we trying to do this? in the postbit per user, or as a global? $post for the postbit $bbuserinfo for most other places. |
#3
|
||||
|
||||
![]() Quote:
Thanks, Itworx4me |
#4
|
||||
|
||||
![]() Quote:
($bbuserinfo, 8) |
#5
|
||||
|
||||
![]()
One last question. If I wanted to add more usergroups to see this string. Would it look like this ($bbuserinfo, 8,9,10) ????
|
#6
|
||||
|
||||
![]()
no,
<if condition="in_array(IS_MEMBER_OF($bbuserinfo, array(X,Y,Z))">$photo</if> |
#7
|
||||
|
||||
![]()
Thanks for all your help Zachery
Itworx4me |
#8
|
||||
|
||||
![]()
Hey Zach I get this error when putting this statement in the forumhome template
The following error occurred when attempting to evaluate this template: Parse error: parse error in /home/****/public_html/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 252 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. You have any ideas???? Thanks, Itworx4me |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|