ZenphotoCMS Forum
Log Out Redirect - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Log Out Redirect (/thread-5588.html)



Log Out Redirect - dechsn - 2009-08-02

Can anyone tell me where the logout function is handled(what file holds the code). I am trying to make it redirect to a different page rather than the gallery homepage. Please help....Thanks in advance.




Log Out Redirect - sbillard - 2009-08-02

First you will have to tell us which logout function you are trying to change. Then I will tell you that it is unwise to modify the zenphoto core as you will find yourself always having to re-apply your changes each time we make a new release.




Log Out Redirect - dechsn - 2009-08-02

I want to change the logout that u click once have uploaded pics...I guess it would be the admin logout....on the note that I will have to change it each time...I can deal wit that...just gets confusing for some of the people that are using this gallery that aren't as web savy. Thanks for your help




Log Out Redirect - sbillard - 2009-08-02

that is done in the printLogoAndLinks() function in admin-functions.php




Log Out Redirect - dechsn - 2009-08-02

is that where the redirect is defined? I looked through it and it looks to me as just defining the hyper link.




Log Out Redirect - dechsn - 2009-08-02

Alright after looking at it this morning, I changed the link and now it links to my sites homepage but it isn't logging out of the zenphoto.... it needs to go from mysite.com/zenphoto/zp-core/ to mysite.com while logging out of the photo gallery.. Is there any easy way to do this? Thanks for your help so FAR!!!




Log Out Redirect - dechsn - 2009-08-02

If its easier could u just tell me where the code is that runs when u log out.(file name)




Log Out Redirect - sbillard - 2009-08-03

So, did you happen to look at the logout link? That might give you a clue.




Log Out Redirect - dechsn - 2009-08-03

so now I noticed that no matter where I am in the zenphoto if i add ?logout to the url it will log out and take me back to the gallery home.....where would I change this redirect??????????? i need it to go to my main sites home page and not the gallery home page




Log Out Redirect - dechsn - 2009-08-03

okay...well thanks for sending me on a wild goose chase....none of these answers actually led me to solution. I continued searching in the file structure today and was able to find it on my own.... for anyone that has this same problem here is how to fix it.....open up auth_zp.php and then do ctrl-f to try to find logout....then there will be a variable called $redirect change this to what file u want it to redirect to...if you want to change it to a file outside the file structure u have to change the header(......) portion by taking out FULLWEBPATH . '/' then u must go to the rest of the $redirect variable and add FULLWEBPATH . '/' .