PDA

View Full Version : Condition Statement


ade_dnb
10-23-2008, 06:47 PM
<if condition="is_member_of($bbuserinfo, array(5, 6, 7, 9, 11))">
<if condition="in_array($forumid, array(6,7,8,9,61,63,64,46,47,62,60,48))">
<td class="alt1" align="center"><if condition="$threadinfo['threaduserid'] == $bbuserinfo['userid']"><a href="bumpthread.php?t=$thread[threadid]"><img src="images/misc/bump.gif"</img></a><else />&nbsp;</if></td></if></if>

Can somebody tell me what im doing wrong with this piece of code?

What im trying to do is show a link with an image to thread owners that are to the usergroups listed (the first condition) in the forums listed (the second condition). The first piece works fine. Its when I add <if condition="$threadinfo['threaduserid'] == $bbuserinfo['userid']"> it doesn't work. Is $threadinfo['threaduserid'] not a valid conditional?

I am trying to use this in the threadbit template.

Lynne
10-23-2008, 07:31 PM
threaduserid is not one of the columns in the thread table. postuserid is in the table though, so maybe that will work.

ade_dnb
10-25-2008, 07:25 PM
Thank you for your help. Using postuserid worked fine and now it all works how I wanted it to.