Full-screen slideshow flash plugin - new version (v1.2.7+ compatible)

Hi all,

There is a new version of the slideshow_flash plugin available, which should be compatible with Zenphoto v1.2.7+ (new plugin folder structure etc).

Download v1.2.0 here

If people with v1.2.7 or later of Zenphoto installed can give this a try and check it works I'd be grateful, as although I've had time to fix up the code, I haven't had a chance to upgrade my own Zenphoto install yet to test it. Feedback gratefully received!

Thanks all - and thanks to the people in this thread who identified the problems and how to fix.

Thanks,
Mark
«1

Comments

  • Hi Mark,

    I haven't been able to get this to work. ZenPhoto 1.2.8. With the files all in their places, I get a plain page:

    FullScreenSlideshow

    Alternative content

    With a button to download Flash.

    I have tested this on OS X and Linux (thinking Flash wasn't set up right on linux), and they behave similarly.

    If you'd like to test, here's a URL with the plugin enabled:
    http://imagegallery.t3hmikez0r.com/2005/Photo Class/

    I have the other slideshow enabled also - but even with it disabled, this shows the same behavior.
  • Thanks for checking it out - I've obviously made some sort of fundamental error. I'll have to install it meself and check it out, will post back once I've got something new to test.

    Thanks,
    Mark
  • If it helps, I have exactly the same problem as msarahan when trying to test with the Zenphoto 1.2.8.

    Cheers.
  • I'm upgrading my install of zenphoto to 1.2.8 as we speak, so hopefully I should be able to test/debug the problem and get a new release out ASAP once I've got the upgrade sorted.

    Thanks for your patience!
  • Version 1.2.2 of the plugin is now available; I've tested this against Zenphoto v1.2.8 RC1 and it seems to work perfectly for me now.

    Give it a go and let me know if there are any problems!

    Download v1.2.2 here.

    Thanks,
    Mark
  • http://www.standring.info/zenphoto/

    Thanks Mark, that's fixed it. Tested on Firefox, IE8 and Google Chrome.

    Cheers, Russell
  • Mark,

    Three comments:

    1) I had to make the following change in order to get this to work on zenphoto 1.2.8 (With the new plugin folder location) change all instances of:
    "<?php echo WEBPATH . '/' . USER_PLUGIN_FOLDER; ?>
    to:
    "<?php echo FULLWEBPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER; ?>

    2) Long captions do not wrap in the flash viewer, can this be changed?

    3) Thanks for sharing this, it is much better than the default flash slideshow plugin!
  • acrylian Administrator, Developer
    Third party plugins like this should actually be placed in the root `plugins` folder not `zp-core/zp-extensions`. Therefore the line `?php echo WEBPATH . '/' . USER_PLUGIN_FOLDER; ?>`.

    Btw. the default flash slideshow is actually not really a slideshow but a videoplayer showing images...;-)
  • @acrylian - curious, i tried placing the plugin in the root plugin folder but i didn't think it loaded, which is when i placed it in the other location. but looking back i think i forgot to upload the main php file the first time. thanks for the info!

    @mr. sheep - after commenting i realized that the flash editor you were using was open source, so i downloaded the source and made the changes that i wanted. if possible i would like to get these changes moved into the trunk, either as defaults or as an option that can be enabled. Please let me know how we can best do this!
  • acrylian Administrator, Developer
    Well, neither familiar with this plugin nor did I ever tried it. So there might be something else that is not "correct" for the user plugins folder (relative paths etc.).
  • Re plugin location: not sure what the problem is exactly but would like to replicate and fix it if possible, as I thought I had put everything correct for the new user plugins folder in 1.2.8! It worked on my test install following the instructions I wrote, but I may have done something to fix it subconciously without realising!

    Re source update: very happy to merge your changes in, unfortunately because of the way my web host does subversion hosting, I only have one login for it so can't share that, however if you'd like to drop me a patch/instructions/updated sources, I'll happily merge them in on your behalf, test it out, and assuming all works, merge it into the trunk for a new release.

    Mark
  • I double checked and it does work correctly from the base plugins directory, i had forgotten to copy the slideshow_flash.php file the first time i think. sorry to cause confusion.

    i will work on getting a subversion patch for you to test out.
  • @mr. sheep - here is a zip of the modifications i made against revision 50. http://dahmage.com/trunk.r50-withBorderOptionAndMultiline.zip
  • this plugin works great here except for one thing: changing the delay time during the slideshow does not work: clicking on the up- or down arrows has absolutely no effect. I tested it with firefox and konqueror... Nevertheless, a very good plugin :)
  • Can anyone get the slideshow_flash plugin to work with version 1.3?? Then I install it, when I got the zenphoto gallery on my website, I just get a blank page, then I remove the plugin it starts working again.

    I get this error message in my severs logs...

    [Fri Jul 23 10:58:54 2010] [error] [client *.*.*.*] PHP Fatal error: Only variables can be passed by reference in /var/www/vhosts/gordon-valentine.com/httpdocs/photos2/plugins/slideshow_flash.php on line 73
  • Ooh, I haven't tried it with V1.3 yet, I'll give it a go and see if I can work out the problem.
  • Thanks let me know how you get on!
  • Hi Mr Sheep, I've got exactly the same bug as gsvalentine with V1.3: "Only variables can be passed by reference". So I'm also interested in a solution to make it work :-)

    Did you have a look at it?
    Thanks!
  • Hi again,
    I've fixed the problem by changing "printSlideShowFlashLink" function like this:

    `$hint = '';

    $show = true ;

    if (checkForPassword($hint,$show)) return;`

    This works fine with V1.3 but should not work with 1.2.x because it seems "checkForPassword" function has 2 arguments in V1.3.

    Tell me if it works for you!
  • CheckForPassword() is not required on current Zenphoto releases. So just delete the line.
  • Aah, thanks guys, I'll try and get that change made - need a test server to put the latest version of Zenphoto on to try it out, hopefully shouldn't be too problematic!
  • acrylian Administrator, Developer
    "Only variables can be passed by reference".
    Besidees that checkForPassword needs to be removed this initial warning is normally caused by something like this:
    `function(getVar());` PHP 5 (or is it 5.2+?) is a little stricter if the `getVar()` value is passed as a reference. To solve this you need to do this:
    `$var = getVar(); function($var);`
  • Hi all, OK to delete the "checkforPassword" test.

    I've found a bug with the plugin.
    My gallery is protected by a single and unique password, so users have to login once.

    If I send a link to a full-screen slideshow powered by the plugin (something like myZenphotoGallery.com/myAlbum/page/slideshow_flash), and if the user has to enter login/password, after successfully registering, an error occurs:

    `Fatal error: Call to a member function getTitle() on a non-object in /myZenphotoGallery/plugins/slideshow_flash.php on line 151`

    This problem doesn't occur if I try the same thing with a normal link to an album. Has anyone got an idea?
  • acrylian Administrator, Developer
    Don't know aynthing about this plugin but a link like `myZenphotoGallery.com/myAlbum/page/slideshow_flash` is most likely not correct. /page determines a custom theme page and there should not be a "myAlbum" part before that. A link like that translates for Zenphoto to `myZenphotoGallery.com/myAlbum/mySubalbum named "page"/subalbum with the name "slideshow_flash"`
  • It works for subalbums as for albums:
    "myZenphotoGallery.com/myAlbum/mySubalbum/page/slideshow_flash", but I don't know how it works too!

    The question is:
    In a file like "album.php", there is something in the file which looks at the user's session and if the user has permissions to access the file.
    If not, he has to login. After login, he is automatically redirected to "album.php" and functions like this work:
    `$album = $_zp_current_album;

    $albumtitle = $album->getTitle();`

    This is not the same with the plugin. If the user is already connected (no login step), a function like `$albumtitle = $album->getTitle();` works. If not, this doesn't work. Why?
  • There is sort of this. But it is not in the theme scripts. It is something that Zehphoto does when processing a request.

    The function `$albumtitle = $album->getTitle();` is agnostic to whether a user is logged in or not. So it will always work if `$album` is a valid album object. However, whatever the process to set the `$album` variable might fail if a user is not allowed to view the specific album.

    This is back to how the plugin works, which we do not know. For instance, it may be allowed to access the "slideshow-flash" script without being logged in, but it definately will not be allowed to access a protected album if you do not have the permissions. Please look at your gallery option for unprotected pages. If you want this slideshow-flash script protected then it must be checked in the list. Since it is not a "standard" page it is likely it is not marked as protected.
  • It was not marked as protected. The option has been checked and my problem is now resolved: no error for users not logged in, just a link to the album to login! Thanks :)
  • fns Member
    I'm using this in 1.4.0.1, and in general it works great, but I'm unable to see it in the options/plugin tab in the admin web page, and get an error at the top of the page stating "Fatal error: Class 'slideshowFlashOptions' not found in .../zp-core/admin-options.php(2412) : eval()'d code on line 1". It also doesn't appear in the list of plugins on that tab, so I can't adjust the options for it. It does appear properly in the list on the main 'plugins' tab...
  • There is a fix for this in the nightly build.
  • Great plugin! I have only one small issue. It seems that the "slide time" cannot be changed from the user interface any more? Any idea?

    Thanks!
Sign In or Register to comment.