PDA

View Full Version : I need help with the proper "if" conditional for what I'm doing


dope15gd
06-06-2007, 12:41 AM
I setup a tab system similar to what this site has. I am trying to set it up so when there is a new post in one of the forums it will change the styling so you can see there is a new post.

Right now the main forum is still on the first page. there is a tab at the top to a second set of forums, similar to this site. I'm trying to have it highlight when there is a new post. I have the css setup so I just need to enclose it in the proper <if condition="?"> so it will change when there is a new post.

I've looked around the forumdisplay template and can't seem to find the right one. Could someone help me out with this?

www.makfab.com/vbull%20questoin.jpg is how it is right now. I want to add a highlight to one tab when there is a post in a specific forum.

I hope this is clear. Please ask questions if you need me to clarify.

thanks,
Jeff

Here's the line of thought I'm trying, but of course to no avail.

<if condition="$show['newthreadlink']">
<li id="ckc"><a href="/dev/forumdisplay.php?f=4"><span>Cool Kids Club</span></a></li>
<else />
<li><a href="/dev/forumdisplay.php?f=4"><span>Cool Kids Club</span></a></li>
</if>

I'm trying to have it show one type of css style if there's a new post, while if there isn't it will show the "normal" styling.