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
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

kiz_0987 - May 4, 2005 - 11:14

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

muergano - May 4, 2005 - 15:25

Thanks. Will do.

#3

kiz_0987 - May 6, 2005 - 02:28

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

muergano - May 23, 2005 - 19:04

Kiz

You rock!! That fixed the issue! Thanks a million, it was driving me nuts!!!

Thanks again,

Muergano

#5

muergano - July 22, 2005 - 16:24
Status:active» fixed

Please see kiz_0987's fix for this issue.

Thanks kiz_0987

#6

Anonymous - August 5, 2005 - 16:35

#7

Anonymous - August 19, 2005 - 17:00

#8

Anonymous - September 2, 2005 - 17:26

#9

Anonymous - September 2, 2005 - 17:26

#10

somes - September 16, 2005 - 20:08

#11

m3avrck - September 16, 2005 - 20:36
Status:fixed» reviewed & tested by the community

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

darius - November 19, 2005 - 02:07
Status:reviewed & tested by the community» fixed

Fixed in CVS gallery.module 1.11.

#13

Anonymous - December 3, 2005 - 02:21
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.