Pages (2):    1 2
Member
Member
sbillard   12-09-2010, 20:41
#21

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

Member
Member
mr. sheep   13-09-2010, 18:15
#22

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!

Administrator
Administrator
acrylian   13-09-2010, 18:20
#23

[i]"Only variables can be passed by reference".[/i]
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);

Member
Member
Audiween   14-09-2010, 18:07
#24

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?

Administrator
Administrator
acrylian   14-09-2010, 18:20
#25

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"

Member
Member
Audiween   15-09-2010, 20:43
#26

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?

Member
Member
sbillard   15-09-2010, 21:16
#27

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.

Member
Member
Audiween   16-09-2010, 21:43
#28

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

Member
Member
fns   27-01-2011, 07:05
#29

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

Member
Member
sbillard   27-01-2011, 18:30
#30

There is a fix for this in the nightly build.

Member
Member
zealzenphoto   26-12-2011, 22:29
#31

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!

Member
Member
zealzenphoto   26-12-2011, 22:35
#32

I just noticed that I can still change the slide time with the user interface. However, not by clicking the up/down arrow at the right of the number (which does not response at all), but by clicking some invisible buttons at the left side of the number. My adobe flash player version: 11.1.102.55.

Thanks

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.