TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 317
  • Total: 317

WoW Launcher Alert Status

Started by dark4sorrow, April 02, 2008, 05:35:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dark4sorrow

Quote from: DarkRedMage on April 08, 2008, 05:28:34 AM
I'm trying to get this block code to work on my own guild's site:

http://www.soulsocietyguild.org

Did you use the latest code that is shown further down in the thread?  I know that when there was a legitimate alert (last night) that it worked perfectly on my site without any changes at all to the code.

I haven't noticed any errors at all on my site with it up to this point and every time I notice an alert when I logon to WoW I do check my site to make sure that the code is working correctly.

99% of the time you will see "There are no alerts at this time.." since the alerts are few and far between. 

Here is the latest code that I am using on my site right now:


$thelink = "<a href=\"http://launcher.worldofwarcraft.com/alert\">[*Link]</a>";
$fp = fopen("http://launcher.worldofwarcraft.com/alert", "r");
$data = fread($fp, 128);
fclose($fp);

if (strlen($data)<=1) {
echo "* There are no alerts at this time.".$thelink;
} else {
echo $data."...".$thelink;
}


If you can click on the link and it takes you directly to the alert status (whether there is one there or not), I wouldn't believe that there would actually be a problem with your site in accessing that page.

-sorrow

DarkRedMage

Okay, I've updated the block code with what you posted as the latest code you're using. I know that right now there are no alerts, but if and when another alert comes up I will see if it actually pulls the info and shows it on my site.

Thanks.

dark4sorrow

I updated the original post to show the latest code to be used.  Hopefully that will help if anyone has been having issues using the original code and didn't read on through the rest of the posts to see the fixes and the new code. ;)

-sorrow

Will_Enigma

For those that found this and want to use it, I think it's a great little addition to a WoW site, my only problem is that I found that the alert page isn't always up, which wreaks havok in the error log if you have all the error reporting turned on. (Call me paranoid, but I like to know what's going on on my site.)  Now since this is a minor error, you may want to supress the 3-4 error messages that a 404 can generate, per page view, with this script.... here's the code...
$thelink = "<a href=\"http://launcher.worldofwarcraft.com/alert\">[*Link]</a>";
$fp = @fopen("http://launcher.worldofwarcraft.com/alert", "r");
$data = @fread($fp, 128);
@fclose($fp);
if (strlen($data)<=1) {
echo "* There are no alerts at this time.";
} else {
echo $data."...".$thelink;
}

tragidy

I have tried to get this to work with the EU version of wow.

Is there a known alert url for the eu?

http://launcher.wow-europe.com/en/

Will_Enigma

the url for the EU version of WoW is http://status.wow-europe.com/en/alert you can substitute the en in the link for the supported language of your choice for example http://status.wow-europe.com/fr/alert for French.  Enjoy  O0

This website is proudly hosted on Crocweb Cloud Website Hosting.