<style>#lootBox { width:200px; }#lootBox table td { vertical-align: middle; padding: 0px 2px; font-size:10pt; }.lootDate td { background: #222222; border-bottom: #ffcc00 2px solid; text-align:left; }</style><script type="text/javascript" src="http://www.guildportal.com/Cms/wowDiggerTips.js"></script><div id="lootBox"></div><div id="preloadloot" style="display:none;"></div><script type="text/javascript">$(document).ready(function() { var eventloot = new Array();// ADD YOUR EVENTS PAGES HERE// ************************** eventloot.push (["http://guildportal.com/Guild.aspx?GuildID=272209&TabID=2285088&EventToView=2591913&ReturnView=Monthly"]); eventloot.push (["http://soulcrusaders.guildportal.com/Guild.aspx?GuildID=197655&TabID=1669223&EventToView=2562467&ReturnView=Monthly"]);// Loot Display parameters var showDate = true; // true = adds a date header var showIcon = true; // true = adds a loot icon var iconSize = 30; // loot icon size (this sets both width and height) var showDKP = true; // true = shows DKP details for the item (see below) var lookupItems = true; // Uses the external script to lookup the item info on wowhead, set this to false if your external server gets overloaded. var lookupItemsURL = "http://mottie.awardspace.com/item.php"; // URL to the PHP script // Loot Text: (item) to (character) for (#) DKP... include spaces var awardedTo = " to "; var forDKP = " for "; var DKP = " DKP";// ******************************************************// Don't change anything below// ******************************************************// Loads calendar content into a hidden "preloadloot" div for ( var j=0; j < eventloot.length; j++ ){ var n = eventloot[j][0]; loadContent(n.substring(n.lastIndexOf('/Guild.aspx'),n.length)); } function loadContent(n) { n += " div[id*='_pnlEventContainer']:eq(0)"; $('#preloadloot').load(n,findContent) }// Finds Loot info from the calendar content function findContent(){ var a = "<table>"; var k = 0; // Find Date of Event if (showDate) { var eventTime = $("#preloadloot b:contains('Starting')").parent().next().html(); a += "<tr class='lootDate'>"; a += (showIcon) ? "<td colspan='2'>" : "<td>"; a += eventTime.split(' ')[0] + "</td></tr>"; } // Find Loot & build the output table... the item name will be surrounded by [item]...[/item] $("#preloadloot").find(".NormGridRow,.AltGridRow").each(function(){ if ($(this).find("td:eq(0) a[href*='wowhead']").length > 0) { var lootItem = $(this).find("td:eq(0)").html(); var lootedBy = $(this).find("a[title*='loot history']").html(); a += (k % 2 == 0) ? "<tr class=NormGridRow>" : "<tr class=AltGridRow>"; a += (showIcon) ? "<td width=" + iconSize + ">" : "<td>"; a += getInfo(lootItem) + awardedTo + lootedBy; a += (showDKP) ? forDKP + $(this).find("td:eq(3)").html() + DKP : ""; a += "</td><tr>"; k++; } }) a += "</table>"; $('#lootBox').append(a); }// This function takes the item name and will eventually retrieve XML data for the loot ID, quality and icon name function getInfo(n){ iId = $(n).attr('href').split('=')[1]; if (lookupItems) { var newScript = document.createElement('script'); newScript.type = 'text/javascript'; newScript.src = lookupItemsURL + '?item=' + iId; document.getElementsByTagName("head")[0].appendChild(newScript); } var d = ""; if (showIcon) { d += "<img src='http://i201.photobucket.com/albums/aa236/Mottie1/testsite/blank.gif' height='"; d += iconSize + "' width='" + iconSize + "'></td><td>"; } d += n; return d; }}// Function that is called from the php script that looks up wowhead info function update(n){ var icn = "http://static.wowhead.com/images/icons/large/" + n.icon.toLowerCase() + ".jpg"; var lnk = "http://www.wowhead.com/?item=" + n.id; $("#lootBox").find(".NormGridRow,.AltGridRow").each(function(){ if ( $(this).find('a').attr('href').split('=')[1] == n.id ) { $(this).find('a').addClass("q"+n.quality); $(this).find("img").attr("src",icn).wrap("<a href='" + lnk + "'></a>"); } }) }</script>
var showDate = true; // true = adds a date header
var showIcon = true; // true = adds a loot icon
var iconSize = 30; // loot icon size (both width and height)
var showDKP = true; // true = shows DKP details for the item (see below)
var awardedTo = " to "; var forDKP = " for "; var DKP = " DKP";
var lookupItemsURL = "http://mysd.awardspace.com/item.php"; // URL to the PHP script
<?php$item = str_replace(" ", "+", "http://www.wowhead.com/?item=".$_GET['item']."&xml");$xml = simplexml_load_file( $item );// example output: update({name:"Faceguard of the Hammer Clan",id:"43280",quality:"3",icon:"inv_helmet_130"})echo 'update({';echo 'name:"'.$xml->item->name.'",';echo 'id:"'.$xml->item[id].'",';echo 'quality:"'.$xml->item->quality[id].'",';echo 'icon:"'.$xml->item->icon.'"})';?>
<html> <head> <title>My Guild's Name</title> <meta http-equiv="refresh" content="3;url=http://guildportal.com/Guild.aspx?GuildID=258012&TabID=2168223"> </head> <body bgcolor="#000000"> <div style="color:#ffffff">Redirecting you to my GuildPortal site....</div> </body> </html>