Lightbox scripts not included with 3.0.7

nk111

Joined: 2007-01-05
Posts: 2
Posted: Fri, 2009-01-30 11:50

Hi,

I did a fresh install of wpg2 3.0.7 on wordpress 2.7. I've enabled internal lightbox script on the options page and wonder why the lightbox scripts and css files are not included in page output.

I believe this is because of the lightbox/slimbox switch.

In wpg2.php the lightbox header gets included if the option "wpg2_enablelightbox" is set.

Quote:
if ($wpg2_option['wpg2_enablelightbox'])
add_action('wp_head','wpg2_lightboxheader');

But I could not find where this option should be set.

I think this should be changed to:

Quote:
if ($wpg2_option['wpg2_effectscript']!='none')
add_action('wp_head','wpg2_lightboxheader');

At least this worked for me. Maybe only fresh installs are affected from this bug.

Hope this helps.

Nico

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2009-02-01 10:17

Nice Spot Nk111 :-)

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo