<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Light-weight related articles mod for sNews 1.7</title>
<link>http://www.mdj.us/</link>
<description>A new, much improved light-weight related articles mod, for sNews CMS 1.7.</description>
<language>en</language>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1655</link>
<pubDate>Thu, 17 May 2012 15:43:00 +0000</pubDate>
<content:encoded><![CDATA[Hi Rakesh,<br />
<br />
It shouldn't show the article you're currently reading. If you look on line 91 of the php file, it should be<br />
<br />
[php]<br />
 AND a.id != '&quot;.$_ID.&quot;'<br />
[/php]<br />
<br />
that should exclude the ID of the article you're viewing. <br />
<br />
Are you using sNews 1.7?]]></content:encoded>
</item>
<item>
<title>Rakesh Jain</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1654</link>
<pubDate>Thu, 17 May 2012 15:31:23 +0000</pubDate>
<content:encoded><![CDATA[HI Matt<br />
Thanks for your sNews Mods , They are wonderful.<br />
I really appreciate your hard work.<br />
<br />
There is small isse with &quot;Light-weight related articles mod &quot;, First link show in article page is always same as the article itself. <br />
[b]For Example :[/b]<br />
On Article 1 , it shows the related articles as <br />
Article1<br />
Article2<br />
Article3<br />
Article4<br />
Article5<br />
<br />
Is there any ways you can exclude Article 1 is related article section ?]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1640</link>
<pubDate>Thu, 22 Mar 2012 17:28:42 +0000</pubDate>
<content:encoded><![CDATA[Hi John,<br />
<br />
This site is no longer running sNews CMS, though I do still use it. sNews CMS has no default way to associate an image with an article the way I have here.<br />
<br />
A &quot;hacky&quot; way to do it, is to upload a .jpg thumbnail to your files directory, and name the file the id # of the article, then you could add it into the code, such like;<br />
<br />
[php]<br />
&lt;?php<br />
if (file_exists('file_directory/'.$r['aid'].'.jpg')) {<br />
    $list .= '&lt;li&gt;&lt;img src=&quot;file_directory/'.$r['aid'].'.jpg&quot; /&gt;&lt;a href=&quot;'._SITE.$link.$r['asef'].'/&quot;&gt;'.$r['title'].'&lt;/a&gt;'.$show_cat.'&lt;/li&gt;';<br />
} else {<br />
    $list .= '&lt;li&gt;&lt;img src=&quot;file_directory/default.jpg&quot; /&gt;&lt;a href=&quot;'._SITE.$link.$r['asef'].'/&quot;&gt;'.$r['title'].'&lt;/a&gt;'.$show_cat.'&lt;/li&gt;';<br />
}<br />
?&gt;<br />
[/php]<br />
<br />
This is just an untested rough example, you'll need to wteak the HTML/CSS a bit to get it looking similar to mine. Don't forget to upload a default.jpg thumbnail in case the article doesn't have one associated.]]></content:encoded>
</item>
<item>
<title>Jonathan</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1639</link>
<pubDate>Thu, 22 Mar 2012 17:14:52 +0000</pubDate>
<content:encoded><![CDATA[Hi Matt,<br />
Does the mod implemented in your site uses same code or different ?<br />
Would you mind sharing how to display the article image of related articles.<br />
<br />
---Jonathan]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1577</link>
<pubDate>Thu, 12 Jan 2012 10:05:39 +0000</pubDate>
<content:encoded><![CDATA[Haha, if it works, it works, can't complain about that!]]></content:encoded>
</item>
<item>
<title>BS0D</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1576</link>
<pubDate>Thu, 12 Jan 2012 02:18:33 +0000</pubDate>
<content:encoded><![CDATA[Hi Matt,<br />
<br />
I don't think that will be necessary, I fixed it myself. Quite simply actually... I just changed the line <br />
<br />
[code]if ($infoline == true &amp;&amp; $_catID != 0)[/code]<br />
<br />
to<br />
<br />
[code]if (empty($currentPage) &amp;&amp; $infoline == true &amp;&amp; $_catID != 0)[/code]<br />
<br />
It might be a horrible way to fix that, I am no PHP expert and only have the basics, but it works fine on my site. I don't seem to have lost any functionalities and have noticed no bugs so far (I tried that locally first of course) :)<br />
If you can suggest a better fix of course I'll take it!]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1573</link>
<pubDate>Tue, 10 Jan 2012 13:11:59 +0000</pubDate>
<content:encoded><![CDATA[BS0D,<br />
<br />
Something didn't go quite right it seems, as the related articles should only show on an article when it's being viewed full-page.<br />
<br />
Do you have a link, I'd like to take a look at the source? You can send it to me through the contact form if you don't want to post it publicly.]]></content:encoded>
</item>
<item>
<title>BS0D</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1572</link>
<pubDate>Tue, 10 Jan 2012 03:23:07 +0000</pubDate>
<content:encoded><![CDATA[OK I'm sorry to bother you again Matt, but now that I got my database to work for this mod, the related links appear in the categories themselves. <br />
<br />
Only the last article appears with the related div underneath, but it hides all the previous articles in that category.<br />
<br />
Did I miss something? Did I do something wrong?]]></content:encoded>
</item>
<item>
<title>BS0D</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1571</link>
<pubDate>Tue, 10 Jan 2012 02:21:01 +0000</pubDate>
<content:encoded><![CDATA[Oops, nevermind... my online research paid off. I changed the table type to MYISAM and it works now. <br />
<br />
I was a bit hesitant at first because I don't know much about mySQL and I'm not sure if it has an impact on the speed/consistency of the database. Didn't want my site to lose its functionalities or get it messed up!]]></content:encoded>
</item>
<item>
<title>BS0D</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/lightweight-related-articles-mod-for-snews-17/#comment-1570</link>
<pubDate>Tue, 10 Jan 2012 01:59:15 +0000</pubDate>
<content:encoded><![CDATA[Hi Matt,<br />
<br />
I'm getting the following error message: &quot;#1214 - The used table type doesn't support FULLTEXT indexes&quot;<br />
<br />
I don't know how to fix that... does that mean i already have fulltext set up, or just that I cannot set it up at all?]]></content:encoded>
</item>
</channel>
</rss>

