I have setup a Installation of Gallery2 wihtin my Drupal website, with an album containing over 100 pictures. I was intially not able to get the PicLens slideshow working for this and hence went into the Gallery2 forums to check for possible remedies. I found one at http://gallery.menalto.com/node/83849 and http://gallery.menalto.com/node/82813. I finally applied the recommended patch downloaded from http://www.flashyourweb.com/filemgmt/index.php?id=21 to get the PicLens slideshow working on Gallery2.
Now, when I view a PicLens slideshow for the album on my Gallery2 installation, it works perfectly and I am able to view the entire Album on my PicLens slideshow.
However, when I view the same PicLens slideshow for the same album within the embedded Gallery on my Drupal website, the PicLens slideshow is limited to only those photos that are on the first page. Photos on subsequent pages don't get pulled into the PicLens slideshow.
That has led me to believe that this is an issue with the Gallery Module and not with Gallery2 itself.
Please can someone help?
Regards,
KH
Comments
Comment #1
kjholla commentedOK, did some more googling and found that this is related to the way the RSS Feed is handled within the Gallery Module.
I modified the code within the gallery.module file as recommended in http://drupal.org/node/395944 and got the PicLens slideshow working.
Only additional thing I had to do was put the fix in two places:
1. For the body - this works fine when the Gallery Sidebar has not been moved into the Gallery Navigation block
2. For the Sidebar - When you go into Gallery Settings and choose to move the Gallery Sidebar into the Gallery Navigation block, the above fix will not suffice. In this case you need to add the following:
instead of
in the function gallery_page()
Hope this is of some help.
A permanent fix for this problem would be really good.
Regards,
KH
Comment #2
kjholla commentedJust an update. The above fix will only work if your Gallery2 installation is within the same domain as your Drupal installation. Even if you have installed Gallery2 in a subdomain, it will cause a cross domain security issue and will not work on some browsers.
I noticed that the fix that I suggested above worked perfectly till Mozilla decided to come out with Firefox 3.5.
The fix does not work on Firefox 3.5 as, I am guessing, Firefox 3.5 is more stringent about cross domain security. The Piclens slideshow will not load on Firefox 3.5 with this setting.
More reading on this and related issues at the following locations:
1. http://gallery.menalto.com/node/83849#comment-315144
2. http://drupal.org/node/516494#comment-1861708
Regards,
KH
Comment #3
kjholla commentedOK. Have another workaround to make this work with Gallery2 installed in a different/sub domain. I used a PHP XML Proxy that I obtained from http://developer.yahoo.com/javascript/howto-proxy.html.
I modified that code as below:
I saved this modified code as a file rssproxy.php and uploaded it to the root directory of my site and then modified the gallery_page() function within the gallery.module file as below:
instead of
and
instead of
I uploaded the modified gallery.module and the new XML Proxy to the Drupal website and voila! It now works.
Regards,
KH
Comment #4
kjholla commentedComment #5
fotonut commentedI have this setup below and am having a problem on Drupal imbed of seeing the last half of a slideshow.
(webroot)/mydrupal DNS accesses www.xyz.com
(webroot)/mygallery DNS accesses gallery.xyz.com
I added a simlink that mirrors the mygallery as a duplicate image at (webroot)/mydrupal/gallery2
My cooliris slideshow works for only about the first half of an i.e. 50 shot album then it just won't go forward to finish the album.
It works perfectly on Gallery. Any pointers to a newbie in this area (Drupal 6.15, Gallery2.3)
UPDATE:
On further investigation it appears that Cooliris Slideshow version is 1.3.1 and that with viewing each Album in embedded Gallery, only the first 25 photos are displayed . Once you reach slide number 25, neither an icon will appear nor will the large image in the viewer.
Comment #6
fotonut commentedI made the changes recommended in post #3 and my symptoms are still the same. Both Firefox 3.5.7 and IE 7 will only show the first 25 frames of the Cooliris slideshow when viewing a Gallery 2.3 ablumv via an embedded Drupal window. The slideshow works perfectly when viewing through gallery. My setup once again:
www.xyz.com directs one to server (webroot)/mydrupal
gallery.xyz.com directs one to server (webroot)/mygallery
I have a simlink image of (webroot)/mygallery created as (webroot)/mydrupal/gallery2
Everything works perfectly outside of slideshow so I thought I would try the method in post #3 above ................................
I changed the rssproxy.php:
define ('HOSTNAME', 'http://gallery.xyz.com/main.php?g2_view=slideshow.SlideshowMediaRss&g2_i...');
to fit my own environment.
I altered gallery.module and uploaded it to the proper directory in /mydrupal.
With the suggested mods, the symptoms are the same; Cooliris loads in first 25 photos and will not go further. Thanks in advance for any help.
Comment #7
photoscapes commentedTake a look at this post - node/94507 on the Gallery website. It seems to overcome the 25 item limit in a Drupal embedded galllery