<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Add individual RSS feeds for articles in sNews 1.7</title>
<link>http://www.mdj.us/</link>
<description>Add individual RSS comment feeds to each of your sNews CMS articles with this mod.</description>
<language>en</language>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-1132</link>
<pubDate>Sun, 09 May 2010 11:35:29 +0000</pubDate>
<content:encoded><![CDATA[Hi Yule &amp; Patric,<br />
<br />
I don't think their is a mod for category RSS feeds, it would probably require a much larger rewrite of the RSS function.<br />
<br />
I may have a look at writing it some time, no promises right now though :)]]></content:encoded>
</item>
<item>
<title>Yule</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-1130</link>
<pubDate>Sun, 09 May 2010 08:39:23 +0000</pubDate>
<content:encoded><![CDATA[Hello <br />
<br />
Thank you for this mod!, However, is there a mod for the same classes, I look for how to make a <br />
rss individually by category <br />
<br />
In advance thank you for your help <br />
Yule]]></content:encoded>
</item>
<item>
<title>Patric</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-800</link>
<pubDate>Mon, 25 Jan 2010 12:05:03 +0000</pubDate>
<content:encoded><![CDATA[Now this one for categories would be just Dandy]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-689</link>
<pubDate>Tue, 24 Nov 2009 14:06:56 +0000</pubDate>
<content:encoded><![CDATA[lol, cool different, that's good stuff, I have codified your comment code for readability. I need to add a bbcode just for formatting code some time.]]></content:encoded>
</item>
<item>
<title>Different</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-688</link>
<pubDate>Tue, 24 Nov 2009 12:43:07 +0000</pubDate>
<content:encoded><![CDATA[Afraid that I was banned, but ... It works! :)<br />
<br />
$limit = s('rss_limit');<br />
$url = cleanXSS($_SERVER['REQUEST_URI']);<br />
$start = strpos($url,'?id=') + 4;<br />
$tail = substr($url,$start);<br />
$lenght = strpos($tail,'&amp;articleSEF=');<br />
$aid = substr($tail,0,$lenght);<br />
if (ctype_digit($aid)) $extra_sql = &quot;articleid = '&quot;.$aid.&quot;' AND &quot;;]]></content:encoded>
</item>
<item>
<title>Different</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-687</link>
<pubDate>Tue, 24 Nov 2009 11:39:46 +0000</pubDate>
<content:encoded><![CDATA[Hi, Matt! You are absolutely right, but I was mistaken a bit. Here's my corrected version for compensation:<br />
<br />
$url = cleanXSS($_SERVER['REQUEST_URI']);<br />
$start = strpos($url,'?id=') + 4;<br />
$end = strpos($url,'&amp;') + 2;<br />
$aid = substr(substr($url,$start),0,$end);<br />
if (ctype_digit($aid)) $extra_sql = &quot;articleid = '&quot;.$aid.&quot;' AND &quot;;<br />
and<br />
echo '&lt;p class=&quot;commentsrss&quot;&gt;&lt;a href=&quot;'._SITE.'rss-comments?id='.$_ID.'&amp;articleSEF='.$art_value.'&quot; rel=&quot;nofollow&quot;&gt;'.l('rss_comments_article').'&lt;/a&gt;&lt;/p&gt;'.&quot;\r\n&quot;;<br />
<br />
<br />
I added a tag rel=&quot;nofollow&quot; for search engines only.<br />
I'll be glad if someone is needed.]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-686</link>
<pubDate>Mon, 23 Nov 2009 14:02:14 +0000</pubDate>
<content:encoded><![CDATA[Hi Different,<br />
<br />
On your first point, that's definitely do-able, you'd need to join the category table in the first part of the switch statement, as of right now, it is pulled by the sNews retrieve function, which is quite inefficient actually.<br />
<br />
On your second comment, you can do that, I like to keep the option always there in case someone may see an article and want to keep tabs on future comments even if there hasn't been any comments yet.]]></content:encoded>
</item>
<item>
<title>Different</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-685</link>
<pubDate>Sun, 22 Nov 2009 17:39:42 +0000</pubDate>
<content:encoded><![CDATA[Or for better viewing:<br />
if ($numrows &gt; 0) echo '&lt;div class=&quot;commentsrss&quot;&gt;&lt;a href=&quot;'._SITE.'rss-comments?article='.$articleSEF.'&quot;&gt;'.l('rss_comments_article').'&lt;/a&gt;&lt;/div&gt;'.&quot;\r\n&quot;;]]></content:encoded>
</item>
<item>
<title>Different</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-684</link>
<pubDate>Sun, 22 Nov 2009 17:27:24 +0000</pubDate>
<content:encoded><![CDATA[Hi Matt,<br />
Exelent work!<br />
You can specify the $articleSEF instead of numbers. For example:<br />
<br />
&lt;a href=&quot;'._SITE.'rss-comments?article='.$art_value.'&quot;&gt;'.l('rss_comments_article').'&lt;/a&gt;<br />
<br />
IMHO, it looks more understandable to the user.]]></content:encoded>
</item>
<item>
<title>slemborg</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-individual-rss-feeds-for-articles-in-snews-17/#comment-651</link>
<pubDate>Fri, 13 Nov 2009 09:37:37 +0000</pubDate>
<content:encoded><![CDATA[Tested it now, and it's working nicely, thanks again Matt.]]></content:encoded>
</item>
</channel>
</rss>

