vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Boardstatistic Version 2 (https://vborg.vbsupport.ru/showthread.php?t=66783)

hdraye 10-04-2004 04:43 AM

Thanx for a great hack, but; :devious: Can I have it count hits on my CMPS page? too, as some users land there and read news without accessing the forums

Thanx

Hani

venomx 10-04-2004 06:07 PM

I believe it does since its in the header templates and CMPS uses the forums heder/footer templates....

buro9 10-04-2004 07:56 PM

I really liked the idea of this hack, but 4 queries per page, ereg's instead of preg's, and massive switch statements... these do not add up to my idea of fun.

I'm afraid that I'm going to uninstall and wait (or maybe develop) a version that has a lighter counter (1 query), and with hourly generation of stats via cron rather than an almost permanently live thing.

This has just been too intensive for me. I have a good server, but we're running several boards and the difference was notable when I commented it out in headinclude. I wouldn't recommend this hack for boards that top several hundred simultaneous users.

Very nice work though... shame I don't have a quieter board at times ;)

Skyline_GT 10-04-2004 10:53 PM

How come it says

http://www.gamerzplanet.net/forums/statistik.php?

Quote:

* - Since Statistics started on 31. December 1969 19:00

venomx 10-04-2004 10:57 PM

Sure you did all the template edits?

Skyline_GT 10-04-2004 11:00 PM

Quote:

Originally Posted by venomx
Sure you did all the template edits?

N/m Fixed.

Thanks.

hdraye 10-07-2004 08:28 AM

Great hack, Thanx

2 things though
My board is in Arabic, but as AR is for Argentina, in the Country by browser language shows Argentina as top country :(

Also, How can I translate the page, I guess they are hardcoded, any idea if they will be in phrase variables?

Thanx again

PitchouneN64ngc 10-12-2004 04:25 PM

This is a very good hack but i've see a little bug in the code ;)

Into the statistikadmin.php, you can see this into the code:

PHP Code:

$stat_set[WRITTENPOPST]=eregi_replace("[^0-9]"null$stat_set[WRITTENPOST]); 

$stat_set[WRITTENPOPST] is wrong :)

Code Monkey 10-13-2004 02:56 PM

Quote:

Originally Posted by PitchouneN64ngc
This is a very good hack but i've see a little bug in the code ;)

Into the statistikadmin.php, you can see this into the code:

PHP Code:

$stat_set[WRITTENPOPST]=eregi_replace("[^0-9]"null$stat_set[WRITTENPOST]); 

$stat_set[WRITTENPOPST] is wrong :)

all of those statements would be more efficient using...

PHP Code:

$stat_set['WRITTENPOST'] = preg_replace('#[^\d]#'null$stat_set['WRITTENPOST']); 


Watson 10-14-2004 08:14 PM

When I installed this I lost around 300 of the posts from the main page, but they are still there in the stats page, any word on how this happened?

I thought it may be my admin forums, but they only have around 100 posts in them, though there are some other forums that are now closed that have some posts in them, would this have affected it, if so how would i get them to be displayed again on the main page?

Watson

achtungbaby 10-20-2004 03:56 AM

*installed*

very nice.

RMS 10-21-2004 04:11 AM

Looks quite nice. :)
How would I go about about linking to this page though?

I was thinking about putting it somewhere on the index, perhaps under the statistics box?

Marv 10-24-2004 04:28 AM

Hi PcFreak,

after the installation of this hack I became overwhelmed by error-msg?s like this:

Quote:

Datenbankfehler in vBulletin 3.0.3:

Ungueltige SQL-Abfrage:
INSERT INTO vb3statistik_log
VALUES('','217.233.158.234','1098556512','Mozilla/5.0 (Windows; U; Win98; de-AT; rv:1.7.3) Gecko/20040910')

mysql error: Access denied for user: 'pxxxxxxx@%' to database 'dbxxxxxxxx'

mysql error number: 1044

Datum: 23.10.2004 20:35:12
Skript: http://www.xxx-xxxx.xxx/forum/usercp.php?
Referer:
Benutzername: xxxxxxxxx
IP-Adresse: 217.233.158.234
Until now I received 200+ error-notifications. Everytime with the same content:

Quote:

mysql error: Access denied for user: 'pxxxxxxx@%' to database 'dbxxxxxxxx'

mysql error number: 1044
I can?t figure out what?s going wrong. All referers are different and the error occurs equal if it?s a registered member or an unregistered visitor.
But I wonder why the error-msg says user: 'pxxxxxxx@%'. The database user is pxxxxxxx without @%.

Do you have any idea what?s going on here ? Anyone..?

master786 10-24-2004 08:19 PM

Thanks for this hack ! We have installed it but how can we enable this on forum home page?

Smitty 10-24-2004 08:57 PM

Any word on the next version that has been discussed?

bondjetta 10-27-2004 01:47 PM

I have a quick question (that may or may not have been answered in the 25 pages before this post)...

is there any reason why the Spiders/Bots option isn't tracking Google Bots? is it something in their software that lets them fly under the radar? or is there a change I can make that will identify them? :)

Onkel_Tom 10-27-2004 01:53 PM

Quote:

Originally Posted by bondjetta
I have a quick question (that may or may not have been answered in the 25 pages before this post)...

is there any reason why the Spiders/Bots option isn't tracking Google Bots? is it something in their software that lets them fly under the radar? or is there a change I can make that will identify them? :)

Look here Google Problem ;)

bondjetta 10-27-2004 02:02 PM

Quote:

Originally Posted by Onkel_Tom
Look here Google Problem ;)

thank you :D

Hialls 10-29-2004 03:29 AM

any chance of converting the arcade addon to work with the new arcade system? ibproarcade.

TruthElixirX 10-30-2004 09:31 PM

I'm getting some parse errors whjen I go to www.punktek.com/statistik.php

Code:

Warning: main(./global.php): failed to open stream: No such file or directory in c:\domains\punktek.com\wwwroot\statistik.php on line 50

Fatal error: main(): Failed opening required './global.php' (include_path='.;c:\php\includes') in c:\domains\punktek.com\wwwroot\statistik.php on line 50


Onkel_Tom 10-30-2004 11:42 PM

@ Punktek.com
Your forum installation is not in a /forum directory !
Please check if you have enaugh rights to execute script in your wwwroot dir.
Also all scripts should habe read and execute rights for al (chmod 755)

Zain Jaffer 11-01-2004 09:41 AM

I don't mean to sound stupid here ,,, but ...

Additional step 1
================================================== =============
Addition for showing Statistics only for Admins and Moderators
================================================== =============

open statistik.php and find:
=============================

// ######################### CHECK PERMISSIONS ###########################
// uncomment the following 4 lines if you want provide statistics only for Admins and Moderators
// if (!($permissions['adminpermissions'] & CANCONTROLPANEL) AND !can_moderate())
// {
// print_no_permission();
// }

================================================== =================
uncomment the lines as written in the code above to look like:
================================================== =================

// ######################### CHECK PERMISSIONS ###########################
// uncomment the following 4 lines if you want provide statistics only for Admins and Moderators
if (!($permissions['adminpermissions'] & CANCONTROLPANEL) AND !can_moderate())
{
print_no_permission();
}

I don't understand step 1, what do you mean by uncomment?!

hdraye 11-01-2004 10:32 PM

Hi Z\in
Just remove the "//" in the begining of line so they are commands not coments

bendigo-tech 11-02-2004 09:25 AM

Fantastic hack.

Have it installed and working great on 3.0.3 :)

Cheers!

nineball 11-02-2004 12:12 PM

Quote:

Originally Posted by Hialls
any chance of converting the arcade addon to work with the new arcade system? ibproarcade.

I found that changing all references to gamesessions to gamesession seems to work ok

TruthElixirX 11-03-2004 11:18 PM

I fixed my previous error, now one problem. How do I add a link into the nav bar? For everyone to see.

Mirlyn 11-05-2004 05:59 AM

I get an error message on the first visit to my site:

Fatal error: Failed opening required './includes/functions_statistik.php' (include_path='.:/usr/share/pear') in /home/playit/www/forum/statistik_counter.php on line 190

Removing it from phpinclude_start will get rid of the problem.

It only happens once, and a refresh will fix it for the duration of the visit. Any ideas?

Mark.B 11-05-2004 08:55 AM

It's worth noting that the Arcade add on is 816 queries.

Yes, 816.

It's not recommended for people on shared hosting to be making that page public, not unless you want a nasty email from your hosts.

Mr Peabody 11-05-2004 10:57 PM

Only thing that dosent seem to work right is visitors from Hong Kong show up as unknown.
I would be great to be able to assign which usergroups can view stats

GenSec 11-07-2004 02:50 AM

Quote:

Originally Posted by Jolten
48 queries.. ugh... okay only superadmins will get this.

I worked a little with main page part of statistik.php and now it's only 27 queries :squareeyed:

I attached my version of this part here.

It also needs to change STATISTIC template to correspond:

$postername1 to $postername[1]
$posterid1 to $posterid[1]
$poster_beitragszahl1 to $poster_beitragszahl[1]

$postername2 to $postername[2] etc.
.................................

Sweet Evil 11-10-2004 01:55 PM

looks great thanks!

joeychgo 11-20-2004 09:55 AM

Quote:

Originally Posted by Onkel_Tom
@ Punktek.com
Your forum installation is not in a /forum directory !
Please check if you have enaugh rights to execute script in your wwwroot dir.
Also all scripts should habe read and execute rights for al (chmod 755)


My board isnt in a /forum directory either.

Action-N 11-21-2004 05:41 AM

Well I finally figured out why my board has so many queries on all my pages. I tracked it down to this hack, so I just finished uninstalling it. You should tell people up front that this adds atleast 4 extra queries on every vb page. If I know I'd have looked for an alternative which I'm going to do now. It looked like it was working alright, but to me wasn't worth it.

ChuanSE 11-22-2004 06:22 AM

I use to have it on my board, it didn't really slowed down stuff tho...
Bt i guess it isn't clever to have it on a 1000member board :-)

BamaStangGuy 11-22-2004 07:16 AM

Quote:

Originally Posted by ChuanSE
I use to have it on my board, it didn't really slowed down stuff tho...
Bt i guess it isn't clever to have it on a 1000member board :-)

I have 1700 members, works fine on my site. Huge database attachment tables tend to slow it down alot. Fixed that buy putting attachments on file system. Now I can actually back the database up with ease.... my attachment table was 400+ mb

Silverstangs 11-26-2004 02:56 PM

I now have it installed on Stang Country. The stats are showing only 3 spiders, and I know I have google and a few other's hitting the site when I look at "who's online". ........ is there a fix for that?

BTW here is the link to that stats in action..
Stang Country Stats.

Couch 11-27-2004 05:15 PM

Excellent Hack, installed and working no problem.

Thank You.

*Clicks Install*

DS MrSinister 11-27-2004 06:01 PM

I am having some problems with some of my stats.. I Had them working then my site crash.. When I reinstalled I cant get them to work Now.. Did everthing the same.. Can any one help me on this..


http://drunkensoldiers.net/forums/statistik.php

joeychgo 11-28-2004 03:19 PM

Quote:

Originally Posted by BrentWilson
I have 1700 members, works fine on my site. Huge database attachment tables tend to slow it down alot. Fixed that buy putting attachments on file system. Now I can actually back the database up with ease.... my attachment table was 400+ mb


How did you do all that?

goblues 11-28-2004 05:18 PM

Quote:

Originally Posted by DS MrSinister
I am having some problems with some of my stats.. I Had them working then my site crash.. When I reinstalled I cant get them to work Now.. Did everthing the same.. Can any one help me on this..


http://drunkensoldiers.net/forums/statistik.php

Just taking a stab, did you place the following code into your phpinclude_start template?

Code:

include("./statistik_counter.php");


All times are GMT. The time now is 10:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01890 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete