Lightbox not working as it should be
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Wed, 2007-10-31 19:57 |
Hi! After a while, I decided to use the lightbox plugin with G2. The only 3 problems I have are these: * The title gets in the middle of the image One single image will show what I mean [IMG]http://img204.imageshack.us/img204/3166/lightboxxx7.th.jpg[/IMG] I've searched the forum, but it seems that I'm the only one having this problem. Software: Using this WPG2 theme. Thanks in advance for you help and time |
|
capt_kirk
Joined: 2006-01-24
Posts: 492 |
Posted: Wed, 2007-10-31 20:26 |
Can you either post or PM a link to the actual site? It's hard to tell what's going on from the picture. Kirk |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Wed, 2007-10-31 20:34 |
The site is http://cholito.org/wpg2 It's in testing mode :P I screwed the previous gallery so I tried to start over. |
|
capt_kirk
Joined: 2006-01-24
Posts: 492 |
Posted: Wed, 2007-10-31 20:45 |
Sorry, I missed the link to the old version of WordPressEmbedded in your first post. Try getting the latest version of the theme here. I don't know that it will fix that specific problem, but Ozgreg has done a lot of work on the theme since the post your linked to, and I'll bet that it will fix it. Kirk |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Wed, 2007-10-31 21:20 |
So, after having a little fight with my FTP client, I was able to upload the files BUT the problem persist. The image is still showed in full size, the title is not where it should be and the borders are always the same Any file that I should edit first? |
|
ozgreg
Joined: 2003-10-18
Posts: 1378 |
Posted: Wed, 2007-10-31 21:24 |
It sounds like your lightbox image size is larger than your resized images. (I presume you have resized images??) Try dropping down your lightbox image size |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Wed, 2007-10-31 21:31 |
Hi! I really don't know where could I change the lightbox image size =/ In the WPG2 options (inside wordpress) I have "Lightbox Image Minimum Height:" set to 800. |
|
ozgreg
Joined: 2003-10-18
Posts: 1378 |
Posted: Wed, 2007-10-31 21:39 |
That is it.. Drop it down to say 400 |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Wed, 2007-10-31 21:50 |
Ok, I've changed it to 400 and weird enough it works Next issue :P ==> the title is in the middle (and behind!!) of the image, so there is no "close" button AND the border is also out of place. Again, I don't know which file to edit (otherwise I wouldn't ask =P ) Thank you very much guys! |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Wed, 2007-10-31 23:03 |
ozgreg
Joined: 2003-10-18
Posts: 1378 |
Posted: Wed, 2007-10-31 23:09 |
Hmm I am getting a heap of syntax errors when your lightbox displays, wondering if you have some other JS or WP Plugin that is causing this issue.. |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Wed, 2007-10-31 23:16 |
I just found that this is a Firefox related issue. The Script works ok with Opera 9. Some guys pointed this error to Alejandro Matos |
|
ozgreg
Joined: 2003-10-18
Posts: 1378 |
Posted: Wed, 2007-10-31 23:52 |
How are you calling the lightbox script, from WPG2? |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Wed, 2007-10-31 23:59 |
I would love to answer that question, but I have no idea if I am calling it from WPG2 |
|
ozgreg
Joined: 2003-10-18
Posts: 1378 |
Posted: Thu, 2007-11-01 00:43 |
WPG2 plugin does not add <body onload="initLightbox()"> suggest it is a problem with the vslider theme you are running |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Thu, 2007-11-01 10:42 |
capt_kirk
Joined: 2006-01-24
Posts: 492 |
Posted: Thu, 2007-11-01 11:09 |
What plugin are you using to get your LightBox script? Do you have the "Enable Internal Lightbox Script?" box as "Yes" on WPG2 -> Lightbox? If not, do you have another LightBox plugin for WordPress? If not, are there any LightBox settings set for vSlider3? What Ozgreg is saying is that the onload="initLightbox()" is not added by WPG2, so it has to be being added by some other part of WP, whether it's a plugin or the theme. It also doesn't matter that it works in Opera. The onload="initLightbox()" shouldn't be there. Opera is just ignoring it (probably incorrectly. FF does a better job of meeting standards, IMHO.) So, the issue is to figure out what part of the software is putting that in there and fixing it. Kirk |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Tue, 2007-11-06 18:34 |
Hi! I have only one plugin active in WP. I just tried my old themes and it happens with all of them. The image is loaded to the side and the border is too small for the image. I mean, it doesn't matter which theme I use, the error is in every theme. =/ |
|
capt_kirk
Joined: 2006-01-24
Posts: 492 |
Posted: Tue, 2007-11-06 20:25 |
Cholito wrote:
The vslider3 works out of the box with lightbox. So, I loaded vSlider3 on my dev box, and I'm not getting the same error. But when I use Firebug to compare what happens when I click on a lightbox-enabled image on my dev box with what happens on your site, I'm seeing that the LightBox script is not updating the height and width attributes of the outerImageContainer class, which controls the size of the white frame around the actual image. The lack of this outerImageContainer updated height and width is the sole cause of the problem on your site. When I used Firebug to manually update them, the image went to the center correctly. Now the question is, "Why is it doing this on your site, but not others with the same theme?" I think I've found the cause, but I don't know why it's doing this: on your site, prototype.js is getting loaded twice. Once from the wpg2 files, and once from the wp-includes/js files. On my dev box, I'm only getting the one from the wpg2 files. I suspect that the two files are conflicting and preventing the height and width from being updated. What I don't know is why you're getting both files, but I'm only getting one. Do you have the most recent version of vSlider3? It looks like you do, but I wanted to make sure. Kirk |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Tue, 2007-11-06 20:46 |
capt_kirk
Joined: 2006-01-24
Posts: 492 |
Posted: Tue, 2007-11-06 21:33 |
Cholito wrote:
I have only one plugin active in WP. Sorry. I didn't click on the link to notice that it's a lightbox plugin. So, you actually have two plugins active, WPG2 and the lightbox plugin. Only one instance of the lightbox script is allowed at a time. You either need to deactivate the other plugin (recommended) or uncheck "Enable Internal Lightbox Script" in the WPG2 Lightbox tab. Kirk |
|
Cholito
Joined: 2006-05-20
Posts: 47 |
Posted: Tue, 2007-11-06 22:43 |
capt_kirk
Joined: 2006-01-24
Posts: 492 |
Posted: Tue, 2007-11-06 22:55 |
Great! Glad it's working. No worries. The interaction of plugins can be very confusing. In general, my first troubleshooting step is to turn off all of the other plugins and then turn them on one a time until it breaks again. Not very advanced, but it gets the job done... Kirk |
|