PDA

View Full Version : if condition - if a forum has new posts?


Black Snow
06-11-2014, 02:03 PM
I am looking for an IF condition to add to my forum where if there are unread posts, it shows image1, if not, show image2.

Something like this;

IF forum1 = new posts
Show "new" status icon
ELSE
Show "old' status icon

Thanks

tpearl5
06-11-2014, 05:31 PM
I guess Joe never figured it out either (https://vborg.vbsupport.ru/showthread.php?t=245631)!

The conditional inside threadbit to make the go to newpost link/icon is
<vb:if condition="$show['gotonewpost']">

Do you want it to work on FORUMDISPLAY ? I don't think that'll work on forumdisplay.

Black Snow
06-12-2014, 05:03 AM
I want it to display on FORUMHOME.

tpearl5
06-12-2014, 02:49 PM
I want it to display on FORUMHOME.

Try this:
<vb:if condition="$forum['statusicon'] == 'new'">

I'm not sure if that'll work outside of forumbit though.

Black Snow
06-17-2014, 07:20 AM
It's a statusicon I want to show IF there are new post. Will your statement above do this?