media manager in 1.1 and lightbox

Discussion corner for Developers of Serendipity.
Post Reply
costa
Regular
Posts: 110
Joined: Wed Feb 08, 2006 5:29 pm
Location: Poland
Contact:

media manager in 1.1 and lightbox

Post by costa »

aloha!

with 1.1alpha release we have a lovely media manger which is very cool. but one thing bothers me - support for ligthbox 2 would be a VERY cool thing. ok, we have lightbox plugin but it uses an old lightbox engine and is not so cool like te 2.x version.

the problem is that now i have to add everytime rel="lightbox" phrase by hand when editing an entry. not good, it consumes time and it's pretty confusing with bigger entries with some or lots of images.

as i can see - media manager has some options to choose from when inserting image into entry. may i ask for another option that will add just this little phrase? rel can be followed by another phrase - title="title_of_image" and since in 1.1 we can use titles (veeery handy option btw) maybe it could be even better to give the possibility to insert a whole sentence lightbox uses which goes like that:

rel="lightbox" title="title_of_image"

and that's it. i'm asking for this functionality because some of my blog readers also asked me how do i give those parameters to lightbox. "by hand" is not a very elegant option you know... propably there will be some conflicts with lightbox plugin but come on, when someone wants lightbox 2, he will not install lightbox plugin. what for?

so, will it be possible to add this little option?
"everything is under control" - kasparov demo
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: media manager in 1.1 and lightbox

Post by garvinhicking »

Hi!

First off, you're posting to the wrong forum. *g* Feature requests like yours would be either filed in the Sf.Net tracker or in the general section of this forums. I just clarified the descriptions of the forums. :)

Anyways, that's not so big an issue.

About your question -- doesn't the lightbox plugin add this rel='lightbox' thing automatically to all images? I agree the plugin mgiht be upgraded to use lightbox2, but I have no experience with lightbox and personally think it's bloated.

Your suggestion about adding random stuff to the HTML created by the media manager is well, but also hard since the javascript is a static file that is not modified by plugins and not created at run-time. It needs to be very well thought out how to implement this, so this will take some time of thinking.

Maybe some other developers can help here. Which makes the topic valid, in the end. *gg*

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
costa
Regular
Posts: 110
Joined: Wed Feb 08, 2006 5:29 pm
Location: Poland
Contact:

Post by costa »

first - sorry for writing on the wrong forum section.

the lightbox plugin does add rel="lightbox" stuff but it needs to be instaled and running. and i don't want it - has an old version of this little script (personally i think it's just useful and gives some more life to site). i'll try to modify lightbox plugin by myself to use new versions files. and since i'm totally not into coding, this will be fun for sure :)

oh, now i can see that this is not as simple, as i thought :/
"everything is under control" - kasparov demo
Post Reply