Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Problem with lightbox and IE6-7

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » Olympus (phpBB3) / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
sypher01

Beginner
Beginner


Joined: Feb 05, 2008
Posts: 19

PostPosted: Fri Jun 13, 2008 2:44 am    Post subject: Problem with lightbox and IE6-7 Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Problem with lightbox and IE6-7  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6241
Location: Washington Township, NJ, USA

PostPosted: Fri Jun 13, 2008 6:14 am    Post subject: Re: Problem with lightbox and IE6-7 Reply with quote

moved to phpbb3 forum.

those '&' that you refer to are the proper way to format multiple parameters in a GET request.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 922

PostPosted: Fri Jun 13, 2008 9:00 am    Post subject: Re: Problem with lightbox and IE6-7 Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6241
Location: Washington Township, NJ, USA

PostPosted: Fri Jun 13, 2008 11:08 am    Post subject: Re: Problem with lightbox and IE6-7 Reply with quote

wait, i remember how to solve this problem.

use firefox Wink

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
Offline View user's profile Send private message Visit poster's website
sypher01

Beginner
Beginner


Joined: Feb 05, 2008
Posts: 19

PostPosted: Sat Jun 14, 2008 8:05 am    Post subject: Re: Problem with lightbox and IE6-7 Reply with quote

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
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 922

PostPosted: Sat Jun 14, 2008 3:42 pm    Post subject: Re: Problem with lightbox and IE6-7 Reply with quote

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&amp;g2_itemId=741&amp;width=150&amp;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
Offline View user's profile Send private message
sypher01

Beginner
Beginner


Joined: Feb 05, 2008
Posts: 19

PostPosted: Sun Jun 15, 2008 2:50 am    Post subject: Re: Problem with lightbox and IE6-7 Reply with quote

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
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 922

PostPosted: Sun Jun 15, 2008 12:22 pm    Post subject: Re: Problem with lightbox and IE6-7 Reply with quote

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
Offline View user's profile Send private message
sypher01

Beginner
Beginner


Joined: Feb 05, 2008
Posts: 19

PostPosted: Fri Jun 20, 2008 2:26 am    Post subject: Re: Problem with lightbox and IE6-7 Reply with quote

removed the phpbb3-lightbox and now everything is working. Smile
Thanks everyone
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » Olympus (phpBB3) / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDomain NamesDedicated ServersDedicated Web HostingDomain Name RegistrationWeb hosting AustraliaSEO Web DesignWeb Design New YorkSearch Engine OptimizationSearch Engine Optimisation

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia