The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to check number of posts within template?
Having a strange issue. I want to change the postbit slightly depending on whether users have > 1000 posts or not. I edited to postbit legacy template, and added this code:
PHP Code:
Thanks for any suggestions. --------------- Added [DATE]1230769047[/DATE] at [TIME]1230769047[/TIME] --------------- Found a way to do it with a plug-in. Created a plug-in at the: postbit_display_start hook The plug-in has this code in it: $postnum = (int)$post[posts]; Then I changed the template to use "if $postnum<1000" instead of "if $post[posts]<1000", and it works as I wanted it to. |
#2
|
||||
|
||||
"Posts: A Lot" - I like it!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|