The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Conditional Help
Hello,
I would like to be able to show something in a template only to users who have over 10 posts. How could this be most easily done? I was thinking a possible tempalte conditional? Many Thanks |
#2
|
||||
|
||||
In some templates, the post count is already available to you (like in the postbit and postbit_legacy templates) and so it would be very easy to do an "if" conditional based on the postcount. However, the users postcount is not available for use in all pages and so you may have to do a query in the php first.
|
#3
|
||||
|
||||
The user's userinfo is available in every template (atleast every I can think of). Use this:
Code:
<if condition="$bbuserinfo['postcount'] >= 10">CODE HERE</if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|