<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: phpArmory 0.4.0 &#8211; &#8220;Jack-o-Lantern&#8221; released</title>
	<atom:link href="http://www.marenkay.com/tipsresources/programming/phparmory-040-jack-o-lantern-released/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marenkay.com/tipsresources/programming/phparmory-040-jack-o-lantern-released/</link>
	<description>developer, father, gamer, and nerd.</description>
	<lastBuildDate>Mon, 04 May 2009 08:31:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Daniel S. Reichenbach</title>
		<link>http://www.marenkay.com/tipsresources/programming/phparmory-040-jack-o-lantern-released/comment-page-1/#comment-32</link>
		<dc:creator>Daniel S. Reichenbach</dc:creator>
		<pubDate>Wed, 26 Nov 2008 17:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.marenkay.com/?p=143#comment-32</guid>
		<description>&lt;p&gt;Of course, contributions are welcome. I just had done the changes needed to support the added achievements and statistics.&lt;/p&gt;

&lt;p&gt;I have done that a bit different, but [achievements] and [statistics] are there, too. Sitting properly in the characterinfo array, just like the other character pages do.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Of course, contributions are welcome. I just had done the changes needed to support the added achievements and statistics.</p>

<p>I have done that a bit different, but [achievements] and [statistics] are there, too. Sitting properly in the characterinfo array, just like the other character pages do.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Hexblot</title>
		<link>http://www.marenkay.com/tipsresources/programming/phparmory-040-jack-o-lantern-released/comment-page-1/#comment-29</link>
		<dc:creator>Hexblot</dc:creator>
		<pubDate>Wed, 26 Nov 2008 12:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.marenkay.com/?p=143#comment-29</guid>
		<description>&lt;p&gt;Helloes,&lt;/p&gt;

&lt;p&gt;first off, thanks for your efforts to continue improving phpArmory.&lt;/p&gt;

&lt;p&gt;I&#039;m interested in contributing some development hours to this project, are you interested in allowing others help out ? First change I&#039;ve implemented is basic, just added achievements / statistics to the library, but I don&#039;t know where to post it for you :P&lt;/p&gt;

&lt;p&gt;Changes are in phpArmory.php:&lt;/p&gt;

&lt;p&gt;Line 566, append extra pages to parse:
&lt;code&gt;
$characterPages = array(&quot;reputation&quot;, &quot;skills&quot;, &quot;talents&quot;, &quot;achievements&quot;, &quot;statistics&quot;);
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;few lines after that, replace the if structure with :
&lt;code&gt;
if (is_array($tempXML) &amp;&amp; array_key_exists(&#039;XmlData&#039;, $tempXML)) {
                        $tempArray = $this-&gt;convertXmlToArray($tempXML[&#039;XmlData&#039;]);
                        // remove character info from array
                        if ( count($tempArray[&#039;characterinfo&#039;])&gt;1) {
                            // If data are found in character info, these are not achievements / summary
                            unset($tempArray[&#039;characterinfo&#039;][&#039;character&#039;]);
                            // merge the data received from $armoryBaseURL . $characterPage . $armoryBaseURLEnd into characterArray
                            $characterArray = array_merge($characterArray, reset($tempArray));
                        } else {
                            unset($tempArray[&#039;characterinfo&#039;]);
                            // merge the data received from $armoryBaseURL . $characterPage . $armoryBaseURLEnd into characterArray
                            $characterArray = array_merge($characterArray, $tempArray);
                        }
                    }
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The returned array will now contain [achievements] and [statistics] :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Helloes,</p>

<p>first off, thanks for your efforts to continue improving phpArmory.</p>

<p>I&#8217;m interested in contributing some development hours to this project, are you interested in allowing others help out ? First change I&#8217;ve implemented is basic, just added achievements / statistics to the library, but I don&#8217;t know where to post it for you :P</p>

<p>Changes are in phpArmory.php:</p>

<p>Line 566, append extra pages to parse:
<code>
$characterPages = array("reputation", "skills", "talents", "achievements", "statistics");
</code></p>

<p>few lines after that, replace the if structure with :
<code>
if (is_array($tempXML) &amp;&amp; array_key_exists('XmlData', $tempXML)) {
                        $tempArray = $this-&gt;convertXmlToArray($tempXML['XmlData']);
                        // remove character info from array
                        if ( count($tempArray['characterinfo'])&gt;1) {
                            // If data are found in character info, these are not achievements / summary
                            unset($tempArray['characterinfo']['character']);
                            // merge the data received from $armoryBaseURL . $characterPage . $armoryBaseURLEnd into characterArray
                            $characterArray = array_merge($characterArray, reset($tempArray));
                        } else {
                            unset($tempArray['characterinfo']);
                            // merge the data received from $armoryBaseURL . $characterPage . $armoryBaseURLEnd into characterArray
                            $characterArray = array_merge($characterArray, $tempArray);
                        }
                    }
</code></p>

<p>The returned array will now contain [achievements] and [statistics] :)</p>]]></content:encoded>
	</item>
</channel>
</rss>
