<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>PHP to display something in sNews ONLY when viewing an article on it&#039;s page</title>
<link>http://www.mdj.us/</link>
<description>PHP to show something ONLY when viewing an article on it&#039;s page in Snews 1.7.</description>
<language>en</language>
<item>
<title>Nicu Alecu</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-1255</link>
<pubDate>Tue, 14 Sep 2010 07:00:43 +0000</pubDate>
<content:encoded><![CDATA[Thanks, Matt, works awesome.]]></content:encoded>
</item>
<item>
<title>Sinolog</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-788</link>
<pubDate>Fri, 22 Jan 2010 18:26:03 +0000</pubDate>
<content:encoded><![CDATA[Thanks! I insert adsense in text example:<br />
<br />
<a href="http://www.calun.pl/calun-turynski/calun-turynski-argumenty-nie/czy-znalezisko-podwazy-mit-calunu-turynskiego/" rel="nofollow">http://www.calun.pl/calun-turynski/calun-turynski-argumenty-nie/czy-znalezisko-podwazy-mit-calunu...</a>]]></content:encoded>
</item>
<item>
<title>Andrew</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-462</link>
<pubDate>Sun, 28 Jun 2009 22:09:39 +0000</pubDate>
<content:encoded><![CDATA[Matt, I've been offline myself for a few days. Just noticed your back! I'll give your code a try. Thanks very much!]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-459</link>
<pubDate>Tue, 23 Jun 2009 11:32:57 +0000</pubDate>
<content:encoded><![CDATA[Andrew, try this and see if it works for what you want;<br />
<br />
[code]if (empty($currentPage) &amp;&amp; (!empty($_ID) &amp;&amp; $_catID &gt; 0 || empty($_GET['category']))) {<br />
    echo &quot;Sweet, this is an article/home page!&quot;;<br />
} else {<br />
    echo &quot;Damn, this isn't an article/home page!&quot;;<br />
}[/code]]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-454</link>
<pubDate>Sat, 20 Jun 2009 13:42:55 +0000</pubDate>
<content:encoded><![CDATA[Hi Andrew,<br />
<br />
That can be done, I'll get back to you on Tuesday... I'm away in Washington D.C. until then.<br />
<br />
-Matt]]></content:encoded>
</item>
<item>
<title>AJ</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-453</link>
<pubDate>Sat, 20 Jun 2009 04:42:32 +0000</pubDate>
<content:encoded><![CDATA[Matt,<br />
<br />
This mod seems to be almost exactly what I am looking for. If you have the time could you explain how I can get something to show on my articles (as above) and also the homepage. My homepage is always my latest article. The something being adsense of course.<br />
<br />
Thanks again for getting me sorted with my missing data last week.<br />
<br />
Best,<br />
Andrew]]></content:encoded>
</item>
<item>
<title>Sven - Philippe</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-356</link>
<pubDate>Thu, 30 Apr 2009 13:59:15 +0000</pubDate>
<content:encoded><![CDATA[Thanks Matt for your encouragement.<br />
But... but... this blog is just a playground for SEO and a way to let out the steam of my brain when I get ennoyed by customers.<br />
I never done its promotion so there's a few visitors.]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-355</link>
<pubDate>Thu, 30 Apr 2009 10:26:51 +0000</pubDate>
<content:encoded><![CDATA[I would think your site has the potential to do very well with Adsense Philippe. You have a great niche site.]]></content:encoded>
</item>
<item>
<title>Sven - Philippe</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-353</link>
<pubDate>Thu, 30 Apr 2009 07:07:23 +0000</pubDate>
<content:encoded><![CDATA[Hi Matt,<br />
really nice: I was wondering how I could display Google Ads too (later on) and tada! here comes the solution. Thanks a lot.<br />
Have a nice day.]]></content:encoded>
</item>
<item>
<title>jordi</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/php-to-display-something-in-snews-only-when-viewing-an-article-on-its-page/#comment-351</link>
<pubDate>Wed, 29 Apr 2009 17:07:20 +0000</pubDate>
<content:encoded><![CDATA[Thanks!]]></content:encoded>
</item>
</channel>
</rss>

