<?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: What Category are you looking at?</title>
	<atom:link href="http://www.clubosc.com/what-category-are-you-looking-at.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clubosc.com/what-category-are-you-looking-at.html</link>
	<description>Showcasing osCommerce...the good, the bad and the ugly!</description>
	<lastBuildDate>Fri, 30 Jul 2010 13:32:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gary</title>
		<link>http://www.clubosc.com/what-category-are-you-looking-at.html/comment-page-1#comment-3244</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Mon, 03 Aug 2009 08:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.clubosc.com/what-category-are-you-looking-at.html#comment-3244</guid>
		<description>This is because the code is only meant for use in one category.  For more categories, use a switch - also covered elsewhere in this blog...

switch ($current_category_id) {
    case 1:
    case 19:
        echo &quot;banner&quot;;
        break;
    default:
        echo &quot;whatever&quot;;
        break;
}</description>
		<content:encoded><![CDATA[<p>This is because the code is only meant for use in one category.  For more categories, use a switch &#8211; also covered elsewhere in this blog&#8230;</p>
<p>switch ($current_category_id) {<br />
    case 1:<br />
    case 19:<br />
        echo &#034;banner&#034;;<br />
        break;<br />
    default:<br />
        echo &#034;whatever&#034;;<br />
        break;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lemming</title>
		<link>http://www.clubosc.com/what-category-are-you-looking-at.html/comment-page-1#comment-3237</link>
		<dc:creator>Lemming</dc:creator>
		<pubDate>Tue, 28 Jul 2009 22:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.clubosc.com/what-category-are-you-looking-at.html#comment-3237</guid>
		<description>Your code wouldn&#039;t work without actually putting in the subcategory as well.  I made an if statement to change the banner on one paticular ctegory and sub-categores and I could only get it to work with this category and it&#039;s first category....I could add more sub-categories, but then I would have to add more OR statements....

here is my example...

if ($cPath == &quot;1&quot; OR $cPath == &quot;1_19&quot;)</description>
		<content:encoded><![CDATA[<p>Your code wouldn&#039;t work without actually putting in the subcategory as well.  I made an if statement to change the banner on one paticular ctegory and sub-categores and I could only get it to work with this category and it&#039;s first category&#8230;.I could add more sub-categories, but then I would have to add more OR statements&#8230;.</p>
<p>here is my example&#8230;</p>
<p>if ($cPath == &#034;1&#034; OR $cPath == &#034;1_19&#034;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://www.clubosc.com/what-category-are-you-looking-at.html/comment-page-1#comment-855</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Wed, 21 May 2008 13:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.clubosc.com/what-category-are-you-looking-at.html#comment-855</guid>
		<description>if ($current_category_id == &quot;3&quot;) echo &quot;banner&quot;;

You need to get the number of the category, eg:  2_3_15 or wahtever.</description>
		<content:encoded><![CDATA[<p>if ($current_category_id == &#034;3&#034;) echo &#034;banner&#034;;</p>
<p>You need to get the number of the category, eg:  2_3_15 or wahtever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yayo</title>
		<link>http://www.clubosc.com/what-category-are-you-looking-at.html/comment-page-1#comment-854</link>
		<dc:creator>yayo</dc:creator>
		<pubDate>Wed, 21 May 2008 12:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.clubosc.com/what-category-are-you-looking-at.html#comment-854</guid>
		<description>That&#039;s good. But, is it possible show the banner only in a 
subcategory?
I tried: 
 
But this code is wrong.</description>
		<content:encoded><![CDATA[<p>That&#039;s good. But, is it possible show the banner only in a<br />
subcategory?<br />
I tried: </p>
<p>But this code is wrong.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
