Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
Details »»

Version: , by Bane Bane is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 10-18-2001 Last Update: Never Installs: 335
 
No support by the author.

For vBulletin version: 2.3.x
Files added: vbs_counter.php, vbstats.php, vbstats_admin.php, vbstats_set.php
Files to edit: None! (all hacking is optional)
Current Version: 230.b (02.14.03 - 3am CST)

What does it do?
  • Tracks + Displays Visitors Browser
  • Tracks + Displays Visitors OS
  • Tracks Referring Sites
  • Tracks Total Hits
  • Tracks Top Posters
  • Tracks Top Forums
  • Tracks Top Threads
  • Displays a Massive Amount of Stats
  • Link Queue!
  • Install File!
  • Un-Install File
  • Intergration with vBPortal 2.x/3.x
  • Members,Staff,Active,Non-Active,Activity Level,Newest Member,Top Referrer
  • Threads,Posts,PMs,Thread Views,Page Views
  • (vBPortal) News Stories,Comments,Weekly Surveys
  • (vBPortal 3.x) Link Categories, Links
  • More but I'm tired of typing already

Check the samples:
Stats
http://www.talkloud.net/forums/vbstats.php
Incoming Referrals
http://www.talkloud.net/forums/vbsta...ction=incoming
Member Referrals
http://www.talkloud.net/forums/vbsta...on=memberrefer
Top Posters
http://www.talkloud.net/forums/vbsta...ion=topposters
Top Threads/Forums
http://www.talkloud.net/forums/vbsta...ion=topthreads
Top Visitors Countries
http://www.talkloud.net/forums/vbsta...action=country


Here's the newest version, it's only been a year and a half since the last update!

Translations have been removed as it just made it easy for people to get the hack even without a license. I am hoping people who make translations will be kind enough to post here.

Special Note: I am about as far as it gets from a PHP guru. This is my first hack or addon or whatchamacallit. If this somehow nukes your system Im quite apologetic, but I know you will all be smart enough to BACK UP YOUR DATABASE BEFORE INSTALLING THIS.. I have faith Brad and Chen have both checked this out and given their stamps on it but that doesnt mean it will all Gel for you. Be smart, back it up.

Install: There is a self install file that takes care of the templates and tables, simply unzip the package and upload it (with paths) to your vbulletin directory. Then run the install. Please be sure you add your site (yoursite.com) to the excluded urls in the CP. If you dont your site will get counted as a referrer and that can get messy.

Demo: You can of course see the demo at http://www.talkloud.net/ however if you'd like to see it in use on some other boards check out vbstats page where I will try to keep a list of installs for you to check out. If you do install it please let me know so I can put your site up!

I tested this on my test forum, and on one public forum, and all went well, if there are any problems you notice please report them here as soon as possible.

-------
CHANGELOG

[230.b] Changed Active Users to fix a small bug.
[230.b] Like, tested it and stuff..
[230.a] The MySQL Row=O error is now customized to say add to the template!!!!
hopefully no more "where did I go wrong?" posts! Muahahaha!
[230.a] Fixed Upgrade Counter (?action=upgrade)
[230.a] Set Excluded URL.. Now lists URLS
[230.a] Updated Istall to be compatible with vB 2.3.0
[230.a] Changed Most Number Results to Have a , format (ie 1,000 instead of 1000)
[230.a] I decided Frosted Flakes really are pretty tasty.
[230.a] Implemented Kurafires Member Referrer Changes, thanks Kura
[230.a] Implemented Kurafires Top Posters rewrite.



DEAR GOD CHECK THE SECOND POST OF THIS THREAD BEFORE YOU ASK A QUESTION!!!!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1132  
Old 05-13-2003, 03:07 PM
cnczone cnczone is offline
 
Join Date: Mar 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:15 AM Weasel said this in Post #1130
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:

PHP Code:
    // 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:

PHP Code:
    // 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?
Reply With Quote
  #1133  
Old 05-14-2003, 06:53 PM
Larry Sanders Larry Sanders is offline
 
Join Date: May 2003
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1134  
Old 05-17-2003, 05:06 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

id like to get my hands on the server stats and all the other ones on talk aloud that do not come normaly.
Reply With Quote
  #1135  
Old 05-18-2003, 02:29 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When can we expect a new version for vbulletin 2.3.0 ?
Reply With Quote
  #1136  
Old 05-25-2003, 12:30 AM
NinjaBelly NinjaBelly is offline
 
Join Date: Apr 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1137  
Old 05-26-2003, 12:52 PM
ogden2k's Avatar
ogden2k ogden2k is offline
 
Join Date: Apr 2003
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
05-24-03 at 09:30 PM NinjaBelly said this in Post #1135
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?
Reply With Quote
  #1138  
Old 05-26-2003, 01:10 PM
Bane's Avatar
Bane Bane is offline
 
Join Date: Oct 2001
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for the problem with vbhome you may have to take the counter out of the phpinclude template and put it in your global.php.
Reply With Quote
  #1139  
Old 05-26-2003, 01:21 PM
ogden2k's Avatar
ogden2k ogden2k is offline
 
Join Date: Apr 2003
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, can you be more specific?
Reply With Quote
  #1140  
Old 05-27-2003, 03:04 PM
Mrpolish's Avatar
Mrpolish Mrpolish is offline
 
Join Date: Nov 2002
Location: Texas
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you include top 5 posters on you forumhome template ?
Reply With Quote
  #1141  
Old 05-29-2003, 11:28 PM
hashesh hashesh is offline
 
Join Date: Dec 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant get the exculde userid to actually exclude.. any thoughts?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11586 seconds
  • Memory Usage 2,328KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete