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

whats wrong with this code?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-17-2003, 10:55 AM
 
Tony Tony is offline
 

Member
  
Join Date: Jun 2003
Posts: 12
 

Default whats wrong with this code?

Code:
{if $usertype eq "C"} {else} {if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if}
Reply With Quote
  #2  
Old 08-17-2003, 10:57 AM
 
Tony Tony is offline
 

Member
  
Join Date: Jun 2003
Posts: 12
 

Default should it look like this?

Code:
{if $usertype eq "C"} { include file="auth.tpl" } {else} {if $login eq "" } { include file="authbox.tpl" } {/if}
Reply With Quote
  #3  
Old 08-17-2003, 02:45 PM
 
jpsowin jpsowin is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 459
 

Default

Syntax wise, your not closing your {if} tag.
There might be other problems depending on what you're trying to do.
I'm not sure why you are putting the other {if} tag inside the else either...
__________________
Joshua Sowin
...taking things one TPL at a time.
Reply With Quote
  #4  
Old 08-17-2003, 07:47 PM
 
Mad Mad is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Brooklyn, NY
Posts: 60
 

Default

If I'm wrong, someone please correct me. This is (I think) the correct syntax:
Code:
{if $usertype eq "C"} {if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if} {/if}

Code:
{if $usertype eq "C"} { include file="auth.tpl" } {elseif $login eq "" } { include file="authbox.tpl" } {/if}
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:05 PM.

   

 
X-Cart forums © 2001-2020