PDA

View Full Version : vbStats


Pages : 1 2 3 4 [5] 6

bahamut0
12-03-2002, 06:37 PM
yup working and looking good 2.2.9 :) i like it thatnks for the hack.

Akujin
12-04-2002, 02:07 AM
Just what did you two do to get it working in vb2.2.9? That's what I'm using and I still get that blasted error..

Visionray
12-04-2002, 04:18 AM
"Be sure to add your URL (ie yoursite.com) with NO WWW
to the excluded url list in the admin CP."

Where is that?

Akujin
12-04-2002, 04:20 AM
You asking where you're supposed to add that? Simple enough. In the three links for vBStats in your Control Panel, you'll find Exclude vbStats URL. That's it right there. Woo hope I'm right.

Visionray
12-04-2002, 04:46 AM
oh thanks, yea I hadn't installed the admin cp options yet so it wasn't there. Thanks! Working fine now.

Akujin
12-04-2002, 05:12 AM
This is just pathetic...I helped someone else install this blasted hack and yet I can't make it work myself...I'mma try installing from scratch.

Visionray
12-04-2002, 07:51 PM
This is strange.

I have a number of visitors from Canada, and they have been posting on my forums since I installed this hack, but I am not getting any Canadian flag on the country list section. ??

Every thing else is working great though, but my users are starting to think my site has a conspiracy against Canada. Anyone else have this problem?

iblis
12-06-2002, 08:15 PM
my guess is that the script finds country of origin by checking the TLD (.com .net .org .ca etc)
If the ISP uses .com instead of .ca it will not show up on stats as canadian

(I'm norwegian, and I have .com ISP)

a43079
12-07-2002, 12:39 PM
i am getting this error what am i going wrong

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\forums\vbstats.php on line 283

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\forums\vbstats.php on line 284

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\forums\vbstats.php on line 285

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\forums\vbstats.php on line 287

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\forums\vbstats.php on line 288
Table 'ero.nuke_links_links' doesn't exist

S1R1US
12-08-2002, 08:14 PM
will it work on vbulletin 3.0?

Steve Machol
12-08-2002, 08:43 PM
Originally posted by S1R1US
will it work on vbulletin 3.0? No current hacks will work with vB3.

S1R1US
12-08-2002, 10:31 PM
i looked aroudn but didn't see anywhere but is there a section for hacks in specific version? like forum for hacks ONLY for 3.0 and then all the hack subcategories that are here?

Steve Machol
12-08-2002, 11:18 PM
There are no hacks for vB 3.0 because vB3 has not been released yet.

ukcobra
12-15-2002, 07:10 AM
Like others I'm getting blank screens when selecting the tems on the Control panel.

I'm running 2.2.9 with php3 extensions. I modified the Install script to look for global.php3.

Incidentally, when I go to look at other peoples vbstats URLs (as posted here) I get a blank screen on 2 different computers. One running I.E 6 and the other running Mozilla 1.0.1.

Can anyone explain why the blank screens occur, and if there is a php3 version in development.

I'd like to see a link to a forum with 2.2.9 and vbstats running.

Thanks

Mark

Graphics
12-23-2002, 05:40 PM
thx fo the support
realy needed it :p

NTLDR
12-23-2002, 06:18 PM
Originally posted by Graphics
thx fo the support
realy needed it :p

The hacker cannot guarantee to provide support for this hack.

Intex
12-27-2002, 05:17 PM
I notice that when a guest is browsing the forum, they can access these stats without being registered. Is there any way to add the usual security to these pages?

S1R1US
01-03-2003, 11:46 AM
does it work for vb 2.2.9?

influence
01-04-2003, 04:18 PM
did anyone fit is that that the template can match any forums its on?

Heijin
01-08-2003, 10:54 PM
<a href="http://therpgia.com" target="_blank">http://therpgia.com</a> working with vb.2.2.8

gopherhockey
01-12-2003, 06:24 PM
Originally posted by S1R1US
does it work for vb 2.2.9?


Working ok on my 2.2.9 at www.mtbmn.com

However, had problems due to running vblite. Removed the line from phpinclude template and added it to global.php as per some directions I found here. (not sure what that does, but it got rid of the error on my main vblite page)

The directions for adding to your admin cp are not right, at least I could not find what they wanted me to search for - so I just found a nice place for the edit stuff and stuck it in there (just under the useful admin stuff).

KuraFire
01-14-2003, 08:15 AM
I rewrote a section of the vBStats code, the improvement is to remove the endless amount of queries on your Member Referral list page, it only uses 2 queries now no matter how many users you show :)

For the improvement and how to modify your vbstats.php so that it's more secure and server-friendly, see this thread:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=47689

Enjoy :)

GOD-Dblade
01-14-2003, 11:20 PM
got it to work with vb 2.2.9 and vblite :P

calldaffer
01-19-2003, 06:06 PM
Installed it today on my forums using 2.2.9 No problems at all :D Nice addition I must say

influence
01-19-2003, 06:47 PM
did anyone work on this hack so that the template can match on any board instead of the default template it comes with??

Guidster
01-20-2003, 03:43 AM
While it took some doing, I did get it to run on 2.2.9.

I must say that my eyes are hammered from having to muddle through all of the threads in order to get it, but the details you need ARE here.

I run Teck's vbHome(lite) and have the stats link on my forum home. If you want to see it all in action together, see the link below.

I am too whipped right now to summarize the changes that I had to make to get it all to work, but I am throwing my hat in the ring to help get it going for others. I think that when I get a free moment in the next couple of days, I will summarize everything and put it up so that the next guy will not have to go hunting as I had to to get this thing to work.

Very nice, Bane. It was worth the work.

Here is a link to mine.......

http://www.allthingsmoto.com

alexi
01-20-2003, 03:56 AM
Does anyone have a clue how much overhead this puts on the servers? I would love to install this but load is a huge issue for me

sabret00the
01-22-2003, 10:12 PM
from what i know it's not much at all

bane: you're running a new version on your server, release date in mind :D

Ice Effect69
01-27-2003, 02:03 AM
i dont know if this has been answered, but there is 69 pages and i dont have time to look through them all, but i have installed this hack, and it sorta works besides for an error at the top of the vb stats page

Warning: Division by zero in /home/virtual/site3/fst/var/www/html/forums/vbstats.php on line 159

to view the whole page:
http://www.prowrestlingdirect.com/forums/vbstats.php

can someone please help?

sabret00the
01-27-2003, 07:22 PM
i just went on and you're not getting that error 0_o

Hwulex
01-28-2003, 10:40 AM
Installed. Great hack, thank you.

One thing I will say; the templates are a bit ropey. Just had to spend a fair time adding <smallfont> etc all over the place to rid the standard font. Besides that small gripe, it's great. :D

Oh, and I can't find a link anywhere which points to ?action=info. Is this not included as standard?

<EdiT>
View mine [Here (http://www.xaprief.com/forums/vbstats.php?s=&styleid=4)].

limey
01-31-2003, 02:51 PM
Originally posted by gopherhockey



Working ok on my 2.2.9 at www.mtbmn.com

However, had problems due to running vblite. Removed the line from phpinclude template and added it to global.php as per some directions I found here. (not sure what that does, but it got rid of the error on my main vblite page)

The directions for adding to your admin cp are not right, at least I could not find what they wanted me to search for - so I just found a nice place for the edit stuff and stuck it in there (just under the useful admin stuff).

In your phpinclude section, you could also add the full path to the vbscounter.php and that clears up any error on vblite homepage.

BigCheeze
02-09-2003, 06:09 AM
Installed this, appears to be working great. Comuple of questions though.

1) What is "Activity Level:"?
2) In the config it has an option for: "Date Statistics Begin". What is the format for those dates?

Thanks!!!!!!!!

threadcrapper
02-09-2003, 04:18 PM
um activity level - would mean the level of activity?

ROFL

welcome cheese wiz!

KeithMcL
02-09-2003, 04:53 PM
I've just upgraded from 2.2.1 to 2.2.9 and now my vBstats aren't working properly.

The Referring Sites section shows the number, but not the URL. The Top Forums/Threads section isn't showing any results.

I've tried uninstalling it and reinstalling it, but still no joy.

Any ideas?

Hwulex
02-09-2003, 06:50 PM
Bane: Quick note mate. If you look at the countries on your own vbStats (http://www.talkloud.net/forums/vbstats.php?action=country), you've got United Kingdom twice! :s


Originally posted by influence
did anyone work on this hack so that the template can match on any board instead of the default template it comes with?? I went through and deleted all instances of <smallfont color="$color4"> etc, and also many, many, instances of rather pointless <smallfonts>. Also had to add a few <normalfont> tags in places where nothing had been set and it was using the browser default.
The template layouts are pretty good, but the templates themselves are fairly ropey.
If you want, I'll .txt up my template versions, which are basically default but style-able, and with uneccessary code removed.

Have a look HERE (http://www.xaprief.com/forums/vbstats.php).

I also rewrote part of the hack, and altered the Top Threads (http://www.xaprief.com/forums/vbstats.php?action=topthreads) page to display the actual page views and thread replies in the same way as the Posters page looks (as well as adding column headings to both)

Bane
02-09-2003, 11:23 PM
Originally posted by Hwulex
Installed. Great hack, thank you.

One thing I will say; the templates are a bit ropey. Just had to spend a fair time adding <smallfont> etc all over the place to rid the standard font. Besides that small gripe, it's great. :D

Oh, and I can't find a link anywhere which points to ?action=info. Is this not included as standard?


I agree with the font issues and a lot of people have had the same complaint, what can I say? :p

The ?action=info was for debugging only. I left it in because it was nifty. Same with upgrade.

Bane
02-09-2003, 11:24 PM
Originally posted by BigCheeze
Installed this, appears to be working great. Comuple of questions though.

1) What is "Activity Level:"?
2) In the config it has an option for: "Date Statistics Begin". What is the format for those dates?

Thanks!!!!!!!!

1) % of users that have posted. And yes its loopy.
2) Any you like, its not really used atm save for the countries section.

Bane
02-09-2003, 11:31 PM
Hopefully over the next week or so mark and I will be looking at the code and playing with somethings. I am hoping this week to finally upgrade talkloud, which will also involve changing the instructions for vbStats to make them useful on the 2.2.9 installations.

The biggest problem with my making major changes to vbStats over the last few months have been the "impending release of vb3" and time. The first being a bit silly but really I didnt want to put out a version for 2.2.x and have 3.x come out the next day.

Mark and I have made a lot of changes, added some features, etc for what will hopefully be a grand vb3 release, however I'm not really wanting to put out something like this before then.

On a side note however, I would encourage anyone who has made any modifications to the vbStats code who thinks it would be a decent addition to the hack itself or just has a comment etc to either post here or (I would prefer) email me.

KuraFire
02-10-2003, 01:12 PM
Originally posted by Bane
On a side note however, I would encourage anyone who has made any modifications to the vbStats code who thinks it would be a decent addition to the hack itself or just has a comment etc to either post here or (I would prefer) email me.

You know where to find my improvement of your code for the Referrerlist :)

and if not, look at my signature and bookmark the link to that 'hack' :p

Bane
02-10-2003, 01:13 PM
We already included it :)

BigCheeze
02-10-2003, 02:30 PM
Originally posted by Bane


1) % of users that have posted. And yes its loopy.
2) Any you like, its not really used atm save for the countries section.

LOL! Ok thanks! Great hack anyways though! :D

Is there anyway to make the VBStats.php display page display the left column from VBPortal? I have linked the VBStats as my main stats now, and it is just a little disorienting I think (not enough to make me think about not using it though :D).

Thanks again!!

Bane
02-10-2003, 11:49 PM
I've honestly forgotten how vbPortal works. :( I'm sure it could be done however.

KuraFire
02-11-2003, 11:37 AM
ah, okay :)

KuraFire
02-12-2003, 01:35 PM
Originally posted by Bane
We already included it :)


Have you also included my code optimization for the Top Posters section, btw?

Did I ever give that to you?

Cos it now uses only 3 queries to list the top-all, top last month and top last 24h posters, instead of the 45 that your original vBStats code used.....

gameplanetz
02-12-2003, 03:59 PM
Originally posted by KuraFire



Have you also included my code optimization for the Top Posters section, btw?

Did I ever give that to you?

Cos it now uses only 3 queries to list the top-all, top last month and top last 24h posters, instead of the 45 that your original vBStats code used.....

care to share? :)

Bane
02-12-2003, 06:23 PM
I dont think you did. Feel free to send it to my email if yous still have it. Im pretty sure we redid that section but never know heh.

KuraFire
02-13-2003, 09:01 AM
Originally posted by gameplanetz


care to share? :)

Sure:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=48869

gameplanetz
02-13-2003, 01:19 PM
Originally posted by KuraFire


Sure:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=48869

wouw thanks Kura :)

KuraFire
02-14-2003, 10:00 AM
you're welcome ^_^

OpalCat
02-14-2003, 02:33 PM
Is the file in the original post the current version?

Bane
02-15-2003, 04:25 AM
I am upgrading the file for the 2.3.0 release now. Expect it to be done tonight/this morning.

Bane
02-15-2003, 04:27 AM
Originally posted by Hwulex
Bane: Quick note mate. If you look at the countries on your own vbStats (http://www.talkloud.net/forums/vbstats.php?action=country), you've got United Kingdom twice! :s



Not my fault :) Thats because UK has 2 seperate lang encoding types:

GB and UK

I didnt pick either :p

Floris
02-15-2003, 11:32 AM
Installed on 2.2.9 again
and works great.

limey
02-15-2003, 03:45 PM
// BEGIN vbStats Hack [230.01]
// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

// Staff
$anum = mysql_num_rows(mysql_query("select * from user WHERE usergroupid=5 or usergroupid=6 or usergroupid=7"));

// Total
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=$countposts['posts'];
if ($totalposts=='') { $totalposts=0; }
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=$countthreads['threads'];
if ($totalthreads=='') { $totalthreads=0; }

// Today [FireFly]
$tltoday=time()-(86400);
$getpoststoday=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$tltoday'");
$poststoday=$getpoststoday[count];
$getthreadstoday=$DB_site->query_first("SELECT count(*) AS count FROM thread WHERE dateline>='$tltoday'");
$threadstoday=$getthreadstoday[count];

// Views
$boardviews = $DB_site->query_first("SELECT SUM(views) AS threadviews FROM thread");
$totalviews = number_format($boardviews[threadviews]);

eval("$vbstats = "".gettemplate('vbstats_forumhome')."";");
// END vbStats Hack [230.01]

I get parse errors with this code bit.

Bane
02-15-2003, 03:48 PM
I would have to see the parse errors :( I didnt mean to keep this in the install actually, it was something for someone else. But we might as well fix it.

Bane
02-15-2003, 03:53 PM
Originally posted by limey

eval("$vbstats = "".gettemplate('vbstats_forumhome')."";");




should be:

eval("\$vbstats = \"".gettemplate('vbstats_forumhome')."\";");

limey
02-15-2003, 04:45 PM
ooo that code adss 7 queries..no thnx :)

that fixed the parse errors though and it works...i took it out tho.

Bane
02-17-2003, 07:51 PM
Guess we will see after 2.3.0 if this release is as painless as it seems :p

smestas
02-19-2003, 08:28 AM
I have the stats running fine but I am having problems blocking the following refer address from "stats_set.php" this is the error?

Any help will be appreciated!

-----------------------------------------------
Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: UPDATE vbstats_options SET startdate='952001',exforum='0',statloc='images/stats',flagloc='images/flags',useflags=1,useonnow=1,usequeue=1,usevbp=0,u sevbpl=0,refermax=30,queuemax=10,toppostmax=10,top threadmax=10,recruitmax=20,incbar1=10,incbar2=20,i ncbar3=50,incbar4=100,incbar5=200,incbar6=500,nore fer1=alfabb.com,norefer2=alfabb.com,color1='black' ,color2='red',color3='blue',color4='blue',acolor=' Red',scolor='Teal',mocolor='Green',mecolor='Blue', ucolor='Grey'
mysql error: Unknown table 'alfabb' in field list

mysql error number: 1109

Date: Wednesday 19th of February 2003 02:26:07 AM
Script: http://www.alfabb.com/bb/forums/bb/forums/admin/vbstats_set.php
Referer: http://www.alfabb.com/bb/forums/admin/vbstats_set.php
-------------------------------------------------

peanut666
02-19-2003, 01:08 PM
cheers man i installed this hack went like a dream
was so glad as im a complete newbie

one question how would i add a link to it from my forum

PennylessZ28
02-19-2003, 03:18 PM
Originally posted by Bane
[b]DEAR GOD CHECK THE SECOND POST OF THIS THREAD BEFORE YOU ASK A QUESTION!!!!

ROFLMAO, I know its not topic related, but that has to be the funniest thing I've read on this forum all day.

:laugh: How do I install this?

:tired: nah j/k, excellent work man, I really enjoy this.

TheComputerGuy
02-20-2003, 12:01 AM
I installed Teck's VBHomeLite...and I have this hack installed prior. I get this error

Warning: Failed opening 'vbs_counter.php' for inclusion (include_path='') in /home/runaked/public_html/global.php(746) : eval()'d code on line 6

The only thing on line 6 is "error_reporting(7);"

SHould I be asking you or Teck?

monstergamer
02-20-2003, 07:05 AM
i really like this mod :)
thanx

PennylessZ28
02-21-2003, 11:25 AM
I've been reading this thread for the later half of the day. I don't see my problem truely adsressed.

I installed this fresh on a hacked version of vbulletin 2.3.0

It works fine for the most part http://www.hr3rdgen.org/forum/vbstats.php

Here are my questions, I made it to page 66. I read your faq I even clicked the link so yes, I downloaded the file, I read through it, Nope, way off target.

I would like to call the stats up on other pages besides stats.php.

IE: On my forumhome for example.

Also is it possible to run stats.php from outside my root dir.

Could I then call up say Members Stats and Thread Stats on an vbindex page?

Lay on the line. I saw your post on how to display it on the main page, well that doesn't display anything. I didn't see anything showing me how to call up the information

I'm looking for an $whatever

So am I restricted to the STATS.php page or can I call up certain things on different pages?
:banana:

Bane
02-21-2003, 06:29 PM
I talked to TECK a while back asking him about any incompatibilities with vbhome. I know it can work with vbhome but I believe its the phpinclude section giving it trouble. You might try calling the counter from inside global.php instead of phpinclude.

HR3dGen - meh. Ok, the problem with installing it on the vb forum page is it adds *7* queries to that page. Maybe you should wait on that just a bit. What sections were you wanting on other pages?

paratek
02-22-2003, 03:02 PM
Quick question, do you allow your users to see the stats? I have installed vbstats and i can view the stats no prob, however i do not see any link to the stats out side of the admin control panel.

Is this something i need to put in myself?

Dave

Hellburn
02-22-2003, 05:59 PM
Hi,

i have updated vbStats to the currently version. Now at "Member Stats:" he show me "Active: 2" always, bevor i update it was working perfectly. I have a great board and much posters. Active user 2 is not correctly.

Member Stats completly:

Member Stats:
Members: 3,764 | Staff: 13 | Active: 2 | Non-Active: 1,954 | Activity Level: 66.67%

i have installed the update yesterday. thanks for help

Hellburn

Kamui Shirou
02-26-2003, 03:31 PM
great hack. but where can i find the user styles addon?

Almax
02-27-2003, 02:37 PM
Installed no probs on 2.29 thanx
1 question tho how do i make vbstats viewable ONLY by admin & mods ?

Bane
02-27-2003, 11:05 PM
Almax - I will add a switch for this in the next version.

Kamui - This will also come in the next version, though the code should be functional now.

Hellburn - this Im not sure why its happening for you. Since that code shouldnt have been changed at all.

paratek - Yes I do dave, if you go to http://www.talkloud.net/ you will notice there is a link from the left menu to the stats. This could however go in wherever you want it to be. Maybe in the next versions documentation I will add this in.

sabret00the
02-28-2003, 08:02 AM
when will the next version be getting released ;)

Hellburn
02-28-2003, 09:35 AM
@Bane When i change this:


// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=number_format($snonposters['users']);
$activemembers=number_format($numbermembers-$nonposters);
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));


with this:


// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=$numbersmembers['users'];

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

it is working perfectly. I think the problem is "number_format".

amykhar
03-01-2003, 02:17 AM
Bane, I did a clean install on 2.2.9 and active is not working for me either. I'll poke around with it a bit and see what I can find.

amykhar
03-01-2003, 02:26 AM
Fixed.

in vbstats.php find:


// ########## Member Stats
// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=number_format($snonposters['users']);
$activemembers=number_format($numbermembers-$nonposters);
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));


replace with:

// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=$numbersmembers['users'];

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

Bane
03-01-2003, 08:41 AM
Fixed in the zip in the first post, thanks amy & hellburn.

The change made was.

Find:
// ########## Member Stats
// How Many?
$numbersmembers=$DB_site->query_first('SELECT count(*) AS users,max(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);

// Active/Non?
$snonposters=$DB_site->query_first('SELECT count(*) AS users,max(userid) AS max FROM user WHERE posts=0');
$nonposters=number_format($snonposters['users']);
$activemembers=number_format($numbermembers-$nonposters);
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));


Replace with:
// ########## Member Stats
// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=$numbersmembers['users'];

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

// Equate [Added Post 230.b to resolve Active Users issues]
$activemembers=number_format($activemembers);
$nonposters=number_format($nonposters);
$numbermembers=number_format($numbermembers);

Hellburn
03-01-2003, 09:40 AM
Working fine.

monstergamer
03-01-2003, 10:29 PM
works fine for me :)
http://www.monstergamer.net/vb/vbstats.php
come sign up if you like

Xyphen
03-03-2003, 02:00 PM
Works Perefectly Fine on vB2.3.0!! Great Work Bane :)

Bane
03-04-2003, 09:03 AM
Has anyone had any troubles getting this to work with vbHome?

Doubledoom
03-04-2003, 09:44 AM
I have installed this on 2.3.0 RC3 running VBportal 3.0.

All appears ok but if you turn the vbportal option on, i get the following errors.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/new-version.org.uk/httpdocs/vbb/forums/vbstats.php on line 353

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/new-version.org.uk/httpdocs/vbb/forums/vbstats.php on line 355

Those two lines are relating to the code for VBportal 2.

I notice the poll line is working but the news one is not. I would guess (and its only a guess) that the code cannot handle multiple news forums and that is why it fails (preferences in vbportal have news forums as " 1,2,5,9" to show forums 1,2,5 & 9 are news forums.

If the vbportal option is turned off, then the rest of it is fine without errors.

h4x0rtje
03-07-2003, 06:47 PM
Originally posted by Bane
Has anyone had any troubles getting this to work with vbHome?

Works fine with me :)

Only when you set Use vbPortal Weblinks Additions? on YES..
I get:

Warning: Supplied argument is not a valid MySQL result resource in /www/domain/site/board/vbstats.php on line 357

Warning: Supplied argument is not a valid MySQL result resource in /www/domain/site/board/vbstats.php on line 358
Table 'BBEsql.nuke_links_links' doesn't exist


I dont know what: Use vbPortal Additions? and Use vbPortal Weblinks Additions? is......

And in which format do i have to write the date statistics begin?

Bane
03-07-2003, 07:12 PM
The problem with vbPortal is he must have changed the tables in some way. Unfortunately I dont have it installed anymore. I may have to install it on a test board. For now the only fix would be to turn those additions off.

esquared
03-08-2003, 09:39 PM
Is there away that to make it show the current month stats for top posters of the month instead of the last 30 days? Atleast I assume it's doing 30 days because it says on my board I've gotten 1000+ posts already this month and that isn't possible unless it's doing 30 days instead of the current month of March.

Bane
03-08-2003, 10:32 PM
It is doing 30 days instead of the current month yes. :(

VampireMan
03-08-2003, 10:59 PM
re vbportal 30b problems

Find This in vbstats.php (near line 291)

$cat1 = mysql_num_rows(mysql_query("select * from nuke_links_categories"));
$cat2 = num_rows(mysql_query("select * from nuke_links_subcategories"));
$cat = $cat1+$cat2;

And replace with This

$cat = mysql_num_rows(mysql_query("select * from vbp_links_categories"));

Bane
03-08-2003, 11:03 PM
can anyone confirm VampireMans change? If so I will change it in the zip.

esquared
03-09-2003, 03:18 AM
Originally posted by Bane
It is doing 30 days instead of the current month yes. :( Anyway to make it do the current month though? :(

h4x0rtje
03-10-2003, 10:23 AM
Originally posted by h4x0rtje


I dont know what: Use vbPortal Additions? and Use vbPortal
Weblinks Additions? is......

And in which format do i have to write the date statistics begin?

Anyone?

Bane
03-10-2003, 04:12 PM
The format of the date statistics begin is whatever you want it to be. Its not really used.

As far as the other if you dont know what it is you dont need to use it, its fog vbportal.

esquared : I'll take a look at it when I have some time.

monstergamer
03-10-2003, 04:45 PM
is there any way you can make it not count you
also notice when you refresh it goes up to
other then that i love this hack

Bane
03-10-2003, 04:50 PM
It counts total views monstergamer. The only way you could stop that would be checking ips or dropping a cookie to the users computer.

You could make it not count you with some additional hacking yes. like putting the vbs_counter include in the global.php and having a usergroup detect around it or something.

monstergamer
03-10-2003, 05:03 PM
ok thanx
i well try that now

Zelda-King
03-14-2003, 07:53 PM
I've installed this. Impressive hack. One gripe: banned users etc can view this.

I fixed this by inserting this code in vbstats.php (which wont work for a lot of you. This goes with a journal template I have from another hack, and most of you may not have a ban group for usergroup 10;
//if user is banned then cannot view vB Stats.
if(($bbuserinfo[usergroupid] == "8") || ($bbuserinfo[usergroupid] == "10")){
//redirect
$goto="index.php?s=$session[sessionhash]";
eval("standardredirect(\"".gettemplate("redirect_noaccessjournal")."\",\"$goto\");");
You could easily customise that to your own templates etc if you want to keep certain usertypes out.

Matrix28
03-15-2003, 03:02 PM
Thanks guys.

monstergamer
03-16-2003, 01:12 AM
Yesterday at 04:53 PM Zelda-King said this in Post #1094 (https://vborg.vbsupport.ru/showthread.php?postid=366232#post366232)
I've installed this. Impressive hack. One gripe: banned users etc can view this.

I fixed this by inserting this code in vbstats.php (which wont work for a lot of you. This goes with a journal template I have from another hack, and most of you may not have a ban group for usergroup 10;
//if user is banned then cannot view vB Stats.
if(($bbuserinfo[usergroupid] == "8") || ($bbuserinfo[usergroupid] == "10")){
//redirect
$goto="index.php?s=$session[sessionhash]";
eval("standardredirect(\"".gettemplate("redirect_noaccessjournal")."\",\"$goto\");");
You could easily customise that to your own templates etc if you want to keep certain usertypes out.
thanx for the addon
this is one of the best hacks

.:.NetStartz.:.
03-17-2003, 02:44 AM
How can I block someone from viewing my stats page? Using his IP? But let him see the rest? It's really important...

Bane
03-17-2003, 03:13 AM
Send me a pm with the info netstartz, I'll see what I can do to help you.

monstergamer
03-18-2003, 01:55 AM
is there a way to make it tell the times the came to your site like
12:00 - 1:00 = 2 visits
1:00 - 2:00 = 5 visits
and so on
or well this be hard cause of the time difference

jbear6
03-18-2003, 02:17 AM
Okay, dumb question time...
I was smart enough to read the second post in this thread, and found the answer to my question regarding compatibility with 2.2.6 (Currently working splendid on all 2.x versions to date). But, then I looked at the top of your first post and saw this: "For vBulletin version: 2.3.x". Will this fantastic hack work on 2.2.6?

Thanks,
Jbear6

Bane
03-18-2003, 04:04 AM
Yes Jbear6 it will. Be careful when placing the hacks, as some may have changed, but it works well yes.

monstergamer - no not currently

jbear6
03-18-2003, 01:29 PM
Thank you very much Bane, you are a scholar and a gentleman.

Jbear6

mvigod
03-19-2003, 02:19 AM
Does the latest installer have an upgrade option besides the installer option? I need to upgrade from an older version to the newest for vb 2.3. thanks.

Floris
03-19-2003, 05:24 AM
Today at 05:19 AM mvigod said this in Post #1103 (https://vborg.vbsupport.ru/showthread.php?postid=369023#post369023)
Does the latest installer have an upgrade option besides the installer option? I need to upgrade from an older version to the newest for vb 2.3. thanks.


As far as I know ... each version has a install/uninstall/upgrade feature. During installation it also mentions that if you upgrade your vbulletin, you should run install script again and choose upgrade.

If you upgrade your vBulletin, you should manually re-apply the source code changes. The templates and mysql changes are ofcourse, already in place.

Bane
03-19-2003, 02:40 PM
You can upgrade in all the 2x versions and keep your current stats.

Cyricx
03-20-2003, 09:30 PM
any plans for it to list like most popular styles? or even most popular smilies?

We use several styles on our site as well as a whole host of smilies, would like to be able to move the most popular smilies to the main smiley panel if I had a way of tracking which those were. :)

Thanks!

Bane
03-21-2003, 12:25 AM
Cyricx, its possible I suppose, the first is quite easy, and for the most part is already in the code for vbstats. The second is more involved and would involve further hacking to vb.

Tim Wheatley
03-29-2003, 09:55 PM
Thanks for the updated version Bane! I uninstalled this a while ago as my board got too big for the old version and it kept killing my server, but I'll try this new one. Site is http://forum.racesimcentral.com - stats will only be shown to staff (or the link to it will), but feel free to guess the url. I'm currently installing and editing a test board, it'll go live on the above url tonight sometime though... :)

My board should be quite a test for your coding. :)

Thanks man! :D

Tim Wheatley
03-30-2003, 10:51 AM
Bane please check your PM's, I just replied. It's now live on the board.

http://forum.racesimcentral.com/vbstats.php

I'm only making it visible to staff.

Tim Wheatley
03-30-2003, 11:10 AM
ps: incase you're wondering, I haven't disallowed my own domain from registering, this is because we have a lot of sub domains and sites we host and I'd like to see which are bringing in the most visitors. Can I exclude certain sub domains? forum.racesimcentral.com and www.racesimcentral.com for example?

Tim Wheatley
03-30-2003, 11:17 AM
Yes you can! I just added "forum.racesimcentral.com" and it's working. Super. I'm leaving www.race... on though I think... We probably get more people through out sub sites, so it'd be nice to see that in black and white.

Kars10
04-04-2003, 05:57 AM
Hello!
One Question: how can i show the Pageviews on my Forumhomepage? I have searched the thread, but can?t find it.

Thanks in advance
Kars:)

TechGuy
04-05-2003, 03:03 PM
Am I the only one who is having trouble with this one? :)

Went into the install, /admin/install_vbstats.php and click on install... Gives me the header, and the header only:


<html><head>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link rel="stylesheet" href="../cp.css">
<title>vbStats Addon Installer / Uninstaller</title></head>
<body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">
<style type="text/css">
.red { color: red }
.blue { color: blue }
BODY,td { font-family:Verdana,sans-serif; }
</style>
<table width="100%" bgcolor="#3F3849" cellpadding="1" cellspacing="0" border="0"><tr><td>
<table width="100%" bgcolor="#AAAAAA" cellpadding="3" cellspacing="0" border="0"><tr>
<td><a href="http://vbulletin.com/forum/showthread.php?threadid=19081" target="_blank"><img src="cp_logo.gif" border="0" alt="Click here to visit the support thread."></a></td>
<td width="100%" align="center">
<font size="3" color="blue"><b>vbStats 230.b<br><br></font>
<font size="2"><span class="blue"><b>Written by <a href="http://www.vbulletin.com/forum/member.php?action=getinfo&userid=616" class="lc" target="_blank">[Bane]</a></b><br>
<b>For <a href="http://www.talkloud.net/" class="lc" target="_blank">[Talkloud.NET]</a></b></span></font>
</td></tr></table></td></tr></table>
<br>
</body></html>


How do I get it to actually install? VB 2.3.0

TechGuy
04-05-2003, 05:45 PM
I think I've got it... you're missing a "php" in your code...


<br><br>Or you can just <?php gotostep(6,0,0,1,"exit now"); ?> .
</blockquote>
<?
}

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ vbStats - Table Creation - Step 3
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


SHOULD be:


<br><br>Or you can just <?php gotostep(6,0,0,1,"exit now"); ?> .
</blockquote>
<?php
}

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ vbStats - Table Creation - Step 3
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

monstergamer
04-05-2003, 10:01 PM
ok
let say i want to show more Top Referring Sites
it show the top 20
i would like to make it 30 or so
how could i do this

Bane
04-13-2003, 08:26 AM
monstergamer - you can configure this in the vbstats admin CP.
TechGuy - Will be fixed, thanks for pointing that out.

monstergamer
04-13-2003, 08:16 PM
monstergamer - you can configure this in the vbstats admin CPhow can i do this

Bane
04-14-2003, 05:05 AM
Total Top Referring Sites to Display in the vbstats admin, change value to 30.

Rynthar
04-17-2003, 05:58 AM
Well. I got everything to work, cept when I tried to put the stats on my forum home, didnt work. The new template and changes all are 100% fine

cbhale
04-19-2003, 05:46 PM
Great Addition to my Vbulletin. It took me like 10 minutes to complete the install and was really painless. There were a couple of steps missed in the directions. (Could be me though!)

Thanks for the hard work! :)

Charles

ap0c
04-20-2003, 01:23 AM
nice Bane, thanks

irn-bru
04-20-2003, 02:56 PM
I installed this hack a long time ago.

2 questions.

Is it wise to have vbstats.php?action=phpinfo
I mean anyone can check your phpinfo is this
unsafe or Iam I just paraniod :confused:

Also O when O when can we have a update please
this hack is so great and I love it. I am looking for
the style and myinfo to be updated and all the the
other neat stuff at the makers vb board..hehe.

Jacko
04-23-2003, 08:43 AM
working great on a 2.2.9 modified board:

http://www.realmods.net/forum/vbstats.php?action=stats&s=

Jacko
04-23-2003, 09:24 AM
ok i ventured into adding some stats onto my forumhome template and this is what i added to my "index.php" file:


// BEGIN vbStats Hack [230.01]
// Active/Non?
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

// Staff
$anum = mysql_num_rows(mysql_query("select * from user WHERE usergroupid=5 or usergroupid=6 or usergroupid=7"));

// Total
$totalposts=$countposts['posts'];
if ($totalposts=='') { $totalposts=0; }
$totalthreads=$countthreads['threads'];
if ($totalthreads=='') { $totalthreads=0; }

// Today [FireFly]
$getpoststoday=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$tltoday'");
$poststoday=$getpoststoday[count];

eval("$vbstats = "".gettemplate('vbstats_forumhome')."";");
// END vbStats Hack [230.01]


then i added the following to my forumhome template:

Active Members: $activemembers
Activity Level: $activityrate%

Total Threads: $totalthreads
Total Posts: $totalposts
Posts Today: $poststoday

Staff Members: $anum

and this is the end result:
http://www.realmods.net/stats.gif

as you can see my active users is wrong and my percentage too. my total posts and posts today are also wrong.

what have i added wrong and how can i fix this??

Cheers :cheeky:

MuSuL
04-29-2003, 12:38 AM
Can this hack give me something like 5 top posters for the month and how many posts they made?

BrokenLinux
05-01-2003, 04:17 PM
heh, i just read thru 75 pages and couldn't find this :P

anyways, i want to say this is an awesome hack but i have one question

Is there anyway that only the administrator can view vbstats.php?

cnczone
05-11-2003, 11:35 PM
I did the add to index page, but where is a link, what am I suppose to see?

Weasel
05-13-2003, 03:39 AM
Why is my active users a negative number?

http://www.almostsmart.com/forums/vbstats.php?s=

monstergamer
05-13-2003, 04:22 AM
and why is Activity Level: -37600.00% so high lol

Weasel
05-13-2003, 06:15 AM
I went through the code and found that he is trying to do math operations on variables that have been number_formatted, so this error occurs when the number of registered users goes above 1000 and a comma is put into the number to represent the thousands place.

To fix find this:


// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=number_format($snonposters['users']);
$activemembers=number_format($numbermembers-$nonposters);
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

// Newest Member


and REPLACE with this:


// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=$numbersmembers['users'];

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters = $snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));
$numbermembers = number_format($numbermembers);
$nonposters = number_format($nonposters);
$activemembers = number_format($activemembers);

// Newest Member

cnczone
05-13-2003, 03:07 PM
Today at 08:15 AM Weasel said this in Post #1130 (https://vborg.vbsupport.ru/showthread.php?postid=394467#post394467)
I went through the code and found that he is trying to do math operations on variables that have been number_formatted, so this error occurs when the number of registered users goes above 1000 and a comma is put into the number to represent the thousands place.

To fix find this:


// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=number_format($snonposters['users']);
$activemembers=number_format($numbermembers-$nonposters);
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

// Newest Member


and REPLACE with this:


// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=$numbersmembers['users'];

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters = $snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));
$numbermembers = number_format($numbermembers);
$nonposters = number_format($nonposters);
$activemembers = number_format($activemembers);

// Newest Member



What php file is this in?

Larry Sanders
05-14-2003, 06:53 PM
The above code is in vbstats.php.

~~~~~~~~~~~~~~

On another note, I have had v2.0.3 installed for a long time on my site. I just upgraded to v2.3. All seems well but I keep getting:

Parse error: parse error in /usr/local/etc/httpd/htdocs/Forums/global.php(313) : eval()'d code on line 6

at the top of each page. FreeBSD server - pretty standard setup without many 'hacks'.

The error disappears when I take --> include("./vbs_counter.php); <-- out of my phpinclude template.

I looked at line 6 of global.php and it reads --< $explain = 1; <---

Anyone know what the 1 is or what's happening?

http://Elsmar.com/Forums/

Any thoughts appreciated.

zajako
05-17-2003, 05:06 PM
id like to get my hands on the server stats and all the other ones on talk aloud that do not come normaly.

Floris
05-18-2003, 02:29 AM
When can we expect a new version for vbulletin 2.3.0 ?

NinjaBelly
05-25-2003, 12:30 AM
When I add this hack it works fine in my forums but then on my vbHome lite it generates these code errors on the top of the page:

Warning: Unknown(./vbs_counter.php): failed to create stream: No such file or directory in /home/hilaryfn/public_html/global.php(929) : eval()'d code on line 6

Warning: Unknown(): Failed opening './vbs_counter.php' for inclusion (include_path='') in /home/hilaryfn/public_html/global.php(929) : eval()'d code on line 6

Any ideas? Thanks.

ogden2k
05-26-2003, 12:52 PM
05-24-03 at 09:30 PM NinjaBelly said this in Post #1135 (https://vborg.vbsupport.ru/showthread.php?postid=399602#post399602)
When I add this hack it works fine in my forums but then on my vbHome lite it generates these code errors on the top of the page:

Warning: Unknown(./vbs_counter.php): failed to create stream: No such file or directory in /home/hilaryfn/public_html/global.php(929) : eval()'d code on line 6

Warning: Unknown(): Failed opening './vbs_counter.php' for inclusion (include_path='') in /home/hilaryfn/public_html/global.php(929) : eval()'d code on line 6

Any ideas? Thanks.
Same here...

Also, I don't like when you load a new page, it adds another count to the user's browser / OS in the stats... Shouldnt it count this per IP session?

Bane
05-26-2003, 01:10 PM
for the problem with vbhome you may have to take the counter out of the phpinclude template and put it in your global.php.

ogden2k
05-26-2003, 01:21 PM
Ok, can you be more specific?

Mrpolish
05-27-2003, 03:04 PM
Can you include top 5 posters on you forumhome template ?

hashesh
05-29-2003, 11:28 PM
I cant get the exculde userid to actually exclude.. any thoughts?

Theutus
06-11-2003, 10:21 AM
I just added a copy of vbs_counter.php to my home directory. So i have a copy in home, and in /forum. I don't have any problems with it now, and it got rid of the errors.

Also, it doesn't count stuff twice when someone hits your forum, cause if they got the link to the homepage, the link to the forum is coming from your site, and your site is probably disabled as a referral.

Anybody think it's a bad idea to do it this way? Cause it worked like a charm for me. :)

97cobracpe
06-23-2003, 07:16 PM
Worked like a charm! I put vbs_counter in my home directory so I wouldn't get errors on the vbHome pages. Excellent hack!

/me clicks install

voclain
06-24-2003, 05:52 PM
I've read through the pages....can't decide on what I'm reading here....DOSE it work with VB 2.3.0??? or does it NOT work????

HELP????

Kirk

cnczone
06-24-2003, 06:43 PM
YES is works with 2.3 look at my site http://cnczone.com and goto
site stats page.

monstergamer
06-24-2003, 07:20 PM
Today at 02:52 PM voclain said this in Post #1143 (https://vborg.vbsupport.ru/showthread.php?postid=412300#post412300)
I've read through the pages....can't decide on what I'm reading here....DOSE it work with VB 2.3.0??? or does it NOT work????

HELP????

Kirk yes running it on 2.3 my self.
the link www.monstergamer.net/vb/vbstats.php

[Fx]AssAssiN
06-26-2003, 12:49 AM
nice hack!
Working perfectly.

mars
06-27-2003, 06:23 AM
Ok, after managing to get through all the pages in this thread (pheww....) I'm still non the wiser.
I've seen mention of this but no real details, does anybody know how I can get the full URL of incoming referring sites as there's a few things now & again I wouldn't mind tracking back :)

On another note what's with this 'yourpaysite' that keeps showing up in a lot of peoples stats ? I ended up just adding it to my exclude list. :paranoid:

Cheerz :)

Kamui Shirou
06-30-2003, 01:12 PM
<a href="http://www.talkloud.net/forums/vbstats.php?action=info" target="_blank">http://www.talkloud.net/forums/vbstats.php?action=info</a>

there are so many additional functions. do anyone know where to get they from? the style stats are pretty cool

irn-bru
06-30-2003, 03:43 PM
Today at 03:12 PM Kamui Shirou said this in Post #1148 (https://vborg.vbsupport.ru/showthread.php?postid=414186#post414186)
http://www.talkloud.net/forums/vbstats.php?action=info

there are so many additional functions. do anyone know where to get they from? the style stats are pretty cool

The coder is still working on these additional functions. I am sure
they will be comeing soon, he has posted in this thread somewere if you can find it in the 77 pages !!!

All I know of is this,

http://www.mangaboard.com/forums/vbstats.php?action=info

J-J
07-02-2003, 08:32 PM
06-23-03 at 09:16 PM 97cobracpe said this in Post #1142 (https://vborg.vbsupport.ru/showthread.php?postid=412017#post412017)
Worked like a charm! I put vbs_counter in my home directory so I wouldn't get errors on the vbHome pages. Excellent hack!

* 97cobracpe clicks install

Can you pls tell me how you did that?
I still get the error on the vbhome page.

thx

cnczone
07-11-2003, 03:31 PM
HELP, my stats page has been working great and then I went to turn off the Use vbPortal Weblinks Additions? and then I get this
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cnczone/public_html/vbstats.php on line 353

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cnczone/public_html/vbstats.php on line 354

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cnczone/public_html/vbstats.php on line 355

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cnczone/public_html/vbstats.php on line 357

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/cnczone/public_html/vbstats.php on line 358
Table 'cnczone_cnczoneforum.nuke_links_links' doesn't exist

Host Directory
07-14-2003, 05:00 PM
Does anyone know how to add the other options available in the demo version - http://www.talkloud.net/forums/vbstats.php ( [Stats] [Referring Sites] [User Styles]
[Posters] [Forums/Threads] [Attachments] [Recruiters]
[Browser/OS] [Display] [Time Zones] [Regions]
[Errors] [Your Info] [Search] )?

I would really like to add the time zones and the other options.

Also does anyone know how to place the the referring urls box on my forum homepage and add a statistics link to the page?

Currently there seems no way for my visitors to reach the stats page.

Thanks for any help in advance.

Host Directory
07-15-2003, 04:33 PM
11-18-01 at 10:51 PM Bane said this in Post #341 (https://vborg.vbsupport.ru/showthread.php?postid=201406#post201406)
I put up a new zip with that removed.. kindof a stupid mistake on my part since I took out the top referrer bit in the display. It didnt come up on the test board since I never turned on the referrer system.

Please note, If you want to add the top referrer to your front page you can add the following code..

// Set this to ids you dont want counted, seperated by , 0 for none
$norefer1="0";

// Top Referrer
if ($usereferrer) {
$topref = $DB_site->query_first("SELECT COUNT(*) AS referrals, user.username, user.userid FROM user AS users
LEFT JOIN user ON (users.referrerid = user.userid)
WHERE users.referrerid <> 0 AND
user.userid NOT IN ($norefer1)
GROUP BY users.referrerid
ORDER BY referrals DESC
LIMIT 1");
$tl_refid = $topref[userid];
$tl_refname = $topref[username];
$tl_refnum = $topref[referrals];
}

And in your vbstats_forumhome template add:

<smallfont>Top Referrer: <b><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$tl_refid">$tl_refname</a></b> (<smallfont color="$tl_color1">$tl_refnum referrals!</smallfont>)
&nbsp;[<a href="vbstats.php?s=$session[sessionhash]&action=memberrefer">Full List</a>] &nbsp; [ <a href="misc.php?s=$session[sessionhash]&action=faq&page=2#referrals">Help</a> ]</smallfont>


This is not fully tested as Im about to go to lunch but it should work dandy. The non referrer top stats is in the zip sorry about the messup.



I don't really understand what i am supposed to be with the above code, i did download the zip file and have uploaded to my site and added the template, but there still is no stats on my homepage - www.hostcompanies.com/forums

Have i missed something?

Any help really really appreciated.

Host Directory
07-19-2003, 11:15 PM
I am having an awful lot of trouble trying to work out addon forumhome hack which is downloaded from here - https://vborg.vbsupport.ru/showthread.php?postid=201406#post201406.

I have done exactly as the instructions have stated but nothing has changed on my homepage.

I noticed that others have had this problem,

First - https://vborg.vbsupport.ru/showthread.php?postid=213821#post213821

Now the solution mentioned here is something about changing al("\$vbstats = \"".gettemplate('vbstats_forumhome')."\";");

Something about the 'external' name of this 'bit' was actually $vbstats and not $vbstats_forumhome as I tried to insert before into forumhome template

I tryed changing the above code to eval("\$vbstats = \"".gettemplate('$vbstats')."\";");

Still nothing changed on my forum homepage.

So i began my search again and i found this,

Second - https://vborg.vbsupport.ru/showthread.php?postid=232465#post232465

Bane mentioned something about adding $vbstats in the forumhome template?

I really dont understand.... :(

Could someone help me.... id really really appreciated it, i have spent hours going through the posts 1 by 1 and after about 60 and racking my brain to try to understand the solution i am near to giving up.

Can anyone help ...?

Problem Fixed, for anyone wishing to display the stats on their homepage this is what you do - in clear instructions

1) Goto this post and download the attachment ( addon forumhome.zip ) - https://vborg.vbsupport.ru/showthread.php?postid=201406#post201406.

2) Inside the instructions, you must add some code to your index.php file. Add the code and now search for - // Today [FireFly]

Just after that code insert $tltoday=time()-(86400);

( if you dont, it means your 24 stats on your homepage wont work properly.

3) Follow the instructions in the attachment and make the template vbstats_forumhome with the code provided.

4) Now here comes the confusing part - it also was not mentioned in the instructions - Find the template forumhome ( under the Forum Home Page Templates catagory ) . At this point it is important to point out that forumhome is NOT the same template as the one you just made in the instructions.

5) In the forumhome template add $vbstats where you want your stats to appear on your forum homepage. For people not familiar with php code, some good advice is to find $birthdaybits and add $vbstats below this.

6) Now go to your forum and you can see how the stats have been added. Even for people that do not know php code, you should be able to work out how to change where the stats appear by going back to the forumhome template and changing the location of $vbstats

7) Be pleased you did not spent 20 hours plus working this out like i did

:ogre:

kristiesks
07-20-2003, 04:24 AM
Hopefully someone can help me. I DLed the stuff, read the install readme and followed all the directions. Up until Step 7 I had no problems at all, and I did successfully finish & upload all file hacks.

What happened with step 7 is that although I DID follow the directions and added

include("./vbs_counter.php"); to my phpincludes template, so that my template looks like this:

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

when I click "view vb stats" in my control panel I get this message:

vbStats Error!
Be sure to add this line to your phpinclude template:

include("./vbs_counter.php");

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

Your template should look something like this:

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

I don't know what to do. I've triple checked to make sure that I added that line, and my phpincludes template looks EXACTLY like what the error page says it should. The vbstats config and the exclude URL pages work perfectly.

I read through the first 17 pages of this thread looking to see if any other users experienced this same problem but I didn't find any, sorry if I overlooked something and am asking this question again.

Hope someone can help, thanks! :)

Host Directory
07-20-2003, 10:54 PM
Does anyone know how i may get the Link Queue to appear on my homepage?

I have already installed the addon forumhome hack, i would like to have the Link Queue appear in my forum homepage along with the other vbstats statistics - http://www.hostcompanies.com/forums/

Does anyone know how to do this?

bolynn
07-21-2003, 05:53 AM
I have some broken images on the vbstats.php page....Im not sure why...

its under browsers:

and

Operating system:

Besides that the hack worked fine...I dont think im going to use it, but I wanted to play with it on my test site..

thanks in advance for help on images problem..

Buczilla
07-26-2003, 03:27 AM
Thanks a lot Bane... this really helps!

ev0lute
07-26-2003, 05:17 PM
call to undefined

ev0lute
07-26-2003, 05:29 PM
sorry about my last reply, i had an error that said, called to undefined function adminlog()

Moreliator
08-05-2003, 02:46 PM
I installed on 2.3, but I think I'm missing a lot of options. For example, I can't find anywhere to turn "top styles" on and stuff.
THanks for help.

Host Directory
08-05-2003, 05:14 PM
Sadly the demo hack shown at the front of this thread is not the one which you get. In fact many of the features that are shown in the demo hack do not come with this hack.
At first this seemed like a good hack but the install instructions are poor to say the least and the hack has several bugs.
For example , linux ( in operating systems ) does not count at all and i have found that i have two uk countries in the referring countries table.
There are no instructions to add the link queue to the forum homepage also.

Looks like lots of people have found bugs and there has been no updates, which is a shame because the demo vbstats looked complete.

I am probably going to uninstall and look for a different stats hack, although this one could have been the best if it had been finished.

Shame to leave a hack like this uncompleted.

influence
09-13-2003, 10:09 PM
such a shame?
stop complaining. at least he gave us something instead of keeping this great feature to himself like others.

if u check his website, u will see he have other versions of it and this is the only version he is willing to release to the public.

I hate people who like to talk bad about people who are willing to share their work especially after spending alot of time doing it and then packing it up for people to use.

go make your own

steppin
09-28-2003, 08:33 PM
Will this work with 2.2.6?

docvader
10-14-2003, 06:59 AM
Just curious. I've installed this on my 2.3 Vbulletin without any problem, and it seems to be working just fine. (Easy install, very impressive). But, I'm getting visitors from El Salvador (lol), that are probably from Sweden. I know that this was an issue in the past, have not found any posts that have identified a fix for this.

Any news on the country detection part of this hack? Otherwise, it's just working beautifully for me.

rich
www.russbo.com

paddysplace
10-14-2003, 07:09 PM
Wow, I was looking for a LOT of these so I'll definitely use this code (taking out a few functions to reduce queries to bare minimum) thanks Bane..

Regards,
Patrick

DanGarion
10-22-2003, 04:23 AM
I get this everytime I click on the View Stats

vbStats Error!
Be sure to add this line to your phpinclude template:

include("./vbs_counter.php");

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

Your template should look something like this:

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

I have included it in my template but it still keeps doign this. Any suggestions?

Jakor Sevel
11-02-2003, 09:52 PM
How do i uninstall the referrals part?

PranK
11-03-2003, 07:50 AM
sweet

*clicks install*

mfacer
11-13-2003, 10:36 AM
works perfeclty!!
installed in minutes with no trouble! :)

I dont suppose you might release a beta version of the version used on talkloud.net ? I went to http://influx9.com/vbstats/ to see if there was a newer version, but it says not.

I'd really like to include the search engine keyword stats.... any chance of getting that part?!

thanks!! :)

digitalSite
11-14-2003, 06:50 PM
Does not show up on my FRONT PAGE!
It only works in my admin...does anyone know how to have it show on the forum home? :(

EDIT:

I added MY OWN STATISTICS link in the FOOTER template right next to "Contact Us - MYForum" links at the bottom.

I am also using vbHome Lite and got errors on top of my home page, like Warning Failed vbs_counter.php or something like that. All I did to solve that problem was do what others did in this thread:

Put (a copy of ) vbs_counter.php in your ROOT directory of vbHome. So that you have one inside root and the other copy inside /forum folder.

That's it!

highlander_RD
11-16-2003, 02:39 PM
I'm sorry to bother again after so many tons of posts... but I definetely need your help!

I installed the hack today on my vB 2.2.9 (licensed)
Everything was OK, except the problem of showing stats on forum's front page.
I followed what was indicated here:
https://vborg.vbsupport.ru/showthread.php?postid=201406#post201406 and installed the add-ons,
and I copied vbs_counter.php in forum's root.

*** No results: no stats in my homepage. ***

here is the vbstats.php page: http://forum.risiko.it/vbstats.php
and here the forum home page: http://forum.risiko.it
below the forumlist you can find the "empty" stats area...
[added at the bottom of forumhome_loggedinusers template]

ThanXs for help! :D

EDITED:
I fixed everything.
1) I put $vbstats in my forumhome template, formatting as desired the vbstast_forumhome template as suggested in add-ons.
2) I had to copy all the codes contained in vbstats.php (related to stats of forumand today) to index.php (under firefly today is missing the code $todayviews!)
3) I had to put $tltoday=time()-(86400); under // Today [FireFly] as indicated in some of these 77 pages...

I thank a lot Bane for the masterpiece. Great!!! (already clicked "install")

Byez ;)

digitalSite
11-16-2003, 07:33 PM
I only set up vbStat that was on the first entry.
I followed the "addon" instructions, but it never showed up on my forum 2.3.2.
So I removed all the things that the "addon instructions" told me to do and only did what the original vbStat instructions told me to do only.

Then I just went to admin control panel and clicked on vbStats, which showed up fine, looked at what page or link that was, and then edited FOOTER template for the forum and added the link to Stats there.

The only thing I see now, is the the PMs or Private Messages show DOUBLE the amount there really are in my box...probably because we have TWO counters, one in root and one in forums folder.

I don't know how to fix this.

Xyphen
11-16-2003, 10:18 PM
Bane, are you going to release a vB3 version of vBStats when the vb3 hacks are allowed or you quit?

highlander_RD
11-18-2003, 09:51 PM
I wonder if there's any mercy soul who can help me in the optimization of the frontpage vbstats code.

Everything is working fine ( http://forum.risiko.it ) but, since I'm a totally newbie in php and mysql programming, I'm quite sure there's a fastest way to obtain the same figures shown in my forum HP.

I'm publishing below
1) index.php
2) vbstats_forumhome template

I beg your pardon if i post in the wrong area. Sorry, and forgive me.
Thanks much to people who can help me. ;)

1) index.php
<?php
error_reporting(7);

$templatesused='forumhome_birthdaybit,error_noperm ission,forumhome_pmloggedin,forumhome_welcometext, forumhome_logoutcode,forumhome_newposts,forumhome_ todayposts,forumhome_logincode,forumhome_loggedinu ser,forumhome_loggedinusers,forumhome_lastpostby,f orumhome_moderator,forumhome_forumbit_level1_nopos t,forumhome_forumbit_level1_post,forumhome_forumbi t_level2_nopost,forumhome_forumbit_level2_post,for umhome,forumhome_unregmessage';
$loadbirthdays=1;
$loadmaxusers=1;

require('./global.php');

$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}

//check usergroup of user to see if they can use PMs
//$permissions=getpermissions($forumid);
if ($enablepms==1 and $permissions['canusepm'] and $bbuserinfo['receivepm']) {
$ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}

$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers");
$unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers");

if ($newpm['messages']==0) {
$lightbulb='space';
} else {
$lightbulb='sirena';
}
eval("\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");

} else {
$pminfo='';
}

// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format(($numbersmembers['users']), 0, ',', '.');
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=number_format(($snonposters['users']), 0, ',', '.');
$activemembers=number_format((($numbersmembers['users'])-$nonposters), 0, ',', '.');
$activityrate=number_format(($activemembers/$numbermembers/10), 2, ',', '.');

// Equate [Added Post 230.b to resolve Active Users issues]
// $activemembers=number_format($activemembers);
// $nonposters=number_format($nonposters);

// PM Totals
$totalpms = $DB_site->query_first("SELECT count(*) as pmcount FROM privatemessage");
$totalpm = number_format(($totalpms[pmcount]), 0, ',', '.');

// Staff
$anum = mysql_num_rows(mysql_query("select * from user WHERE usergroupid=5 or usergroupid=6 or usergroupid=7"));

// get total posts & threads
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=number_format(($countposts['posts']), 0, ',', '.');

$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=number_format(($countthreads['threads']), 0, ',', '.');

// thread Most Viewed
$top3d1=$DB_site->query("SELECT threadid, title, views FROM thread GROUP BY threadid ORDER BY views DESC LIMIT 1");
while ($top3d=$DB_site->fetch_array($top3d1)) {
$top3d1views = number_format(($top3d[views]), 0, ',', '.');
$top3d1id =($top3d[threadid]);
$top3d1title =($top3d[title]);
$maxchars='20'; // title lenght
if (strlen($top3d1title) > $maxchars) {
$top3d1title = substr($top3d1title, 0, $maxchars-2) . '...';
}
}

// get total views
$boardviews = $DB_site->query_first("SELECT SUM(views) AS threadviews FROM thread");
$totalviews = number_format(($boardviews[threadviews]), 0, ',', '.');

// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid'];

// if user is know, then welcome
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
eval("\$newposts = \"".gettemplate('forumhome_newposts')."\";");

} else {
$welcometext = "";
eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
}

$birthdaybits="";
if ($showbirthdays) {

$birthdays = gettemplate('birthdays',0,0);
$btoday = explode('|||',$birthdays);
$today = vbdate("Y-m-d",time());
if (($today != $btoday[0] and $today != $btoday[1]) or empty($birthdays)) { // Need to update!
if (empty($birthdays)) {
$DB_site->query("INSERT INTO template (templateid, templatesetid, title, template) VALUES (NULL, '-2', 'birthdays', '')");
}
getbirthdays();
$birthdays = $DB_site->query_first("SELECT template FROM template WHERE title='birthdays' and templatesetid = -2");
$birthdays = $birthdays[template];
$btoday = explode('|||',$birthdays);
}

if ($today == $btoday[0]) {
$birthdays = $btoday[2];
} elseif ($today == $btoday[1]) {
$birthdays = $btoday[3];
}

if ($birthdays) {
eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
}
}

//Forum info
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');
while ($forum=$DB_site->fetch_array($forums)) {
$iforumcache["$forum[parentid]"]["$forum[displayorder]"]["$forum[forumid]"] = $forum;
}
$DB_site->free_result($forums);
unset($forum);

//Forum perms
$forumperms=$DB_site->query("SELECT forumid,canview,canpostnew FROM forumpermission WHERE usergroupid='$bbuserinfo[usergroupid]'");
while ($forumperm=$DB_site->fetch_array($forumperms)) {
$ipermcache["$forumperm[forumid]"] = $forumperm;
}
$DB_site->free_result($forumperms);
unset($forumperm);

$accesscache = array();
if ($bbuserinfo['userid']!=0 AND $enableaccess) {
//Access table perms
$accessperms=$DB_site->query("SELECT forumid,accessmask FROM access WHERE userid='$bbuserinfo[userid]'");
while ($accessperm=$DB_site->fetch_array($accessperms)) {
$accesscache["$accessperm[forumid]"] = $accessperm;
}
$DB_site->free_result($accessperms);
unset($accessperm);

// usergroup defaults
$usergroupdef['canview'] = $permissions['canview'];
$usergroupdef['canpostnew'] = $permissions['canpostnew'];

// array for accessmask=0
$noperms['canview'] = 0;
$noperms['canpostnew'] = 0;
}

$imodcache = array();
$mod = array();
$forummoderators=$DB_site->query('SELECT user.userid,user.username,moderator.forumid
FROM moderator
LEFT JOIN user
ON (moderator.userid=user.userid)
ORDER BY user.username');
while ($moderator=$DB_site->fetch_array($forummoderators)) {
$imodcache["$moderator[forumid]"][] = $moderator;
$mod["$moderator[userid]"] = 1;
}
$DB_site->free_result($forummoderators);
unset($moderator);

$activeusers = "";
$loggedinusers = "";
if ($displayloggedin) {
$datecut=time()-$cookietimeout;

$loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut");
$numberguest=$loggedins['sessions'];

$numbervisible=0;
$numberregistered=0;

$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid = $loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}

while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
}
$DB_site->free_result($loggedins);

$totalonline=$numberregistered+$numberguest;
$numberinvisible=$numberregistered-$numbervisible;

$maxusers=explode(" ", gettemplate('maxloggedin',0,0));
if ((int)$maxusers[0] <= $totalonline) {
$time = time();
$maxloggedin = "$totalonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
$recordusers = $maxusers[0];
$recorddate = vbdate($dateformat,$maxusers[1]);
$recordtime = vbdate($timeformat,$maxusers[1]);
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");
}

// Start makeforumbit
function makeforumbit($forumid,$depth=1,$permissions='') {
global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imo dcache,$session,$accesscache,$usergroupdef,$noperm s;
global $showlocks,$hideprivateforums,$showforumdescriptio n,$forumhomedepth,$dateformat,$timeformat,$enablea ccess;

if ( !isset($iforumcache["$forumid"]) ) {
return;
}

$forumbits = '';

while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {
while ( list($key2,$forum)=each($val1) ) {

// Permissions
if ( $enableaccess and is_array($accesscache["$forum[forumid]"]) ) {
if ($accesscache["$forum[forumid]"]['accessmask']==1) {
$forumperms = $usergroupdef;
} else {
$forumperms = $noperms;
}
} else if ( is_array($ipermcache["$forum[forumid]"]) ) {
$forumperms = $ipermcache["$forum[forumid]"];
} else {
$forumperms = $permissions;
}

$trueperm['canview'] = $forumperms['canview'];

if (!$hideprivateforums) {
$forumperms['canview']=1;
}

if (!$forumperms['canview']) {
continue;
} else {
$forumshown=1;

// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
if (($fview = get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) {
$userlastvisit=$fview;
} else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}

if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff'].='lock';
}

// prepare template vars
if (!$showforumdescription) {
$forum['description']='';
}

// dates
if ($forum['lastpost']>0) {
$maxchars='30'; // title lenght
if($trueperm['canview']) {
$forum['lastthread']=unhtmlspecialchars($forum['lastthread']);
if (strlen($forum['lastthread']) > $maxchars) {
$forum['lastthread'] = substr($forum['lastthread'], 0, $maxchars-2) . '...';
}
}
$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']);
$forum['lastposttime']=vbdate($timeformat,$forum['lastpost']);
eval("\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";");
} else {
$forum['lastpostinfo']='Never';
}

$listexploded=explode(",", $forum['parentlist']);
while ( list($mkey1,$mval1)=each($listexploded) ) {
if ( !isset($imodcache["$mval1"]) ) {
continue;
}
reset($imodcache["$mval1"]);
while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
if ( !isset($forum['moderators']) ) {
eval("\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";");
} else {
eval("\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
}
}
}

if ( !isset($forum['moderators']) ) {
$forum['moderators'] = '&nbsp;';
}

if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");

if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}
} // END if can view
} // END while ( list($key2,$forum)=each($val1) ) {
} // END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {

unset($iforumcache["$forumid"]);
return $forumbits;
}

if (!isset($forumid) or $forumid==0 or $forumid=='') {
$forumid=-1;
} else {
// need to get permissions for this specific forum
$permissions=getpermissions(intval($forumid));
}
$forumbits=makeforumbit(intval($forumid), 1, $permissions);

/* vbStats [forumhome]
#########################################*/
// Today post and threads [FireFly]
$tltoday=time()-(86400);
$getpoststoday=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$tltoday'");
$poststoday=number_format(($getpoststoday[count]), 0, ',', '.');
$getthreadstoday=$DB_site->query_first("SELECT count(*) AS count FROM thread WHERE dateline>='$tltoday'");
$threadstoday=number_format(($getthreadstoday[count]), 0, ',', '.');

// Today Views
$tltoday=time()-(86400);
$todayboardviews = $DB_site->query_first("SELECT SUM(views) AS threadviews FROM thread WHERE dateline>='$tltoday'");
$todayviews = number_format(($todayboardviews[threadviews]), 0, ',', '.');

// ########## New Users Today
$tltoday=time()-(86400);
$getnewusertoday=$DB_site->query_first("SELECT count(*) AS count FROM user WHERE joindate>='$tltoday'");
$newusertoday=number_format(($getnewusertoday[count]), 0, ',', '.');

// PM Today
$tltoday=time()-(86400);
$todaypms = $DB_site->query_first("SELECT count(*) as pmcount FROM privatemessage WHERE dateline>='$tltoday'");
$todaypm = number_format(($todaypms[pmcount]), 0, ',', '.');

// 24 Hours
$datecut3=time()-(86400);
$toppost3=$DB_site->query("SELECT COUNT(post.userid) as posts, user.username, user.userid FROM post, user WHERE post.userid=user.userid AND post.dateline>=$datecut3 GROUP BY user.userid ORDER BY posts DESC LIMIT 1");
while ($user3=$DB_site->fetch_array($toppost3)) {
$numbertopposts=number_format($user3[posts]);
$topposter=($user3[username]);
$topposterid=($user3[userid]);
}

eval("\$vbstats = \"".gettemplate('vbstats_forumhome')."\";");
// vbStats [forumhome] END


$unregwelcomemessage='';
if ($bbuserinfo['userid']==0) {
eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
}

eval("dooutput(\"".gettemplate('forumhome')."\");");

?>

2) template
<table align="left" border=0 cellpadding="0" cellspacing="0" valign="top">
<tr height="3">
<td></td>
</tr>
<tr align="left">
<td width="120"><smallfont><a href="memberlist.php?s=$session[sessionhash]">Iscritti</a>:&nbsp; <b>$numbermembers</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
Nuovi Iscritti:&nbsp;<b>$newusertoday</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
<a href="showgroups.php?s=$session[sessionhash]">Staff</a>:&nbsp;<b>$anum</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
Attivi:&nbsp;<b>$activemembers</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
Non Attivi:&nbsp;<b>$nonposters</b>&nbsp;&nbsp;</smallfont></td>
<td colspan="2"><smallfont>
% Attivi:&nbsp;<b>$activityrate<b><smallfont>%</b></smallfont></b>&nbsp;&nbsp;</smallfont></td></tr>
<tr>
<td><smallfont>
Stat. totali:&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
Discussioni:&nbsp;<b>$totalthreads</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
MP:&nbsp;<b>$totalpm</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
Post:&nbsp;<b>$totalposts</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
Visite:&nbsp;<b>$totalviews</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>Top Disc.: &nbsp;<b>
<a href=showthread.php?threadid=$top3d1id>$top3d1title</a></b>
&nbsp;&nbsp;</smallfont></td>
<td><smallfont>($top3d1views Visite)
&nbsp;&nbsp;</smallfont></td></tr>
<tr>
<td><smallfont>
Stat. ultime 24 ore:&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
Discussioni:&nbsp;<b>$threadstoday</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
<a href='private.php?s=$session[sessionhash]'>MP</a>: <b>$todaypm</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
<a href='search.php?action=getdaily'>Post</a>:&nbsp;<b>$poststoday</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>
Visite:&nbsp;<b>$todayviews</b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>Top Poster:&nbsp;<b><a href=member.php?action=getinfo&userid=$topposterid">$topposter</a></b>&nbsp;&nbsp;</smallfont></td>
<td><smallfont>($numbertopposts Post) &nbsp;&nbsp;</smallfont></td></tr>
</table>
</td></tr>

VAN
11-27-2003, 05:27 AM
v2.3.3 here, and I am having the same problem as many others in this thread and in the 30+ posts I've read, no solution was offered.

Installation went easy. No errors. I get no parse errors or anything, but calling myforums.com/vbstats.php brings up...


vbStats Error!
Be sure to add this line to your phpinclude template:

include("./vbs_counter.php");

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

Your template should look something like this:

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


My phpinclude template looks just like that. I have even tried it with the full path and still get the error.

How is this corrected?

fantasyiq
12-05-2003, 12:13 AM
Great hack, but I think the design has WAY too many database hits and I definitely noticed a slowdown on my site, especially with a lot of users online. I made a couple small modifications that greatly reduce the database hits and improve performance.

1) Removed the "include("./vbs_counter.php");" from the phpinclude template.

2) Modified global.php:
Find:
if (!$servertoobusy) {
require('./admin/sessions.php');

Add before:
if (!isset($sessionhash)) include("./vbs_counter.php");

3) Modified vbstats.php:
Find:
$vbs_today=time()-(86400);
Add:
$vbs_date = date("Y-m-j");

4) Modified template vbstats_stats:
Replaced text "Page Views" with "Sessions"
Replaced text "Views" with "Sessions" (in last 24 hour section)

That's it. What this essentially does is replace all page hit information with new session information. So the stats are only updated when a new session is created, not with every page hit. Although you lose the "Page Views" stat, everything else works fine, and the database only gets hit by vbs_counter.php when there's a new session rather than with every page hit. You would likely want to reset your counters after making this change.

zsmom
12-05-2003, 02:35 AM
Great hack, but I think the design has WAY too many database hits and I definitely noticed a slowdown on my site, especially with a lot of users online. I made a couple small modifications that greatly reduce the database hits and improve performance.

1) Removed the "include("./vbs_counter.php");" from the phpinclude template.

2) Modified global.php:
Find:
if (!$servertoobusy) {
require('./admin/sessions.php');

Add before:
if (!isset($sessionhash)) include("./vbs_counter.php");

3) Modified vbstats.php:
Find:
$vbs_today=time()-(86400);
Add:
$vbs_date = date("Y-m-j");

4) Modified template vbstats_stats:
Replaced text "Page Views" with "Sessions"
Replaced text "Views" with "Sessions" (in last 24 hour section)

That's it. What this essentially does is replace all page hit information with new session information. So the stats are only updated when a new session is created, not with every page hit. Although you lose the "Page Views" stat, everything else works fine, and the database only gets hit by vbs_counter.php when there's a new session rather than with every page hit. You would likely want to reset your counters after making this change.

Worked great...reduced page load, lost 4 queries and server load is down. THANKS!

HA, it even took care of the errors I was getting on my vbhome page. Cool! :up:

Kamui Shirou
12-19-2003, 10:31 AM
I dont think Bane's going to release the update running on his site. aww never mind. thanx

monstergamer
01-06-2004, 03:23 AM
@ bane, do you think you well port this hack to VB3?

cnczone
01-09-2004, 09:38 PM
I hope so!!!

Andreas
01-11-2004, 11:43 PM
I've already "ported" vBStats to vBulletin 3.

You can see it working at http://www.planetliebe.de/vbb/vbstats.php (german board, sorry).

Edit:
The path on the server is actually / v b b/vbstats.php (without the spaces) - don't know why the board keeps changing the URL :(

It's currently running on a Beta 7 Board, but will work on RC2 too (with only slight modifications).
If there's enough interest and i've got the time to compile an installation package I could release this (if Bane does allow that).

monstergamer
01-12-2004, 02:12 AM
I've already "ported" vBStats to vBulletin 3.

You can see it working at http://www.planetliebe.de/vB/vbstats.php (german board, sorry).

Edit:
The path on the server is actually / v b b/vbstats.php (without the spaces) - don't know why the board keeps changing the URL :(

It's currently running on a Beta 7 Board, but will work on RC2 too (with only slight modifications).
If there's enough interest and i've got the time to compile an installation package I could release this (if Bane does allow that).i hope he dose and if he dose well you redo it in english ?

Andreas
01-12-2004, 04:29 AM
It's 98% phrased, with standard phrases being english.
Just my board does use german ones as it is a german board ;)

Zelda-King
01-12-2004, 07:36 AM
That's really nice. I've missed this hack due to having upgraded to vB3 quite some time ago.

monstergamer
01-12-2004, 02:40 PM
i would like it back :) on vb3
as the other stats hack dont look as good and is not on a different page

carryapple
01-15-2004, 09:28 AM
Hi Guys,

vbStats was working like a charm - until today. I installed phpadsnew and for some reason I can't access vbstats anymore:

Warning: Supplied argument is not a valid MySQL result resource in /home/xxxxxx/www/home/vbstats.php on line 133
1146: Table 'phpmyads.vbstats_counter' doesn't exist

any ideas? pretty weird. I already uninstalled vbstats and reinstalled it - no go, same error.

carryapple
01-16-2004, 05:50 PM
anyone?

I believe vbstats tis trying to access the wrong database, can I hardcode it somehow to access the right one?

Serge
01-16-2004, 06:38 PM
anyone?

I believe vbstats tis trying to access the wrong database, can I hardcode it somehow to access the right one?

Sounds to me like you overwrited a global file reupload your vbulletin global file and make sure that you table prefix is correct.

carryapple
01-17-2004, 07:22 AM
thanks for your help.

I reupped a fresh global.php, that didn't change anything though.

Where do I check if it has the right table prefix?

thanks!

Zaeolos
01-17-2004, 09:15 PM
How do you get this thing to show up on your board?

Sorry if this is a stupid ?

Thanks

Zelda-King
01-17-2004, 09:38 PM
You need to make a link to the page somewhere, ie, make a vBStats button as a link in your header.

Zaeolos
01-17-2004, 09:51 PM
Ok..I did that..I thought there might be a way to actually show up at the bottom of the board at all times.

Thanks

Zelda-King
01-17-2004, 09:58 PM
Well you could stick a link in the footer instead. It doesn't show on the actual board. It wouldn't be good for server load for all that information to be showing ALL the time.

chrisvonc
01-18-2004, 05:11 PM
Installed this and seems to be working good until I tried to do a backup of my DB. I had run one the night before installing this and now after, my backup consistantly stalls at the 18mb mark.

Any idea how it could be related?

Thanks,

Chris

carryapple
01-19-2004, 03:31 PM
Guys,

I've still got that problem with vBstats (see above) - it keeps on trying to access the wrong database... please help, I'd apprechiate it!

Andreas
01-19-2004, 03:40 PM
@CarryApple
That's kinda strange as VbStats does use vBs Database-Class.
Where did you put vbstats.php?
Maybe it's using the wrong global.php ...

You could also try to replace all instances of mysql_query in vbstats.php with $DB_site->query.

carryapple
01-19-2004, 05:42 PM
Kirby,

Weeeeee, thanks a LOT!
Replacing mysql_query with $DB_site->query did the trick, vb stats is up and running again - thank you so much! :)

Darken Rahl
01-19-2004, 06:02 PM
Any way to make the vbstats.php viewable only after you login?

Andreas
01-19-2004, 06:10 PM
@Darken Rahl
I don't know which vBulletin & vBStats-Version you use, but this should do the trick:

In vbstats.php, before

if (!isset($action) or $action=="") {
$action="stats";
}


Add the following code

// Check if user is logged in
if (!$bbuserinfo['userid'])
show_nopermission();

Darken Rahl
01-19-2004, 06:13 PM
Thanks a million Kirby! Worked like a charm! :D

Smitty
01-19-2004, 09:30 PM
Thanks a million Kirby! Worked like a charm! :D
Any news on this being updated to work with vB version 3?

Andreas
01-19-2004, 09:41 PM
Bane will most likely update vbStats when vB3 final is released.

Fargo
01-23-2004, 03:30 PM
Great addition to my site!!! Easy to install and a load of info..thank you!

Click..Installed! :D

alexi
02-02-2004, 04:25 AM
After uninstalling this hack I am recieving this in my Apache log

[error] PHP Warning: (null)(): Failed opening 'vbs_counter.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /usr/local/apache/sites/disboards.com/htdocs/global.php(314) : eval()'d code on line 20

any ideas?

Andreas
02-02-2004, 04:37 AM
Edit template phlinclude and remove
include('./vbs_counter.php');

himerus
02-23-2004, 01:35 PM
Bane will most likely update vbStats when vB3 final is released.
I hope this is updated to vB3 soon. I can't wait to add this to my board. It looks like a great hack for vB2, and I'm sure the vB3 version will be even better. :)

gopherhockey
02-28-2004, 03:12 PM
I too cannot wait for a vb3 version. I can't believe nobody has done something even on a smaller scale. My users really enjoyed the "Top X" posters... thats the first thing they complained about when we upgraded.

ga.net
02-29-2004, 01:16 PM
I have a couple of questions

My forum is US hosted but Philippine-based so how come my top visitors are from the USA? How does the script determine that?

Also how does it measure forum activity level as well as determine the active memebers?

Thanks

blakkboy
03-03-2004, 03:43 PM
i would i add the vbstats.php to link after the users online link......

so i would have:

Users Online/ Stats <------- and then that Stats text would link to the vbstats.php ???

blakkboy
03-09-2004, 12:16 PM
^^^ uppin

Zelda-King
03-09-2004, 04:09 PM
If you read the thread you'll see someone already ported it and has shown a live demo of vBStats running on vB3.

Smitty
03-09-2004, 04:21 PM
If you read the thread you'll see someone already ported it and has shown a live demo of vBStats running on vB3.
Well, the thread is 80+ pages. You say it has been ported and a demo going. I'm assuming that the hack hasn't been released. Correct?

SilverBoy
04-07-2004, 12:08 PM
where are u bane, we need it to vb3gold :(

Host Directory
04-07-2004, 12:51 PM
If you read the thread you'll see someone already ported it and has shown a live demo of vBStats running on vB3.
So does this work in vb3gold? I have this hack installed in vb2.2.9 and i am about to upgrade to vb3. Someone said that there is a live demo for vb3 on this thread... but this thread is massive. Anyone got the url for that post or can confirm this works on vb3.

If it does work on vb3, is there any moderations needed for the hack to work when upgrading?

SilverBoy
04-09-2004, 01:23 PM
up agian :(

Host Directory
04-09-2004, 02:10 PM
up agian :(
What do you mean? Up again?

Zelda-King
04-09-2004, 02:48 PM
So does this work in vb3gold? I have this hack installed in vb2.2.9 and i am about to upgrade to vb3. Someone said that there is a live demo for vb3 on this thread... but this thread is massive. Anyone got the url for that post or can confirm this works on vb3.

If it does work on vb3, is there any moderations needed for the hack to work when upgrading?This DOESN'T work on vB3! Someone ported it to vB3 for their own personal use.

https://vborg.vbsupport.ru/showpost.php?p=460981&postcount=1182

Host Directory
04-09-2004, 02:50 PM
Do you know who ported it over to vb3?

Are they going to be kind and show us the changes needed to make it work for the rest of us?

:(

Zelda-King
04-09-2004, 02:52 PM
See edited post above.

Host Directory
04-09-2004, 02:59 PM
I've already "ported" vBStats to vBulletin 3.

You can see it working at http://www.planetliebe.de/vB/vbstats.php (german board, sorry).

Edit:
The path on the server is actually / v b b/vbstats.php (without the spaces) - don't know why the board keeps changing the URL :(

It's currently running on a Beta 7 Board, but will work on RC2 too (with only slight modifications).
If there's enough interest and i've got the time to compile an installation package I could release this (if Bane does allow that).


Could you please sure the rest of use how to port it over to vb3? I am about to upgrade from 2.2.9 and i am really disappointed to loose this hack.

Zelda-King
04-09-2004, 08:09 PM
Well you have it on vB2 so you know there is no REQUIRED file hacking at all so this is comparitively easy to port to vB3.

Host Directory
04-09-2004, 10:08 PM
Thanks for the help so far zelda... but i am confused now since i heard it doesnt work on vb3. So if i want to get it to work on vb3 what do i do?

Zelda-King
04-09-2004, 10:23 PM
The install file needs modifying. If you run it on vB3 you'll get loads of errors.

Some of the PHP files need translating to the vB3 code. ie, vbstats.php and vbstats_set use vB2 code which vB3 doesn't recognise. Same goes for the templates, but most of the database queries will run fine.

Certain file edit options need translating to vB3 code also.

Oh, and if anyone's thinking of actually converting it, the search and replace function works wonders. Heh!

Bane
04-11-2004, 08:44 PM
OK, since I'm being raped by PMs here @ vb.com and talkloud I'll give you guys a wee status update.

I am currently looking at vBulletin 3, and trying to get used to the new system etc while slowly upgrading talkloud. As soon as TalkLoud is in a managable state I will begin porting vbStats to vBulletin 3. I am a bit hesitant to let anyone port it because I would hate to have everyone move to a new system and when I do get about to releasing an optimized version everyone is all like.. "vbStats?" :)

I do appreciate everyones patience on this. And I will try to get around the thread a bit more and maybe in a week or so post a general suggestion thread on things people would like included. One feature I did want to make sure was present was dynamic modules. In other words a drag and drop file (or near so) that would expand your stats to include other items such as vbPro Arcade or vbIndex or vbAdvanced specific information.

All I ask is that when I release it you guys jettison me instantly into the top 5 hacks. :p

Zelda-King
04-11-2004, 09:23 PM
I've seen a server load bit included. Are you sure that isn't server intensive (hence why TECK only lets admins [as opposed to everyone] see that in his Microstats hack)?

Bane
04-11-2004, 09:25 PM
Everything will be configurable. Turn that off if you dont want it to be there, etc. :)

sabret00the
04-11-2004, 09:25 PM
I've seen a server load bit included. Are you sure that isn't server intensive (hence why TECK only lets admins see that in his Microstats hack)?
nope teck don't do the above rather erwin does.

and also bane, not sure if it effects your plans or not but EvB released something very similar already for vb3 in the form of Lite Stats

Zelda-King
04-11-2004, 09:28 PM
nope teck don't do the above rather erwin does.Actually, I mean yes TECK's hack lets everyone see some stuff but the server load bit is only viewable by admins.

Bane: Oh yes, I remember now. It was pretty configurable in vB2 as it is. Been a while since I was on vB2. :/

Diva
04-12-2004, 12:03 AM
nope teck don't do the above rather erwin does.

and also bane, not sure if it effects your plans or not but EvB released something very similar already for vb3 in the form of Lite Stats

I'm going to wait for VBStats. It's definately worth waiting (and nagging) for. :p

Bane
04-12-2004, 12:07 AM
nope teck don't do the above rather erwin does.

and also bane, not sure if it effects your plans or not but EvB released something very similar already for vb3 in the form of Lite Stats

To the best of my knowledge Kura plans to upgrade to vbstats as well. :p

I will probably make a quick port in the very near future. Then I will work on the enhanced version.

Boofo
04-12-2004, 01:08 AM
I'm going to wait for VBStats. It's definately worth waiting (and nagging) for. :p

God, what a suck-up! ;)

Boofo
04-12-2004, 01:11 AM
nope teck don't do the above rather erwin does.

and also bane, not sure if it effects your plans or not but EvB released something very similar already for vb3 in the form of Lite Stats

Sorry, buddy, but Teck (who used to be nakkid) released the original Microstats for vB2 AND vB3. Erwin just did a small port of his own that is not as comprehensive as Teck's. ;)

Diva
04-12-2004, 01:14 AM
God, what a suck-up! ;)


:eek: :(

Boofo
04-12-2004, 01:17 AM
But you're so damned cute when you suck-up, baby! ;)

SilverBoy
04-12-2004, 05:13 AM
Iam waiting bane ;)

sabret00the
04-13-2004, 07:11 PM
To the best of my knowledge Kura plans to upgrade to vbstats as well. :p

I will probably make a quick port in the very near future. Then I will work on the enhanced version.
so hoping that you'd scrap vBstats priority in favour of the webcam system is a waste of time then :p

i'll look forward to seeing this in vb3, i've always respected your work :)

Emmy2
04-20-2004, 03:38 PM
I love this hack! Great job and it works perfectly on my site.

Just one question though....

It looks like the PM messages total is for PMs that are currently being stored in members' folders (ie. it goes down if members delete old messages). I would like to have the PM figure represent the total of ALL pms ever sent. When searching the forums for something that might help me do this I found this....

https://vborg.vbsupport.ru/showthread.php?t=35227

I tried it....replacing the $totalpm with $pmssent but it didn't work. Is there some way I can accomplish the same thing some other way?

FlyBoy73
04-22-2004, 02:29 AM
Bane.. Your working on vb legend bro.. make it happen. :)

RichieBoy67
04-24-2004, 06:59 PM
will this work on vb3.0???

PenguinHorn
05-05-2004, 03:34 AM
I'm getting an error while attempting to install vbstats.... any ideas?
"Fatal error: Call to undefined function: cpheader() in c:\inetpub\wwwroot\forum\admincp\install_vbstats.p hp on line 37"

Thanks!!

Rick Sample
05-06-2004, 06:44 PM
[QUOTE=RichieBoy67]will this work on vb3.0???

007
05-18-2004, 02:53 AM
Just wanted to say that this is one of the hacks I loved in VB2 and will definately install when it is released for VB3. Keep up the good work Bane! :)

Mutt
05-22-2004, 10:54 PM
I've used this to add counters to all of the main vbpages but what about nonvb pages. I'd like this to also track my image gallery and I'm not quite sure how to accomplish it. anybody successful?

Intex
05-22-2004, 10:56 PM
Definitely looking forward to having this on 3.x. Good luck with it Bane :).

pdatoon
05-25-2004, 07:02 PM
Great hack! thanx :)
Just a question, in the operating section, "Unknown" is pretty high. Do you have any idea why?
http://www.pdafrance.com/pdaforum/vbstats.php?s=&action=stats

Jargon
06-03-2004, 09:34 AM
yeah im getting this error:

Fatal error: Call to undefined function: cpheader() in /home/username/public_html/forums/install_vbstats.php on line 37

please help!

FutureDEV
06-07-2004, 08:59 PM
When is vB3 ver comming out? Thanks!

imageconstrux
06-27-2004, 08:49 PM
To whomever can answer this question -

How does the stats hack resolve what countries visitors are from? Is there a way I can find what IP's the system has logged for each country? I'm looking to block access for certain IP blocks.

Andreas
06-27-2004, 08:54 PM
The original version of vBStats uses the user's host to determine the country (eg. ppl from .uk = Great Britain, .at = Austria and so on).

If you are running Apache and have mod_geoip installed you can easily modify vss_counter.php to use GeoIP Free to get better results.