cotonti.com : BBcode Thumb is not working https://www.cotonti.com Laatste forum onderwerpen Cotonti en Mon, 12 Jan 2026 06:00:37 -0000 foxhound 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 :-O

Try for yourself here:
http://www.armaholic.com/testers/armaholictest/page.php?id=5388

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.
Please note it does show the last picture of the 2, not the first.

Any update one this?

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:
[thumb=datas/thumbs/8582-panthera_10k_view.jpg]8582-panthera_10k_view.jpg[/thumb][thumb=datas/thumbs/4-arma2_preview_april_pcdome_45.jpg]4-arma2_preview_april_pcdome_45.jpg[/thumb]

To this:
[thumb=http://www.armaholic.com/datas/thumbs/8582-panthera_10k_view.jpg]8582-panthera_10k_view.jpg[/thumb] [thumb=http://www.armaholic.com/datas/thumbs/8582-panthera_10k_view.jpg]8582-panthera_10k_view.jpg[/thumb]

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.]]>
Vr, 24 Apr 2009 23:23:58 -0000
Kingsley # Trustmaster : The same bug as we had with img bbcode. Try this pattern:
\[thumb\](.*?[^\]"\';:\?]+\.(?:jpg|jpeg|gif|png))\[/thumb\]

well, this fixed it partially for me.. It now displays the image, but when you click it, nothing happens..
Will probably be some coding I do not have in my skin..]]>
Vr, 24 Apr 2009 06:36:09 -0000
biro Vr, 24 Apr 2009 00:40:55 -0000 foxhound I hope they can solve this otherwise I will have a lot of DB changes to do manually, like a couple of thoussand :-))
For now I will leave this and continue working on other things.]]>
Thu, 23 Apr 2009 19:58:02 -0000
pieter Thu, 23 Apr 2009 19:20:14 -0000 foxhound So, I guess I need to add the full path to the above code:
sed_bbcode_add('thumb', 'pcre', '\[thumb=((?:http://www.armaholic.com/|https://www.armaholic.com/|ftp://www.armaholic.com/)?[^"\';:\?]+\.(?:jpg|jpeg|gif|png))\]([^"\';:\?]+\.(?:jpg|jpeg|gif|png))\[/thumb\]','<a href=https://www.cotonti.com/"pfs.php?m=view&amp;v=$2"><img src="$1" alt="" /></a>', true, 128, 'seditio');

Now, it will display only the first picture:
http://www.armaholic.com/testers/armaholictest/page.php?id=5398

One picture works but if I add more pictures after it it no longer works:
http://www.armaholic.com/testers/armaholictest/page.php?id=5402

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:
http://www.armaholic.com/testers/armaholictest/datas/thumbs/4-arma2_preview_hry_sme_april_20.jpg]4-arma2_preview_hry_sme_april_20.jpg[/thumb]%20%3Ca%20href=]]>
Thu, 23 Apr 2009 19:00:27 -0000
pieter # foxhound :
The code in the seditio compatibality plugin looks like this:
sed_bbcode_add('thumb', 'pcre', '\[thumb=((?:http://|https://|ftp://)?[^"\';:\?]+\.(?:jpg|jpeg|gif|png))\]([^"\';:\?]+\.(?:jpg|jpeg|gif|png))\[/thumb\]','<a href=https://www.cotonti.com/"pfs.php?m=view&amp;v=$2"><img src="$1" alt="" /></a>', true, 128, 'seditio');

In the BBcodce you see ((?:http://|https://|ftp://
This means you need to put http:// before the picture, so the whole path. Not /datas/thumbs/...]]>
Thu, 23 Apr 2009 14:17:08 -0000
foxhound Sometimes it shows the thumb but most of the time it does not and than the link is completely fubar'ed.

For example check this page where none of the thumb show (created with the old seditio site):
http://www.armaholic.com/testers/armaholictest/page.php?id=5398

Now check this page, all of a sudden only one image decided to (this page too was created with the old seditio site):
http://www.armaholic.com/testers/armaholictest/page.php?id=5396


The code in the seditio compatibality plugin looks like this:
sed_bbcode_add('thumb', 'pcre', '\[thumb=((?:http://|https://|ftp://)?[^"\';:\?]+\.(?:jpg|jpeg|gif|png))\]([^"\';:\?]+\.(?:jpg|jpeg|gif|png))\[/thumb\]','<a href=https://www.cotonti.com/"pfs.php?m=view&amp;v=$2"><img src="$1" alt="" /></a>', true, 128, 'seditio');
]]>
Thu, 23 Apr 2009 08:01:31 -0000
Trustmaster Za, 28 Feb 2009 03:50:33 -0000 pieter
Here at cotonti you have the same problem.
See my first post above.
You get a red cross If you use it twice.

EDIT: It is solved. Thank]]>
Vr, 27 Feb 2009 13:53:00 -0000
Trustmaster
\[thumb\](.*?[^\]"\';:\?]+\.(?:jpg|jpeg|gif|png))\[/thumb\]
]]>
Vr, 27 Feb 2009 04:42:27 -0000
pieter

[thumb]bananaleaf_2col_64.jpg[/thumb]

I have no problems.

But if I do it twice i does not work.

[thumb]bananaleaf_2col_64.jpg[/thumb]
[thumb]bananaleaf_2col_64.jpg[/thumb]

He is not detecting the first [ /thumb], he takes the second one. Why?

bbcode:
\[thumb\](.*?[^"\';:\?]+\.(?:jpg|jpeg|gif|png))\[/thumb\]
<a href=https://www.cotonti.com/"datas/users/$1"><img src="datas/thumbs/$1" /></a>

How can I solve this?]]>
Vr, 27 Feb 2009 03:46:14 -0000