Форуми / Cotonti / Support / Link a image with slimbox on?

Kilandor
#12421 13.05.2009 05:16
The problem isn't really with slimbox, its due to img being turned into thumbnail the [img=*] supports only jpg, for thumbnail usage.

Here is a bbcode I made to fix this a while back.

Name: urlimg
Type: PCRE
Pattern:
\[url=((?:http://|https://|ftp://)?[^\s"\':\[]+)\]\[img\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]\[/url\]
Replacement:
<a href="$1"><img src="$2" alt="" /></a>
Priority: Anything above 128 (or else the other takes priority)

This works with the bbcode example posted by pieter.[/][/]