Realm status and Guild Quote not working.

Theme, template, layout, or image issues

Realm status and Guild Quote not working.

Postby AR|Groundzero » Tue Jan 30, 2007 5:27 pm

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
AR|Groundzero
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Wed Jan 24, 2007 6:26 pm

Realm status and Guild Quote not working.

Postby zanix » Wed Jan 31, 2007 12:38 am

Looks fine to me...
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Realm status and Guild Quote not working.

Postby britoque » Mon Nov 12, 2007 6:38 pm

Hi there,

I have been using both the old roster and the latest beta version of roster. And in both cases the realm status doesn't seem to be working, just says ? server status, no status. I have checked the settings in roster and the realmstatus.php file and they seem to be correct. I have also checked the index.xml file on the EU blizzard site and my realm seems to be on there correctly "Anachronos". I am now at a loss and feel like banging my ahead against a brick wall, but that would be painful!

Here is a link to our site, Equilibrium Roster

Hope somone can help, or is it just me?

Cheers...
Attachments
phperror.jpg
php error screen shot
phperror.jpg (174.24 KiB) Viewed 1866 times
realmstatus.zip
realmstatus.php
(3.71 KiB) Downloaded 375 times
Last edited by britoque on Tue Nov 13, 2007 5:24 pm, edited 5 times in total.
britoque
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Tue Mar 13, 2007 4:09 pm

Realm status and Guild Quote not working.

Postby zanix » Tue Nov 13, 2007 3:18 am

Looks like they changed the xml file... again!

Scratch that, there isn't an xml file at all. Looks like they removed it.
Last edited by zanix on Tue Nov 13, 2007 3:35 am, edited 1 time in total.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Realm status and Guild Quote not working.

Postby Nylream » Tue Nov 27, 2007 2:31 am

Hello to all,

I have a problem with the realm status (hope I'm in the good thread, and sorry for my english, I'm a litlle bit rusty).
I'm using roster 1.7.3 (and testing 2.0) both have the same issue about the realm status : it seems "unknow"

The realm is "La Croisade écarlate" (please notice the é, it 's a EU french server)
On the blizzard page, it is wrote as "La Croisade ecarlate" (here, an e remplace the é)

In the config panel I correcty choose "image" and "full" for the realm status. But nether the 1.7.3, nor the 2.0 seems to work with that.

Here are the 2 link :
2.0 : http://www.renaissance-lce.net/roster20 ... ercp&a=g:1
1.7.3 : http://www.renaissance-lce.net/wowroster/index.php

I've tried to find a topic to resolve this, (changing realmstatus.php for exemple) but the issus still the same.

I hope that I'm just a newbie, and you 'll tell me the answer is simple :roll:

Thank you folks :oops:

ps: the armory sync doesn't sync on the 2.0, but I'll not be surpised if it was for the same reason (doesn't seem to find the realm).
Nylream
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Sun Dec 17, 2006 3:56 pm

Realm status and Guild Quote not working.

Postby zanix » Tue Nov 27, 2007 3:12 am

Read above,
The realmstatus feed for EU realms has changed, so realmstatus doesn't work until we find the new feed
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Realm status and Guild Quote not working.

Postby tuigii » Tue Nov 27, 2007 12:06 pm

zanix wrote:Read above,
The realmstatus feed for EU realms has changed, so realmstatus doesn't work until we find the new feed

IHMO : I didn't quit well understand that : on an good-old 1.7.3 driven EU French roster (http://www.les-potes-ages.fr/roster/index.php) my Realmstatus is still up and huming.
The http://www.wow-europe.com/en/serverstatus/index.xml is up again :?: because it is.

[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


PS (and Nylream, ignore the following lines :wink: ) : technical point of view :
A side effect: $err will be set to '0' - that's ok.
But this:
$querystr = "UPDATE `".ROSTER_REALMSTATUSTABLE."` SET ".$wowdb->assignstr." WHERE `server_name` = '".$wowdb->escape($realmstatus)."';";
will fail because `server_name` (the one still present in the database) isn't $realmstatus anymore.
The "don't bother WoW with every Roster-page-realm-status-image update protection mechanism won't work anymore.
WoW will be interrogated on EVERY page hit.
Hummmmmm -> performance hit issues here?!.
Last edited by tuigii on Tue Nov 27, 2007 12:13 pm, edited 2 times in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Realm status and Guild Quote not working.

Postby zanix » Tue Nov 27, 2007 12:15 pm

Roster 1.7.3 uses an html parser for the EU realmstatus

For Roster 2.0, we found an xml feed of the realmstatus for EU realms
Recently, blizz either removed or changed the xml feed
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Realm status and Guild Quote not working.

Postby tuigii » Tue Nov 27, 2007 12:28 pm

:?:

html ?

Then what's this :
//==========[ 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']) )
{


File head :
Code: Select all
...
 * $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
...

Please don't tell me I'm mixing Roster 2 files with 1.7.3 files (would be a disaster).

Anyway, if needed, I can up my realmstatus.php file.
Last edited by tuigii on Tue Nov 27, 2007 12:30 pm, edited 1 time in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Realm status and Guild Quote not working.

Postby zanix » Tue Nov 27, 2007 12:49 pm

You're right
I forgot we changed it in 1.7.3
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Realm status and Guild Quote not working.

Postby Nylream » Wed Nov 28, 2007 1:43 am

To Zanix,
Thanks and sorry for the useless question :oops:

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


Thank you for answering me this fast 8)

Unfortunatly, it didn't seem to work :roll:

I've correctly edit the file, and got the [ STATUS GENERATION CODE ] exactly on line 80. I added (copy and past) the 2 lines you given me just below .

Now, it shows me the name off the server but still doesn't see the Status.
I'm still searching :s
Last edited by Nylream on Wed Nov 28, 2007 1:44 am, edited 1 time in total.
Nylream
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Sun Dec 17, 2006 3:56 pm

Re: Realm status and Guild Quote not working.

Postby tuigii » Wed Nov 28, 2007 5:09 am

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



WTF : you're right !!! (making me being wrong again :wink: )

They acually build some kind of RSS/XML scheme of it !!
The layout changed 'somewhat'.

This is about EU realm status pages : http://www.wow-europe.com/en/serverstatus/index.xml
It decodes 'right' with this code:

[be carefull, fellow roster V2.0 Beta admins - this is NOT a patch, but a start of a proposal of new code]

realmsstatus.php : start from line 117 :
Code: Select all
//==========[ 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 ]=================================================
 


I'll will follow the new XML layout to look for new state info - and other stuff that 'might' be worth to include in de Realmstatus image.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Realm status and Guild Quote not working.

Postby zanix » Wed Nov 28, 2007 5:31 am

Looks like they left out the population info :(
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Realm status and Guild Quote not working.

Postby tuigii » Wed Nov 28, 2007 6:00 am

zanix wrote:Looks like they left out the population info :(


Yep, this what I'm thinking also .... couldn't find any trace of them any more.
I only found text like Recommeded & Full:

Use this line to see them all on EU servers :
http://www.les-grands-croises.fr/roster ... az%20Modan
[ a patch is in place to show the $xml_server['category'][2]['data'] for every server.

And that's about it.

In the upper XML structure, more general info is present now, like server version, dates etc.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: Realm status and Guild Quote not working.

Postby ntex » Wed Nov 28, 2007 9:40 pm

Yay! I tested the new code above that was proposed and uploaded it on my website and for the 1st time I see the real status, atm on official web status EU page everything is offline (atm I'm@work so can't really login in-game) and now I see my server status is offline, checking every half-hour to see when status page changes to see if Realm Status on Roster and Block of Home page changes again or not.

Although it didn't work initial (perhaps was the browser's cache I hope), so I was making the other changes regarding the armory stuff (curl code "fix"), when I refreshed it, the realm status updated to the actual state 8) so this was for sure an odd coincidence and probably the fault of browser's cache (no I didn't not clean it).
User avatar
ntex
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Fri Aug 17, 2007 9:58 pm

Next

Return to Appearance

Who is online

Users browsing this forum: No registered users and 1 guest

cron