<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : BBcode Thumb is not working</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 06 Apr 2026 19:14:45 -0000</pubDate>

		<item>
			<title>foxhound</title>
			<description><![CDATA[Kind of funny, I have replaced the code in the seditio compatibility plugin with the above code and I am also using the &quot;Thumbnailviewer&quot; plugin.<br />
Although the picture does not show (when using multiple pictures) you can still click the displayed red cross and it will load the full image  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/surprised.gif" alt=":-O" /> <br />
<br />
Try for yourself here:<br />
<a href="http://www.armaholic.com/testers/armaholictest/page.php?id=5388" rel="nofollow">http://www.armaholic.com/testers/armaholictest/page.php?id=5388</a><br />
<br />
It should display 2 thumbs but as reported it can not do that, however when you click the not showing picture you can see the picture.<br />
Please note it does show the last picture of the 2, not the first.<br />
<br />
Any update one this?<br />
<br />
When we move to Cotonti we will have to edit the DB to change the thoussands of links we use from the seditio thumb creation: <div class="highlight"><pre class="cplusplus">&#091;thumb=datas/thumbs/8582-panthera_10k_view.jpg&#093;8582-panthera_10k_view.jpg&#091;/thumb&#093;&#091;thumb=datas/thumbs/4-arma2_preview_april_pcdome_45.jpg&#093;4-arma2_preview_april_pcdome_45.jpg&#091;/thumb&#093;</pre></div>
<br />
To this: <div class="highlight"><pre class="cplusplus">&#091;thumb=http://www.armaholic.com/datas/thumbs/8582-panthera_10k_view.jpg&#093;8582-panthera_10k_view.jpg&#091;/thumb&#093; &#091;thumb=http://www.armaholic.com/datas/thumbs/8582-panthera_10k_view.jpg&#093;8582-panthera_10k_view.jpg&#091;/thumb&#093;</pre></div>
<br />
That at least fixes the fact the pics will show again, but still does not fix the issue with the seditio compatibility plugin for thumb creation.]]></description>
			<pubDate>Fri, 24 Apr 2009 23:23:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post11799]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;p=8940#8940">#</a> <strong>Trustmaster :</strong>
The same bug as we had with img bbcode. Try this pattern:<br />
<pre class="code">\&#091;thumb\&#093;(.*?&#091;^\&#093;&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#091;/thumb\&#093;</pre>
</blockquote>
<br />
well, this fixed it partially for me.. It now displays the image, but when you click it, nothing happens..<br />
Will probably be some coding I do not have in my skin..]]></description>
			<pubDate>Fri, 24 Apr 2009 06:36:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post11777]]></link>
		</item>
		<item>
			<title>biro</title>
			<description><![CDATA[actually i think it should be a problem in the parser]]></description>
			<pubDate>Fri, 24 Apr 2009 00:40:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post11765]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[Ahh ok thanks. :)<br />
I hope they can solve this otherwise I will have a lot of DB changes to do manually, like a couple of thoussand  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/happy.gif" alt=":-))" /> <br />
For now I will leave this and continue working on other things.]]></description>
			<pubDate>Thu, 23 Apr 2009 19:58:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post11757]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[indeed, I created today a ticket in trac to solve the problem.]]></description>
			<pubDate>Thu, 23 Apr 2009 19:20:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post11756]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[Hmm, ok than I have a problem as I have 5000+ pages using the old seditio PFS way of creating a thumb on my pages.<br />
So, I guess I need to add the full path to the above code: <pre class="code">sed_bbcode_add('thumb', 'pcre', '\&#091;thumb=((?:http://www.armaholic.com/|https://www.armaholic.com/|ftp://www.armaholic.com/)?&#091;^&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#093;(&#091;^&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#091;/thumb\&#093;','&lt;a href=https://www.cotonti.com/&quot;pfs.php?m=view&amp;amp;v=$2&quot;&gt;&lt;img src=&quot;$1&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;', true, 128, 'seditio');</pre>
<br />
Now, it will display only the first picture:<br />
<a href="http://www.armaholic.com/testers/armaholictest/page.php?id=5398" rel="nofollow">http://www.armaholic.com/testers/armaholictest/page.php?id=5398</a><br />
<br />
One picture works but if I add more pictures after it it no longer works:<br />
<a href="http://www.armaholic.com/testers/armaholictest/page.php?id=5402" rel="nofollow">http://www.armaholic.com/testers/armaholictest/page.php?id=5402</a><br />
<br />
When you check the properties of the picture it seems to me it tries to put all links into the first picture, instead of understanding the next picture should show, look at the properties of this first picture:<br />
<a href="http://www.armaholic.com/testers/armaholictest/datas/thumbs/4-arma2_preview_hry_sme_april_20.jpg]4-arma2_preview_hry_sme_april_20.jpg" rel="nofollow">http://www.armaholic.com/testers/armaholictest/datas/thumbs/4-arma2_preview_hry_sme_april_20.jpg]4-arma2_preview_hry_sme_april_20.jpg</a>[/thumb]%20%3Ca%20href=]]></description>
			<pubDate>Thu, 23 Apr 2009 19:00:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post11755]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;p=11749#11749">#</a> <strong>foxhound :</strong>
<br />
The code in the seditio compatibality plugin looks like this: <pre class="code">sed_bbcode_add('thumb', 'pcre', '\&#091;thumb=((?:http://|https://|ftp://)?&#091;^&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#093;(&#091;^&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#091;/thumb\&#093;','&lt;a href=https://www.cotonti.com/&quot;pfs.php?m=view&amp;amp;v=$2&quot;&gt;&lt;img src=&quot;$1&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;', true, 128, 'seditio');</pre>
</blockquote>
<br />
In the BBcodce you see ((?:http://|https://|ftp://<br />
This means you need to put http:// before the picture, so the whole path. Not /datas/thumbs/...]]></description>
			<pubDate>Thu, 23 Apr 2009 14:17:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post11751]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[I have some troubles too on my test website. The new thumb creation from the PFS works, but on all my old pages the thumbs seem to show completely random if they even do show.<br />
Sometimes it shows the thumb but most of the time it does not and than the link is completely fubar'ed.<br />
<br />
For example check this page where none of the thumb show (created with the old seditio site):<br />
<a href="http://www.armaholic.com/testers/armaholictest/page.php?id=5398" rel="nofollow">http://www.armaholic.com/testers/armaholictest/page.php?id=5398</a><br />
<br />
Now check this page, all of a sudden only one image decided to (this page too was created with the old seditio site):<br />
<a href="http://www.armaholic.com/testers/armaholictest/page.php?id=5396" rel="nofollow">http://www.armaholic.com/testers/armaholictest/page.php?id=5396</a><br />
<br />
<br />
The code in the seditio compatibality plugin looks like this: <pre class="code">sed_bbcode_add('thumb', 'pcre', '\&#091;thumb=((?:http://|https://|ftp://)?&#091;^&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#093;(&#091;^&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#091;/thumb\&#093;','&lt;a href=https://www.cotonti.com/&quot;pfs.php?m=view&amp;amp;v=$2&quot;&gt;&lt;img src=&quot;$1&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;', true, 128, 'seditio');</pre>]]></description>
			<pubDate>Thu, 23 Apr 2009 08:01:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post11749]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Please add a ticket to Trac, this should be fixed in the SVN tree too.]]></description>
			<pubDate>Sat, 28 Feb 2009 03:50:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post9004]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[This does not solve it.<br />
<br />
Here at cotonti you have the same problem.<br />
See my first post above.<br />
You get a red cross If you use it twice.<br />
<br />
EDIT: It is solved. Thank]]></description>
			<pubDate>Fri, 27 Feb 2009 13:53:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post8972]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[The same bug as we had with img bbcode. Try this pattern:<br />
<pre class="code">\&#091;thumb\&#093;(.*?&#091;^\&#093;&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#091;/thumb\&#093;</pre>]]></description>
			<pubDate>Fri, 27 Feb 2009 04:42:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post8940]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[If I add a thumbnail like:<br />
<a href="https://www.cotonti.com/datas/users/bananaleaf_2col_64.jpg"><img src="https://www.cotonti.com/datas/thumbs/bananaleaf_2col_64.jpg" /></a><br />
<br />
<pre class="code">&#091;thumb&#093;bananaleaf_2col_64.jpg&#091;/thumb&#093;</pre>
<br />
I have no problems.<br />
<br />
But if I do it twice i does not work.<br />
<a href="https://www.cotonti.com/datas/users/bananaleaf_2col_64.jpg[/thumb]<br />
[thumb]bananaleaf_2col_64.jpg"><img src="https://www.cotonti.com/datas/thumbs/bananaleaf_2col_64.jpg[/thumb]<br />
[thumb]bananaleaf_2col_64.jpg" /></a><br />
<pre class="code">&#091;thumb&#093;bananaleaf_2col_64.jpg&#091;/thumb&#093;
&#091;thumb&#093;bananaleaf_2col_64.jpg&#091;/thumb&#093;</pre>
<br />
He is not detecting the first [ /thumb], he takes the second one. Why?<br />
<br />
bbcode:<br />
<pre class="code">\&#091;thumb\&#093;(.*?&#091;^&quot;\';:\?&#093;+\.(?:jpg|jpeg|gif|png))\&#091;/thumb\&#093;</pre>
<pre class="code">&lt;a href=https://www.cotonti.com/&quot;datas/users/$1&quot;&gt;&lt;img src=&quot;datas/thumbs/$1&quot; /&gt;&lt;/a&gt;</pre>
<br />
How can I solve this?]]></description>
			<pubDate>Fri, 27 Feb 2009 03:46:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2244&d=0#post8936]]></link>
		</item>
	</channel>
</rss>