PDA

View Full Version : Forum Velocity


amykhar
07-13-2005, 10:00 PM
This silly little mod is an update of https://vborg.vbsupport.ru/showthread.php?s=&threadid=78521

It does a simple calculation of how many posts, on average, are made on your forms per hour over a 24 hour range.

At this time, it can't be a plugin because I can't figure out how to hook into the specialtemplates array before the call to global.php in forumhome.

So, it is a combo mod/plugin that's really easy to install.

Link14716
07-14-2005, 07:48 PM
Add a plugin to cache_templates (added in beta 3, IIRC):
if (THIS_SCRIPT == "index") {
$globaltemplates = array_merge($globaltemplates, array('velocity'));
}

Nice job again, Amy.

amykhar
07-14-2005, 07:50 PM
Add a plugin to cache_templates (added in beta 3, IIRC):
if (THIS_SCRIPT == "index") {
$globaltemplates = array_merge($globaltemplates, array('velocity'));
}

Nice job again, Amy.

That works with the templates, but not the specialtemplates (datastore). The datastore, from my experiments, must be set up before the call to global.php

Amy

Link14716
07-14-2005, 07:53 PM
That works with the templates, but not the specialtemplates (datastore). The datastore, from my experiments, must be set up before the call to global.php

Amy

Ah, datastore. I must have read it wrong. Yep, you need a code mod for that. I really wish they'd implement a way to add to it without file edits (since it has to be done before the plugin system).

eXtremeTim
10-27-2005, 10:35 PM
Amy was their really a reason why their was a limit on the query. in velocity.php

That seems kinda pointless since you always want it higher then the number of posts per day and its got the datestamp check in there already. ;)

Also its not keeping the record high avg. It keeps reverting it to the current one. I think I fixed this one by ordering the top with a desc.

Valithor
12-12-2005, 01:18 AM
I can't seem to get this one to work... :(

I've followed the instructions. However, there is nothing appearing in the forum index or anywhere else that I can see..