PDA

View Full Version : conditional on parentid


sabret00the
02-09-2004, 07:00 PM
is it possible to do a conditional on a parentid? i.e.
<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>

sabret00the
02-10-2004, 01:00 PM
*bump*

sabret00the
02-10-2004, 09:16 PM
ok cry this aint working
<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>

it's in the forumhome_level2_nopost template

Zachery
02-10-2004, 09:59 PM
Does $forum[parentid] parse out to anything?

sabret00the
02-10-2004, 10:00 PM
what do you mean? how do i check?

Zachery
02-10-2004, 10:01 PM
Drop it in the template , and see if anything appears where you put it ;)

sabret00the
02-10-2004, 10:02 PM
yup parses perfecty.

Zachery
02-10-2004, 10:04 PM
A lil number comes out? thats a good first start ^_^

what are you trying to do with this exactly>

sabret00the
02-10-2004, 10:07 PM
it will display an image on one of two sets of forums in the forumhome_level2_post

Zachery
02-10-2004, 10:15 PM
<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?

sabret00the
02-10-2004, 10:17 PM
not at all :(

sabret00the
02-10-2004, 10:22 PM
found the problem, just had to remove display:none from the style definitions :)

Zachery
02-10-2004, 10:28 PM
hehe ^_^ glad you got it fixed