Login Link
How would I create a link to the login page instead of using the auth box form?
|
I have the same issue.
I tried creating a login.php, which calls Auth.tpl and it works, its just the page doesnt include the rest of the site... it loses the header, footer, etc what do i need to do to get this working? |
edit [skin1]/common_templates.tpl and add something similar:
Code:
{elseif $main eq "mainlogin"} Now just create the login.php file, with something like: Code:
<? Should do the trick ;) |
AWESOME
Thnx Boomer :twisted: |
Sorry Boomer you totally lost me in the middle somewhere!
I have done the following:
Added {elseif $main eq "mainlogin"} {include file="customer/main/login.tpl"} to the [skin1]/common_templates.tpl file I have cut the login form from auth.tpl and pasted it onto the customer/main/login.tpl I have the php file you kindly supplied, but where do I put this and how do I call it? Tye |
Re: Sorry Boomer you totally lost me in the middle somewhere
Quote:
Php file goes in your /customer/ folder the one with the .php files in it (not the customer in skin folder) you just call it by going direct to mainlogin.php eg http://www.youdomain.com/xcart/customer/mainlogin.php |
Ahh! Got it!
Thanks
|
Hi there! I added the code and it works fine, but all of my categories disappear when the login.php page loads. Any ideas where they went? They appear on all other pages, just not login.php.
Thanks! Heather |
I see that you posted this question about 2 weeks back or so. If you didn't find the answer for this, it is suprisingly easy.
Your login.php file should read like this: Code:
<? It was the ../include/categories.php that was missing. Also, now that we're at this point, don't forget to remove the if/else code in skin1/customer/home.tpl that calls "auth.tpl". It might also be noted that by doing all of this, I had to change the paths in the original auth.tpl form to reflect a slightly different directory location, and then pasted into my new login.tpl page. at first the form action used "../../../include/login.php" and I had to change it to "../include/login.php" |
Thank you! The client didn't seem to care so I kept it on the hush-hush. :) But, I'll fix it with this lil' snippet. Thanks again!
Heather |
All times are GMT -8. The time now is 02:53 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.