PDA

View Full Version : VB Condition based on postcount?


TheRealso0sick
05-02-2013, 12:06 PM
Hey guys!
Can you help me out here real quick?

I'm trying to implement a condition so that users with a specific postcount only can view the content.

In VB3 this code always worked for me:

<if condition="$bbuserinfo['posts'] < 50">
<div>content</div>
</if>

But in VB 4.2.0 it doesn't seem to work anymore.
What do i have to change to make it work?

ty in advance

kh99
05-02-2013, 12:17 PM
The same condition should work with vb4, but you have to change the if tags to vb4 format, like:

<vb:if condition="$bbuserinfo['posts'] < 50">
<div>content</div>
</vb:if>

TheRealso0sick
05-02-2013, 12:34 PM
Awesome man, thank you!

1 Question though.
What if i wanted to display it for users
with less than X posts and guests?

kh99
05-02-2013, 12:46 PM
Awesome man, thank you!

1 Question though.
What if i wanted to display it for users
with less than X posts and guests?

The way you have it above should work for guests and anyone with fewer than 50 posts.