![]() |
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 |
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.
|
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> |
All times are GMT. The time now is 11:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|