Ah cool, any ETA? In the mean time I've added support but I don't know the URL to get XML data out of rift.zam.com. Do you happen to have it handy?
Borrowing line 54 from lotro_allakhazam.php:
Code:
$xml_data = itemstats_read_url('http://lotro.allakhazam.com/cluster/item-xml.pl?lotritem=' . $item_id);
I added into my rift_allakhazam.php:
Code:
$xml_data = itemstats_read_url('http://rift.zam.com/en/item-xml.pl?riftitem=' . $item_id);
But an xml stream is not returned?
I already have:
Code:
// Perform the search.
$data = itemstats_read_url('http://rift.zam.com/en/search.html?q=' . urlencode($name)); //urlencode(utf8_encode($name)));
$item_found = false;
// Look for a name match in the search result.
//regex fixed by hoofy
if (preg_match_all('#item\/(\w+)\/#', $data, $matches))
{
And have verified that I am getting the correct item code from the item name. Any help finding the xml output from rift.zam.com would be greatly appreciated!
EDIT - Well it seems as if zam may not be the best choice as this may not be freely available. Maybe yg is better?
http://rift.yg.com/help-lookup-apiThanks
