![]() |
Admin CP UserTools and ServerStats
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: |
My customized Admin CP...
You can see there the user tools and server stats (for v1.1)... |
Ooo, nice.
I like pretty much all your hacks Teck :) |
Very nice. I might install this:)
Btw, do you want your I.P to be seen be everyone? |
is all dummied the info there. :)
just a demo... |
Ah, ok, cool:)
So, yeah, good hack:) Will install it later:) *clicks install* |
Is the VB team cool with us getting rid of their credits in the AdminCP? Stupid question I know, since we are the only ones who see it, but I just want to cover all the bases.
|
one idea i came up with. i could make the hack to make invisible all null values. in other words, to dont show at all the fileds that contain 0 or 0.00 values... let me know if you would like it better this way.
|
Copyright is copyright ..
|
Quote:
in the license, when you purchase vBulletin it says you can edit the code the way you like it. there is no need for me to clutter my admin CP with 20 links and pointings to the vBulletin site. so if i feel that my little toe is telling me to remove the vbulletin credits from a CP that is viewed only by me, be sure i will do it in no time. one copyright at the bottom of the page is enough for me. also the hack doesnt remove any of the credit links (or whatever...) you dont see anymore on the screenshot. that's why i said my customized CP, not other's. it simply changes the server load to the options you see listed and improves the php code in certain areas. |
I figured as much. Just wanted to touch base with you to make sure.
Your hacks are always awesome, thanks for your hard work. |
np SpeedStreet, but is always better to check first:
"did he really removed something from the VB info code, or is only on his CP?" installing the hack takes 30secs, the way i did it in the install file. i edit my admin CP the way i want. if i wanna put naked women on it, i will just because i like it. i dont see why VB would care how it looks my CP, as long as i keep the copyright at the bottom... |
Nice.
|
Very, very nice!
|
glad you like it guys... did anyone had problems? the stats work great on apache.
|
No problems here, a very nice addon for the ACP :D
|
ok, i added now also the user's IP address and the port that he(she)'s using to connect to the server.
Example: Your IP Address: 27.0.0.1 (port 4300) find this code: Code:
makelabelcode('Host Name:', hostname()); Code:
makelabelcode('Load Averages:', $serverload); i will update the .txt file right now. |
Awesome, Nakkid released another hack :p
[high]* Velocd clicks install ;)[/high] |
heh.. who's Nakkid? :speechless: :knockedout:
|
Quote:
|
yeah that?s nice...
INSTALL!!! |
Not sure what happened but I replaced the code you said with your code and it totally hosed my admin.
It now gives me some screwed view of the forumhome. Have there been some revisions i missed? |
you edited /forum/ADMIN/index.php, not forum/index.php right?
your forumhome will look wired if you edit that file instad of the admin index.php one. and the code does not interfer at all with the forumhome. the hack basically show you some useful stats on your home admin page, that's all. |
Quote:
I'll be all right after the two pots of coffee wears off a bit. |
heh. np... let me know if you have it working good. :)
|
Awesome hack. I only wish I had found it sooner.
|
it was published yesterday. :)
|
]
Quote:
Don't make forum and good peole in ++++. Shame on you... |
]By the way, very nice hack with a lot of nifty info for admin who cares about his server/forum.
Nice stats and the idea itself :) Thumbs up, TECK! ;) I had to edit some stuff tho' as I store my attachments outside of my database... Anyway, great work :) [high]* wooolF[RM] clicks *install*[/high] |
Yeh...
I now get 0.00Mb for Attachments, as I use PPN's "attachments as files" malarky thing... Whats the correct fix? Satan |
you wont be able to see it becasue is not stored in the database the information. you should remove the line for attachments in stats.
|
Ok...
I removed one of the lines... This one : PHP Code:
|
Ah...And this line too for those who need to or want to :
PHP Code:
|
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') { Code:
if ($newusers['count'] != '0') { |
Cool...:)
Satan |
*clicks install*
thank you. excellent resource. love it. keep 'em coming. |
]:D :D :D :D :D :D
|
Quote:
people you should see hell's no. of installed hacks in profile: [high]# Of Hacks hellsatan Installed: 517[/high] wow. all the respect for installing a record no. of hacks and also even greater respect for taking the effort to click the button install. wich not alot of people do. call it laziness, not other thing. if you install a hack, at least give credit to the hacker. one more time, thanks satan your all. floren. |
modified it to work with attachments af files
replace this PHP Code:
PHP Code:
PHP Code:
PHP Code:
I used the same function to total up uploaded profile pics and sig images. |
very nice Mutt... i learn from everyone something, every day.
chris?? you wanna try it in your board since you request it? :) let us know if it worked great, as i assume... so other users will use the code to. ok, i added a link in the first post. :) |
All times are GMT. The time now is 03:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|