Go Back   RunUO - Ultima Online Emulation > RunUO > FAQ Forum

FAQ Forum A place to find answers to the most frequently asked questions, and a place to post said answers. Do NOT use this forum to ask questions.

Reply
 
Thread Tools Display Modes
Old 06-23-2006, 06:14 AM   #1 (permalink)
Forum Expert
 
Join Date: Feb 2005
Location: Fife,Scotland
Age: 40
Posts: 258
Default Web Status Page

Here is a quick and simple guide to displaying your server status on your web site, this guide is for web status page that is hosted on same pc as the game.

Code:
		{
			if ( !Directory.Exists( "web" ) )
				Directory.CreateDirectory( "web" );

			using ( StreamWriter op = new StreamWriter( "C:/www/webroot/web/status.html" ) )
			{
				op.WriteLine( "<html>" );
				op.WriteLine( "   <head>" );
				op.WriteLine( "      <title>Orgis World Server Status</title>");
				op.WriteLine( "   </head>" );
				op.WriteLine( "   <body bgcolor=\"white\">" );
				op.WriteLine( "      <h1 align=\"center\"><img border=\"0\" src=\"http://i1.tinypic.com/o9if7p.gif\"></h1>" ); //If you have a logo, put a copy of it in the same folder as the status.html (where it will be) then whatever your logo filename is just put that and the file ending. If you do not have a logo, either make one or comment this line out via a //
				op.WriteLine( "  <div align=\"center\">Online clients:<br>" );
				op.WriteLine( "      <table width=\"100%\">" );
				op.WriteLine( "         <tr>" );
				op.WriteLine( "            <td bgcolor=\"black\"><font color=\"yellow\">Name</font></td><td bgcolor=\"black\"><font color=\"red\">Kills</font></td><td bgcolor=\"black\"><font color=\"yellow\">Karma / Fame</font></td>" );
				op.WriteLine( "         </tr>" );
What i done was copy the web folder(RunUO-2.0-RC1\web) into my web root folder which is located here "C:/www/webroot/" taking note of the use of the "/" instead of the "\" which explorer uses, change in "WebStatus.cs" the code in red to point to where your "status.html" is located e.g.

"C:/www/webroot/web/status.html"

Remember to use your file location as i noticed some people use different web servers(i use "Apache")

For customising the look follow the color guide below

Code:
This color is the background color of the complete web page

This will change  the color of the table back ground color

This is the font color with in the table

this line changes the logo you use to display i use tinypic to host it it works fine for me

Any problems PM me ill try to help,

Orgis
__________________

Last edited by orgis; 07-01-2006 at 07:49 AM.
orgis is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5