X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Make logout confirmation page? How to? (https://forum.x-cart.com/showthread.php?t=24139)

taltos1 08-16-2006 09:50 AM

Make logout confirmation page? How to?
 
Hello, I have used this thread as a starting point
http://forum.x-cart.com/viewtopic.php?t=3024&start=45&postdays=0&postorder =asc&highlight=logout
But I did not see an answer to this.
I am using a text link pointing to
Code:

include/login.php?mode=logout&redirect=customer
to Log Out the user but it just kicks the user to the homepage, I would like it to go to a simple,
"You have been logged out " page.
Can anyone help me with that?

Thanks a lot.

balinor 08-17-2006 02:45 AM

login.php should have some redirect code for when the user logs out....

taltos1 08-17-2006 04:51 AM

Thank you, I will look into that

taltos1 08-17-2006 06:01 AM

One line 278 I see this:
Code:

if ($mode == "logout") {
        x_session_register("payment_cc_fields");
        $payment_cc_fields = array();

and on line 314 I see this:
Code:

func_header_location($redirect_to."/home.php");
but I am not sure how this is working together...

Any ideas...
Thanks

taltos1 08-20-2006 09:29 AM

This is still eluding me? Anyone..
Thanks a lot

neroag 08-20-2006 09:56 AM

If you look at /include/login.php

look for
Code:

# Insert entry into login_history
just below the line
Code:

$login_redirect = 1;

add
Code:

func_header_location($redirect_to."/mynewlogoutpage.php");

just change the mynewlogoutpage.php to whatever page you want to redirect too.

hope that helps

taltos1 08-29-2006 08:17 PM

Re: Make logout confirmation page? How to?
 
Thank you so much for your help!

ecommerce 09-12-2006 09:27 AM

Re: Make logout confirmation page? How to?
 
Nero...Thanks! this was a brain crusher for me! :lol:

taltos1 12-18-2006 12:14 PM

Re: Make logout confirmation page? How to?
 
Quote:

Originally Posted by neroag
If you look at /include/login.php

look for
Code:

# Insert entry into login_history
just below the line
Code:

$login_redirect = 1;

add
Code:

func_header_location($redirect_to."/mynewlogoutpage.php");

just change the mynewlogoutpage.php to whatever page you want to redirect too.

hope that helps


Thank you! But now can you tell me how to make the logout page look like the rest of my site. I know I should use home.tpl, and I got that working (the page) but all the images are gone and the page only displays the php etc.. coding?

Thanks so much

taltos1 12-19-2006 12:08 PM

Re: Make logout confirmation page? How to?
 
This is still eluding me? Anyone. Thanks a lot!


All times are GMT -8. The time now is 12:08 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.