PDA

View Full Version : Post count condition...


nando99
11-26-2008, 06:15 PM
In the postbit template, I would like to show something if the post viewer has more then a certain number of posts... how can I do that?

I know I've seen it done, but I can't seem to find it....

Thanks in advance..

nando

Lynne
11-26-2008, 07:47 PM
It's been discussed here before - you need to create a plugin to grab the actual number. The number in the postbit is the formatted number and thus you can't compare it correctly to other numbers.

nando99
11-26-2008, 07:52 PM
I see.... any chance someone (Lynne, lol jp) wana help me write this plugin? Or write it for me and get compensated....

--------------- Added 1227745957 at 1227745957 ---------------

I figured it out.... lol

I'm using this and it works fine...

<if condition="$bbuserinfo['posts'] > 5"> </if>