<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>An easy mod to create custom break titles for your sNews articles</title>
<link>http://www.mdj.us/</link>
<description>Add custom title to your sNews article page breaks with this easy little mod.</description>
<language>en</language>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-547</link>
<pubDate>Wed, 09 Sep 2009 11:21:14 +0000</pubDate>
<content:encoded><![CDATA[Nice work Different!]]></content:encoded>
</item>
<item>
<title>Different</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-544</link>
<pubDate>Mon, 07 Sep 2009 08:20:58 +0000</pubDate>
<content:encoded><![CDATA[Hi, Matt!<br />
You can make a smart button &quot;Intro Break&quot;.<br />
You need only to replace the standard code (intro) in the file admin.js:<br />
<br />
case 'intro':<br />
moread = prompt(&quot;&quot;, '');<br />
if (moread == null) {<br />
start = '';<br />
end = '';<br />
}<br />
else if (moread != '') {<br />
start = '';<br />
end = '[break title=&quot;'+moread+'&quot;]';<br />
} else {<br />
start = '';<br />
end = '[break]';<br />
}<br />
break;<br />
<br />
Do not forget to add the variable 'moread':<br />
// basic html textarea editor<br />
function tag(tag) {<br />
var src = document.getElementById('txt');<br />
var start, end, moread, url, width, border, align, alt, title='';<br />
	<br />
And to add language variable $l['js_title'].<br />
Enjoy!]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-542</link>
<pubDate>Wed, 02 Sep 2009 09:43:05 +0000</pubDate>
<content:encoded><![CDATA[Ahhh, yes Different, I forgot that part. That is needed in function strip for cleaning up the text for RSS.<br />
<br />
I'll update the tutorial.<br />
<br />
Thanks!]]></content:encoded>
</item>
<item>
<title>Different</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-541</link>
<pubDate>Wed, 02 Sep 2009 08:11:26 +0000</pubDate>
<content:encoded><![CDATA[Hi Matt,<br />
<br />
Excellent!<br />
I'll add my three cents for the correct output RSS.<br />
<br />
Please find code in snews.php:<br />
<br />
$search = array('/\[include\](.*?)\[\/include\]/', '/\[func\](.*?)\[\/func\]/', '/\[break\]/', '//');<br />
<br />
and replace for<br />
<br />
$search = array('/\[include\](.*?)\[\/include\]/', '/\[func\](.*?)\[\/func\]/', '/\[break(.*)\]/', '//');<br />
<br />
Enjoy!]]></content:encoded>
</item>
<item>
<title>Sven - Philippe</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-540</link>
<pubDate>Sun, 30 Aug 2009 07:07:24 +0000</pubDate>
<content:encoded><![CDATA[Yeap that's it:<br />
ARTICLE 1 Title<br />
article#1<br />
comment's link to display the existing commments (if there are) and the comment box.<br />
User after having posted should see the message 'Comment has been sent) at this place<br />
ARTICLE 2 Title<br />
article#2<br />
comment's link to display (...)]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-539</link>
<pubDate>Fri, 28 Aug 2009 15:33:25 +0000</pubDate>
<content:encoded><![CDATA[Hmmm, do you mean bring the comments/form to the home/category view?]]></content:encoded>
</item>
<item>
<title>Sven - Philippe</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-538</link>
<pubDate>Fri, 28 Aug 2009 15:28:31 +0000</pubDate>
<content:encoded><![CDATA[&quot;Ahhh, I think I see, but it wouldn't be easier to simply hide a div containing the comments/comment form?&quot;<br />
Related to the page?]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-536</link>
<pubDate>Fri, 28 Aug 2009 11:44:17 +0000</pubDate>
<content:encoded><![CDATA[Ahhh, I think I see, but it wouldn't be easier to simply hide a div containing the comments/comment form? To call the entire page again via ajax and extract the comments/comment form would be quite a bit of overhead.]]></content:encoded>
</item>
<item>
<title>Sven - Philippe</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-534</link>
<pubDate>Fri, 28 Aug 2009 04:18:05 +0000</pubDate>
<content:encoded><![CDATA[Yeap, that's it. a kinda of Ajax. This Ahah script is light and its purpose is to call the comments and the comment box to the home page.<br />
There's not so much to do I think.<br />
On the website I found the script and on the forum I explain the little function needed to call the article comments and the comment box and display them on the home page.]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/an-easy-mod-to-create-custom-break-titles-for-your-snews-articles/#comment-532</link>
<pubDate>Thu, 27 Aug 2009 16:39:09 +0000</pubDate>
<content:encoded><![CDATA[Oh, I know it wasn't your illustration, I just think it's a very good use of it!<br />
<br />
I did have a quick look at the post on the forum, I didn't spend a whole lot of time visiting that site though, is it an ajax type script, &quot;click to show comments&quot;, etc?]]></content:encoded>
</item>
</channel>
</rss>

