I know there have been some issues about this topic, but I couldn't find any real solution to it yet. What I what to do is to extend the standard image-button to always wrap the image in a "a class"-tag with rel=lightbox so that pictures are displayed within lightbox.
However.. can this be done in a prettier manner then hacking the bbcode module?
Comments
Comment #1
Attila commentedI'm looking for the same solution..
Is there a possibility to change the Image button so that it outputs
<a title="IMAGE-TITLE" href="LINK-URL" rel="lightbox"><img src="LINK-URL" width="XY" height="XY" alt="IMAGE-TITLE" /></a>instead of
<img src="LINK-URL" width="XY" height="XY" alt="IMAGE-TITLE" />?
Any help would be appreciated :)
-- Attila
Comment #2
NeoID commentedAs far as I know (and have done) not without hacking the bbcode module... :/
Comment #3
ufku commentedTry this:
Comment #4
Attila commentedThanks for your reply!
Unfortunately that's not really working. If I try to insert an image using your code I get the following alert:
TypeError: E.imceis undefinedThen I tried to insert the following php-code above the script:
and replacing
js:by
return "js:Unfortunately that didn't work too:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\wamp\www\includes\common.inc(1685) : eval()'d code on line 14
So then I changed the code into
and got the "TypeError: E.imceis undefined"-error again.
I'm not a PHP-programmer, I was just trying and searching on Google for solutions but I couldn't figure it out. Please help :)
Comment #5
ufku commentedThe issue is against 6.x-2.x. Use the dev or rc1.