PDA

View Full Version : AJAX module - World Of Warcraft Realm Status module


jim6763nva
07-06-2006, 08:08 PM
I was analyzing the AJAX code that Blizzard has on there Realm Server Status page and was wondering how it could be adapted to a module for Vba CMPS?

I tried putting the following code in the headinclude section:


<script type="text/javascript" src="/shared/third-party/sarissa/sarissa.js"></script>

<script type="text/javascript" src="/shared/third-party/sarissa/sarissa_dhtml.js"></script>

<script type="text/javascript">
<!--
var tableAProcessor;

function initAnnounceDataStyleSheet()
{
tableAProcessor = new XSLTProcessor();
var xslADoc = Sarissa.getDomDocument();
xslADoc.async = false;
xslADoc.load('wow/realmstatus_announce.xsl');
tableAProcessor.importStylesheet(xslADoc);
}

function showAnnounceStatus()
{
if (!tableAProcessor)
initAnnounceDataStyleSheet();
Sarissa.updateContentFromURI("wow/status.xml", document.getElementById("statusAnnounceDisplay"), tableAProcessor);
}
//-->
</script>


and the following code in a template called adv_portal_realmstatus:


<div class="announce">
<div id="statusAnnounceDisplay"></div>
<script type="text/javascript">
<!--
showAnnounceStatus();
//-->
</script>

<h5 style="text-align: center">Updated: Thu Jul 6 15:10:01 MST 2006</h5>
</div>


I set all this up as a template module on my front page, but all I get is the collapsable header.

Any ideas?

Jim

KW802
07-06-2006, 08:26 PM
Right off the bat it won't work with those URLs because they are relative to Blizzards servers.

Can you post a link to a page showing what it's supposed to look like?

Our Sponsors
 

jim6763nva
07-07-2006, 10:04 AM
Right off the bat it won't work with those URLs because they are relative to Blizzards servers.

Can you post a link to a page showing what it's supposed to look like?

I was reading the following thread on the worldofwarcraft.com forum and the admin of the site http://www.yourfirefly.com is using the same or a modification of the same code that blizzard is using.
http://forums.worldofwarcraft.com/thread.aspx?fn=wow-guild-relations&t=24493&p=1&tmp=1#post24493 If you pull up the firefly.com website and look for what is shown in the image below, you will see what I mean:

jim6763nva
07-08-2006, 07:44 PM
Is there anything that can be determined from my previous reply? I haven't heard anything in a few days and thought I would check. Greatly appreciate any help and insight into this.

Thanks much,
Jim

Our Sponsors
 

jim6763nva
07-09-2006, 12:41 PM
bump :-)

Zachery
07-09-2006, 02:47 PM
You need to get the js files and update constantly the xml file by getting it from their site.

Hipplewm
07-11-2006, 11:23 PM
If you install roster...it has a PHP page that displays server status... Link Here (http://www.vilecenturions.com/roster/index.php) It is all geared towrds roster...I have tried to reverse engineer the page, but I am getting lost. It can't be that hard :) anyway, the files are all there, and the links to the correct databases are there. Default is setup for 10 minute refresh.....

www.roster.net is where you can DL roster and look at the PHP files.

Hipplewm
07-24-2006, 08:47 AM
I have been working over a week and nothing. I am less "lost" but still no joy...Help please.

Casey
07-26-2006, 12:56 AM
I have been working over a week and nothing. I am less "lost" but still no joy...Help please.
i fiddled with it today, as i wanted to show our server status as well. piece of cake. :)

here's what i did:

first, set your Realm Status to Image in your Roster config

now, create a new module, using BBcode, call it whatever you want. Mine is "Terenas Status"

go to your input field, and put this in:


<img alt="Terenas Server Status" src="/roster/realmstatus.php" />


Next, click the 'Allow HTML' radio, I left the others disabled.

Check the 'Use Module Shell Template' to Yes

Save, done!

my page example:
http://www.acesandeightsguild.com/cmps_index.php

Of course, you can add your own alignment/border/etc tags to it, but it works just like an image!!

Hipplewm
07-26-2006, 08:29 AM
OK, that was easy enough. I was trying WAAAAYYYY to hard. although I did try to run that php script but in the php module function...not just using the jpg.

Thanks much...

Casey
07-28-2006, 06:26 PM
OK, that was easy enough. I was trying WAAAAYYYY to hard. although I did try to run that php script but in the php module function...not just using the jpg.

Thanks much...
np. i was having the same problem. i was digging through php, trying to load the right pages etc, then it just dawned on me. lol. glad i could actually help someone! :D Happy hunting! :)