Module for MiniSlide Show integration

mervyngroves

Joined: 2008-08-03
Posts: 92
Posted: Tue, 2011-11-01 10:35

Works for me on Chrome, Firefox and IE9.

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Tue, 2011-11-01 12:10

Thanks both. At least I know it works on other folk's computers. Have tried disabling and reinstalling flash and yes, the feed link works so it looks like it's something wrong on 2 of my computers. Will have to investigate further,
Ken

www.talkingwalk.com/gallerywalk

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Fri, 2011-12-02 19:25

Hi. The minislideshow has stopped working for me. Have tried various changes and have now uninstalled the adapted code and reinstalled the module. Still won't work with no changes made. Have also uninstalled and installed Adobe flash player.
The module is in public_html/gallerywalk/modules.
Minislideshow is in public_html/gallerywalk.
minislideshow.swf is in public_html/gallerywalk.

Photos are being picked up and displayed on my drupal front page - www.talkingwalk.com - so that part works.

I'm using Firefox 8
Ken

www.talkingwalk.com/gallerywalk

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2011-12-02 20:19
 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Fri, 2011-12-02 21:42

Thank you. The crossdomain.xml is in the file but you made me look again and foolishly, the file name was something like minislideshow_v_3_0_1. I deleted all but minislideshow and it now works. So I hope that was the reason. Still not succeeded in getting it working on my other computers though.
Will add changes and see if it still works,
Ken

www.talkingwalk.com/gallerywalk

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2011-12-02 21:52

Nope, see your crossdomain.xml is still missing http://www.talkingwalk.com/crossdomain.xml
make one here.

feel like I'm repeating myself.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Sat, 2011-12-03 00:17

Sorry. I guess you were repeating yourself. Have put crossdomain in talkingwalk.com. It's working now so here's hoping. I've had it working off and on all night. Thought I'd solved it after finding a typo but no, it returned to 1/0. Must sleep now so will try some more tomorrow,
Thanks,
Ken

www.talkingwalk.com/gallerywalk

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2011-12-03 00:22

You need to use a wildcard in place of www see mine.

In Flash's security model www.site.com is not the same as site.com <- cross domain security issue.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Sat, 2011-12-03 20:54

Thank you for perservering with me. Don't remember any instructions for crossdomain.xml before but it's done the job. My other two computers now operate the slideshow properly as well. Great stuff. Only one problem which happened previously and that is that the delay, which I set for 8 secs in the gallery minislideshow settings, doesn't seem to work or rather, it works sometimes. It did sort itself last time of using it so maybe that'll happen again,
Again Thanks,
Ken

www.talkingwalk.com/gallerywalk

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-12-06 04:57

@rwatcher minislideshow_event.php needs to check for photo descendants:

  static function album_menu($menu, $theme) {
    // Add an option to access the slideshow from the album view.
    if ($theme->item()->descendants_count(array(array("type", "=", "photo"))))
    $menu
      ->append(Menu::factory("link")
               ->id("minislideshow")
               ->label(t("View MiniSlide Show"))
               ->url(url::site("minislideshow/showslideshow/" . $theme->item()->id))
               ->css_class("g-dialog-link")
               ->css_id("g-mini-slideshow-link"));
  }

just as the slideshow module does.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Tue, 2011-12-06 21:38

Thanks a lot. I was really strugglin'. I now seem to have the delay working on 1 computer and a laptop. Another computer still has varied speeds and an overlarge photo. My broadband has really slowed down so I'll try tomorrow again. Any idea how to lose;-
<embed src="http://talkingwalk.com/gallerywalk/minislideshow.swf" width="600" height="600" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application - etc

which appears at the bottom of the mini,
Ken

www.talkingwalk.com/gallerywalk

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Wed, 2011-12-07 21:02

Sorry but there is no consistency. Sometimes it's perfect and the next minute returns to overlarge photos in the minislideshow and varied speeds. Happens on all computers. Just tried again and it works fine so a bit difficult to troubleshoot,
Ken

www.talkingwalk.com/gallerywalk

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-12-07 21:35

change your crossdomain.xml to:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*.talkingwalk.com" secure="false" />
</cross-domain-policy>

basically you are still experiencing cross domain security issues.
your rss feed is from www.talkingwalk.com and your minislideshow.swf is from talkingwalk.com without the www and this(as silly as it sounds) violates flash's cross domain security policy.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Wed, 2011-12-07 23:37

Looking good on 1 computer. others are in bedrooms so will have to wait 'till tomorrow again. I remember this issue in FlashYourWeb forum but I stood no chance of solving it. Here's hoping,
Thanks,
Ken

www.talkingwalk.com/gallerywalk

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-12-07 23:56

here, this will solve your issue without worrying about flash security.
admin -> settings -> minislideshow settings set the URL to your minislideshow.swf to /gallerywalk/minislideshow.swf
using a relative url ensures the same domain.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Thu, 2011-12-08 21:23

Hi,
Been trying different computers off and on all day and we have lift off!! Everything's working perfectly. Thank you so much. I was wondering if some info in the documentation might be helpful?
Any idea how to remove;- <embed src="http://talkingwalk.com/gallerywalk/minislideshow.swf" width="600" height="600" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application - etc

which appears at the bottom of the mini.
A bit afraid to try trial and error in case I screw something up,
Ken

www.talkingwalk.com/gallerywalk

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-12-08 21:29

It should be ok for you to return to the version of the module with your audio additions.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Thu, 2011-12-08 22:06

Have done. It's great Thanks,
Ken

www.talkingwalk.com/gallerywalk

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Fri, 2011-12-09 07:50

Alternately, this could be "children_count" instead of "descendants_count" --
children_count -- only display the slideshow button on albums that contain photos themselves.
descendants_count -- displays slideshow button for albums that only contain sub-albums, as long as at least one of those sub albums contains a photo somewhere.

Any preference?

suprsidr wrote:
@rwatcher minislideshow_event.php needs to check for photo descendants:

  static function album_menu($menu, $theme) {
    // Add an option to access the slideshow from the album view.
    if ($theme->item()->descendants_count(array(array("type", "=", "photo"))))
    $menu
      ->append(Menu::factory("link")
               ->id("minislideshow")
               ->label(t("View MiniSlide Show"))
               ->url(url::site("minislideshow/showslideshow/" . $theme->item()->id))
               ->css_class("g-dialog-link")
               ->css_id("g-mini-slideshow-link"));
  }

just as the slideshow module does.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2011-12-09 12:12

unless the rss feed is recursive, children_count looks like a better option

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2011-12-15 04:47
suprsidr wrote:
unless the rss feed is recursive, children_count looks like a better option

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

Done!

 
galleryuser01

Joined: 2012-10-05
Posts: 1
Posted: Fri, 2012-10-05 11:14

Hello, my every album has at least 600 photos. I changed public static $ page_size = 20 to 600 - a little slow, but it works :-). Unfortunately for module ImageBlockEx or rss latestalbum is too much. Is there a way to set this value only for each rss feed individually or for a specific module-especially sledshow modules? Thanks