The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
|||
|
|||
It should work, what template are you putting this in?
|
#3
|
||||
|
||||
Depending on where you are calling this template from, that variable may not be available.
|
#4
|
||||
|
||||
You may want to try this instead (as above, it may not be available in some templates):
Code:
<if condition="$bbuserinfo['userid'] != 0"> |
#5
|
|||
|
|||
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 |
#6
|
|||
|
|||
The problem is the phrase isn't available in forumhome template I dont think.
Try this Code:
<if condition="$show[member]"> <strong>Welcome <a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$bbuserinfo[username]</a> </strong> </if> |
#7
|
||||
|
||||
Quote:
Code:
<if condition="in_array($vbulletin->userinfo['userid'], array(1, 2, 3))">Hi</if> |
#8
|
|||
|
|||
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 ? |
#9
|
||||
|
||||
Are you sure that the template is being evaled? Is anything printing out from the template you added? Did you add it to the array of $globaltemplates in your php page?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|