I have 2 mulitsite G2's with 2 multisite Drupal 5's. On the first one http://photo.lvthunder.com the javascript for my lightbox G2 module shows up after Drupal's JS. On the site http://cabin.lvthunder.com the javascript is before it and for some reason the placement breaks it. Does anyone know how I can fix that or where I should go to ask for help?
Thanks
Comments
Comment #1
lvthunder commentedOops I forgot to say I use the same Drupal and G2 theme on both sites.
Comment #2
profix898 commentedIs it possible that one site is using 5.x-2.2 and the other 5.x-2.x-dev? I recently made a major change to the css/js code, so that in the latest -dev version the G2 includes are added directly to head (in 5.x-2.2 gallery module uses drupal_add_js/css). See http://drupal.org/node/188035#comment-875319. The biggest problem here is that drupal_add_js/css does not support external scripts and using drupal_set_html_head() breaks the cascade of javascript includes. ATM I dont see how to solve this problem.
5.x-2.2 will/does not work with G2.3, because the G2 development version implements its own js/css aggregator that breaks js handling in Drupal (if not added directly without further processing). The mentioned patch makes 5.x-2.x-dev equivalent to the 6.x-1.x version of gallery module and basically supports the newer G2 code. I expected the patch to break lightbox (see comment), but at this point I cant find any alternative solution. In principle adding the lightbox stuff from Drupal (rather than using a modified, lightbox-enabled G2 theme) should do the trick. I was thinking to write a patch for lightbox2 module in Drupal to do exactly this.
Comment #3
lvthunder commentedI only have one version of the gallery module on the server so they have to be using the same one.