Graybox Plugin for S9y

Creating and modifying plugins.
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Hi RobA,

I have just checked the version on sparticus , it appears to have all the bits.
have you tried removing it from your sever, then re-downloading it?
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

I tried the graybox2 today and noticed, that it opens a gray box but instead displaying my picture, it displays my website ;) (404)

The path to the image, when i move my mouse over the previewpicture looks fine, so maybe there is another mistake somewhere in the plugin?

Regards, Harald
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

Sorry, is anyone able to get the graybox to run? The graybox opens the mainpage, where the picture should be shown. Also on a brandnew blog, so i guess its a bug in the plugin :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Might be related to a wrong configured URL or interferring mod_rewrite. Show us the URL to that brandnew blog, please?

Also tell us the version number of the boxplugin you use.

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/
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

Lightbox Plugin v1.3 and url

Thanks in advance ;)

PS: s9y 1.1.1 but this also happens on 1.1.2
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

In your entry you seem to combine the option "open in new window" by the media manager and graybox.

That doesn't work.

If you use the graybox plugin, you can NOT select the option to open a link in a new window, the graybox does that automatically and what the media manager inserts to the image will undo that graybox target location.

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/
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

garvinhicking wrote:Hi!

In your entry you seem to combine the option "open in new window" by the media manager and graybox.

That doesn't work.

If you use the graybox plugin, you can NOT select the option to open a link in a new window, the graybox does that automatically and what the media manager inserts to the image will undo that graybox target location.

Best regards,
Garvin
Hi,

i don't open a new window. I use this plugin like i use it on other site. If i switch back to Lightbox, it works. Just with Graybox it does not work. I bet it has something to do with Graybox implementation (but i don't bet much against you) ;)

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

Post by garvinhicking »

Hi!

But how do you exactly insert the image, which options in the media selector do you check?

Inside your HTML, there's an "onclick: F1 =window.open(...)" code. This is the troublemaker. It is not allowed to be there.

Lightbox opperates differently than Graybox and removes existing onclick handlers, you cannot compare them two.

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/
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

This is a screenshot of how i insert the code.

And this produces the following code:

Code: Select all

<a class='serendipity_image_link' href='/uploads/Produktbilder/H-20021-899.jpg' onclick="F1 = window.open('/uploads/Produktbilder/H-20021-899.jpg','Zoom','height=515,width=515,top=262,left=390,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes'); return false;"><!-- s9ymdb:1 --><img width='200' height='200' style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="/uploads/Produktbilder/H-20021-899._x.jpg" alt="" /></a>
I have to select Popup-Fenster, right? Even if i select Ziel: "keine" it does not work. This produces the following code:

Code: Select all

<a class='serendipity_image_link' href='/uploads/Produktbilder/H-20021-899.jpg'><!-- s9ymdb:1 --><img width='200' height='200' style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="/uploads/Produktbilder/H-20021-899._x.jpg" alt="" /></a>
On both tries i've got the mainpage/404 where the pictures should be.

Thanks for your time.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
I have to select Popup-Fenster, right? Even if i select Ziel: "keine" it does not work. This produces the following code:
Yes, you must set it to "none". Can you show us the URL to an example where you have it like that?

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/
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

Yes, it is still this url
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I just spent half an hour on this, and the URL is definitely passed correctly to the Greybox "show" function.

There's nothing wrong, so it must be the greybox problem, maybe you can pass your URL on to that developer and ask him if he knows of that problem?

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/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah, thanks to firebug I saw a problem.

Graybox tries to load:

http://blog.diekellnerboerse.de/plugins ... frame.html

Do you have that file? Maybe you need to add a .htaccess with "RewriteEngine off" to that directory?

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/
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

garvinhicking wrote:Hi!

Ah, thanks to firebug I saw a problem.

Graybox tries to load:

http://blog.diekellnerboerse.de/plugins ... frame.html

Do you have that file? Maybe you need to add a .htaccess with "RewriteEngine off" to that directory?
Wow, amazing work ;) A .htaccess with RewriteEngine off solved the problem, but this should be added to the plugin for all users ;)

I'll contact the author and post a link to this thread.

Thanks for your support. This one was really tricky, eh? ;)

PS: Oh my god... (Autor: Thomas Nesges, Andy Hopkins, Lokesh Dhakar, Cody Lindley, Stephan Manske; version: 1.3) I hope i'll find one of them.
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Good Evening,

All I basically did was make the graybox pluginable to S9y. But I see no problem in adding the .htaccess file in. I do have one at the root of my plugin's folder to dis-able rewrites.
Just wondering if this is a good default to have ?
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
Post Reply