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

Putting Log In / Log Out form in head.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-18-2005, 08:43 PM
 
dannyrus dannyrus is offline
 

Member
  
Join Date: Sep 2005
Posts: 18
 

Default Putting Log In / Log Out form in head.tpl

I wanted to remove the auth.tpl / authbox.tpl Login box from the side columns and move the login into the head.tpl (same as where the search box appears, but aligned to right).

I've managed to get it to halfway work by copy/pasting the javascript and buttons etc. from the auth.tpl and authbox.tpl but I really need to do it so that it calls the two .tpl files as it does in the menu box. That part is easy, but how do I detatch the menu.tpl from it so that it doesn't display as a menu item - I've tried commenting the include call out of auth.tpl but that just creates parse errors - in case you can't tell, I'm pretty new to smarty / php and everything else...

I'd just like the login items to display inline:

Login :: (Login Box) :: Password :: (PW Box) :: Go Button || Recover Password :: Register

Then when logged in:

"User" is logged in :: Sign Out

If need be, Recover PW and Register can be on a second line.

I have seen similar posts but none which really do the same as I'd like here... Any help would be great, thanks!!
__________________
Danny - Photoscope Б─╒ X-Cart Version 4.0.14
Reply With Quote
  #2  
Old 09-23-2005, 03:39 AM
 
balinor balinor is offline
 

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

Default

Just remove these lines to get rid of the menu 'box':

{capture name=menu}

{/capture}
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-07-2005, 12:21 PM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

Default

I had a similar requirment to REMOVE the LOGIN and REGISTER section on the Home page and have this in the Checkout for returning customers.....
However i have realised that a LOGIN Button is needed so anyone that has purchased can login to there account and view invoices!!!! at present there is NO login and NO logout feature, i need a single button that can allow LOGIN and after finishing the same button becomes a LOGOUT, although an ordinary logout button would work ok.

Any ideas appreciated

http://www.realsecurity.co.uk

Xcart V 4.0.13
__________________
SURECOM XCART V4.1.8
Reply With Quote
  #4  
Old 11-07-2005, 12:24 PM
 
balinor balinor is offline
 

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

Default

That is what the X-Cart auth.tpl and authbox.tpl already do. You can't have a single 'login' button, you need a username and password field to go with it. Just add the includes back in to your home.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-08-2005, 07:34 AM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

Default

What i actually wanted is to place a LOGIN button on the homepage only, this link then OPENS up a new page displaying User and password. But not having this LOGIN and REGISTER on the home page makes it look neater. having too many bars and sections makes scrolling longer.

I actaully would prefer the left lower pane to be on the other side to the right. I am yet to move this when i find out how.
__________________
SURECOM XCART V4.1.8
Reply With Quote
  #6  
Old 11-08-2005, 07:38 AM
 
balinor balinor is offline
 

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

Default

http://forum.x-cart.com/viewtopic.php?t=14069
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-08-2005, 11:00 AM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

Default

Thanks for that will have a look into it, was about to post a ticket for x cart to do one. cheers.....
__________________
SURECOM XCART V4.1.8
Reply With Quote
  #8  
Old 09-04-2007, 07:48 PM
 
Jamien Jamien is offline
 

Member
  
Join Date: Jul 2007
Posts: 24
 

Default Re: Putting Log In / Log Out form in head.tpl

Quote:
Originally Posted by balinor
Just remove these lines to get rid of the menu 'box':

{capture name=menu}

{/capture}
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }

Thanks balinor!
I am a newbie and as i go through the somewhat steep learning curve, your posts are a great help!
__________________
X-Cart V 4.1.8
Php 5.1.6
Web Server Apache 2.2.2 (fedora)
OS Linux
Site: http://www.travelsim.net.au
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 12:29 PM.

   

 
X-Cart forums © 2001-2020