<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codelab Blog &#187; Joomla</title>
	<atom:link href="http://blog.codelab.co.nz/tag/joomla/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codelab.co.nz</link>
	<description>Technical Articles and News from Codelab Ltd</description>
	<lastBuildDate>Tue, 17 Jan 2012 13:10:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JFactory::getDate() doesn&#8217;t automatically add offset</title>
		<link>http://blog.codelab.co.nz/2009/12/07/jfactorygetdate-doesnt-automatically-add-offset/</link>
		<comments>http://blog.codelab.co.nz/2009/12/07/jfactorygetdate-doesnt-automatically-add-offset/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 09:43:50 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=156</guid>
		<description><![CDATA[By default, calling JFactory::getDate() doesn&#8217;t automatically apply the timezone offset.   The default date/time is GMT. By using the following code, you can set the offset from the global joomla configuration file &#60;?php $thisJApp = &#38;JFactory::getApplication(); $thisJDate = JFactory::getDate(); $thisJDate -&#62;setOffset($thisJApp -&#62;getCfg(&#8216;offset&#8217;)); echo $thisJDate-&#62;toFormat(&#8220;%A %d %b %Y&#8221;); ?&#62; If you want to set the date from [...]]]></description>
			<content:encoded><![CDATA[<p>By default, calling JFactory::getDate() doesn&#8217;t automatically apply the timezone offset.   The default date/time is GMT.</p>
<p>By using the following code, you can set the offset from the global joomla configuration file</p>
<p>&lt;?php<br />
$thisJApp = &amp;JFactory::getApplication();<br />
$thisJDate = JFactory::getDate();<br />
$thisJDate -&gt;setOffset($thisJApp -&gt;getCfg(&#8216;offset&#8217;));<br />
echo $thisJDate-&gt;toFormat(&#8220;%A %d %b %Y&#8221;);<br />
?&gt;</p>
<p>If you want to set the date from a logged in user you can try:</p>
<p>&lt;%</p>
<p>$JUser =&amp; JFactory::getUser();<br />
$JDate = JFactory::getDate();<br />
echo $JDate-&gt;toFormat().&#8217;&lt;br&gt;&#8217;;<br />
echo &#8216;offset=&#8217; . $JDate-&gt;getOffset() . &#8216;&lt;br&gt;&#8217;;<br />
$JDate-&gt;setOffset($JUser-&gt;getParam(&#8216;timezone&#8217;));</p>
<p>%&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2009/12/07/jfactorygetdate-doesnt-automatically-add-offset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimplePie Joomla Proxy Issue</title>
		<link>http://blog.codelab.co.nz/2009/06/19/simplepie-joomla-proxy-issue/</link>
		<comments>http://blog.codelab.co.nz/2009/06/19/simplepie-joomla-proxy-issue/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 00:43:50 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=133</guid>
		<description><![CDATA[The issue I had with a particular joomla site is that I could not load external RSS feeds.   The error was &#8220;Could not connect to {server}&#8221;.   RSS Feed load failed.   This was caused in the SimplePie.php class around line 6601. Steps to resolve: I enabled the cUrl extension in php.ini (running on a IIS platform) [...]]]></description>
			<content:encoded><![CDATA[<p>The issue I had with a particular joomla site is that I could not load external RSS feeds.   The error was &#8220;Could not connect to {server}&#8221;.   RSS Feed load failed.   This was caused in the SimplePie.php class around line 6601.</p>
<p>Steps to resolve:</p>
<p>I enabled the cUrl extension in php.ini (running on a IIS platform)</p>
<p>Changed the code around line 6536:</p>
<p>curl_setopt($fp, CURLOPT_PROXY, $ip);<br />
curl_setopt($fp, CURLOPT_PROXYPORT, $port);<br />
curl_setopt($fp, CURLOPT_PROXYUSERPWD, $login . &#8216;:&#8217; . $passwd);</p>
<p>where $ip is the proxy IP Address, $port is the port and $login:$password is the proxy authentication.</p>
<p>After this, I can load in external RSS feeds! YAY</p>
<p><em><strong>References:</strong></em></p>
<p><a href="http://www.phpdig.net/ref/rn11re189.html">http://www.phpdig.net/ref/rn11re189.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2009/06/19/simplepie-joomla-proxy-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifying contact component in Joomla issue</title>
		<link>http://blog.codelab.co.nz/2009/03/23/modifying-contact-component-in-joomla-issue/</link>
		<comments>http://blog.codelab.co.nz/2009/03/23/modifying-contact-component-in-joomla-issue/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 02:35:24 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=105</guid>
		<description><![CDATA[The problem I came across when making a modification to the layout in the Joomla contact component was it wasn&#8217;t updating on the website.   I even cleared out the cache and it still didn&#8217;t work. It wasn&#8217;t until I realized it was because of the template that I was using. Templates can override the layout [...]]]></description>
			<content:encoded><![CDATA[<p>The problem I came across when making a modification to the layout in the Joomla contact component was it wasn&#8217;t updating on the website.     I even cleared out the cache and it still didn&#8217;t work.</p>
<p>It wasn&#8217;t until I realized it was because of the template that I was using.   Templates can override the layout of Joomla components.   These are located under the templates directory structure.  Normally they are under template/html/com_contact/contact/default.php (for example, here is the contact component layout).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2009/03/23/modifying-contact-component-in-joomla-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

