<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Create your own BBCode, using PHP</title>
	<link>http://phpit.net/article/create-bbcode-php/</link>
	<description>PHPit has dozens of PHP articles, codesnippets and FAQ's.</description>
	<pubDate>Sun, 03 Aug 2008 19:17:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: reZo</title>
		<link>http://phpit.net/article/create-bbcode-php/#comment-90400</link>
		<pubDate>Mon, 02 Apr 2007 00:43:59 +0000</pubDate>
		<guid>http://phpit.net/article/create-bbcode-php/#comment-90400</guid>
					<description>Hey there,

Nice tutorial. However, I have a question. It's been a few months since I've worked on my own BBCode class. However, when doing so, I was trying to get GeSHi to work with my BBCode class. The which I did this, was call a separate function from within my BBCode class, which would call the correct GeSHi settings and such.

However, I found when I called GeSHi, it was messing up the value which it retrieved, and returned it as a literal \\1 or $1. Depending on what I gave it for the preg_replace parameter. I'm trying to make GeSHi work with my BBCode class basicly, so GeSHi doesn't return \\1 or $1 but returns the parsed GeSHi output instead.

Hope you understand what I mean, have you got any suggestions for this? I guess I should get down and dirty with GeSHi perhaps?

As I said, it's been a couple months since I have done any work on my BBCode class, but from memory I could return the valid output I wanted from a custom function instead of \\1 and such.</description>
		<content:encoded><![CDATA[<p>Hey there,</p>
<p>Nice tutorial. However, I have a question. It&#8217;s been a few months since I&#8217;ve worked on my own BBCode class. However, when doing so, I was trying to get GeSHi to work with my BBCode class. The which I did this, was call a separate function from within my BBCode class, which would call the correct GeSHi settings and such.</p>
<p>However, I found when I called GeSHi, it was messing up the value which it retrieved, and returned it as a literal \\1 or $1. Depending on what I gave it for the preg_replace parameter. I&#8217;m trying to make GeSHi work with my BBCode class basicly, so GeSHi doesn&#8217;t return \\1 or $1 but returns the parsed GeSHi output instead.</p>
<p>Hope you understand what I mean, have you got any suggestions for this? I guess I should get down and dirty with GeSHi perhaps?</p>
<p>As I said, it&#8217;s been a couple months since I have done any work on my BBCode class, but from memory I could return the valid output I wanted from a custom function instead of \\1 and such.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Viper007Bond</title>
		<link>http://phpit.net/article/create-bbcode-php/#comment-10010</link>
		<pubDate>Thu, 03 Aug 2006 10:51:16 +0000</pubDate>
		<guid>http://phpit.net/article/create-bbcode-php/#comment-10010</guid>
					<description>Thanks a lot for this! Been meaning to learn regex. :D</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this! Been meaning to learn regex. :D
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mikael</title>
		<link>http://phpit.net/article/create-bbcode-php/#comment-3732</link>
		<pubDate>Fri, 16 Jun 2006 11:38:46 +0000</pubDate>
		<guid>http://phpit.net/article/create-bbcode-php/#comment-3732</guid>
					<description>If user has closed tags in wrong order  it breaks web page (if using xhtml strict) like: [b]something[i]very[/b]</description>
		<content:encoded><![CDATA[<p>If user has closed tags in wrong order  it breaks web page (if using xhtml strict) like: [b]something[i]very[/b]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tonto</title>
		<link>http://phpit.net/article/create-bbcode-php/#comment-837</link>
		<pubDate>Mon, 20 Mar 2006 23:21:12 +0000</pubDate>
		<guid>http://phpit.net/article/create-bbcode-php/#comment-837</guid>
					<description>Good tut. I tried making it into a function but it wouldn't return the variable.</description>
		<content:encoded><![CDATA[<p>Good tut. I tried making it into a function but it wouldn&#8217;t return the variable.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: myself</title>
		<link>http://phpit.net/article/create-bbcode-php/#comment-564</link>
		<pubDate>Thu, 09 Feb 2006 05:27:58 +0000</pubDate>
		<guid>http://phpit.net/article/create-bbcode-php/#comment-564</guid>
					<description>I can't seem to get this to work...on the site I'm creating, I have a form, that sends to a page that puts everything into the database. and then another page that displays the messages. I have tried to put it into both those pages, and it doesn't work on neither on...I have tried changing $str to $post and still wont work...my site just seems to ignore the function and posts everything as you type it. Any idea's what I could be doing wrong? Its prolly something small and stupid, but I can't figure it out
thanks</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get this to work&#8230;on the site I&#8217;m creating, I have a form, that sends to a page that puts everything into the database. and then another page that displays the messages. I have tried to put it into both those pages, and it doesn&#8217;t work on neither on&#8230;I have tried changing $str to $post and still wont work&#8230;my site just seems to ignore the function and posts everything as you type it. Any idea&#8217;s what I could be doing wrong? Its prolly something small and stupid, but I can&#8217;t figure it out<br />
thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: James</title>
		<link>http://phpit.net/article/create-bbcode-php/#comment-437</link>
		<pubDate>Tue, 17 Jan 2006 14:28:19 +0000</pubDate>
		<guid>http://phpit.net/article/create-bbcode-php/#comment-437</guid>
					<description>cool, i have a similar set up on my site however i only check for [code] ... [/code] 
How could i get the syntax highlighting as you have on your site? I've tried using highlight_string("$1") but it's not having any affect?!?</description>
		<content:encoded><![CDATA[<p>cool, i have a similar set up on my site however i only check for [code] &#8230; [/code]<br />
How could i get the syntax highlighting as you have on your site? I&#8217;ve tried using highlight_string(&#8221;$1&#8243;) but it&#8217;s not having any affect?!?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joshua Gigg</title>
		<link>http://phpit.net/article/create-bbcode-php/#comment-280</link>
		<pubDate>Fri, 16 Dec 2005 08:25:23 +0000</pubDate>
		<guid>http://phpit.net/article/create-bbcode-php/#comment-280</guid>
					<description>That was meant to be [/blockquote] replace [ with </description>
		<content:encoded><![CDATA[<p>That was meant to be [/blockquote] replace [ with
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joshua Gigg</title>
		<link>http://phpit.net/article/create-bbcode-php/#comment-279</link>
		<pubDate>Fri, 16 Dec 2005 08:24:40 +0000</pubDate>
		<guid>http://phpit.net/article/create-bbcode-php/#comment-279</guid>
					<description>Thanks for this tutorial, however, wouldn't it be better for the quote to have $str .= '&lt;/blockquote&gt;'; as

$str .= $close;</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial, however, wouldn&#8217;t it be better for the quote to have $str .= &#8216;</p></blockquote>
<p>&#8216;; as</p>
<p>$str .= $close;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
