The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is my <if> and < else /> conditional correct?
Code:
<if condition=$show[profilepic]"> <img src="$userinfo[profilepicurl]" height="150" width="150" /> <else /> <img src="http://xxxx.com/images/default.gif"> </if> I am certain it is my <if> conditional because if i take it out the profile pic shows as suppose to, but the current code shows both the pic and default pic. |
#2
|
|||
|
|||
Change the top line to
<if condition="$show[profilepic]"> Your missing the extra " |
#3
|
|||
|
|||
thanks, i overlooked that. But For some reason it still won't work
could it be that my Code:
<if condition="$show[profilepic]"> |
#4
|
|||
|
|||
change the variable to $userinfo[profilepicurl]
That way it checks if you have a url. If not it'll post your code |
#5
|
|||
|
|||
nothing changes. All that i get is the box with the litte red X
|
#6
|
||||
|
||||
the correct one is: $userinfo['profilepicurl']
|
#7
|
|||
|
|||
thanks for all the help fellas, works like a charm now.
|
#8
|
|||
|
|||
Not in templates
'' in plugins not templates. |
#9
|
|||
|
|||
it was actually ' . Does it matter? I added ' and it worked anyways.
|
#10
|
||||
|
||||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|