Gallery2 Slideshow does not work from drupal 4.6.0
muergano - May 3, 2005 - 03:36
| Project: | Gallery |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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.

#1
I 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.
#2
Thanks. Will do.
#3
I 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:
<?php
drupal_set_html_head(implode("\n",$javascript));
?>
instead of:
/* OLD drupal_set_html_head('<script type="text/javascript">'. implode("\n",$javascript) .'</script>');*/
#4
Kiz
You rock!! That fixed the issue! Thanks a million, it was driving me nuts!!!
Thanks again,
Muergano
#5
Please see kiz_0987's fix for this issue.
Thanks kiz_0987
#6
#7
#8
#9
#10
#11
Was this fixed in the actual gallery.module CVS version tho? Reopening until it is part of the module (unless it is then please close).
#12
Fixed in CVS gallery.module 1.11.
#13