![]() |
why [if conditions] not working in my new template in my style ?
i've aded a new template to my vb style
and when i put [if condition] like : PHP Code:
|
It should work, what template are you putting this in?
|
Depending on where you are calling this template from, that variable may not be available.
|
You may want to try this instead (as above, it may not be available in some templates):
Code:
<if condition="$bbuserinfo['userid'] != 0"> |
Quote:
Quote:
there is template i've add it and called it in 'Fourmhome' and i want to show some contains in this template in my template 'mytemp' i write this code : [just example] PHP Code:
Quote:
i try to use this but it dosn't work for me, and what if i want to display contains to multi-userid ? [if this code work by another way] alot of thanks to all of you |
The problem is the phrase isn't available in forumhome template I dont think.
Try this Code:
<if condition="$show[member]"> |
Quote:
Code:
<if condition="in_array($vbulletin->userinfo['userid'], array(1, 2, 3))">Hi</if> |
Quote:
But i think the problem not in my code because it is just example , i was try with semple words, but the the same problem i've .. --------------- Added [DATE]1231945879[/DATE] at [TIME]1231945879[/TIME] --------------- Quote:
i try ur code mr but it didn't work for me ... what i should to do now ? |
Quote:
|
All times are GMT. The time now is 01:39 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|