| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#1
|
|||||||
|
|||||||
Login Link
How would I create a link to the login page instead of using the auth box form?
|
|||||||
#2
|
|||||||||
|
|||||||||
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? |
|||||||||
#3
|
|||||||||
|
|||||||||
edit [skin1]/common_templates.tpl and add something similar:
Code:
Now just create the login.php file, with something like: Code:
Should do the trick
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#4
|
|||||||||
|
|||||||||
AWESOME
Thnx Boomer |
|||||||||
#5
|
|||||||
|
|||||||
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
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
#6
|
|||||||||
|
|||||||||
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 |
|||||||||
#7
|
|||||||
|
|||||||
Ahh! Got it!
Thanks
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
#8
|
|||||||||
|
|||||||||
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
__________________
Thank you! |
|||||||||
#9
|
|||||||
|
|||||||
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" |
|||||||
#10
|
|||||||||
|
|||||||||
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
__________________
Thank you! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|