<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - BBcode in RSS feeds]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/20604/"/>
	<updated>2009-06-20T16:48:15Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/20604/bbcode-in-rss-feeds/</id>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128550/#p128550"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>ploufplouf wrote:</cite><blockquote><p>No new idea? The content of the RSS feed is crappy with bbcode :&#039;(<br />That could be cool to remove bbcode in RSS but how :&#039;(</p><p>Example in this feed : <a href="http://www.actubourse.fr/forum/feed-rss.xml">http://www.actubourse.fr/forum/feed-rss.xml</a></p><p>The result is crappy with google reader : <br /><a href="http://www.google.fr/reader/view/feed/http%3A%2F%2Fwww.actubourse.fr%2Fforum%2Ffeed-rss.xml">http://www.google.fr/reader/view/feed/h &#133; ed-rss.xml</a></p></blockquote></div><br /><p>I have done some modifications in the extern.php, I use do_bbcode_rss() from goundoulf on <a href="http://www.punbb.fr/forums/viewtopic.php?id=6174">http://www.punbb.fr/forums/viewtopic.php?id=6174</a></p><p>It works &#039;better&#039; with google reader.</p><p>Cool <img src="http://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[ploufplouf]]></name>
				<uri>http://punbb.informer.com/forums/user/15571/</uri>
			</author>
			<updated>2009-06-20T16:48:15Z</updated>
			<id>http://punbb.informer.com/forums/post/128550/#p128550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128463/#p128463"/>
			<content type="html"><![CDATA[<p>No new idea? The content of the RSS feed is crappy with bbcode :&#039;(<br />That could be cool to remove bbcode in RSS but how :&#039;(</p><p>Example in this feed : <a href="http://www.actubourse.fr/forum/feed-rss.xml">http://www.actubourse.fr/forum/feed-rss.xml</a></p><p>The result is crappy with google reader : <br /><a href="http://www.google.fr/reader/view/feed/http%3A%2F%2Fwww.actubourse.fr%2Fforum%2Ffeed-rss.xml">http://www.google.fr/reader/view/feed/h &#133; ed-rss.xml</a></p>]]></content>
			<author>
				<name><![CDATA[ploufplouf]]></name>
				<uri>http://punbb.informer.com/forums/user/15571/</uri>
			</author>
			<updated>2009-06-13T17:21:22Z</updated>
			<id>http://punbb.informer.com/forums/post/128463/#p128463</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122491/#p122491"/>
			<content type="html"><![CDATA[<p>No more suggestions?</p>]]></content>
			<author>
				<name><![CDATA[NetworkShadow]]></name>
				<uri>http://punbb.informer.com/forums/user/5237/</uri>
			</author>
			<updated>2009-01-09T16:22:55Z</updated>
			<id>http://punbb.informer.com/forums/post/122491/#p122491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121958/#p121958"/>
			<content type="html"><![CDATA[<p>HTML in a feed can be very valuable IMO, you can easily export to a blog for example. Could this sort of thing be done with an extension? (I&#039;m not aware of the limitations of the extensions API)</p>]]></content>
			<author>
				<name><![CDATA[NetworkShadow]]></name>
				<uri>http://punbb.informer.com/forums/user/5237/</uri>
			</author>
			<updated>2009-01-02T15:40:56Z</updated>
			<id>http://punbb.informer.com/forums/post/121958/#p121958</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121873/#p121873"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Garciat wrote:</cite><blockquote><p>Having HTML inside the RSS is not a good idea.</p></blockquote></div><p>It shouldn&#039;t cause any problems as such. The content is contained within CDATA tags. <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[MattF]]></name>
				<uri>http://punbb.informer.com/forums/user/9938/</uri>
			</author>
			<updated>2008-12-31T21:16:39Z</updated>
			<id>http://punbb.informer.com/forums/post/121873/#p121873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121872/#p121872"/>
			<content type="html"><![CDATA[<p>I think you should get rid of the BBCode instead. Having HTML inside the RSS is not a good idea.</p><p>My regex skills are not very good, but you could try something like:<br /></p><div class="codebox"><pre><code>$cur_post[&#039;message&#039;] = preg_replace(&quot;/\[([a-z0-9*]+)([^\[]+?)?\]([^\[]+?)\[(\/[a-z0-9*]+)\]/i&quot;, &#039;$3&#039;, $cur_post[&#039;message&#039;]);</code></pre></div><p>On line <strong>335</strong>.</p>]]></content>
			<author>
				<name><![CDATA[Garciat]]></name>
				<uri>http://punbb.informer.com/forums/user/12481/</uri>
			</author>
			<updated>2008-12-31T20:58:30Z</updated>
			<id>http://punbb.informer.com/forums/post/121872/#p121872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121868/#p121868"/>
			<content type="html"><![CDATA[<p>I tried the above hack and it didn&#039;t work. It just broke my RSS feed and gave me an error; the browser didn&#039;t even want to read it. Could you give us your extern.php file? Perhaps we did something wrong?</p>]]></content>
			<author>
				<name><![CDATA[NetworkShadow]]></name>
				<uri>http://punbb.informer.com/forums/user/5237/</uri>
			</author>
			<updated>2008-12-31T19:33:51Z</updated>
			<id>http://punbb.informer.com/forums/post/121868/#p121868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121867/#p121867"/>
			<content type="html"><![CDATA[<p>Oops forgot about my own post over the holidays.<br />I&#039;ll give this a try and report back. Thanks for the tip.</p>]]></content>
			<author>
				<name><![CDATA[NetworkShadow]]></name>
				<uri>http://punbb.informer.com/forums/user/5237/</uri>
			</author>
			<updated>2008-12-31T19:23:38Z</updated>
			<id>http://punbb.informer.com/forums/post/121867/#p121867</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121746/#p121746"/>
			<content type="html"><![CDATA[<p>Thanks, but no luck. Still the same the rss feed</p><p><span class="postimg"><img src="http://i39.tinypic.com/2jerces.jpg" alt="http://i39.tinypic.com/2jerces.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[sonofsinner]]></name>
				<uri>http://punbb.informer.com/forums/user/14516/</uri>
			</author>
			<updated>2008-12-29T13:43:35Z</updated>
			<id>http://punbb.informer.com/forums/post/121746/#p121746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121650/#p121650"/>
			<content type="html"><![CDATA[<p>Try copy/paste again, it&#039;s work fine for me</p>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2008-12-26T16:10:42Z</updated>
			<id>http://punbb.informer.com/forums/post/121650/#p121650</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121594/#p121594"/>
			<content type="html"><![CDATA[<p>Ive done just as you said, Now i got this </p><p>Parse error: syntax error, unexpected T_IF, expecting &#039;)&#039; in /home/jyholic/public_html/forum/extern.php on line 336</p>]]></content>
			<author>
				<name><![CDATA[sonofsinner]]></name>
				<uri>http://punbb.informer.com/forums/user/14516/</uri>
			</author>
			<updated>2008-12-25T14:08:57Z</updated>
			<id>http://punbb.informer.com/forums/post/121594/#p121594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121379/#p121379"/>
			<content type="html"><![CDATA[<p>Try:add this after 330 line of extern.php:<br /></p><div class="codebox"><pre><code>include FORUM_ROOT.&#039;include/parser.php&#039;;</code></pre></div><p>Than add this code after 335 line of extern.php:<br /></p><div class="codebox"><pre><code>if ($forum_config[&#039;o_smilies&#039;] == &#039;1&#039;)
    $cur_post[&#039;message&#039;] = do_smilies($cur_post[&#039;message&#039;]);
if ($forum_config[&#039;p_message_bbcode&#039;] == &#039;1&#039;)
    $cur_post[&#039;message&#039;] = do_bbcode($cur_post[&#039;message&#039;]);</code></pre></div><p>Is there is what you want? Maybe it will be needed to add link to css-file to function &quot;output_rss&quot;</p>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2008-12-20T13:26:11Z</updated>
			<id>http://punbb.informer.com/forums/post/121379/#p121379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[BBcode in RSS feeds]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/121340/#p121340"/>
			<content type="html"><![CDATA[<p>Hey I was just wondering; is there anyway to translate the BBcode used in posts to html for the RSS feeds? It&#039;s the only issue I have with using the RSS. You could easily import forum posts to blogs etc if the BBcode didn&#039;t get put directly in the feeds.</p><p>Any ideas or thoughts? Thanks!</p>]]></content>
			<author>
				<name><![CDATA[NetworkShadow]]></name>
				<uri>http://punbb.informer.com/forums/user/5237/</uri>
			</author>
			<updated>2008-12-19T15:18:42Z</updated>
			<id>http://punbb.informer.com/forums/post/121340/#p121340</id>
		</entry>
</feed>
