The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin if / else help!
Hi,
I have this code: Code:
<if condition="$show['taglist']">$threadinfo[taglist] <else /> <if condition="$show['threadinfo']">$threadinfo[title] <else /> <if condition="$show['foruminfo']">$foruminfo[title_clean] <else /> Football </if> </if> </if> At the minute it echos the tags AND the title. How can I sort this to check for tags and if there are none use the title? Thanks |
#2
|
||||
|
||||
You aren't checking at all to see if there are any tags, all you are doing is saying if we should show them, then show them. The condition for if there are any tags to show would be:
HTML Code:
<if condition="$threadinfo[taglist]"> if there are tags, show them </if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|