View Single Post
  #4  
Old 02-13-2008, 08:16 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: move login/registration

Quote:
can this be done fairly simplely

You could SIMPLY comment out the auth.tpl include in home.tpl

file: /skin1/customer/home.tpl

FIND:
Code:
{if $login eq "" } {include file="auth.tpl" } {else} {include file="authbox.tpl" } {/if}

REPLACE WITH:
Code:
{if $login ne "" } {* {include file="auth.tpl" } {else} *} <br /> {include file="authbox.tpl" } {/if}

What this will do: UNTIL a user is logged in, there is nothing showing -- then once logged in, the authbox with the login info appears. Note the {if $login eq "" } was replaced with {if $login ne "" } -- so if there is no login, then there is nothing -- if login IS NOT EMPTY, then show the authbox.

YOU CAN THEN add links to login or registration as desired... this is how I have i set up. Works great for me. I DO NOT have any login box on my site... BUT I have an "rders history" link, which becomes: /error_message.php?need_login= and then the user can login and see their orders. This is one way to do this.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote