Thread: Login Link
View Single Post
  #52  
Old 07-03-2008, 11:27 AM
  boomobile's Avatar 
boomobile boomobile is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 306
 

Default Re: Login Link

Quote:
Originally Posted by B00MER
edit [skin1]/common_templates.tpl and add something similar:

Code:
{elseif $main eq "mainlogin"} {include file="customer/main/login.tpl"}
Note, place your login form from, auth.tpl in customer/main/login.tpl

Now just create the login.php file, with something like:

Code:
<? require "../smarty.php"; require "../config.php"; @include "./https.php"; require "./auth.php"; $smarty->assign("main","mainlogin"); $smarty->display("customer/home.tpl"); ?>

Should do the trick


I want to combine three templates into one page. I can't figure out how they are called. I don't need to edit the templates themselves, just have them all on the same page.
Here's specifics:

I have 3 separate pages as follows
login = secure_login_form.tpl
registration = register.tpl
recover lost password = change_password.tpl

these all come up on separate pages, I want them all on one.

My home_main.tpl includes this:

{elseif $main eq "register"}
{include file="customer/main/register.tpl"}

{elseif $main eq "secure_login_form"}
{include file="customer/main/secure_login_form.tpl"}

{elseif $main eq "change_password"}
{include file="customer/main/change_password.tpl"}

I'm not sure what file I need to modify.
__________________
X Cart Ver: 4.0.14
MySQL4 4.1.22
phpMyAdmin 2.6.0
Pearl 5.6.0
PHP 5.2.1
Python 2.2.2
Server: Apache/2.0.52 (Red Hat)
OS: Linux
www.cleanlinesurf.com
1. Customer Rewards Points
2. One Page Checkout (altercart)
3. Free shipping orders over $50 as Real Time Shipping
4. Gift Certificates
-----------------------------------------------
Graphic Design | Boomobile Design, LLC
www.boomobile.com
Reply With Quote