Member
Member
dechsn   2009-08-02, 00:58
#1

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.

Member
Member
sbillard   2009-08-02, 01:22
#2

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.

Member
Member
dechsn   2009-08-02, 01:28
#3

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

Member
Member
sbillard   2009-08-02, 02:04
#4

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

Member
Member
dechsn   2009-08-02, 02:19
#5

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

Member
Member
dechsn   2009-08-02, 14:20
#6

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

Member
Member
dechsn   2009-08-02, 19:18
#7

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

Member
Member
sbillard   2009-08-03, 01:46
#8

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

Member
Member
dechsn   2009-08-03, 01:53
#9

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

Member
Member
dechsn   2009-08-03, 14:40
#10

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.