[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);
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?
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.
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...
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!
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