The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
VB Condition based on postcount?
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: Code:
<if condition="$bbuserinfo['posts'] < 50"> <div>content</div> </if> What do i have to change to make it work? ty in advance |
#2
|
|||
|
|||
The same condition should work with vb4, but you have to change the if tags to vb4 format, like:
Code:
<vb:if condition="$bbuserinfo['posts'] < 50"> <div>content</div> </vb:if> |
#3
|
||||
|
||||
Awesome man, thank you!
1 Question though. What if i wanted to display it for users with less than X posts and guests? |
#4
|
|||
|
|||
The way you have it above should work for guests and anyone with fewer than 50 posts.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|