![]() |
Serverstatus
Well ok..this is my first hack i made and actually was eh..(good?) enough to post here.
I'm running an irc network together with some good friends and i made a hack to show which servers are up and what their speeds/locations are. Also i saw something about clanservers and such. Just add clanservers in this hack instead of irc servers :) It shows up on forumhome with the servername as a link to go to the profile of the server. Where you can view all information of it Behind the servername is the status which gives a green 'Up' when the server is up or a red 'Down' when it's down (you can set it up/down in the admin cp) screenshot of how it looks on forumhome : http://chratnox.servicez.org/pics/screenshot1.jpg screenshot of the server "profile" : http://chratnox.servicez.org/pics/screenshot2.jpg screenshot of when adding a new server : http://chratnox.servicez.org/pics/screenshot3.jpg screenshot of editing an existing server : http://chratnox.servicez.org/pics/screenshot4.jpg I hope you guys like it. and since it's my first hack please be patient on me ;) [edit]yes..these are the stats of one of the servers on there, but hell, i trust you guys :) [/edit] please click on install if you'd like to install it :) |
Dude, I like this, even though it's nothing major, it's a spiffy little thing!
Nice work there |
Nice, came in use...thought I didn't think it would.
|
I run an irc network... dude. thank you so much. For your first hack this is one of the most useful to me :)
|
|
dude, this is pro. :)
|
omg, this is perfect for me. thank you!
|
i get this error:
Database error in vBulletin Control Panel 2.2.4: Invalid SQL: INSERT INTO serverstatus (servertitle,serverid,serverstatus,serverspeed,ser verlocation,serveroperators,se rverowner,servercomments) VALUES (fear,'','1') mysql error: Column count doesn't match value count at row 1 |
Quote:
Code:
$DB_site->query ("INSERT INTO serverstatus (serverid,servertitle,serverstatus,serverspeed,serverlocation,serveroperators,serverowner,servercomments) VALUES (NULL,'$servertitle','1')"); Code:
$DB_site->query ("INSERT INTO serverstatus (serverid,servertitle,serverstatus,serverspeed,serverlocation,serveroperators,serverowner,servercomments) VALUES ('$serverid','$servertitle','$serverstatus','$serverspeed','$serverlocation','$serveroperators','$serverowner','$servercomments')"); |
What would be the code I add to add another section to my server status page that I could fill in info like this
1. xxxx 2. xxxx 3. xxxx 4. xxxx and so on |
Christy thanks alot!!!
i tried something else but it diddnt work lol :p |
hmm sorry for that *blush*
little note...i used "servertext" as field name but you can replace it with what you want to. if you want more fields just add a field in phpmyadmin or run this query Code:
ALTER TABLE `chratnox`.`serverstatus` ADD `servertext` VARCHAR(50) NOT NULL; find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
[php] $DB_site->query("UPDATE serverstatus SET servertitle='$servertitle',serverstatus='$updown', serverspeed='$serverspeed',serverlocation='$server location',serveroperators='$serveroperators',serve rowner='$serverowner',servercomments='$servercomme nts',servertext='$servertext' where serverid='$serverid'"); [php] then find : PHP Code:
PHP Code:
then go to your templates and edit "serverinfo" template and add the variable : $serverinfo[servertext] anywhere you want to. so for example : find : PHP Code:
PHP Code:
|
Quote:
sorry for that :) check the first post for the new attachment |
Ok, so this will make it so I can add more than one line?
Pretty much like a message. I knew I could just copy the previous code for more lines, but I wanted to have a message field where I could post more than one line..make sense? Sorry if this code below explains that, I wont be getting to it till tomorrow! Quote:
|
Nice hack:)
Satan |
Nice addition and I have something very similar added to my "Server Stats" hack. This is a little nicer and I would like to add it to my next version of my hack with the credit of course going to you if thats ok? Let me know.
|
I just had a nice idea. Is there any way to make the hack Ping each server to see if it's up? And then display if its up or not and if its up the ping reply speed? That would be a nice add-on.
|
Quote:
|
Good addition!
Look forward to seeing it =) |
Quote:
but when the server is down it's just waiting for a timeout so that means you have a waiting time of like 20 seconds on your forumhome... so i chose for this |
Quote:
i'm glad you guys like it *blush* |
tops hack m8 - installed it onto me localserver with no problems - just one thing tho... the delete server doesnt seem to do anything
|
Quote:
PHP Code:
PHP Code:
|
nice :D
|
Quote:
i kinda forgot about it i think :| :o but well...thanx for bringing the support |
Quote:
Code:
Parse error: parse error in /admin/serverstatusadmin.php on line 100 BTW thanx for the very quick response |
Quote:
|
Nice hack Chrat, gonna update mine now because of you :)
Cya on IRC Great work, Greets From Man |
I got a Very Little Modifyed Version Running here:
http://www.undergroundcandy.net/forums/ |
|
This is what we use,
http://www.realwebhost.net/netstatus/ |
Sexy!
|
Thread necromancy alert!
|
All times are GMT. The time now is 03:58 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:
|