<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : BBcode help</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 02 May 2026 02:05:22 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	To allow empty alt contents, replace</p>
<pre class="brush:plain;">
alt=(.*?[^"\';:\?])</pre>
<p>
	with</p>
<pre class="brush:plain;">
alt=(.*?[^"\';:\?]?)</pre>
]]></description>
			<pubDate>Sun, 13 Nov 2011 10:03:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6601&d=0#post31401]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	... good idea :) I'll be back in half an hour.</p>
<p><strong>Added 24 minutes later:</strong></p><p>
	... I can't reproduce O_O Now it works nice...</p>
<p>
	BUT... the bbcodes don't work if alt is empty (it happens). What would you recommend to make it always work? Always put a space there...?</p>
<p><strong>Added 14 minutes later:</strong></p><p>
	yes, it's something about the alt attribute. If the bbcode ends with alt=] , then errors appear.</p>
<p>
	How to prevent it?</p>
<p><strong>Added 1 hour later:</strong></p><p>
	OK, I found a way... I just made it required in fckeditor &gt;_&gt; I'll get back when I stumble upon more problems.</p>
<p>
	Generally I'm glad with my progress, I edited (ekhm... hacked &gt;_&gt; but we all know how it looks like: no proper tpls) Genoa pfs a little to make the standalone version compatible with fckeditor. :) So when I click "image" and then "browse", PFS standalone pops up and I can chose images from PFS. :) Yay! Then fckeditor calculates width and height and I can start playing with it.</p>
<p>
	Just now I have to add hundreds of image bbcodes to handle all that vspace hspace border etc crap ^_^ (excuse my french). But I think it will be worth it.</p>
]]></description>
			<pubDate>Sat, 12 Nov 2011 19:14:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6601&d=0#post31392]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	It would help a lot if you first found which one of them (or if any of them) causes this problem using the method of exclusion (adding those bbcodes one by one). It's a suicide checking all these regexps at once for consistency.</p>
]]></description>
			<pubDate>Sat, 12 Nov 2011 18:51:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6601&d=0#post31391]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	Hi,</p>
<p>
	I want to add the following bbcodes to my site:</p>
<pre class="brush:php;">
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) vspace=(\d*) border=(\d*) align=(\w*) hspace=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" vspace="$2" border="$3" align="$4" hspace="$5" height="$6" alt="$7" src="https://www.cotonti.com/$8"&gt;', true, 128, 'fckeditor');	
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) vspace=(\d*) align=(\w*) hspace=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" vspace="$2" align="$3" hspace="$4" height="$5" alt="$6" src="https://www.cotonti.com/$7"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) vspace=(\d*) border=(\d*) hspace=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" vspace="$2" border="$3" hspace="$4" height="$5" alt="$6" src="https://www.cotonti.com/$7"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) border=(\d*) hspace=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" border="$2" hspace="$3" height="$4" alt="$5" src="https://www.cotonti.com/$6"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) vspace=(\d*) border=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" vspace="$2" border="$3" height="$4" alt="$5" src="https://www.cotonti.com/$6"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) border=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" border="$2" height="$3" alt="$4" src="https://www.cotonti.com/$5"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) align=(\w*) hspace=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" align="$2" hspace="$3" height="$4" alt="$5" src="https://www.cotonti.com/$6"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) vspace=(\d*) align=(\w*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" vspace="$2" align="$3" height="$4" alt="$5" src="https://www.cotonti.com/$6"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) align=(\w*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" align="$2" height="$3" alt="$4" src="https://www.cotonti.com/$5"&gt;', true, 128, 'fckeditor');	
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) border=(\d*) align=(\w*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" border="$2" align="$3" height="$4" alt="$5" src="https://www.cotonti.com/$6"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) border=(\d*) align=(\w*) hspace=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" border="$2" align="$3" hspace="$4" height="$5" alt="$6" src="https://www.cotonti.com/$7"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) vspace=(\d*) border=(\d*) align=(\w*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" vspace="$2" border="$3" align="$4" height="$5" alt="$6" src="https://www.cotonti.com/$7"&gt;', true, 128, 'fckeditor');
	sed_bbcode_add('img', 'pcre', '\[img width=(\d*) height=(\d*) alt=(.*?[^"\';:\?])\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]', '&lt;img width="$1" height="$2" src="https://www.cotonti.com/$4" alt="$3" /&gt;', true, 128, 'fckeditor');

</pre>
<p>
	I'm trying to make it work because I want a better image support with bbcode fckeditor for Genoa. The only thing is that Cotonti doesn't like these codes. The result is that page_html doesn't want to get parsed at all (during page edit) and even though page_text has some text in it, the page on site is blank (parser protests)</p>
<p>
	I can't really tell where I made a mistake... I don't like all that regexes. Please help, I'm fighting with it for a long time already :)</p>
]]></description>
			<pubDate>Sat, 12 Nov 2011 17:30:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6601&d=0#post31390]]></link>
		</item>
	</channel>
</rss>