PDA

View Full Version : [Un-tested alpha release] Simple view counter


Brad
11-29-2003, 10:43 AM
Author: Brad.loo

Modification info:

When installed this will add a view counter to your boards index.php page. It is very simple, on page load it pulls the current count from a text file, displays it, and updates the counter. It is restricted to index.php at this time just incase it causes problems with the board, this will be removed after testing because it only updates on index.php right now.

This is not for live boards! please only use it on your test boards until the alpha notice is removed. This is un-tested, probbly will not work correctly at this point, if it breaks your board well. Live with it.

All instructions and needed text file are in zip.

If you _want_ to use this on all pages remove:


if (THIS_SCRIPT == 'index')
{

and the last:

}

that appers right above '// end modification'. This will allow it to update when any vB page is loaded, make sure you move $vcounter to a global template is you want the counter to display on all pages (dose not effect update).

idwf
11-29-2003, 11:57 AM
urm...can you post a pic on what it will do? i dont fully understand! (dw, its probs only me, im a right retard!)

Brad
11-29-2003, 12:01 PM
urm...can you post a pic on what it will do? i dont fully understand! (dw, its probs only me, im a right retard!)
I dont have a screenshot, as I said it is un-tested.

Basicly it adds a vaiable called $vcounter that you can use in the forumhome template. $vcounter will display the number of people that have visited your forum scence the modification was installed. Like I said it is a simple view counter.

idwf
11-29-2003, 07:32 PM
:) cool. thanks