Forums / Cotonti / Support / BBcode Thumb is not working

once OK, but twice NOT

foxhound
#11755 2009-04-23 19:00
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.
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="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=
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />