hi,
How do I change the default page that gallery returns to after logout, so that it returns to the album page just viewed/opened, and not to the main front/home page for gallery itself ?
I also want to change the default return page for when the slideshow is stopped ( not the fullscreen applet one ) - currently it returns to one of the items/photos that is in the slideshow, whereas I want it to be the album folder that the slideshow items all belong to.
I'm using the carbon theme.
Much thanks, paul
------------------------------------------
Gallery version = 2.2.1 core 1.2.0.1
PHP version = 4.3.11 apache
Webserver = Apache
Database = mysqlt 4.1.20-max-log, lock.system=flock
Toolkits = ArchiveUpload, LinkItemToolkit, NetPBM, Thumbnail, Gd, Swf, Getid3, Ffmpeg
Acceleration = none, none
Operating system = Linux web78.opentransfer.com 2.6.19.2-UP #1 Mon Jan 29 08:25:57 CST 2007 i686
Default theme = carbon
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Posts: 27300
I believe with you that the current behavior is wrong. I filed a bug and it was move to be a feature request as the behavior is considered correct:
http://sourceforge.net/tracker/index.php?func=detail&aid=1647677&group_id=7130&atid=357130
& a fix only for user albums/users:
http://gallery.menalto.com/node/59742
Feel free to add a comment to the feature request and/or vote for it.
Dave
____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 72
...thanks, but no luck there with the suggested fix. I tried placing the script in different positions, not knowing for certain EXACTLY where "just before" the call means, technically, if you follow that. ( is the call just that one line, that one block, or something else....without knowing that, I can't be sure of what I'm doing....if you could explain more fully so I could check what I'm doing please ?
...any tips, suggestions ??
....and the similar thing with the slideshow 'stop' default return page ? any suggestions ?
trhanks, paul
Posts: 72
..I'm using an iframe to view a certain album ( only ), so when a user logs out, as logging in is needed for comments to be added, gallery only needs to return to the same album 'front', and not the main.php, which needs to be hidden / inaccessible to the user.....P
Posts: 27300
Edit modules/core/logout.inc
find
$ret = $session->reset();
add
$userId = $session->getUserId();
then find
$results['redirect']['view'] = GALLERY_DEFAULT_VIEW;
and change to:
$results['redirect'] = array('controller' => 'useralbum.UserAlbum', 'userId' => $userId);
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 72
I'm doing this:
$session =& $gallery->getSession();
$ret = $session->reset();
$userId = $session->getUserId();
if ($ret) {
return array($ret, null);
}
....the other bit is easy to see and do, a straight replacement.
Does 'add' mean just to tack it on to the end of script bit you listed ? is this right what I have done here ?
when I add this, and logout I get an error message that says Security Violation - you are not permitted etc - Go back to album ( then it goes back to main.php from there )
....P