vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Admin CP UserTools and ServerStats (https://vborg.vbsupport.ru/showthread.php?t=43232)

wolfe 11-21-2002 10:24 PM

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


Boofo 12-07-2002 02:06 AM

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? :)

TECK 12-07-2002 08:43 AM

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...

Boofo 12-07-2002 04:21 PM

Got it! Thank you. :)

Attrox 12-07-2002 07:01 PM

Oh damn, this is an awesome hack...I'll have to install it after work. :) *bookmarks*

Bison 12-08-2002 06:41 PM

A question about this hack ... how ... if possible, can you get the "Server Uptime" and "Server Load" to appear ... on a NT Server?

VeoMorphine 01-01-2003 05:44 PM

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

Boofo 01-01-2003 07:44 PM

It works on 2.2.9. That's what I'm running it on. ;)

VeoMorphine 01-01-2003 08:11 PM

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

veomorphine@punkass.com

thanks.

TECK 01-01-2003 11:55 PM

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/


All times are GMT. The time now is 08:25 AM.

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.01100 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_code_printable
  • (1)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
  • (10)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