![]() |
Posts Per Day Variable in Plugin
Hello,
I'm trying to create an if dependent on posts per day - however I'm unable to implement it within the PHP. I'm fairly new to coding, so I maybe missing the mark completely. I've tried: $vbphrase[posts_per_day] $post[postsperday] $postsperday $vbulletin->userinfo['postsperday'] None of these seem to work. I am trying to implement it into the vBShop plugin in the newpost_complete.php hook. The code is as follows: PHP Code:
Cheers, Chris |
You could use something like:
PHP Code:
|
I thought posts per day is an already calculated variable somewhere?
|
It is calculated specifically for the profile page, but it is not available as a ready-made element of the $userinfo array, however the post count and join date are, and that's all you need to calculate the ratio. :D
|
Thank you Mark!
|
All times are GMT. The time now is 05:40 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:
|