Forums / Cotonti / Support / Link a image with slimbox on?

DemptD
#1 2009-04-06 01:46
Is it possible?

I have tried

[url=page.php?al=treffkino][img=datas/users/passe_1.jpg]datas/thumbs/passe_1.jpg[/img][/url]

Because the link is just to the image and it doesnt change
pieter
#2 2009-04-06 02:03
Try this one:
[url=page.php?al=treffkino][img]datas/thumbs/passe_1.jpg[/img][/url]
------------------------
EDIT: didn't noticed the slimbox before.
I guess it is a problem.
I have the same problem.
... can we help you ...
This post was edited by pieter (2009-04-06 13:47, 15 years ago)
DemptD
#3 2009-05-13 04:45
Hmm, anyone got a solution to this?
Kilandor
#4 2009-05-13 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.[/][/]