Realm Status for Spanish servers

Installation issues with WoWRoster

Realm Status for Spanish servers

Postby Ikaro » Tue Jan 23, 2007 7:40 am

Hi all

Can anyone tellme how to modify the setup for the roster to points to anywere to gather info about spanish realms?

Thanks to every one.
Last edited by Ikaro on Thu Jan 25, 2007 2:43 am, edited 1 time in total.
... all those moments will be lost in time, like tears in rain.
Time to die.
Image
User avatar
Ikaro
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Tue Aug 22, 2006 5:38 pm
Location: Falling from the sky

Re: Realm Status for Spanish servers

Postby Ikaro » Thu Jan 25, 2007 2:51 am

Hi again

Sorry but I've just seen that this topic has been answered before in the following post:
http://wowroster.net/Forums/viewtopic/t=2406.html
Thanks all
... all those moments will be lost in time, like tears in rain.
Time to die.
Image
User avatar
Ikaro
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Tue Aug 22, 2006 5:38 pm
Location: Falling from the sky

Re: Realm Status for Spanish servers

Postby Whynona » Sat Feb 03, 2007 1:58 am

I every one.

I've fix for myself the "bug" with realmstatus doing this way

First of all I've notice few difference between US xml file and EU xml file.

I've kept the idea of different realm in the select options.

so I've changed the following line in "install/mysql_data.sql" :

Code: Select all
INSERT INTO `renprefix_config` VALUES (
   8000,
   'realmstatus_url',
   'http://www.worldofwarcraft.com/realmstatus/status.xml',
   'select{US Servers^http://www.worldofwarcraft.com/realmstatus/status.xml
|European English^http://www.wow-europe.com/en/serverstatus/index.html
|European German^http://www.wow-europe.com/de/serverstatus/index.html
|European French^http://www.wow-europe.com/fr/serverstatus/index.html',
   'realmstatus_conf');


by the following one :

Code: Select all
INSERT INTO `renprefix_config` VALUES (
   8000,
   'realmstatus_url',
   'http://www.worldofwarcraft.com/realmstatus/status.xml',
   'select{US Servers^http://www.worldofwarcraft.com/realmstatus/status.xml
|European English^http://www.wow-europe.com/en/serverstatus/index.xml
|European German^http://www.wow-europe.com/de/serverstatus/index.xml
|European French^http://www.wow-europe.com/fr/serverstatus/index.xml
|European Spanish^http://www.wow-europe.com/es/serverstatus/index.xml',
   'realmstatus_conf');


Next I've done something that is not an issue for de dev team of course, but that can help for other european people.

In realmstatus.php find :

Code: Select all
//==========[ XML PARSER ]=============================================================

      $xml_parse =& new xmlParser();


and replace :

Code: Select all
switch ( $xml_server['S'] )
{
   case 0:
      $realmData['serverstatus'] = 'Down';
      break;
   case 1:
      $realmData['serverstatus'] = 'Up';
      break;
   case 2:
      $realmData['serverstatus'] = 'Maintenance';
      break;
   default:
      $realmData['serverstatus'] = 'Unknown';
}
switch ( $xml_server['T'] )
{
   case 0:
      $realmData['servertype'] = 'RP-PvP';
      $realmData['servertypecolor'] = '535600';
      break;
   case 1:
      $realmData['servertype'] = 'Normal';
      $realmData['servertypecolor'] = '234303';
      break;
   case 2:
      $realmData['servertype'] = 'PvP';
      $realmData['servertypecolor'] = '660D02';
      break;
   case 3:
      $realmData['servertype'] = 'RP';
      $realmData['servertypecolor'] = '535600';
      break;
   default:
      $realmData['servertype'] = 'Unknown';
      $realmData['servertypecolor'] = '860D02';
}
switch ( $xml_server['L'] )
{
   case 1:
      $realmData['serverpop'] = 'Low';
      $realmData['serverpopcolor'] = '234303';
      break;
   case 2:
      $realmData['serverpop'] = 'Medium';
      $realmData['serverpopcolor'] = '535600';
      break;
   case 3:
      $realmData['serverpop'] = 'High';
      $realmData['serverpopcolor'] = '660D02';
      break;
   case 4:
      $realmData['serverpop'] = 'Max';
      $realmData['serverpopcolor'] = '860D02';
      break;
   default:
      $realmData['serverpop'] = 'Error';
      $realmData['serverpopcolor'] = '860D02';
}


bye the following one :

Code: Select all
switch ( $xml_server['S'] )
{
   case "Down":
      $realmData['serverstatus'] = 'Down';
      break;
   case "Up":
      $realmData['serverstatus'] = 'Up';
      break;
   case "Maintenance":
      $realmData['serverstatus'] = 'Maintenance';
      break;
   default:
      $realmData['serverstatus'] = 'Unknown';
}
switch ( strtoupper($xml_server['T']) )
{
   case "RPPVP":
      $realmData['servertype'] = 'RP-PvP';
      $realmData['servertypecolor'] = '535600';
      break;
   case "PVE":
      $realmData['servertype'] = 'Normal';
      $realmData['servertypecolor'] = '234303';
      break;
   case "PVP":
      $realmData['servertype'] = 'PvP';
      $realmData['servertypecolor'] = '660D02';
      break;
   case "RP":
      $realmData['servertype'] = 'RP';
      $realmData['servertypecolor'] = '535600';
      break;
   default:
      $realmData['servertype'] = 'Unknown';
      $realmData['servertypecolor'] = '860D02';
}
switch ( $xml_server['L'] )
{
   case "Low":
      $realmData['serverpop'] = 'Low';
      $realmData['serverpopcolor'] = '234303';
      break;
   case "Medium":
      $realmData['serverpop'] = 'Medium';
      $realmData['serverpopcolor'] = '535600';
      break;
   case "High":
      $realmData['serverpop'] = 'High';
      $realmData['serverpopcolor'] = '660D02';
      break;
   case "Max":
      $realmData['serverpop'] = 'Max';
      $realmData['serverpopcolor'] = '860D02';
      break;
   default:
      $realmData['serverpop'] = 'Error';
      $realmData['serverpopcolor'] = '860D02';
}


Many things are translated in the roster, but not this part. Of course it's not to hard to anderstand but my advice is that you could use constant in the language file too have it translated...

Anyway, sorry for my bad english, I haven't practice for a whyle so ...
Last edited by Whynona on Sat Feb 03, 2007 2:03 am, edited 1 time in total.
Whynona
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Sat Feb 03, 2007 1:39 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron