Not Parsing Item Colors and Names

Sync Blizzards' Armory data with WoWRoster (addon depreciated no longer works see ApiSync)

Moderators: Ulminia, poetter

Re: Not Parsing Item Colors and Names

Postby Darkmages » Fri Jun 29, 2007 5:37 pm

Pugro wrote:Worked perfectly for me too :-) With the timeout, I've posted a modified version that does on char at a time, I'll update it with this change when I get a chance if you want?


Would like to see that Pugro :)
User avatar
Darkmages
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu May 31, 2007 8:37 pm

Re: Not Parsing Item Colors and Names

Postby Hurz » Fri Jun 29, 2007 7:41 pm

I would love to get a version that prevents the timeout - no matter how it works, as long as it does work.

If the timeout is done - only one problem (special characters - see my post) remains.
Hurz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Mon Jun 18, 2007 12:01 am

Re: Not Parsing Item Colors and Names

Postby delirium » Fri Jun 29, 2007 9:52 pm

Just for a bit finetuning now the colors work again (thx for that)..
Armory uses two ways of placing tooltips

1: Equip: Increases defense rating by +17 (7.2)
2: Increases your dodge rating by 26 (1.4%).

How can I get roster to look at 2 types of lines
$wordings['enUS']['tooltip_equip']='Equip:';
$wordings['enUS']['tooltip_equip']='Increases';
Now only the lines wich start with Equip: are calculated in the bonus list and have a green color.

I tried a few things myself... but mostly ending up breaking things :)
(like placing a new *"else if" in char.php) and used a new wording like: $wordings['enUS']['tooltip_increases']='Increases';

*
Code: Select all
if ((ereg('^'.$wordings[$client_lang]['tooltip_increases'], $line)) and ( hasNumeric($line)==FALSE)){setBonus''$line$item_name,$item_color); 
delirium
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Sat Jul 08, 2006 9:58 pm

Re: Not Parsing Item Colors and Names

Postby Wyren » Sun Jul 01, 2007 5:36 pm

Darkmages wrote:Try this:

Open functions.parsing.php

Find:
Code: Select all
if (!empty($content)) {
    
$armoryItem $xml_parser->parse($content);
    
$item["Color"] = getItemColor($armoryItem->itemTooltip->overallQualityId->_CDATA);
    
$item["Name"] = $armoryItem->itemTooltip->name->_CDATA;


Change to:
Code: Select all
if (!empty($content)) {
    
$armoryItem $xml_parser->parse($content);
    
$item["Color"] = getItemColor($armoryItem->itemTooltips->itemTooltip->overallQualityId->_CDATA);
    
$item["Name"] = $armoryItem->itemTooltips->itemTooltip->name->_CDATA;


Find:
Code: Select all
if (!empty($content)) {
    
$item["Tooltip"] = trim(str_replace("\n\n""\n"str_replace("<br />""\n"strip_tags(nl2br($content), "<br>"))));


Change to:
Code: Select all
if (!empty($content)) {
    
$item["Tooltip"] = trim(str_replace("\n\n""\n"str_replace("<br />""\n"strip_tags(nl2br($content)))));



This worked for me :)


This worked for me, excellent job!

Now, all I have issues with now is that some of the text isn't placed correctly, like an item has "Bind on pickupUniqueHeadCloth" displayed like that, instead of spaced out properly.
Wyren
WR.net Journeyman
WR.net Journeyman
 
Posts: 81
Joined: Wed Jul 26, 2006 3:07 pm

Not Parsing Item Colors and Names

Postby Pugro » Mon Jul 02, 2007 4:04 pm

--------------------------------
Pugro_
Ice and Trinity Guilds, Nordrassil, EU PvE
www.iceguild.org.uk, www.trinityguild.net
Image
Pugro
WR.net Journeyman
WR.net Journeyman
 
Posts: 79
Joined: Fri Jul 07, 2006 2:14 pm
Location: London, UK

Re: Not Parsing Item Colors and Names

Postby jacobisconfused » Tue Jul 10, 2007 2:18 am

Wyren wrote:
Darkmages wrote:Try this:

Open functions.parsing.php

Find:
Code: Select all
if (!empty($content)) {
    
$armoryItem $xml_parser->parse($content);
    
$item["Color"] = getItemColor($armoryItem->itemTooltip->overallQualityId->_CDATA);
    
$item["Name"] = $armoryItem->itemTooltip->name->_CDATA;


Change to:
Code: Select all
if (!empty($content)) {
    
$armoryItem $xml_parser->parse($content);
    
$item["Color"] = getItemColor($armoryItem->itemTooltips->itemTooltip->overallQualityId->_CDATA);
    
$item["Name"] = $armoryItem->itemTooltips->itemTooltip->name->_CDATA;


Find:
Code: Select all
if (!empty($content)) {
    
$item["Tooltip"] = trim(str_replace("\n\n""\n"str_replace("<br />""\n"strip_tags(nl2br($content), "<br>"))));


Change to:
Code: Select all
if (!empty($content)) {
    
$item["Tooltip"] = trim(str_replace("\n\n""\n"str_replace("<br />""\n"strip_tags(nl2br($content)))));



This worked for me :)


This worked for me, excellent job!

Now, all I have issues with now is that some of the text isn't placed correctly, like an item has "Bind on pickupUniqueHeadCloth" displayed like that, instead of spaced out properly.


I also have this same problem. If anyone has a solution please let me know.
jacobisconfused
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Thu Sep 28, 2006 7:07 pm

Not Parsing Item Colors and Names

Postby Kristoff22 » Sun Jul 15, 2007 10:59 am

Excellent job Darkmages! I'm going through and compiling a list of updates, and will include this in there... thanks!!
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Previous

Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 1 guest

cron