lightbox/greybox/thickbox: How should it work?

Creating and modifying plugins.
rolfijn
Regular
Posts: 6
Joined: Wed May 09, 2007 9:51 am

lightbox/greybox/thickbox: How should it work?

Post by rolfijn »

Hello list,

yesterday i installed the lightbox/greybox/thickbox plugin form spartacus. I was kinda expecting all images on my blog to be be shown now in a nice flashy pop-up. However, when i click an image, i just get to see the image, but no javascript pop-up. I've been doing some investigation but cannot figure it out:

The plugin states: "They search through your entries, and replace every 'a href="XXX"' link and then replace that link to use the internal display." I was wondering when this is done? Is this when i insert an image from the media library, or perhaps on the fly when the page is rendered?
When i view the source of a page on my blog i cannot find any reference as of light/grey/thickbox should be used.

The plugin states further: Using thickbox, you can put a 'class="thickbox"' attribute into your 'a href' links so that they will popup in a window. But the plugin has an option to choose which *box i want to use, so why would i have to insert this code in my pages?

In short: The plugin is not working for me and i have no idea why :-( I hope that someone can give me some insight as to how the plugin should work.

Rolf Deenen
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: lightbox/greybox/thickbox: How should it work?

Post by garvinhicking »

Hi!

If you give us your URL we can check it out.

To which method did you currently set your blog? Lightbox?
The plugin states further: Using thickbox, you can put a 'class="thickbox"' attribute into your 'a href' links so that they will popup in a window. But the plugin has an option to choose which *box i want to use, so why would i have to insert this code in my pages?
Because thickbox has many more advanced options and s9y cannot autodetect which one you want to use, plus s9y links already have a class assigned to them and the plugin cannot easily add 'thickbox' to the output without much more heavier parsing.

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/
rolfijn
Regular
Posts: 6
Joined: Wed May 09, 2007 9:51 am

url and more description

Post by rolfijn »

Hi,

My testblog is located at http://storehouse.homeip.net/serendipity . I've set the pretty-script option to "lightbox 1", just to keep things simple. I've added another picture from my media library from the movie "serendipity" :wink: . I've used the following options. I don't think it should matter, but just to be complete:

-"I want to use the thumbnail in my entry"
-"allignment": top left
-"I want to display it as a link to this url:/serendipity/uploads/blahblah..."

I have noticed that the "<a>" tag has a class "class='serendipity_image_link" associated (?). Is this supposed to be so?

Rolf
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: url and more description

Post by garvinhicking »

Hi!

Okay, I see you're using hemingway theme, that's still not fully released yet. It does not seem to support the plugin hooks required to add the javascript from the lightbox plugin, that's why you don't get to see parts of it.

Can you temporarily switch to the classic Serendipity 3.0 theme? The hemmingway theme might be missing to execute the 'Frontend_header' plugin API hook in the index.tpl file.

But that's only part of the problem. Can you post a screenshot of hwo you configured the lightbox plugin? Did you set all markup elements to "Yes"? Because the actual replacement doesn't seem to be made.
I have noticed that the "<a>" tag has a class "class='serendipity_image_link" associated (?). Is this supposed to be so?
Exactly, Serendipity adds those as default classes to be able to address s9y media db links in the CSS.

Reegards,
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/
rolfijn
Regular
Posts: 6
Joined: Wed May 09, 2007 9:51 am

changed theme and made screenshots

Post by rolfijn »

Hi Gavin,

Thank you for your willingness to help me. I've changed the theme to the Serendipity 3.0 theme as you requested. Also i added some screenshots to the most recent blogpost on my blog. I hope you can get enough information out of them.

Rolf Deenen
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: changed theme and made screenshots

Post by garvinhicking »

Hi!

Hm, that looks really odd. With the new template in effect, there should be a "<script>...</script>" thing in the output.

Could it be that your lightbox plugin is not activated somehow? Could you make a screenshot of your plugin configuration overview of the event plugins?

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/
rolfijn
Regular
Posts: 6
Joined: Wed May 09, 2007 9:51 am

even better: created an account for you

Post by rolfijn »

Hi Garvin,

Since my blog has nothing to hide and I trust you completely I'd thought i'd make it easier by creating you a s9y administrator account. I've mailed you the details at garvin [@] supergarv [.] de

tnx, Rolf Deenen
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: even better: created an account for you

Post by garvinhicking »

Hi!

Okay, I have a pretty intensive spam-filtering active, can you tell me your subject and/or email sender so that I can check if it got send to my spambin? :)

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/
rolfijn
Regular
Posts: 6
Joined: Wed May 09, 2007 9:51 am

Post by rolfijn »

Hi Gavin

e-mail: rdeenen @ home punkt nl
subject: account for serendipity / lightbox problem

:D
ostfriese2004
Regular
Posts: 76
Joined: Tue Feb 13, 2007 11:12 pm

Post by ostfriese2004 »

if you figure out how the plugin works, please do tell me. I have also installed this plugin and now i am wondering how to get started...

btw - how did you get the grey border around your pictures/wallpapers shown on your example blog? Is this done via css-format?

Regards

Helge
Image
ostfriese2004
Regular
Posts: 76
Joined: Tue Feb 13, 2007 11:12 pm

Post by ostfriese2004 »

Okay, I got it working. But how do I disable the border-lines around the image? I think I have to add a class and css-tags to style.css?

Please have a look at: http://www.ostfriesenblog.de (first entry)

Please help!

:-)
Image
kampfhahn
Posts: 2
Joined: Mon Sep 17, 2007 11:48 pm
Location: Karlsruhe
Contact:

Post by kampfhahn »

Hello, I've got the same problem. I've tested every solution I found at the internet and the s9y-board but I can't get lightbox to work and I don't know why. Maybe I'm constantly doing something wrong but I don't know what. Could you help me, please?

My blog is:
http://www.nebeltanz.de/artikulation

serendipity 1.2
Lightbox/Thickbox JS/Graybox 1.3

I tested all those methods could none of them worked. At the moment Lightbox 2.02 is activated. Entry Body, Extended Body, Comment and
HTML Nugget are marked with "Yes" so the Plugin should be applied on those elements.

Switching to different themes didn't work either.
I thried out Serendipity 3.0 and 2.3. At the moment Bulletproof is activated.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Kampfhahn!

Hm, your page doesn't load for me!

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/
kampfhahn
Posts: 2
Joined: Mon Sep 17, 2007 11:48 pm
Location: Karlsruhe
Contact:

Post by kampfhahn »

That's strange. I've had those problem right after the installation but I thought it works now. At the moment it loads for me and two other persons I've asked to test. I'm going to search more information about performance. Maybe I can find a solution even though I don't know how to handle MySQL and PHP :?

Thank you for checking, Garvin! :)

edit: My mate told me that the problem only occurred yesterday evening. Could you try to check again? Would be great!
Hokey
Regular
Posts: 141
Joined: Wed Dec 14, 2005 3:36 pm
Location: Germany
Contact:

Post by Hokey »

Actually I have the same problem: The Lightbox-Plugin doesn't work for me. Surprisingly it works in some entries but not in all entries! In newer entries it never seems to work.
Post Reply