PDA

View Full Version : BIG vbstats problem


fireman
10-24-2001, 05:56 AM
ive installed it when i goto run it i get this error above vbstats.

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 159

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 165

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 162

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 186

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 148

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 139

Warning: Division by zero in /www/users/outlaw/public_html/ol/vbb/vbstats.php on line 145

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 142

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 136

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 151

Warning: Division by zero in /www/users/board/public_html/ol/vbb/vbstats.php on line 154

FWC
10-24-2001, 05:58 AM
You should post in the release thread. That is where you can expect to find help.

Bane
10-24-2001, 06:03 AM
You may consider looking at the second post in the release thread, under the heading: My vbstats shows Division by Zero repeated on the top!

This is covered in the thread, and is asked every few pages as well.

The answer: You may want to check to insure you included the vbscounter.php file in your phpinclude template.
include("./counter.php");

Good luck to you

fireman
10-24-2001, 06:08 AM
what do i do to fix it (im not good with vbb)

Bane
10-24-2001, 06:13 AM
From the new docs:

7. Be sure to add this line to your phpinclude template:
you can find you phpinclude template in your vbulletin
admin panel and in the menu templates click |edit| you
should click on the set you wish to edit and scroll down
until you see the name: phpinclude

include("vbs_counter.php");

fireman
10-24-2001, 06:17 AM
heres my template

// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();

what should it look like?

Bane
10-24-2001, 06:23 AM
// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
include("vbs_counter.php");

Admin
10-24-2001, 10:12 AM
fireman please enter your license information in your profile. Thank you.