![]() |
Cant get IF statement to work.
Can't get this to work, any ideas on how to fix it?
Code:
Code removed :P |
Try this:
Code:
<vb:if condition="is_member_of($bbuserinfo, 6)"> |
Quote:
Code:
The following error occurred when attempting to evaluate this template: Is there any way to do this through a Plugin? I'm really new to conditionals and PHP. |
Sorry, there were a few other problems. I fixed my post above.
If you'd rather do it in a plugin, you could figure out which file name you want to use and register it to the template. Then you would just need to use a template variable in the img src="", like Plugin: Code:
$file = '/images/ranks/' . $bbuserinfo['field5']; Template: Code:
<vb:if condition="is_member_of($bbuserinfo, 6)"> But there's really no difference either way. |
Quote:
|
If I'm right he can even do something like this
Code:
<vb:if condition="is_member_of($bbuserinfo, 6)"> |
Yeah, I don't know why I decided to do that in the plugin example but not suggest doing it in the template. I guess I didn't want to deal with the upper/lower case issue, then forgot about it. :confused:
|
All times are GMT. The time now is 02:03 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|