I have successfully embedded gallery2 into drupal 4.6.0, however, I found that if I access the slideshow from within drupal, it doesn't work. It shows the first picture fine but then it stops. If I try to trick it by clicking on the pause button, it appears to have paused, but then after I click resume, it sends me back to the main page to this URL to be exact: http://mysite.com/#
The same process works flawlessly from within gallery2 directly (http://mysite.com/gallery2).
Any help will be appreciated.
Comments
Comment #1
kiz_0987 commentedI have a similar problem but have not yet posted as I've not yet had much time to look at the problem. The use of the '#' in the url seems to be standard whether it's in Drupal or standalone, it's just that the urls do not all function correctly when in Drupal ("Show more info" works, "resume" link works but the slideshow does not run).
I suggest that you repost this in the gallery2 support forum (http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewforum&f=22) as they are very active in responding to problems there.
Comment #2
muergano commentedThanks. Will do.
Comment #3
kiz_0987 commentedI have fixed this (at least on my system). See http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=1377...
This fix is valid for gallery2 CVS (and maybe beta2) as there was a change in sending back javascript information so that now the script tags are included. This caused gallery.module to add them twice.
Make the following change to gallery.module:
instead of:
/* OLD drupal_set_html_head('<script type="text/javascript">'. implode("\n",$javascript) .'</script>');*/
Comment #4
muergano commentedKiz
You rock!! That fixed the issue! Thanks a million, it was driving me nuts!!!
Thanks again,
Muergano
Comment #5
muergano commentedPlease see kiz_0987's fix for this issue.
Thanks kiz_0987
Comment #6
(not verified) commentedComment #7
(not verified) commentedComment #8
(not verified) commentedComment #9
(not verified) commentedComment #10
somes commentedComment #11
m3avrck commentedWas this fixed in the actual gallery.module CVS version tho? Reopening until it is part of the module (unless it is then please close).
Comment #12
darius commentedFixed in CVS gallery.module 1.11.
Comment #13
(not verified) commented