Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Admin CP UserTools and ServerStats Details »»
Admin CP UserTools and ServerStats
Version: 1.00, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-05-2002 Last Update: Never Installs: 98
 
No support by the author.

This hack will replace your server average loads with a more detailed table schema.
The following options are available:
- quick user finder (placed at the top)
- useful links (reorganised)
- members online (now viewable even if your sever is not Linux)
- server type (with php and mysql version)
- server uptime
- host name
- host IP address
- your IP address (port number also)
- load averages
- database (name) usage (data and index)
- attachment usage (if enabled)
- custom avatar usage (if enabled)
- users awaiting moderation
- attachments awaiting moderation
- new users today
- registered visitors today
- new threads today
- new posts today

[high]CREDITS:[/high] Freddie Bingham
Integration of Admin Quick Stats options.
I decided to integrate Freddie's hack because I anticipated that several users will ask for it.

ESTIMATED INSTALL TIME: 2 minutes
REQUESTED BY: Nobody
TESTED IN VERSION: 2.2.7

[high]NOTE:[/high] If your server does not support @exec('uptime'), the following stats will be disabled:
- server uptime
- host name
- host IP address (only)
- load averages

The way it was written the code before, you couldn't see any 'members online' stats, if you didnt run(host) a linux box. I enabled it so it's viewable all the time.
Also, notice the way it changes the plural of words, based on the value. for example, if the 'hour' value is higher then 1, it will show as 'hours'. This is available for all words that change, depending on the number variable.

NOTE: If you installed PPN's Attachments as Files, read this post.

HACK UPDATES
Version 1.1
------------------------------------
Changes:
- added 'Your IP Address' option.
If you installed the hack, go here to view the changes.



To download the latest version of this hack, click on the link below:

Show Your Support

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

Comments
  #52  
Old 11-21-2002, 10:24 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

somthing wierd on my end it only shows this

Code:
Site Statistics 
Online Users:
 1 (1 member and 0 guests)
 
Your IP Address:
 xxx.xxx.xxx.xxx (port 1365)
 
Database icb Usage:
 0.72 MB (data) - 0.01 MB (index)
 
Attachment Usage:
 0.00 MB
 
Custom Avatar Usage:
 0.00 MB
 
Users Awaiting Moderation:
 0
 
Attachments Awaiting Moderation:
 0
 
New Users Today:
 0
 
Registered Visitors Today:
 1
 
New Threads Today:
 0
 
New Posts Today:
 0
Reply With Quote
  #53  
Old 12-07-2002, 02:06 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by TECK
i use a different approach me to eliminate completly the lines that have 0 values.
for example, if my specific line it has either "0.0 MB" or "0", i use a line like that:
Code:
if (kbtomb($attach['size']) != '0.0 MB') {
  makelabelcode('Attachment Usage:', kbtomb($attach['size']));
}
or
Code:
if ($newusers['count'] != '0') {
  makelabelcode('New Users Today:', $newusers['count']);
}
i added this condition to all functions that might give me 0 values. just a tip for those who want to have it more compact the information.
Teck, is this already incorporated into the file from the first post? If not, can it be?
Reply With Quote
  #54  
Old 12-07-2002, 08:43 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is not Boofo... but it can be done really easy. Follow the same guidelines like on the quoted post above. For example:
Code:
if ( [high]$newusers['count'][/high] != '0' ) {
  makelabelcode( 'New Users Today:' , [high]$newusers['count'][/high] );
}
If you expect a null value or 0.0MB, use the IF condition to show the line only if is NOT equal to that value...
Reply With Quote
  #55  
Old 12-07-2002, 04:21 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it! Thank you.
Reply With Quote
  #56  
Old 12-07-2002, 07:01 PM
Attrox's Avatar
Attrox Attrox is offline
 
Join Date: Jan 2002
Location: St.Paul, MN
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh damn, this is an awesome hack...I'll have to install it after work. *bookmarks*
Reply With Quote
  #57  
Old 12-08-2002, 06:41 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A question about this hack ... how ... if possible, can you get the "Server Uptime" and "Server Load" to appear ... on a NT Server?
Reply With Quote
  #58  
Old 01-01-2003, 05:44 PM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont think it works on vb 2.2.9

it gives me a parse error:
Parse error: parse error in /www/html/forums/admin/index.php on line 1

I tryed installing a few times on a CLEAN v 2.2.9 admin/index.php
Reply With Quote
  #59  
Old 01-01-2003, 07:44 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works on 2.2.9. That's what I'm running it on.
Reply With Quote
  #60  
Old 01-01-2003, 08:11 PM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

think i can get a copy of your index.php?

veomorphine@punkass.com

thanks.
Reply With Quote
  #61  
Old 01-01-2003, 11:55 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

VeoMorphine, your site promotes illegal activities, hacking, cracking, phreaking, serials, etc.
You are not allowed to use my hacks on a site like yours.
I hope you realize you infringe the Jelsoft agreement, when you use their software.

I'm going to report you for illegal activity:
http://www.diablo3k.net/forums/
Reply With Quote
Reply


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 12:40 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.05076 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (1)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
  • (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_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