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)

PcFreak 07-01-2004 10:00 PM

vB3 Boardstatistic Version 2
 
no more support for statistic version 2



In the next days we will release a new statistic Version (vB Statistic 3).
For this reason I give from today on, no more support for the Statistic Version 2

This version is bigger, faster and we want to publish the statistic in two languages. (german and english).


In order to use the new Statistic Version, the old version must be unfortunately removed.

A deinstallation script you found here >> https://vborg.vbsupport.ru/showpost....47&postcount=2

For a first impression

You find a English demonstration of the Statistic here >> http://at-lantis.de/statistic.php

You find a German demonstration of the Statistic here >> http://boardszene.de/statistic.php

May someone will translate our Phrases from the new version 3.0 into other languages. If you are interested please send me or Onkel_Tom a PM with your eMail Address and we will sent you the phrases file in english to be translated into other languages.

The vB Statistic is free. However, if you would like to donate a small amount, feel free.

https://vborg.vbsupport.ru/external/2010/02/12.gif
  • Statistic Version 3 have more as 7000 Lines of code and possibly, one of the largest Hacks that was ever written for vBulletin.
  • More as 450 different images
  • 46 new Templates are provided
  • More than 350 phrases are needed.
  • Everything is completely adjustable over the AdminCp
  • More than 350 phrases are needed.
  • No much server load. Maximally 5 querys for logging. (normal 3 querys.)
  • The start side of the statistics needs approx. 15 querys (only if this is indicated)
  • More than 350 phrases are needed.
  • Possibility for later updates (e.g. new Spider and Crawler implements)
  • The installation is very, very simply, been made by an installscript and does not need more than 30 seconds. All attitudes and changes take maximally 5 minutes.
  • no changes of the existing vBulletin data base tables
  • 15 new data base tables with more than 1100 inserts are provided
  • Support for international time formats implements.
  • Detect now browser plugins, resolutions and more with javascript.
  • vB Statistic Version 3 show Information about your System on a special side.
  • Detect now browser plugins, resolutions and more with javascript

More Infos soon
PcFreak

PcFreak 07-02-2004 01:00 PM

Statistic Version 2


The board statistics 2,0 indicates hundreds of perfectly redundant and uninteresting datas over the current board.

The statistic show the Space Used by Attachments, the winner of the golden pineapple up to search robots, browser and operating system of your users etc.

The board statistics 2,0 is the advancement of the version 1, however 70 % of the code one rewrote and one modified.
All Templates are "wohlformuliert (validate) " written and correspond now to 100% the XHTML 1,0 standard.


What knows the statistics?
The statistics consists of 2 parts.
On the one some user datas will logged:
Sidecalls
Number of the visitors
Browser and operating system of the visitors
Countries from those the visitors come (Now all 254 images for the flags, in the old version are present were missing there the one or other flag)
Spiders (detect 92 different)
Referer and the Top level domain
The other part consists of the announcement and evaluating well-known data and/or sizes among other things:
Announcement of the TopPoster
User Activity
Announcements of the longest, most popular topics, forums etc..
Announcement of the last inquiries,
Stickys, search words many extended announcements when desired in PopUps.
and much other more.

Installation
The installation is simply and been made by one installationscript. (with approx. 3200 lines code)
36 new templates 8 new data base tables is installed and more then 300 datbase inserts made in the new tables.
All in all the installation takes maximally 5 - 10 minutes.

The statistics is managable over the Admincp.

The Templates and php code are developed in a "pcfreak moderate building block" principle. It should not difficulty to write appropriate extensions for the statistics.

AddOns
Arcade Add On

Ok. Now the we come to the hack.
Download Zipfile, unpack and follow the installation instructions.


Delete all old data base tables for those, which installed the old statistics, and the old templates, before you install the new version.


So, that was all information.
I wish you much fun with the hack and a successful installation.
Criticism, improvement suggestions, praise, Sweets, chocolate and Bugmessages are always welcome.

PcFreak

(dont forget... I?m german. English is not my motherlanguage. So be friendly with me.)

Update 29.8.2004
Update the zip.file with a more bugfree statistik.php file



29 August
Old file was downloaded 678 times.

Updated the zip.file
Reason:

Onkel_Tom have fix a lot of errors. (many thank for doing that)

This version of the statisic hack is very stable. All credits go to Onkel Tom.

NEWS 29.8.2004
Arcade Statistic AddOn.
uninstall_statistik_english.php (from Onkel_Tom)


Arcade Statistic AddOn.
Now it is possible show some statistics about this great mod.
Downlaod zip.file and install.
For user with an old version of the statistic hack (before 29.8.2004) change the statistic.php with the new one.

uninstall_statistik_english.php (from Onkel_Tom)
Onkel_Tom had written an uninstall code. Use the uninstall_statistik_english.php if you want uninstall the statistic hack

Many thanks to Onkel_Tom for bugfixing and translating a lot of the statistic hack code.

PcFreak

PcFreak 07-02-2004 01:05 PM

Some pics

1) admincp
2) Browser / OS Statistics
3) Visitor Countries
4) Statistic overview
5) More Informations in PopUps
6) Referer /Top Level Domain Statistic
7) Spider / Searchbots
8) Polls / Stickys and Searchword Statistic
9) last Days

Boofo 07-02-2004 01:12 PM

Those pics are really hard to see anything with. ;)

Vega 07-02-2004 01:16 PM

Here you can see the stats in action. :)


http://www.offtopic-forums.com/statistik.php?

Vega 07-02-2004 01:18 PM

Oh, and btw. thanks for that Hack PcFreak. Me and my members really like that one! :)

Andreas 07-02-2004 01:19 PM

Demo:
http://at-lantis.de/statistik.php

PcFreak 07-02-2004 01:27 PM

Quote:

Originally Posted by Boofo
Those pics are really hard to see anything with. ;)

Yepp...

But I know. Traffic is expensiv ;)

PcFreak

Andreas 07-02-2004 01:32 PM

Quote:

Originally Posted by PcFreak
Yepp...

But I know. Traffic is expensiv ;)

PcFreak

Hmm ... the attachments are stored on vB.org, so Traffic shouldn't be your problem ;)
Btw: Using JPEG for screenshots normally isn't a good idea at all.

SnowBot 07-02-2004 01:34 PM

Installing now but i have to say if version 1 is anything to go by then version to should be great :) Once again thanks for sharing such a fine hack.

Mijae 07-02-2004 01:41 PM

I will install this after class :)

SnowBot 07-02-2004 01:47 PM

Step 2)
=================================================
Create two new Phrases in the Phrasegroup:
Control center messages (I hope this is the english name for this group)

:) :)

I think its

Control Panel Global

Lets hope im right :)

The Second Phrase may be better to add as such,
Text: Statistics Were Completely Successfully Reset

Chris-FH 07-02-2004 01:58 PM

*Chris clicks install

Simply great! :)

C.

ChrisSy 07-02-2004 02:06 PM

is there an option to only allow admins to view the page?

Andreas 07-02-2004 02:11 PM

If there is none:

In statistik.php FIND

PHP Code:

require_once('/global.php'); 

Right after that ADD
PHP Code:

if (!($permissions['adminpermissions'] & CANCONTROLPANEL)) {
  
print_no_permission();


@PCFreak
You might consider using single quotes for strings that don't contain variables, saves processing time as PHP doesn't have to check for variables then.
Using german variable names is somewhat ridicolous and makes it difficult to read the code, although I am a german native speaker ;)

SnowBot 07-02-2004 02:26 PM

There are afew spelling mistakes in some things, how can we correct these. Such as

Titel

should be

Title. ?

nexialys 07-02-2004 02:27 PM

ya... when we code on a tool, it's better understanding to use the tool's coding protocol... vB is in english, so do the code... anyway, is good hack this one is!

Andreas 07-02-2004 02:30 PM

Quote:

Originally Posted by SnowBot
Such as

Titel

should be

Title. ?

That's not a spelling mistake but a phrase that is not yet translated ;)
Titel ist the german translation for Title.

SnowBot 07-02-2004 02:31 PM

Quote:

11 Visitors visited Synergy directly.
2 Visitors came over a Hyperlink (Referer) to us.
over 2 different Hyperlinks (Referer) found visitors to Synergy
One has Synergy over 1 different Top level Domains reaches
Und wer es wissen will: XHTML kann manchmal ziemlich bl?de sein (Ich hasse Netscape *g*)
HHmm

Quote:

Und wer es wissen will: XHTML kann manchmal ziemlich bl?de sein (Ich hasse Netscape *g*)
Whats that ? :(

SnowBot 07-02-2004 02:32 PM

Quote:

Originally Posted by KirbyDE
That's not a spelling mistake but a phrase that is not yet translated ;)
Titel ist the german translation for Title.

so it auto translates ?

Andreas 07-02-2004 02:35 PM

Quote:

Und wer es wissen will: XHTML kann manchmal ziemlich bl?de sein (Ich hasse Netscape *g*)
"For those who would like to know: XHTML can be really stupid sometimes (I hate Netscape *g*)"

> so it auto translates ?
Don't know. Just check in phrase group manager if there is such a phrase and if so translate it.

SnowBot 07-02-2004 02:43 PM

There is no phrase for it.

SnowBot 07-02-2004 02:46 PM

Dont take this the wrong way PcFreak :) Its just meant as a suggestion, maybe ask an english speaker to help when making hacks that you are going to post on an english board? :) I am sure lots of people will be willing to help, apart from afew German words in this it i still great work and appreciated.

PcFreak 07-02-2004 02:48 PM

Quote:

Originally Posted by KirbyDE
"For those who would like to know: XHTML can be really stupid sometimes (I hate Netscape *g*)"

> so it auto translates ?
Don't know. Just check in phrase group manager if there is such a phrase and if so translate it.

You can change it directly in the templates.
You found Titel in the

statistic_polls
statistic_popular_thread_popup
statistic_popular_forum_popup

I had forgot to translate this word (my mistake)

PcFreak

Andreas 07-02-2004 02:52 PM

You should use phrases instead of hardcoded text in the templates :)
Makes it easier to use this hack with different languages.

PcFreak 07-02-2004 02:55 PM

Quote:

Originally Posted by SnowBot
Dont take this the wrong way PcFreak :) Its just meant as a suggestion, maybe ask an english speaker to help when making hacks that you are going to post on an english board? :) I am sure lots of people will be willing to help, apart from afew German words in this it i still great work and appreciated.

Of course
My english is not very well.
But the hack or the templates are "open source".

Perhaps someone convert the templates to better english. No problem make a installation script only for installing the templates.

Thank you for help

PcFreak

SnowBot 07-02-2004 03:17 PM

:) Your english is better than my german :) Thanks for the fix :)

Tim Wheatley 07-02-2004 05:12 PM

Does anyone with a large forum have this running? Or has someone looked at the code yet to check how this is effecting them?

My board is:
Threads: 146,276, Posts: 1,793,711, Members: 51,840
150-500 online at once, max is about 1000.

Beermonster 07-02-2004 05:41 PM

I don't care what language it's in, I can understand what I need to :)

[high]* Beermonster clicks install[/high]

ranger2kxlt 07-02-2004 07:49 PM

My width is off....its goes off the right of my screen but the left is right....any ideas?

gmarik 07-02-2004 09:22 PM

Great, really cool.
Is therea any stats for vistitors by
- hours
- days of week too?

Sam FT 07-02-2004 11:30 PM

Ok I had the old Stats 1.0 hack. Removed it completly. Install the new Stats 2.0 hack as writing. So when I go to the statistik.php file, I get this database error

Code:

 
  Invalid SQL:
              SHOW TABLE STATUS
              FROM full-throttle_us_-_vb
              LIKE 'pm'
             
  mysql error: You have an error in your SQL syntax near '-throttle_us_-_vb
              LIKE 'pm'
              ' at line 3
 
  mysql error number: 1064


Battle_Ring 07-03-2004 04:01 AM

i installed this and when i go to statistik.php i got this

Database error in vBulletin 3.0.2:

Invalid SQL: SELECT dateline, nuser FROM stats ORDER BY nuser DESC LIMIT 1
mysql error: Table 'chrisr_HipHopStreetz.stats' doesn't exist

mysql error number: 1146

Date: Saturday 03rd of July 2004 12:54:31 AM
Script: http://www.hip-hop-streetz.com/forums/statistik.php
Referer:
Username: Chris
IP Address: 12.27.184.129

Maddrax 07-03-2004 06:13 AM

Maddrax click install ;)

PcFreak 07-03-2004 06:17 AM

@Battle_Ring

Sorry, but I can?t give help for your problem.
Because the table "stats" is a orginal table.

I have check the querie in the statistik.php. Cant found an error there.
I think there is a Problem with the TABLE_PREFIX

Found in the statistik.php

PHP Code:

//Tag mit den meisten Neu Registrierungen
    
$getmostregister$DB_site->query_first("SELECT dateline, nuser FROM " TABLE_PREFIX "stats ORDER BY nuser DESC  LIMIT 1");
    
$getmostregister_tag vbdate($vboptions['dateformat'], $getmostregister['dateline']);
    
$getmostregister_user $getmostregister['nuser']; 

and replace tihs code with this
PHP Code:

//Tag mit den meisten Neu Registrierungen
     //$getmostregister= $DB_site->query_first("SELECT dateline, nuser FROM " . TABLE_PREFIX . "stats ORDER BY nuser DESC  LIMIT 1");
    //$getmostregister_tag = vbdate($vboptions['dateformat'], $getmostregister['dateline']);
    //$getmostregister_user = $getmostregister['nuser']; 

Open the statistic side from your forum.
Tell me what is happen.

@Sam FT
hmm.

This is a normal query.
At the moment, i dont know why do you get a mysql error.
This is the orginal query

PHP Code:

SHOW TABLE STATUS
        FROM $dbname
        LIKE 
'pm' 



PcFreak

Scrub 07-03-2004 07:10 AM

Nevermind. The table is a defualt. :D. Stupid me. :(

Guess I am off to get into his cpanel and figure out if it is missing or if it is the table prefix. ;)

Edit: Weird. He does not have the table by defualt. :eek:

PcFreak 07-03-2004 07:21 AM

I need the drop tables, because i have relaese this hack in two different languages. Some of the tables have different inserts e.g the statistik_laender table.

There are two different installation routines (and i must check both)
Thats the reason for the "drops".

PcFreak

Scrub 07-03-2004 07:23 AM

Updated. :p. Well, it was because of that. He did not have the stats table. O_o. But anyway, this is pretty neat hack! Wish I had a public forum to add this to. :D. Keep up the good work! :D

orca 07-03-2004 10:10 AM

Well, I don't know wether anyone of you uses table_prefixes. But on my board I use them and because of that, the installation script was giving errors. After fixing I had the problem ith all other scripts.

Sam FT 07-03-2004 02:14 PM

Quote:

Originally Posted by PcFreak
@Sam FT
hmm.

This is a normal query.
At the moment, i dont know why do you get a mysql error.
This is the orginal query

PHP Code:

SHOW TABLE STATUS
         FROM $dbname
         LIKE 
'pm' 



PcFreak

Well I am and when I run that query in mysql I still get the same error. So it is something in the query because I check all the pm tables to make sure there wasn't any bad with them.


All times are GMT. The time now is 04:35 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.01728 seconds
  • Memory Usage 1,851KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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