![]() |
Bane, and everyone else who posted help along the way on this thread
THANK YOU! This was an easy install and my members LOVE it!! Than you Thank you Thank you!!! |
Thanks. :) Quick Q though: Is there an easy way to reset it? MY forum isn't open to the public yet and I'll want to reset it when it goes live.
Thanks again on the nice hack. :D - Dart |
Great job, Bane!! I just installed it with the 2.2.0 mods and it worked perfectly. :)
|
Thanks Bane.
Until 3 weeks ago, I knew little about html, php etc. Then bought vBulletin, have now just installed your hack and it works brilliantly first time. We are now running a UK government online consultation without a problem and can provide them with excellent stats. Thanks again |
Said it before, but this is great! Thanks! :D
|
I get the following error at the top of my vbstats.php page.
Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 159 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 165 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 162 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 186 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 148 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 139 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 145 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 142 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 136 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 151 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 154 Any help would be great. Thanks again |
I think that's because you didn't <? include("vbs_counter.php"); ?> in your phpinclude header.
Bane, any idea on when you'll be releasing the new version with 2.2.0 compatibility, as well as new features? |
lol now I get:
Parse error: parse error in /www/htdocs/forums/global.php(274) : eval()'d code on line 6 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 159 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 165 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 162 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 186 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 148 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 139 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 145 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 142 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 136 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 151 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 154 ** Also it does work with 2.2, it works with mine... Kind of.. But others have it running on their 2.2 forums. |
I don't know if it matters, but my phpinclude only has:
include("vbs_counter.php"); added to it. |
Sorry, should've been more clear. You don't throw in the <??>, I just habitually did that because its php code :)
|
Well I got rid of one problem, thanks... but still have this.
Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 159 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 165 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 162 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 186 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 148 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 139 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 145 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 142 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 136 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 151 Warning: Division by zero in /www/htdocs/forums/vbstats.php on line 154 Any help would be great.. |
LuBi make sure that you add
include("vbs_counter.php"); to the php include template. That error springs from having no entries in the database. DarkReaper I have been slacking a little due to some personal issues that are being dealt with atm. This is still on my to do list, it just had to be moved back a bit to make way for some paying projects as the fundage was running awful low. As soon as Im caught up there will be a new release, I havent given up on vbStats. |
Quote:
|
Something strange happened. All my vbstat templates are gone. I haven't made any changes yet when I checked them today they were gone from all my style sets?
What could have caused this? And more importantly, how do I get them back? I'm hesitant to tun the installation again because I don't want duplicate tables in my database. |
Not sure what would set them missing (unless you reuploaded the vb default style) but to get them back run the install again and select [UPGRADE]
|
No - no changes to the styles. The only thing I changed was a bug-fix test of template.php. However reinstalling the original template.php did not bring them back.
|
Thanks - the 'upgrade' worked! :)
|
Great Hack!!!
Just installed using only the code in the zipfile using 2.2.0. The only time I ran into slight problems was with the code to replace for admin/index.php. I just threw it inbetween the Forum Home and Forum Options and all seems to work great. One question. Where/how would I edit the footer to include the stats on the main index? Thanks for a great hack!! |
Quote:
<a href="vbstats.php?s=$session[sessionhash]"><smallfont>Statistics</smallfont></a> anywhere you want in your footer template. You can add any enhancements like making it bold. |
As I said before the hack is great - just some questions on it:
1) Excuse my ignorance but what does Activity Level represent? 2) On forum stats I have over 300 views this week and going up all the time but on views in last 24 hours it shows 0 even though total views continues to increase - is this something different? 3) Is it possible to insert some code to find out how many different people viewed the site over a set period of time (even better who viewed the site)? cheers |
Quote:
TIA! |
Quote:
http://www.swforums.net/forum |
Quote:
After I added that statement, it all works fine. BTW: Your DOCS Install.txt file is vague on this issue. It just says, "Add this statement to your phpinclude template"..... This, I think, is where people got a little lost. I know I did. I was looking for a file the whole time. [m] |
Quote:
|
Excellent hack!!! working great on both my old 2.0.3 and my new 2.2.0...
Much appreciated. |
ok I'm having a slight problem trying to add the relevant code to my forumhome template. I copy the appropriate code I want from the vbstats templates into the forumhome template where I want it. It displays correctly, links and all, but I get no totals for any fields except threads, members, and posts, the rest are empty. I have put the vbcounter... in the phpinclude template also and if I goto vbstats.php all the totals are there.
|
You need the corresponding code from the vbstats.php file added in as well if you wish to have that found
|
So look at the variables in the source and put them in the template?
|
No, you would have to hack them into the index.php if you want it to show on forumhome.
What are you trying to include there? |
Member Stats, Forum Stats and Last 24 Hours. I have everything showing up except for the totals. All the text and tables are there. I just don't know what to grab from vbstats.php
|
Quote:
|
Well when I grab the code I want from vbstats and add it just about anywhere in index.php I get a parse error on the last line of index.php which is ?>
|
The code I am trying to insert into index.php from vbstats.php is:
Code:
// ######################################### |
Quote:
|
Yep, I had noticed that and removed that. I also tried putting the variables part up at the top of index.php with the other variables and then the relevant other vbstat code below elsewhere in index but every time I get a parse error on whatever line number ?> happens to be on. What exactly does a parse error means. Doesn't that mean I coded something wrong?
|
Quote:
that is awesome man, how did you do that? |
Thanks. :)
I just placed this code into my index.php: PHP Code:
|
Quote:
i think you should make this a mini-release :) i am not smart enough to figure all that myself......but i am smart enough to follow detailed directions :) |
I'm not sure if vbstats added this to global.php, or if I did, but this is in there above the "// ###################### Start sessions #######################" section.
PHP Code:
|
Thanks for making me look into that. I was right, I moved the code I had in global.php to index.php, and now threads load considerably faster again. :)
I placed the section I quoted from global.php to the same place, just after, I had the other code in index.php. |
All times are GMT. The time now is 04:31 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:
|