Wait.
Open /roster/addons/vault/guild/index.php - goto line 127
You'll find this as a code fragment :
- Code: Select all
}
}
}
}
return $item_id;
}
Make it look like this (replace the statement
return $item_id;):
- Code: Select all
// These lines are new
switch($roster->config['locale']):
case "frFR":
$wowhead_language = "fr";
break;
case "deDE":
$wowhead_language = "de";
break;
case "esES":
$wowhead_language = "es";
break;
default:
$wowhead_language = "www";
endswitch;
return '<a href="http://'.$wowhead_language.'.wowhead.com/?item='.$id.'" target="_blank">'.$id.'</a>';
What does this do for you ?
It still show the item ID's - correct - but they became links to a site that actually works great the last couple of months : wowhead.com
They have the enUS, frFR, deDE and esES languages item details - even the Russians could use it.
wowhead is fast & good (using it even in own forum ).
I'm not taking out / parsing the item ID - that would be a WoWRoster 2.1 solution. A local cache system
should be used.
Pulling in all the item details from the ID's every time you watch these Vault log pages would really hit the wowhead server - they (wowhead.com) wouldn't like that.
You could say : why not converting when uploading the Vault info ? Answer : then the Items names would be hard coded in your the database, and again, when you have 6 pages and many items that left your Vault, wowhead.com would be smacked again with requests. Updating would also be more error-prone.
What you have now is a "click" solution : click on the ID, and you will be brought to the item description page in your roster language.
See it in action here :
http://www.papy-team.fr/roster/index.ph ... ault&a=g:1 (switch to your own language if you want to
)
This is of course a nifty patch - this kind of handling should be surfaced - maybe it's even better to use the armory for it.
Local caching of item ID's, Tooltip and other related info should be stored on YOUR site - note that these items do not necessarily belong to you or one of your mates, they might have left your Guild already. - This database table will grow to the size of all know items in WoW (WoW !!).
I use this for a couple of month now - it's ok as a simple patch.