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

Issue with Authentication/Login box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-20-2008, 07:30 AM
  jasonroy's Avatar 
jasonroy jasonroy is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Tualatin, Oregon
Posts: 147
 

Default Issue with Authentication/Login box

Ok, best way to explain it is to have you just log in and see what happens.

If you go to http://www.rjroffroad.com and on the left menu bar about halfway down is the login box.

Go ahead and log in (live site, keep in mind):
username: test
password: account

Now that you're logged in, you can see that the login box didn't get switched to the "logged in" version. You will actually find the logged in version, down at the bottom of that left menu bar column.

I suppose I could just re-order it so they're stacked right against eachother, but how do I get it to remove the one, and replace it with the other?
__________________
rjroffroad.com
x-cart 4.1.3
+ez checkout
+remember anonymous carts
Reply With Quote
  #2  
Old 02-20-2008, 08:51 AM
  jasonroy's Avatar 
jasonroy jasonroy is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Tualatin, Oregon
Posts: 147
 

Default Re: Issue with Authentication/Login box

Here's my code, should've posted that.

It calls auth.tpl on line 17, and calls authbox on line 93. Every attempt to re-arrange it on my part leads to my site not functioning and just showing smarty errors.


Code:
{* $Id: home.tpl,v 1.19.2.5 2006/10/24 13:46:18 svowl Exp $ *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> {if $printable ne ''} {include file="customer/home_printable.tpl"} {else} {config_load file="$skin_config"} <html> <head> <title> {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {$location[position].0|strip_tags|escape} {if not %position.last%} :: {/if} {/section} {else} {section name=position loop=$location step=-1} {$location[position].0|strip_tags|escape} {if not %position.last%} :: {/if} {/section} {/if} </title> {include file="meta.tpl" } <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" /> </head> <body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}> <table cellpadding="0" cellspacing="0" border="0" align="center" width="100%"><tr><td>{include file="rectangle_top.tpl" } {include file="head.tpl" } {if $active_modules.SnS_connector} {include file="modules/SnS_connector/header.tpl"} {/if} <!-- main area --> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="VertMenuLeftColumn"> <div align="center">Browse by Manufacturer: <br /> <select onchange="window.open(this.options[this.selectedIndex].value,'_top')"> <option>Choose Manufacturer</option> <option value="/Warrior-Products-c-445.html">Warrior Products</option> <option value="/Tuff-Country-m-3.html">Tuff Country</option> <option value="/JBA-Performance-Exhaust-m-22.html">JBA Performance Exhaust</option> <option value="/Rugged-Ridge-m-24.html">Rugged Ridge</option> <option value="/OK-Off-Road-m-25.html">OK Off-Road</option> <option value="/Mile-Marker-m-4.html">Mile Marker</option> <option value="/XENON-m-21.html">Xenon</option> <option value="/Hellwig-Products-m-23.html">Hellwig Products</option> <option value="/OMIX-ADA-m-26.html">OMIX-ADA</option> <option value="/VIAIR-m-20.html">VIAIR</option> <option value="/Trailmaster-m-7.html">Trailmaster</option> <option value="/BlacKnight-m-8.html">Blacknight</option> <option value="/Explorer-Pro-Comp-m-10.html">Pro Comp</option> <option value="/EATON-Detroit-Locker-m-13.html">Detroit Locker</option> <option value="/Rancho-m-14.html">Rancho</option> <option value="/AFE-Intake-Systems-m-15.html">AFE Intakes</option> <option value="/Genuine-Gear-m-16.html">Genuine Gear</option> </select></div> <br /> {if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y'} {include file="modules/SnS_connector/button.tpl"}<br /> {/if} { include file="customer/1level.tpl" } { include file="auth.tpl" } { include file="modules/Bestsellers/menu_bestsellers.tpl" } <div align="center"> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank"> <script type="text/javascript" language="javascript">var ANS_customer_id="4fbe6094-6ac1-4535-a46c-e47a7b0621da";</script> <script type="text/javascript" language="javascript" src="http://VERIFY.AUTHORIZE.NET/anetseal/seal.js" ></script> </a><br /><img src="/images/rapidssl_ssl_certificate.gif" alt="Secured by RapidSSL" width="90" height="50" /><br /> <br /><img src="/images/VisaMastercardLOGO.gif" alt="We accept Visa and Mastercard" width="75" height="98" /><br /> <img src="/images/disco.jpg" alt="We accept Discover Card" /><Br /></div> <br /> { include file="help.tpl" }<br /> <div align="center"><a href="http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&amp;userid=rjroffroad" target="_blank" class="style24"><img src="/images/logoEbay_150x70.jpg" border="0" /><br /> See our eBay auctions!</a></div><br /><br /><div align="center"><a href=http://top4x4sites.com/cgi-bin/arp/rankem.cgi?id=rjroff target="_blank"><img src="http://top4x4sites.com/imgs/4x4_160x55a.gif" border="0" alt="Vote for us on top4x4sites.com" /></a></div> { include file="customer/special.tpl" } {if $active_modules.Survey && $menu_surveys} {foreach from=$menu_surveys item=menu_survey} {include file="modules/Survey/menu_survey.tpl"} {/foreach} {/if} {if $login eq "" } {/if} {if $login eq "" } { include file="news.tpl" } {else} { include file="authbox.tpl" } {/if} {if $active_modules.Interneka ne ""} { include file="modules/Interneka/menu_interneka.tpl" } {/if} { include file="poweredby.tpl" } <img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" /> </td> <td valign="top"> <!-- central space --> {include file="location.tpl"} {if $gcheckout_enabled and $main ne "cart" and $main ne "checkout" and $main ne "anonymous_checkout" and $main ne "order_message"} <div align="right">{include file="modules/Google_Checkout/gcheckout_button.tpl"}</div> {/if} {include file="dialog_message.tpl"} {if $active_modules.Special_Offers ne ""} {include file="modules/Special_Offers/customer/new_offers_message.tpl"} {/if} {include file="customer/home_main.tpl"} <!-- /central space --> &nbsp; </td> <td width="20">&nbsp;</td> </tr> </table> {include file="rectangle_bottom.tpl" } </td></tr></table> </body> </html> {/if}
__________________
rjroffroad.com
x-cart 4.1.3
+ez checkout
+remember anonymous carts
Reply With Quote
  #3  
Old 02-20-2008, 09:28 AM
 
balinor balinor is offline
 

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

Default Re: Issue with Authentication/Login box

You've got kind of a mess there. Replace this:

{if $login eq "" }


{/if}
{if $login eq "" }
{ include file="news.tpl" }
{else}
{ include file="authbox.tpl" }
{/if}

with this:

{ include file="news.tpl" }
{if $login eq "" }
{include file="auth.tpl" }
{else}
{include file="authbox.tpl" }
{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 02-20-2008, 10:00 AM
  jasonroy's Avatar 
jasonroy jasonroy is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Tualatin, Oregon
Posts: 147
 

Default Re: Issue with Authentication/Login box

Quote:
Originally Posted by balinor
You've got kind of a mess there.

I couldn't agree more. I originally did this over a year ago when I was still really new at this.

I did your version, it seems to have added another auth login at the bottom. So I moved it up to line 73, and deleted the other junk that was on 73...works just like it should now!

Thanks!
__________________
rjroffroad.com
x-cart 4.1.3
+ez checkout
+remember anonymous carts
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:06 PM.

   

 
X-Cart forums © 2001-2020