The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Inserting a counter...
I'm trying to insert a counter somewhere within my board, but cant figure out the best place to do it.
Basically, its a single line that calls a count.php file... PHP Code:
PHP Code:
|
#2
|
|||
|
|||
Count.txt needs to be in a writable folder most likely.
|
#3
|
|||
|
|||
Its writeable, but thats not the issue.
The issue is where/what file to put the code in. count.php is seperate, but where to put the include() for it. |
#4
|
|||
|
|||
Assuming you want the counter to fire on hits to forum_home put it in the index.php. I'd put it just before the very last eval at the bottom of the file myself.
|
#5
|
|||
|
|||
My index just becomes a blank page.
|
#6
|
|||
|
|||
Now that I look at the code, I see a few issues that seem to be show stoppers. The switch statement uses $type, but $type is not set.
The output would need to be intergrated into a template to display. |
#7
|
|||
|
|||
How exactly do I do that?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|