After installation everything is working correctly except the icons for realm status and guild quote. Does anyone have any idea why this would not work.
You can see what I mean at:
www.garyshobbies.com/roster/index.php
zanix wrote:Read above,
The realmstatus feed for EU realms has changed, so realmstatus doesn't work until we find the new feed
//==========[ STATUS GENERATION CODE ]=================================================
$realmData['server_name']="La Croisade ecarlate";
$realmstatus = "La Croisade ecarlate";
//==========[ STATUS GENERATION CODE ]=================================================
// Check timestamp, update when ready
$current_time = date('i')*1;
if( $current_time >= ($realmData['timestamp']+$timer) || $current_time < $realmData['timestamp'] )
{
$xml_parse =& new xmlParser();
$err = 1;
if( $xml_parse->parse($url) )
{
if( count( $xml_parse->output ) )
{
if( is_array($xml_parse->output[0]['child']) )
{
...
* $Id: realmstatus.php 603 2007-02-14 07:37:56Z zanix $
....
....
// WOW Server Status
// Version 3.2
// Copyright 2005 Nick Schaffner
// http://53x11.com
// EDITED BY: http://wowroster.net for use in wowroster
// XML parsing by Swipe
// Most other changes by Zanix
...
tuigii wrote:[Be informed, the following patch concerns a 1.7.3 Roster - NOT the Beta version]
Nylream,
Open your realstatus.php (with a descent text editor) and look for this line (normally around line 80) :
- Code: Select all
//==========[ STATUS GENERATION CODE ]=================================================
Add this just after it :
- Code: Select all
$realmData['server_name']="La Croisade ecarlate";
$realmstatus = "La Croisade ecarlate";
Save back on your server.
You already understood the problem: your realm name is taken out the roster config database (the "La Croisade écarlate") and compared with the Realms listed over here : http://www.wow-europe.com/en/serverstatus/index.xml
It can't be found.
So that's why I prose you to patch the realmstatus.php file.
Note that you're not the only one ^^ Look over here : identical case : http://www.wowroster.net/Forums/viewtop ... s.php.html
zanix wrote:For Roster 2.0, we found an xml feed of the realmstatus for EU realms
Recently, blizz either removed or changed the xml feed
//==========[ STATUS GENERATION CODE ]=================================================
// Check timestamp, update when ready
$current_time = date('i')*1;
if( $current_time >= ($realmData['timestamp']+$roster->config['rs_timer']) || $current_time < $realmData['timestamp'] )
{
$xmlsource = urlgrabber($xmlsource);
$xmlParser =& new XmlParser();
$xmlParser->Parse($xmlsource);
$err = 1;
if( $xmlsource != false )
{
// was foreach( $xmlParser->data[$xmlmeta['rootxml']][0]['child'][$xmlmeta['realms']] as $key => $value )
foreach( $xmlParser->data['rss'][0]['child']['channel'][0]['child']['item'] as $key => $value )
{
$xml_server = $value['child'];
// was if( $xml_server[$xmlmeta['name']] == $realmname )
if( $xml_server['title'][0]['data'] == $realmname )
{
$err = 0;
// was switch( strtoupper($xml_server[$xmlmeta['status']]) )
switch( strtoupper($xml_server['description']['0']['data']) )
{
case '0':
case 'DOWN':
case 'REALM DOWN': // I sujet here - didn't find any realms down in EU right now ^^
$realmData['serverstatus'] = 'DOWN';
break;
case '1':
case 'UP':
case 'REALM UP': // Found this NEW state
$realmData['serverstatus'] = 'UP';
break;
case '2':
case 'MAINTENANCE': // <-- unchecked
$realmData['serverstatus'] = 'MAINTENANCE';
break;
default:
$realmData['serverstatus'] = 'UNKNOWN';
}
// was switch( strtoupper($xml_server[$xmlmeta['type']]) )
switch( strtoupper($xml_server['category'][1]['data']) )
{
case '0':
case 'RPPVP':
case 'RP-PVP':
$realmData['servertype'] = 'RPPVP';
break;
case '1':
case 'PVE':
$realmData['servertype'] = 'PVE';
break;
case '2':
case 'PVP':
$realmData['servertype'] = 'PVP';
break;
case '3':
case 'RP':
$realmData['servertype'] = 'RP';
break;
default:
$realmData['servertype'] = 'UNKNOWN';
}
if( isset( $xml_server['category'][2]['data'] ) ) // ['category'][2]['data'] sub array NOT always here....
{
switch( strtoupper($xml_server['category'][2]['data']) )
{
case '1':
case 'LOW':
$realmData['serverpop'] = 'LOW';
break;
case '2':
case 'MEDIUM':
$realmData['serverpop'] = 'MEDIUM';
break;
case '3':
case 'HIGH':
$realmData['serverpop'] = 'HIGH';
break;
case '4':
case 'FULL':
case 'MAX': // <-- unused?
$realmData['serverpop'] = 'MAX';
break;
case '5': //<-unused ??
case 'RECOMMENDED': // Found this as a 'new' value ...
$realmData['serverpop'] = 'RECOMMENDED'; // -> unknown type yet !?!
break;
default:
$realmData['serverpop'] = 'ERROR';
}
}
else
{
$realmData['serverpop'] ='-';
}
}
}
}
//==========[ WRITE INFO TO DATABASE ]=================================================
zanix wrote:Looks like they left out the population info
Users browsing this forum: No registered users and 1 guest