zenphoto forums » General Zenphoto Discussion

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

(32 posts)
  • Started 4 years ago by mr. sheep
  • Latest reply from zealzenphoto
  1. mr. sheep

    Member
    Joined: Mar '09
    Posts: 25

    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

    Posted 4 years ago #
  2. msarahan

    Apprentice
    Joined: Dec '09
    Posts: 3

    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%20Class/

    I have the other slideshow enabled also - but even with it disabled, this shows the same behavior.

    Posted 4 years ago #
  3. mr. sheep

    Member
    Joined: Mar '09
    Posts: 25

    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

    Posted 4 years ago #
  4. standringr

    Apprentice
    Joined: Dec '09
    Posts: 2

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

    Cheers.

    Posted 4 years ago #
  5. mr. sheep

    Member
    Joined: Mar '09
    Posts: 25

    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!

    Posted 4 years ago #
  6. mr. sheep

    Member
    Joined: Mar '09
    Posts: 25

    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

    Posted 4 years ago #
  7. standringr

    Apprentice
    Joined: Dec '09
    Posts: 2

    http://www.standring.info/zenphoto/

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

    Cheers, Russell

    Posted 4 years ago #
  8. dahmage

    Apprentice
    Joined: Feb '10
    Posts: 4

    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!

    Posted 4 years ago #
  9. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 15,039

    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...;-)

    Don't forget to read the Forum rules and usage resources
    Posted 4 years ago #
  10. dahmage

    Apprentice
    Joined: Feb '10
    Posts: 4

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

    Posted 4 years ago #
  11. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 15,039

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

    Don't forget to read the Forum rules and usage resources
    Posted 4 years ago #
  12. mr. sheep

    Member
    Joined: Mar '09
    Posts: 25

    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

    Posted 4 years ago #
  13. dahmage

    Apprentice
    Joined: Feb '10
    Posts: 4

    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.

    Posted 4 years ago #
  14. dahmage

    Apprentice
    Joined: Feb '10
    Posts: 4

    @mr. sheep - here is a zip of the modifications i made against revision 50. http://dahmage.com/trunk.r50-withBorderOptionAndMultiline.zip

    Posted 4 years ago #
  15. Dr.Bongo

    Apprentice
    Joined: Apr '10
    Posts: 3

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

    Posted 4 years ago #
  16. gsvalentine

    Member
    Joined: Dec '09
    Posts: 27

    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

    Posted 4 years ago #
  17. mr. sheep

    Member
    Joined: Mar '09
    Posts: 25

    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.

    Posted 4 years ago #
  18. gsvalentine

    Member
    Joined: Dec '09
    Posts: 27

    Thanks let me know how you get on!

    Posted 4 years ago #
  19. Audiween

    Junior
    Joined: Sep '10
    Posts: 5

    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!

    Posted 3 years ago #
  20. Audiween

    Junior
    Joined: Sep '10
    Posts: 5

    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!

    Posted 3 years ago #
  21. sbillard

    Contributor
    Joined: May '07
    Posts: 10,428

    CheckForPassword() is not required on current Zenphoto releases. So just delete the line.

    Posted 3 years ago #
  22. mr. sheep

    Member
    Joined: Mar '09
    Posts: 25

    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!

    Posted 3 years ago #
  23. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 15,039

    "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);

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  24. Audiween

    Junior
    Joined: Sep '10
    Posts: 5

    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?

    Posted 3 years ago #
  25. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 15,039

    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"

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  26. Audiween

    Junior
    Joined: Sep '10
    Posts: 5

    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?

    Posted 3 years ago #
  27. sbillard

    Contributor
    Joined: May '07
    Posts: 10,428

    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.

    Posted 3 years ago #
  28. Audiween

    Junior
    Joined: Sep '10
    Posts: 5

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

    Posted 3 years ago #
  29. fns

    Member
    Joined: Feb '09
    Posts: 19

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

    Posted 3 years ago #
  30. sbillard

    Contributor
    Joined: May '07
    Posts: 10,428

    There is a fix for this in the nightly build.

    Posted 3 years ago #

RSS feed for this topic

Reply »

You must log in to post.