![]() |
Installed.
One question, is it possible to have it in another page e.g. online.php ? |
Yes, just do the following.
1) Change the location of the plugin 'Get Info' to global_start. 2) Add the following code where you want it displayed. Code:
<!-- Start Posts Last X Hours Hack --> |
I changed it just a little bit on my forum, so it shows something like this:
There have been x posts in the last 24 hours, which resolves in estimated average of x posts/month or x posts/year. Check it out live at: www.goldenretrieverforum.com, at the bottom of the front page. All I added was this line to xml, right above where it say: $posts_last_x_hours = construct_phrase....: PHP Code:
PHP Code:
PHP Code:
Joe |
Hack Updated!
19/09/2007 - Version 1.1 - Automatic Template Edits - Updated ReadMe |
Works in 3.7 :)
|
Thanks for a great hack Dismounted!
Could you please tell me how I could position this in another place ie. the template code edit? I'd prefer not to have it done automatically as our forum stats are custom-made to appear in the header instead with the template we are using. Cheers in advance :) |
You will need to change the plugin to run at global_start, and then place this into your header template:
Code:
<phrase 1="$posts_last_x_hours" 2="$vboptions[posts_last_x_hours_numhours]">$vbphrase[posts_last_x_hours]</phrase> |
please invent for 4.0.3!!!
|
Quote:
|
BUMP! Still waiting for a re-release for 4.0+ :)
|
All times are GMT. The time now is 02:18 PM. |
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:
|