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)
-   -   Putting Log In / Log Out form in head.tpl (https://forum.x-cart.com/showthread.php?t=16678)

dannyrus 09-18-2005 08:43 PM

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

balinor 09-23-2005 03:39 AM

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 }

Realsecurity 11-07-2005 12:21 PM

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

balinor 11-07-2005 12:24 PM

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.

Realsecurity 11-08-2005 07:34 AM

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.

balinor 11-08-2005 07:38 AM

http://forum.x-cart.com/viewtopic.php?t=14069

Realsecurity 11-08-2005 11:00 AM

Thanks for that will have a look into it, was about to post a ticket for x cart to do one. cheers.....

Jamien 09-04-2007 07:48 PM

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!


All times are GMT -8. The time now is 04:03 PM.

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