PDA

View Full Version : Conditional Statement Question


siliconfinance
08-28-2007, 09:36 PM
For donating members, I would like to display an icon in the area of the post where the user info is displayed such as name, status, posts etc. For example, I created a new donating members usergroup: UserGroup ID 28. I use the PostBit_Legacy_Template and know exactly where I need to insert the conditional to make it work, but I have yet to succeed with writing a conditional.

If I drop myself in that group, what conditional would work to display specific content in the area of my post that contains name, status, number of posts etc?

Kirk Y
08-28-2007, 09:42 PM
<if condition="is_member_of($post,28)">Image Here</if>

siliconfinance
08-28-2007, 10:14 PM
you rock! THank you

siliconfinance
08-31-2007, 12:20 AM
Kirk, or anybody else,

How can I hyperlink the image to take someone to another page that explains what the image is?

Kirk Y
08-31-2007, 12:53 AM
<a href="mypage.php"><img src="myimage.gif" border="0" /></a>

siliconfinance
09-01-2007, 12:35 AM
Thank you again, you rock.

Now what if I want to single out a single user based on their id rather than using a usergroup?

BTW, I am using the usergroup one, but now I want to hand out an individual award.

One more question, do you happen to know whether there is a statement that can show an individual's number of posts in a single forum?

Dismounted
09-01-2007, 10:49 AM
<if condition="$post['userid'] == 1">Image Here</if>
Where 1 is the userid.