PDA

View Full Version : Statistics Panel


jly2klee
03-19-2002, 10:00 PM
Well, I wiped this up for another set of forums at There is 2 other hacks used in this, and I take NO credit for them.

So I would just like to say thanks to FireFly and Lesane. Now Get To That Thread To Download!


Installation Time: 3 minutes aprox.
Experience Level: Between Beginner and Intermediate


Features:

Shows the Member Of The Day, Total Members, posts and threads and Top poster and thread starter, and lastly but not least, Total Posts Today!



Whats To Come?

Well, soon there will be a new version, with more useful info, like the top referer.

- Jly2klee

Floris
03-20-2002, 01:31 PM
You have a demo? The www button in your post isn't working.

jly2klee
03-20-2002, 01:37 PM
the forums are closed.. but i attached a image.

E
03-20-2002, 03:59 PM
nice, looks great-thanks

nafae
03-20-2002, 06:34 PM
sexy! I like it and shall install in a bit :)

MrLister
03-20-2002, 06:52 PM
Originally posted by nafae
sexy! I like it and shall install in a bit :)
by any chance do you work in a hair salon? :)

BigJohnson
03-20-2002, 06:53 PM
thanx i will install this soon

Mohamed
03-20-2002, 08:50 PM
nice work
installed
:)

thanks

Moegames
03-21-2002, 01:45 AM
Nice work

LamBras
03-21-2002, 10:48 AM
Nice idea, allthough the "posts today" query seems to put heavy load on the database. I put it on my forumshome and it inceases loading time of the page by several seconds (!). Is there a way to lower that load?

nafae
03-21-2002, 11:17 PM
Originally posted by LamBras
Nice idea, allthough the "posts today" query seems to put heavy load on the database. I put it on my forumshome and it inceases loading time of the page by several seconds (!). Is there a way to lower that load?

Yes I would like to know this also :laugh:

vertex
03-21-2002, 11:31 PM
how does member of the week work? do you chose or is it random?

jly2klee
03-21-2002, 11:44 PM
it is a random thing. It chooses a new user every 24-hours using the server clock.

|GMK|PlaTooN
03-24-2002, 06:22 PM
First, we need to run this query:

INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,-2,'memberoftheday','0||vb||0||vb||0');

What is that??????????

LamBras
03-24-2002, 07:12 PM
An SQL query. You can insert it right on the command shell with the "mysql" command, or use phpMyAdmin (www.phpwizard.net/phpmyadmin ) and enter it via a webpage (which I recommend).

69-FLy-gUy
03-28-2002, 08:10 AM
Hm i have a little problem..

I also use the autoposter hack.. and the top thread starter is the autoposter. lol..

how do i code it so that it doesn't include the usergroup=0?

69-FLy-gUy
04-02-2002, 06:54 AM
*bump*

pHAZE_1
04-03-2002, 01:22 AM
this line right here

INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,-2,'memberoftheday','0||vb||0||vb||0');

what template does it go into and exactly where does it go? :)

Xanthine
04-03-2002, 01:32 AM
You dont enter that in any template, its a SQL query. This question was already answered in this thread, please read it before you ask next time. :ermm:

Wolf42
04-03-2002, 10:29 AM
Originally posted by 69-FLy-gUy
Hm i have a little problem..

I also use the autoposter hack.. and the top thread starter is the autoposter. lol..

how do i code it so that it doesn't include the usergroup=0?
Find
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");
replace with

$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,thread.postuserid,thread.postusername,user.u serid,user.usergroupid FROM thread,user WHERE thread.postuserid=user.userid AND user.usergroupid<>0 GROUP BY postuserid ORDER BY count DESC LIMIT 1");
Think that should word. ;)

pHAZE_1
04-07-2002, 06:14 PM
Originally posted by Xanthine
You dont enter that in any template, its a SQL query. This question was already answered in this thread, please read it before you ask next time. :ermm:

sorry bout that, but how exactly do i do this? please be specific im not good at this kind of stuff.

69-FLy-gUy
04-08-2002, 07:18 AM
thanks it worked

warpedvision
04-13-2002, 01:44 PM
I have a problem:

Top Poster, Top Thread Starter and member of the day arnt working.

I followed the hack exsactly right ?

Can anyone help me ?

http://www.warpedvision.net

EchoHype.com
04-22-2002, 05:43 PM
Or find the hack called "Ruen a Query from the Admin CP" or whatever.

That's what I use, easiest, and quickest =)

pHAZE_1
04-22-2002, 06:05 PM
to change the color to my regular text, what would i change. i believe it is <td bgcolor="{secondaltcolor} do i change the {secondaltcolor} to text or what? =]

pHAZE_1
04-22-2002, 07:12 PM
1 more thing [[Top Poster: () | Top Thread Starter: () | Total Posts Today: 0]] doesnt work.. help please

pHAZE_1
04-24-2002, 06:20 PM
i see what i did wrong now and fixed it. thanks for the help

fasal
04-24-2002, 07:47 PM
Originally posted by |GMK|PlaTooN
First, we need to run this query:


INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,-2,'memberoftheday','0||vb||0||vb||0');

What is that??????????

Your right how we do that

pHAZE_1
04-30-2002, 07:35 PM
Your right how we do that
you have to run a query, there is a hack by firefly called run MySQL queries from admin cp...

IS there a way that i can change the text color to the same as my board colors instead of black???

Chris M
04-30-2002, 08:42 PM
@warpedvision & fasal...

Goto : [vB v2.2.1] SQL Query from Control Panel - by JamesUS (https://vborg.vbsupport.ru/showthread.php?s=&threadid=33731)

Satan

Danny
05-19-2002, 05:59 PM
hi nice hack it works fine except for the member of the day i get this error.

Invalid SQL: SELECT userid,username FROM user WHERE userid<>$daybits[1] AND (usergroupid=5 OR usergroupid=6 OR usergroupid=7 OR usergroupid=2) ORDER BY RAND() LIMIT 1
mysql error: You have an error in your SQL syntax near 'RAND() LIMIT 1' at line 1

any ideas anyone?

scsa20
05-19-2002, 08:01 PM
you need to have this installed (https://vborg.vbsupport.ru/showthread.php?s=&threadid=34779) ;)

Danny
05-19-2002, 08:59 PM
it is installed turned out to be a different version of mysql didnt like the rand() see member of the day thread for fix.

but the problem i have now is that the userid numbers dont match the username.

http://www.golden-springs.com/forums/index.php

you will see the top poster and top thread starter show userid 1 and userid 2 from the database but the names arent userid 1 and userid 2

can this be fixed?

DelusionalMind
05-24-2002, 10:59 PM
Originally posted by scsa20
you need to have this installed (https://vborg.vbsupport.ru/showthread.php?s=&threadid=34779) ;)

sweet. found the fix there. thanks :)

scsa20
05-25-2002, 12:14 AM
np ;)

pran
06-12-2002, 05:45 AM
Wouldn't this tax the server because every hit on the forumhome would generate 5 additional SQL select statements? Why not put this as a link on another page for those who want statistics?

dreamhost
07-04-2002, 07:32 AM
love the hack, you said new vs coming out with referrer, due soon? wow it's hacks like this as to why i left dcforum after years of having to hack it myself, what a community

Obi-Wan
08-03-2002, 04:14 PM
gonna install this one now m8.

Thx

hmm doesn't seem to work on the 2.2.6 version cause some lines are unable to be found.

Is there gonna be an update...or does somebody know what to edit?

Steve St.Lauren
08-03-2002, 08:09 PM
I was able to install this hack on our 2.2.6 vB forum no problem. It's been a while but I don't remember having any problems. Have you installed other hacks that could have changed the code?

-Steve St.Laurent
Webmaster of http://www.turbodieselregister.com

Obi-Wan
08-04-2002, 12:25 AM
Could well be yes.

but found the bugger.

Thx anywayz for the help

Conroy
12-07-2002, 04:10 PM
ok, I installed the hack that allows you to run queries in the admin cp and I copied the this text from the installation file:

INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,-2,'memberoftheday','0||vb||0||vb||0');

But I got an error message that said:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,-2,'memberoftheday','0||vb||0||vb||0');

mysql error: You have an error in your SQL syntax near ';
' at line 1

mysql error number: 1064

Date: Saturday 07th of December 2002 10:07:16 AM
Script: http://www.advancedgamers.com/vbulletin/vbulletin/admin/query.php
Referer: http://www.advancedgamers.com/vbulletin/admin/query.php?t=0

I dont know what went wrong.