Jump to content

Chaning the color of the asterix/star to red


Thian

Recommended Posts

Hey all...

 

This has me beat, as in the screen shot I am looking to change the color of all the * to a different color. I have found one * in the lang folder english.php and made this change;

 

$_LANG['cartdomainsconfiginfo'] = "The following options and settings are available for the domains you have chosen. Required fields are indicated with a <font color='red'>*</font>.";

 

However want his red, I have done a complete search of the folders using dreamweaver but cannot locate the "required" *`s anywhere.

 

Any advice please?

 

star.jpg

Link to comment
Share on other sites

This has me beat, as in the screen shot I am looking to change the color of all the * to a different color. I have found one * in the lang folder english.php and made this change;

 

$_LANG['cartdomainsconfiginfo'] = "The following options and settings are available for the domains you have chosen. Required fields are indicated with a <font color='red'>*</font>.";

it's best to not get in the habit of directly editing the language files - they'll get overwritten the next time you do a full update - use Language Overrides instead and you won't have to worry about overwriting them.

 

http://docs.whmcs.com/Language_Overrides

 

However want his red, I have done a complete search of the folders using dreamweaver but cannot locate the "required" *`s anywhere.

Congratulations, you found one that's not in the templates! :idea:

 

what you will need to do is modify the ajaxcart/configuredomains.tpl template by replacing...

 

<tr class="{cycle values="rowcolor1,rowcolor2"}"><td class="fieldlabel">{$domainfieldname}:</td><td class="fieldarea">{$domainfield}</td></tr>

with...

<tr class="{cycle values="rowcolor1,rowcolor2"}"><td class="fieldlabel">{$domainfieldname}:</td><td class="fieldarea">{$domainfield|replace:'*':'<font color="red">*</font>'}</td></tr>

this will replace the current * with a red * :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated