<?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>Aaron Jefferson Villanueva&#039;s Blog Site&#187; Joomla</title>
	<atom:link href="http://malebolgia.shadowsonawall.net/category/code-programming/php/joomla/feed" rel="self" type="application/rss+xml" />
	<link>http://malebolgia.shadowsonawall.net</link>
	<description>Programming / Designing Blogging from windows to mac.</description>
	<lastBuildDate>Fri, 20 May 2011 12:05:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Joomla 1.5 Article Trash</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-1-5-article-trash.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-1-5-article-trash.html#comments</comments>
		<pubDate>Sun, 05 Dec 2010 05:53:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Joomla 1.5 Component]]></category>
		<category><![CDATA[Joomla 1.5 Core]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=422</guid>
		<description><![CDATA[While debugging the component I created I noticed that the query was returning some articles I didn't knew existed. I found out that these articles are just trashed. 
The simple way to separate article trash from active articles is to get the state datafield of the table #__content equals to 1.



1
2
3
4
5
6
7
8
9
10
11
$query = &#34;SELECT a.*, n.*, [...]]]></description>
			<content:encoded><![CDATA[While debugging the component I created I noticed that the query was returning some articles I didn't knew existed. I found out that these articles are just trashed. <br /><br />
The simple way to separate article trash from active articles is to get the<span style="color: #ff0000;"><strong> <span style="text-decoration: underline;">state</span></strong></span> datafield of the table <span style="color: #ff6600;"><strong>#__content</strong></span> equals to <strong>1</strong>.
<br /><br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT a.*, n.*, t.*, n.link as linkThisPage&quot;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> FROM #__componentnews_news AS n&quot;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> LEFT JOIN #__content AS a ON a.id = n.pr_id&quot;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> LEFT JOIN #__componentnews_types AS t ON t.id = n.type_id&quot;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> WHERE ( a.state = 1 )&quot;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> AND ( a.publish_up = &quot;</span> <span style="color: #339933;">.</span><span style="color: #000088;">$database</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Quote</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$nullDate</span><span style="color: #009900;">&#41;</span> 
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; OR a.publish_up &lt;= &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$database</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Quote</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$now</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;)&quot;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> AND ( a.publish_down = &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$database</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Quote</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$nullDate</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; OR a.publish_down &gt;= &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$database</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Quote</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$now</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; )&quot;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> ORDER BY <span style="color: #006699; font-weight: bold;">$orderby</span>&quot;</span>
<span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> limit <span style="color: #006699; font-weight: bold;">$skip</span>,&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$count</span><span style="color: #339933;">;</span></pre></td></tr></table></div>



<br />
Where in this <em>query</em> <span style="color: #800000;"><strong>. "\n WHERE ( a.state = 1 )" </strong></span> should do it.
]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-1-5-article-trash.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="1" length="" type="" />
		</item>
		<item>
		<title>Joomla 1.5 phpbb bridge bug fixed</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/joomla-1-5-phpbb-bridge-bug-fixed.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/joomla-1-5-phpbb-bridge-bug-fixed.html#comments</comments>
		<pubDate>Wed, 06 Aug 2008 09:59:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[phpbb bridge]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=92</guid>
		<description><![CDATA[*This happens when you verify the account through mail.
&#13; In /plugins/user/phpbb3.php, replace line 92:
&#13; 
&#13; from
&#13; &#160;&#160;&#160; if(!isset($userid)) {
&#13; 
&#13; to
&#13; &#160;&#160;&#160; if (( ! isset( $userid )) &#124;&#124; ( strlen( $userid ) == 0 )) {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // it's set, but has no value
&#13; 
&#13; Forum Source
&#13; ]]></description>
			<content:encoded><![CDATA[*This happens when you verify the account through mail.<br />
&#13; In /plugins/user/phpbb3.php, replace line 92:<br />
&#13; <br />
&#13; <b>from</b><br />
&#13; <span style="background-color: rgb(255, 255, 153);"><span style="color: rgb(0, 51, 0);">&nbsp;&nbsp;&nbsp; if(!isset($userid)) {</span></span><br />
&#13; <br />
&#13; <b>to</b><br />
&#13; <span style="color: rgb(0, 51, 0);"><span style="background-color: rgb(255, 255, 153);">&nbsp;&nbsp;&nbsp; if (( ! isset( $userid )) || ( strlen( $userid ) == 0 )) {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // it's set, but has no value</span></span><br />
&#13; <br />
&#13; <a target="_blank" href="http://www.rocketwerx.com/forum/viewtopic.php?f=22&amp;t=807&amp;st=0&amp;sk=t&amp;sd=a&amp;sid=292265e94dfac323c1f1affc7a216be9&amp;start=40">Forum Source</a><br />
&#13; <br />]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/joomla-1-5-phpbb-bridge-bug-fixed.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Module Title not showing up Joomla 1.5(fixed)</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/module-title-not-showing-up-joomla-1-5fixed.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/module-title-not-showing-up-joomla-1-5fixed.html#comments</comments>
		<pubDate>Mon, 28 Jul 2008 10:18:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Module title]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=96</guid>
		<description><![CDATA[&#160; I encountered this problem, when I am upgrading a template from 1.0 to 1.5... I thought this was only a minor problem, until 3 hours past and I still couldn't fix it... I checked everything on the admin, settings, parameters, and even global configuration. Until I rechecked the module param at the template&#160; &#60;jdoc:include [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: justify;">&nbsp; I encountered this problem, when I am upgrading a template from 1.0 to 1.5... I thought this was only a minor problem, until 3 hours past and I still couldn't fix it... I checked everything on the admin, settings, parameters, and even global configuration. Until I rechecked the module param at the template&nbsp; &lt;jdoc:include type=&quot;modules&quot; name=&quot;user2&quot;&nbsp;  /> and I try putting style... first a blank one... it doesn't work, then I try putting style=&quot;xhtml&quot; and now the title of module shows<br />
&#13; <br />
&#13; <span style="color: rgb(255, 102, 0);">&lt;jdoc:include type=&quot;modules&quot; name=&quot;user2&quot;&nbsp; style=&quot;xhtml&quot;&nbsp;  /></span></div>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/module-title-not-showing-up-joomla-1-5fixed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtue Mart Bug</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/virtue-mart-bug.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/virtue-mart-bug.html#comments</comments>
		<pubDate>Sat, 22 Dec 2007 10:41:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Virtuemart Bug]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=101</guid>
		<description><![CDATA[When Adding Category, Product or Just change configuration, the administration page automatically Logs me out, I tried to Google for the solution which is easy to find... and visited the results which are forum of virtuemart but it takes me 3 forums before I finally got to the solution page.

Virtue Mart Session fix

Changes to be [...]]]></description>
			<content:encoded><![CDATA[<div align="justify">When Adding Category, Product or Just change configuration, the administration page automatically Logs me out, I tried to Google for the solution which is easy to find... and visited the results which are forum of virtuemart but it takes me 3 forums before I finally got to the solution page.</div>
<p><br />
Virtue Mart Session <a target="_blank" href="http://virtuemart.net/index.php?option=com_docman&#038;task=cat_view&#038;gid=101&#038;Itemid=66">fix</a><br />
<br />
<font color="#ff6600"><strong>Changes to be made:</strong></font></p>
<p><font color="#ffcc00">administrator/index2.php</font><br />
<strong><font size="1" color="#00ff00">BEFORE</font></strong><br />
<font size="1" color="#99cc00">########<br />
103        doGzip();<br />
104        <br />
105        // if task action is 'save' or 'apply' redo session check<br />
106        if ( $task == 'save' || $task == 'apply' ) {<br />
107            $mainframe->initSessionAdmin( $option, '' );<br />
108        }<br />
#########</font><br />
<br />
<br />
<font size="1" color="#00ff00"><strong>AFTER</strong></font><br />
<font size="1" color="#99cc00">########<br />
102        // if task action is 'save' or 'apply' redo session check<br />
103        if ( $task == 'save' || $task == 'apply' ) {<br />
104            $mainframe->initSessionAdmin( $option, '' );<br />
105        }<br />
106        doGzip();<br />
########</font></p>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/virtue-mart-bug.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla SEF and IIS URL rewrite</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-sef-and-iis-url-rewrite.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-sef-and-iis-url-rewrite.html#comments</comments>
		<pubDate>Mon, 03 Dec 2007 12:38:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Clean URL]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[ISAPI 3.0]]></category>
		<category><![CDATA[SEF]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=13</guid>
		<description><![CDATA[Using ISAPI 3.0 over IIS 6.0 for rewriting URL to Search Engine Friendly URL, I experienced this problem that links return 404 error when clicking any links on joomla. After googling for 3 hours, I found the right solution, which requires to hack the code.
.htaacess  code 
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond [...]]]></description>
			<content:encoded><![CDATA[<p>Using ISAPI 3.0 over IIS 6.0 for rewriting URL to Search Engine Friendly URL, I experienced this problem that links return 404 error when clicking any links on joomla. After googling for 3 hours, I found the right solution, which requires to hack the code.</p>
<p><strong><font color="#00ff00">.htaacess</font></strong>  code <br />
<font size="1" color="#ff9900">RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##<br />
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule (.*) index.php</font></p>
<div align="justify" style="background-color: rgb(255, 255, 255);"><font size="1" color="#993300" >This is because Joomla expects original URL in the REQUEST_URI server variable, but in IIS this variable is not available and cannot be emulated.</font><br />
<font size="1" color="#993300" >With ISAPI_Rewrite we store original request in HTTP_X_REWRITE_URL. You can then assign value of this variable in PHP code to the REQUEST_URI variable</font></div>
<p>at   <strong><font color="#00ff00">/components/com_sef/sef.php</font></strong> <br />
<font color="#ff9900"><font size="1">// IIS patch.<br />
if (isset($_SERVER['HTTP_X_REWRITE_URL'])) {<br />
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];<br />
}</font><br />
</font></p>
<p>I append this code over sef.php by the way I'm using the component sh404SEF which I guess is the best for joomla I have tried OpenSEF (<font size="1" color="#808000">this component I guess is not continue for development</font>) and ArtioSEF.</p>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-sef-and-iis-url-rewrite.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shifting from IIS 6 to Apache</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/php/joomla/shifting-from-iis-6-to-apache.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/php/joomla/shifting-from-iis-6-to-apache.html#comments</comments>
		<pubDate>Sun, 20 May 2007 16:17:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Server Setup]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[IIS 6]]></category>
		<category><![CDATA[mod_aspdotnet]]></category>
		<category><![CDATA[mod_perl]]></category>
		<category><![CDATA[OpenSEF]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=74</guid>
		<description><![CDATA[ This week I was so very busy I have been put on a task where I am going to install on a dedicated server an Apache... this apache server must run on different port so while testing the new server we wont affect the current web server running which is IIS 6 and the [...]]]></description>
			<content:encoded><![CDATA[<div align="justify"> This week I was so very busy I have been put on a task where I am going to install on a dedicated server an Apache... this apache server must run on different port so while testing the new server we wont affect the current web server running which is IIS 6 and the vistors of the sites can still visit it. Where shifting cause of the rewrite problems, in IIS the company used ISAPI rewrite it enables the IIS to rewrite URLs o browsers... this is so important cause in SEO search engine prefer a clean URL. The problem is some syntax in htaccess mod_rewrite were not supported by ISAPI rewrite, we are using Joomla for CMS cause I know it a lot I installed OpenSEF an Excellent Component that does SEF magic for joomla. In apache this is so easy to handle but in IIS for me it is so hard so my boss given up and we decidedly to shift server... I have encounters lot of problem still shifting first running asp .net on apache, at first I installed Apache 2.2 I notice I could not install the mod_aspdotnet module... after throughly researching the cause... I need to downgrade to Apache 2.0 and It works. So I got everything working with dotNet but it doesnt support plain asp I still need to install <a target="_blank" href="http://www.apache-asp.org/">mod_perl</a> , and still lot of configuration to do with httpd.conf. Another Problem we may encounter is move the SSL certificate to the new apache server. This week will be a tough one.</div>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/php/joomla/shifting-from-iis-6-to-apache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

