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

Editing text color for same variable in 2 areas

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-01-2008, 11:46 AM
  roc's Avatar 
roc roc is offline
 

Member
  
Join Date: Jan 2008
Posts: 13
 

Default Editing text color for same variable in 2 areas

Ok, I have searched the forum for 3 days and could not get this answered so here goes...

I want to edit the color of language variable "txt_login_incorrect" to show as WHITE in register.php (which I have done already) and BLACK in the annonymous checkout section (which is currently WHITE because of the previous change).

Now, I understand enough about what I want to accomplish that I created "txt_login_incorrect_2" (same as txt_login_incorrect but with black text) in the languange variables to input into the *.tpl template for the annonymous checkout... I just can't find the right template to change the "txt_login_incorrect" to "txt_login_incorrect_2" just for ANNONYMOUS CHECKOUT.

Can someone assist me with this? Thanks!
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 04-01-2008, 06:58 PM
  roc's Avatar 
roc roc is offline
 

Member
  
Join Date: Jan 2008
Posts: 13
 

Default Re: Editing text color for same variable in 2 areas

Wow, it's been a month and not even one reply?
__________________
Version 4.1.9
Reply With Quote
  #3  
Old 04-01-2008, 07:51 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Editing text color for same variable in 2 areas

Hi roc. It's late my brain is fried - I should go to bed. So I have no ideas what I am typing...

There are 2 locations for txt_login_incorrect
1. skin1/modules/Fast_Lane_Checkout/checkout_0_enter.tpl
and 2. skin1/main/error_login_incorrect.tpl

Assuming that the purpose of having 2 different coloured versions of txt_login_incorrect is to differentiate between a registered user or not, use...
{if $login} logged in error colour {else} anon/loggedout colour error {/if}

It is preferable to use webmaster mode to locate .tpls. Webmaster mode is best used with IE (Internet Explorer), with popups enabled, and 'view>status bar' enabled.

Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote
  #4  
Old 04-06-2008, 05:22 PM
  roc's Avatar 
roc roc is offline
 

Member
  
Join Date: Jan 2008
Posts: 13
 

Default Re: Editing text color for same variable in 2 areas

After a month someone finally responded with a solution that worked like a charm. THANKS KUBE!

I was getting pretty frustrated because all I kept getting were notes to read the forum rules... Which I had already done.

Thanks again Kube!
__________________
Version 4.1.9
Reply With Quote
  #5  
Old 04-06-2008, 05:31 PM
 
balinor balinor is offline
 

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

Default Re: Editing text color for same variable in 2 areas

If you had read the rules, you wouldn't have PM'd me asking me to read your post.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 04-06-2008, 05:42 PM
  roc's Avatar 
roc roc is offline
 

Member
  
Join Date: Jan 2008
Posts: 13
 

Default Re: Editing text color for same variable in 2 areas

LOL! Ok Balinor. I get it. Would you drop the "Read The Forum Rules" bit already? I was asking for help, not a lecture.
__________________
Version 4.1.9
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 05:54 AM.

   

 
X-Cart forums © 2001-2020