The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
You could use something like:
PHP Code:
|
#3
|
|||
|
|||
I thought posts per day is an already calculated variable somewhere?
|
#4
|
||||
|
||||
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.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|