<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Add a retweet button to your sNews CMS articles and pages</title>
<link>http://www.mdj.us/</link>
<description>A simple and effective way to add a retweet button to your sNews articles and pages, without having to manually edit the articles or pages.</description>
<language>en</language>
<item>
<title>jesth</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-1214</link>
<pubDate>Fri, 23 Jul 2010 21:43:35 +0000</pubDate>
<content:encoded><![CDATA[Ohh.. why didn't I think of that, thanks alot.]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-1212</link>
<pubDate>Fri, 23 Jul 2010 15:23:15 +0000</pubDate>
<content:encoded><![CDATA[Jesth,<br />
<br />
Just change the if condition, instead of looking for NOBADGE<br />
<br />
<br />
if (strpos($text,'&lt;!-- NOBADGE --&gt;') === false)<br />
change it to;<br />
if (_ADMIN)]]></content:encoded>
</item>
<item>
<title>jesth</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-1211</link>
<pubDate>Thu, 22 Jul 2010 14:53:25 +0000</pubDate>
<content:encoded><![CDATA[Hi (again)<br />
<br />
Was wondering, is it possible to make it &quot;Admin view only&quot; say you add this great mod, but only want it visible to admin when he is logged in, instead of adding the &lt;!-- NOBADGE--&gt; to every single article, or is there an even better way of doing so?]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-980</link>
<pubDate>Mon, 08 Mar 2010 03:14:21 +0000</pubDate>
<content:encoded><![CDATA[No worries jesth, yeah, I was a little lazy and used strpos for this little hack instead of a regex or stripos even, so yeah, the badge part has to be exact, including the spaces and CAPS. <br />
<br />
Thanks for the note.]]></content:encoded>
</item>
<item>
<title>jesth</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-979</link>
<pubDate>Sun, 07 Mar 2010 13:05:18 +0000</pubDate>
<content:encoded><![CDATA[Sorry for doubleposting but the error code was<br />
&lt;!-- NOBADGE--&gt;<br />
<br />
just to clearify, for others who might be in doubt.]]></content:encoded>
</item>
<item>
<title>jesth</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-978</link>
<pubDate>Sun, 07 Mar 2010 13:02:15 +0000</pubDate>
<content:encoded><![CDATA[Small error in my &quot;code&quot; a missing space made the NOBADGE still appear after adding it via my link, error being the missing space after NOBADGE here:<br />
&lt;!-- NOBADGE --&gt;<br />
<br />
better code:<br />
<br />
case 'twit': <br />
start = '&lt;!-- NOBADGE --&gt;'; <br />
end = ''; <br />
break;]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-974</link>
<pubDate>Fri, 05 Mar 2010 14:53:35 +0000</pubDate>
<content:encoded><![CDATA[Nice idea jesth.<br />
<br />
For anyone wondering what he's talking about, if you open admin.js, inside the function tag(tag), and add the code he noted<br />
<br />
Then inside snews.php, in the function buttons(), find the line with<br />
$insert = array('img', 'link'... then add &quot;twit&quot; to the list.<br />
<br />
Tada, now you have a clickable button.]]></content:encoded>
</item>
<item>
<title>jesth</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-971</link>
<pubDate>Fri, 05 Mar 2010 06:13:24 +0000</pubDate>
<content:encoded><![CDATA[I just tested this, and must say, well done, and for the NOBADGE insertion, I created this rather lazy button:<br />
<br />
case 'twit': <br />
start = '&lt;!-- NOBADGE'; <br />
end = '--&gt;\n'; <br />
break;	<br />
<br />
i'm sure it could be done better, but hey, it works, yay for lazyness :)]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-815</link>
<pubDate>Mon, 25 Jan 2010 22:27:17 +0000</pubDate>
<content:encoded><![CDATA[Unfortunately it seems to me that the tweetmeme API is insanely slow, it seems to be causing my pages to load ridiculously slow. <br />
<br />
I noticed a huge spike in load times on the Google Webmaster Tools Performance overview page on the exact day I started using it.<br />
<br />
<br />
I just removed it from all pages but this one (and reworked some other bits of my site). I will see if there is a corresponding drop in GWT loading times over the next couple of weeks.]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/add-a-retweet-button-to-your-snews-cms-articles-and-pages/#comment-780</link>
<pubDate>Thu, 14 Jan 2010 10:39:02 +0000</pubDate>
<content:encoded><![CDATA[Hahaha! Awesome :)]]></content:encoded>
</item>
</channel>
</rss>

