| Author |
Message |
sypher01
Beginner


Joined: Feb 05, 2008 Posts: 19
|
Posted: Fri Jun 13, 2008 2:44 am Post subject: Problem with lightbox and IE6-7 |
|
|
Hello,
i've got some problems with lightbox not working.
I installed the mod, and i think i actually correctly followed all the steps of lightbox integration (inserted both files, lightbox.xml and lightboxphpbb3.xml or whatever the name is...).
No problem with inserting the images with g2image, but i dont know why, in firefox everything shows up right, if you try the same in internet explorer, the thumbnail does not load (gives the X instead of the image), and the lightbox is not loading also.
This happens because the URL in the page source is like this:
main.php?g2_view=core.DownloadItem&g2_itemId=3588&width=150&height=150
Notice all those "&" ? Now, firefox parses them correctly, but IE does NOT, so gallery returns an item that is not an image but an error (The action is not permitted).
Anybody knows how to fix?
Thanks in advance. |
|
| Back to top |
|
|
AdBot
|
| Post subject: Problem with lightbox and IE6-7 |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Fri Jun 13, 2008 6:14 am Post subject: Re: Problem with lightbox and IE6-7 |
|
|
moved to phpbb3 forum.
those '&' that you refer to are the proper way to format multiple parameters in a GET request. _________________
 |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 922
|
Posted: Fri Jun 13, 2008 9:00 am Post subject: Re: Problem with lightbox and IE6-7 |
|
|
Yeah, on the surface I see nothing wrong with that request. The height and width are used by the integration to ensure the image does not exceed the max image size settings in the ACP. Gallery does not use them and they will simply be ignored in the Gallery request, otherwise, it looks like a normal gallery request assuming gallery item id 3588 is valid.
Unfortunately, I can't help troubleshoot the issue because I have much different code installed on my machines at the moment. The slimbox code I'm using right now works perfectly in IE7 and firefox as I'm quite sure the lightbox code did as well.
You have gallery permissions to view the item and it's thumbnail, right? I'm pretty sure the original g2image followed gallery permissions and the new code I have definitely will follow gallery permissions.
Did it work after just the lightbox.xml mods? Try removing the lightboxphpbb3 mods and make sure the basic lightbox is working first.
You don't get any js errors? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Fri Jun 13, 2008 11:08 am Post subject: Re: Problem with lightbox and IE6-7 |
|
|
wait, i remember how to solve this problem.
use firefox
just kidding. i don't know if IE7 has anything like firebug that will let you debug stuff, but you should look at least to see if it's throwing js errors like jettyrat said. are you able to view that image if you visit gallery directly, or via the integration? is it a movie or some other non-photo item? _________________
 |
|
| Back to top |
|
|
sypher01
Beginner


Joined: Feb 05, 2008 Posts: 19
|
Posted: Sat Jun 14, 2008 8:05 am Post subject: Re: Problem with lightbox and IE6-7 |
|
|
Whooops!
I'm stupid.
I copy pasted the WRONG link.
The problem is that g2image pastes the "&" as "&".
Demo here:
http://www.thaitravel.it/forum/thailand ... t1445.html
First post ...
This is an example of the "wrong" link. Firefox corrects the wrong link, IE does not.
main.php?g2_view=core.DownloadItem&g2_itemId=3588&width=150&height=150 |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 922
|
Posted: Sat Jun 14, 2008 3:42 pm Post subject: Re: Problem with lightbox and IE6-7 |
|
|
I took a quick look at your site and I couldn't get lightbox to work with firefox or IE. It will be hard for me to troubleshoot because your site is heavily modded, but I didn't get any js errors in firebug or IE.
If you're saying the page source looks like this with the "{ampersand}amp;" in the link, that is the way it should look.
Code: › <img src="http://localhost/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=741&width=150&height=113" alt="Image" />
I did notice some other things wrong in general; you have two "body" tags in the page source and you have "style" tags outside the "head" tag. The two body tags may well be confusing the lightbox scripts, I don't know. Running the page through the W3C validator yields this:
Quote: › This page is not Valid XHTML 1.0 Transitional!
Result: Failed validation, 43 Errors
I would recommend removing the phpbb3-lightbox mods (phpbb3-lightbox.xml) and see if it works with just the plain lightbox mods (lightbox.xml). And maybe trying to clean up the errors, especially the two body tags. |
|
| Back to top |
|
|
sypher01
Beginner


Joined: Feb 05, 2008 Posts: 19
|
Posted: Sun Jun 15, 2008 2:50 am Post subject: Re: Problem with lightbox and IE6-7 |
|
|
Thanks for the remarks, i will clean up the site a bit.
I'd like to know tough, whats the difference between the normal lightbox mods and the phpbb3-lightbox.xml, i tought i had to install them both.
Was i wrong? |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 922
|
Posted: Sun Jun 15, 2008 12:22 pm Post subject: Re: Problem with lightbox and IE6-7 |
|
|
The lightbox.xml adds the lightbox feature to the posts from g2image. That is required for lightbox to work. The phpbb3-lightbox.xml is an enhancement for lightbox.xml that adds a link back to the gallery image from the lightbox image and is not required, but is an add-on. It was discussed here:
http://www.nukedgallery.net/postt3887.html [nukedgallery.net] |
|
| Back to top |
|
|
sypher01
Beginner


Joined: Feb 05, 2008 Posts: 19
|
Posted: Fri Jun 20, 2008 2:26 am Post subject: Re: Problem with lightbox and IE6-7 |
|
|
removed the phpbb3-lightbox and now everything is working.
Thanks everyone |
|
| Back to top |
|
|
|
|
|
|
|