Needs review
Project:
Inline
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2008 at 07:37 UTC
Updated:
2 Feb 2009 at 14:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
JamieR commentedThickbox integration is quite simple... here is a patch against 5.x-1.1.
All I did was add the tags that thickbox wants on the images. I'm happy to add auto detection or a setting to turn it on and off or whatever...
What do you think? http://five.marmot.com/node/3
Comment #2
rapsli commentedWay cool!
Comment #3
JamieR commentedHey, even better, is that if you don't want to mess with the module at all, you can simply override the theme... just add this to your template.php file:
It's just the patched function copied into the theme with the function name changed.
More info: http://drupal.org/node/55126
?>
Happy theming!
Comment #4
sun@JamieR: Could you post the (missing) patch from #1 again, please?
Comment #5
JamieR commentedSure... sorry I forgot the patch the first time.
I made one for the 5.x-1.1 version and one against HEAD.
Thanks, Jamie.
Comment #6
JamieR commentedHmmm... having problems with the attachment. Maybe that's why it didn't appear on the original post...
Comment #7
micahw156Patch #6 worked for me in a couple of different environments:
Patch applied to latest (2008-Jun-15) 5.x-1.x-dev.
Comment #8
sunWell, I'm putting this on-hold for just one reason: I've implemented multiple add-on scripts in jQuery Lightbox that add the necessary attributes to Inline, Image Assist, Image, and Image Gallery images to load them in a jQuery Lightbox.
My key question is whether Inline really should implement support for a never-ending list of JavaScript behaviors, or whether all of this should happen the other way around: A JavaScript behavior (like Thickbox) that wants to support Inline (and other contents) needs to implement support for that content on its own.
Comment #9
JamieR commentedTrue.
But it might be nice to put a note in the instruction with an example of how to use the theme override functions to add support of other javascript libraries?
Just a thought.
I wish I had known that jQuery Lightbox was already integrated... so many modules... I would love to see for each module a list of other modules that have been designed to work together... that would be nice. :)
Keep up the great work.
Jamie.
Comment #10
sunWell, a theme override function would be a culprit for regular users.
What if we would add a
right after the definition of $attributes? That would allow any module to alter the attributes of the embedded image.
I thought of $context being a $node object, but that's not (yet) available in this case.
Comment #11
JamieR commentedI love it.
I'm not familiar enough with the project to understand how you would use the $context var, but it would be great to have that functionality available for integration.
Comment #12
lsrzj commentedSimpler than patching the module it's better to patch inline.theme.inc. Search for 'class' => 'inline-image-link and then add thickbox in front of it. So it'll look like this 'class' => 'inline-image-link thickbox'. That way all inline images will be part of two classes inline-image-link and thickbox. I did this way and everything went ok.
Comment #13
lsrzj commentedThe patch attached, this is for version 6.x-1.0