The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
conditional on parentid
is it possible to do a conditional on a parentid? i.e.
Code:
<if condition="($forum[parentid] == X) OR ($forum[parentid] == Y)"><img src="$stylevar[imgdir_statusicon]/$forum[forumid]/IMAGE.gif" alt="" border="0" style="display:none; filter:alpha(opacity=80); -moz-opacity: 0.6;" align="left" /></if> |
#2
|
||||
|
||||
*bump*
|
#3
|
||||
|
||||
ok cry this aint working
Code:
<if condition="($forum[parentid] == 1) OR ($forum[parentid] == 38)"><img src="images/forumhome/$forum[forumid].gif" alt="" border="0" style="display:none; filter:alpha(opacity=80); -moz-opacity: 0.6;" align="left" /></if> |
#4
|
||||
|
||||
Does $forum[parentid] parse out to anything?
|
#5
|
||||
|
||||
what do you mean? how do i check?
|
#6
|
||||
|
||||
Drop it in the template , and see if anything appears where you put it
|
#7
|
||||
|
||||
yup parses perfecty.
|
#8
|
||||
|
||||
A lil number comes out? thats a good first start ^_^
what are you trying to do with this exactly> |
#9
|
||||
|
||||
it will display an image on one of two sets of forums in the forumhome_level2_post
|
#10
|
||||
|
||||
<if condition="($forum[parentid] == 1) OR ($forum[parentid] == 38)"><img src="images/forumhome/$forum[forumid].gif" alt="" border="0" style="display:none; filter:alpha(opacity=80); -moz-opacity: 0.6;" align="left" /></if>
^_^;; i dont see why that wont work is it not displaying at all? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|