Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Make logout confirmation page? How to?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-16-2006, 09:50 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default 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.
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #2  
Old 08-17-2006, 02:45 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

login.php should have some redirect code for when the user logs out....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-17-2006, 04:51 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Thank you, I will look into that
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #4  
Old 08-17-2006, 06:01 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

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
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #5  
Old 08-20-2006, 09:29 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

This is still eluding me? Anyone..
Thanks a lot
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #6  
Old 08-20-2006, 09:56 AM
 
neroag neroag is offline
 

Senior Member
  
Join Date: May 2005
Location: UK
Posts: 171
 

Default

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
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0
Reply With Quote
  #7  
Old 08-29-2006, 08:17 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default Re: Make logout confirmation page? How to?

Thank you so much for your help!
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #8  
Old 09-12-2006, 09:27 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default Re: Make logout confirmation page? How to?

Nero...Thanks! this was a brain crusher for me!
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #9  
Old 12-18-2006, 12:14 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default 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
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #10  
Old 12-19-2006, 12:08 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default Re: Make logout confirmation page? How to?

This is still eluding me? Anyone. Thanks a lot!
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:20 AM.

   

 
X-Cart forums © 2001-2020