Feeds Here > Activity / Roster / RealmStatus

Community Platform API
Post Limit:
Another update......

XML users that are wanting to embed the feeds into a flash object. We have not incorporated the "crossdomain.xml".

You can now simply reference: http://wowfeeds.wipeitau.com/crossdomain.xml

Regards,

Axho :D
So, I am by no means an expert at XML/XSL. In fact, because it took me two freaking days to figure out how to do this, I thought I would share my technique with others.

We have a Guild Portal site:
http://impulse.totalgamehost.com

I wanted to be able to have the Activity List show on our homepage. This solution *only* works for Guild Portal (it may work for other stuff, but I use Guild Portal so there ya go).

You need to be able to access the Guild Control Panel to do this. I am pretty sure you have to have a PAID account as well.


1. Go to http://wowfeeds.wipeitau.com/ and generate your Guild Activity Feed as XML (not JSON or HTML).
-- you end up with a link like this:
http://wowfeeds.wipeitau.com/GuildActivity.php?location=US&rn=Kilrogg&gn=Impulse&output=XML&callback=?

2. Here's a sample XSL file to "translate" your XML document:
*PLEASE NOTE* I am not an XML person, this code could very well suck rocks. However, it does WORK. That's all I really cared about.


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="lower">
abcdefghijklmnopqrstuvwxyz
</xsl:variable>
<xsl:variable name="upper">
ABCDEFGHIJKLMNOPQRSTUVWXYZ
</xsl:variable>
<xsl:template match="/">
<center><h1>GUILD LEVEL: <xsl:apply-templates select="GUILDACTIVITY/GUILDLEVEL" /></h1></center>
<table border="0" cellpadding="5">
<xsl:for-each select="GUILDACTIVITY/ACTIVITYLIST/ACTIVITYITEM">
<tr>
<td><a href="http://us.battle.net/wow/en/character/kilrogg/{NAME}/simple" target="_blank"><xsl:value-of select="NAME"/></a></td>
<td><a href="http://www.wowhead.com/{translate(TYPE,$upper,$lower)}={NUMID}" target="_blank"><IMG SRC="{ACHIMAGE}" align="middle" border="0"/></a></td>
<td><a href="http://www.wowhead.com/{translate(TYPE,$upper,$lower)}={NUMID}" target="_blank"><xsl:value-of select="ACHOBJECTIVE"/></a></td>
<td><xsl:value-of select="TYPE"/></td>
<td><xsl:value-of select="ACHTIME"/></td>
</tr>
</xsl:for-each>
</table>
<center><small><p><a href="http://wowfeeds.wipeitau.com/">Axho WoW Feeds</a></p></small></center>
</xsl:template>
</xsl:stylesheet>


* Save the above text as a file called yourguild.xsl . My file is called "impulse.xsl".

Explanation of the above:
This will show your Guild Level, the Name of the person with the Achivement (linked to his/her BattleNet Profile), an Image for the Achievement (linked to the Achievement on WowHead), Text for the Achievement (linked to the Achievemnt on WowHead), the type of the achievement, and the time of the achivement. It also gives a courtesy link to Axho's WoW Feeds.

3. Go to Guild Portal, click on your Control Panel.
- Click on "General Settings & Tools"
- Click on File Manager
- Upload yourguild.xsl
- Click on "Get URL" once it's uploaded, and save that link for later.


4. In your Control Panel, click on "Pages & Content (Widgets)".
- Find which page you want to put your new Feed on. I put mine on "HOME".
- Click on that page section, then click on "Add Widget".
- You'll see a list with a little search box. Type "XML" into the search box and press enter/return.
- You'll see a Widget called XML/XSL Transformation. You want to "Add to site".

5. Now you want to change the settings for your new Widget.
- on the first tab, XML Source, check "Remote File" and the XML File URL is the link from your Axho's Wow Feeds page.
- My link, for example, is:
http://wowfeeds.wipeitau.com/GuildActivity.php?location=US&rn=Kilrogg&gn=Impulse&output=XML&callback=?
- Click on the second tab, XSL Source, check "Remote File" and you want to paste in your URL you generated in Step 3.
- My link looks like: http://www.axiomfiles.com/Files/123456/impulse.xsl
- Click "Test Transform" to make sure there are not any errors.
- Save Changes

*PLEASE NOTE* (Since I learned this the hard way). The "paste" box for the XSL does NOT work. You cannot just paste your code in, you have to link to a remote file. It's an old bug apparently from reading teh GuildPortal forums. You need to do Step 3 and upload the file or you are going to be banging your head against this for hours. :)

6. Position your new widget where you want it.

7. Profit! :)

I hope this helps people.

~Jib
12/29/2010 2:58 AMPosted by Axho
I'll look at setting up an RSS feed from the XML base. Also, About to implement a nub version of the feeds. Where you simply include a raw html table version of it in your site and can customize it via CSS tags.


Any update to the RSS feed? I am fairly ok with HTML but im still new to this... I have my code

http://wowfeeds.wipeitau.com/GuildActivity.php?location=US&rn=Twisting%20Nether&gn=Kore%20Enterprises&output=HTML&callback=?

But im not sure where i post it. Do i make a table, or do i put it as a hyperlink? I dono. An RSS feed would make my life so much easier! Please let me know!
Hey Axho,

You had mentioned you were gonna look into RSS feeds, any updates on whether or not this is something you plan on implementing?

Thanks!
01/25/2011 2:22 PMPosted by Wolftusk
Hey Axho,

You had mentioned you were gonna look into RSS feeds, any updates on whether or not this is something you plan on implementing?

Thanks!



If RSS is all your looking for then do a google search for HTML to RSS Most sites offer it as a free service and can give you a link to add as an Rss feed to your site as well as an HTML copy code for it. The only problem i have with the RSS feeder is that it just shows up as bullet points and the link takes you to the list. Not your guild page on wow's site.

Im still hoping for an HTML code generator that will put the code up that makes your list look like the list on his guild page.
You guys may want to try your hand at PHP ... it makes what you're trying to do pretty trivial.

Assuming your web host has PHP5 installed (with libxml extension, which is pretty standard nowadays), you can easily accomplish something like :


<?php

// Change REALMNAME and GUILDNAME to their respective values
// If for some reason you can't figure out how to do the URL, generate one on the website

$feedurl = 'http://wowfeeds.wipeitau.com/GuildActivity.php?location=US&rn=REALMNAME&gn=GUILDNAME&output=XML&callback=?';

$myfeed = simplexml_load_file($feedurl);

if(!$myfeed)
{
echo "<strong>SimpleXML error'd. Dieing.</strong>";
exit;
}

foreach($myfeed->ACTIVITYLIST->ACTIVITYITEM as $myitem)
{
$name = (string)$myitem->NAME;
$achievement = (string)$myitem->ACHTEXT;
$objective = (string)$myitem->ACHOBJECTIVE;

// TYPE, NUMID, ACHIMAGE, ACHTIME are other valid fields

// do something with this data?

echo '<br>' . $name . ' ' . $achievement . ' ' . $objective . '!';
// Sample output: <br>Orich obtained Earthen Gauntlets!
}


?>


Hope that helps ... don't be scared of PHP. It'd be just as easy in most other preprocessor languages fyi (other than PHP).



yes PHP does sound easy enough unfortunatly enjin.com only uses HTML and RSS.
01/25/2011 10:38 PMPosted by Persephanie
yes PHP does sound easy enough unfortunatly enjin.com only uses HTML and RSS.


I'm actually a PHP Programmer "IRL". However, Guildportal (which is the site my guild uses, which they paid a year for and we can't get out of) doesn't allow PHP. I either have to use RSS or XML/XSLT for Guildportal. A lot of us are just trying to find solutions because we can't use PHP.
01/26/2011 9:27 AMPosted by Jibrille

I'm actually a PHP Programmer "IRL". However, Guildportal (which is the site my guild uses, which they paid a year for and we can't get out of) doesn't allow PHP. I either have to use RSS or XML/XSLT for Guildportal. A lot of us are just trying to find solutions because we can't use PHP.


Exactly. This site is so nice, that he gave us. Its just so difficult for newbies like me... The fact that it can translate for HTML is Extremely nice if only he could post his code for his site, (wich looks very nice) for HTML. Most sites allow an HTML widget. Most people can figure basic HTML rather easily. A copy paste code that looks like his would be so nice...

Also i really think this thread should be looked at by blizz as well. Maybe they can use this with there comp. tecks over there to figure an easy way to give us a thread feeder. Or code for our sites. I know they have stated they are working on it... With this it may be a bit easier.
yep...we are also implementing a php solution. I'm curious how these feeds are created though as I'm interested in either obtaining or creating on for character sheets.
the roster feed doesn't seem to be returning any members anymore.
02/05/2011 7:23 AMPosted by Basballguy
the roster feed doesn't seem to be returning any members anymore.


Hi Basballguy,

Thanks for reporting this. We have also received a few emails with this. it appears Blizzard removed the "Weekly" and "Lifetime" points from the roster display so these have now been stripped from the roster feeds. It's been updated and is now working again. Please head over to wowfeeds.wipeitau.com or modify your code and remove the weekly / lifetime fields if you are using them.
It appears to only be returning 100 members. I went to resync my site and a large amount of members were removed (or marked as not in guild)

http://wowfeeds.wipeitau.com/GuildRoster.php?location=US&rn=Azshara&gn=Death%20Minions&output=XML&callback=?

Maybe this is due to the battle.net site only listing 100 per page now?

http://us.battle.net/wow/en/guild/azshara/death%20minions/roster
in the same boat as the above person.
Thank you so much for this. This is a great feature!
All of these feeds are now giving a bandwidtch exceeded message. My guild's site used these feeds and it's sad to see them not available anymore. Is there anything we can do to help support Axho's efforts? Having a way to grab data from the new site was just tremendous.
Wait until they reset his web stats and then click the donate button. Hopefully he would use some of that money he got to upgrade his account.
I haven't been able to catch him online to ask, but are there any future plans to prevent this from occurring again or should I start writing a script to page sc*@@% the information myself?
02/28/2011 9:11 PMPosted by Rootntootn
I haven't been able to catch him online to ask, but are there any future plans to prevent this from occurring again or should I start writing a script to page sc*@@% the information myself?


I did. Was using their stuff just to grab a list of servers that would be updated for our qlist site. Today I broke down and made a php class that grabs the status page and gets me the names and locales.

Join the Conversation