Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Register problem


Patriarch K

Recommended Posts

This is a very small problem, but when one try to register himself it looks like this:

http://upl.silentwhisper.net/uplfolders/upload9/Problem1.JPG

 

The problem is the grey text (The "Required"-text) to the right. I just can't find where to change that color to black. I have searched through all the files but i can't find where to change it.

Link to comment
Share on other sites

there is an html font tag next to the "obligatorisk" looks like this

 

<font color="#AABBDD">obligatorisk</font></small></span></td>

 

it could be either in the catalog\create_account.php or in your language definition file check for any font colors for those fields in catalog\includes\langueages\<language>\create_account.php

Link to comment
Share on other sites

in the language file dont you have a definition like this?

 

define('TEXT_FIELD_REQUIRED', ' <span class="fieldRequired">* Required</span>');

 

so whats the class name in your case I do not see that name "fieldRequired" in your css files

 

this in turn is used by the tep_draw_input_field function it appends the definition to the end of the field. (just in case the function appends some tags)

 

by default the fieldrequired is like this

.fieldRequired { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; }

Link to comment
Share on other sites

ok then open your catalog\create_account.php file and post one of the table cells that prints out the entry boxes.

 

should look something like this: (I just pulled the first name field)

              <tr>
               <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>
               <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>
             </tr>

Link to comment
Share on other sites

Here it is...

<?php
 if (ACCOUNT_GENDER == 'true') {
?>
             <tr>
               <td class="main"><?php echo ENTRY_GENDER; ?></td>
               <td class="main"><?php echo tep_draw_radio_field('gender', 'm') . '  ' . MALE . '  ' . tep_draw_radio_field('gender', 'f') . '  ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td>
             </tr>
<?php
 }
?>
             <tr>
               <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>
               <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>
             </tr>
             <tr>
               <td class="main"><?php echo ENTRY_LAST_NAME; ?></td>
               <td class="main"><?php echo tep_draw_input_field('lastname') . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td>
             </tr>
<?php
 if (ACCOUNT_DOB == 'true') {
?>
             <tr>
               <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>
               <td class="main"><?php echo tep_draw_input_field('dob') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>
             </tr>
<?php
 }
?>
             <tr>
               <td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td>
               <td class="main"><?php echo tep_draw_input_field('email_address') . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>

Link to comment
Share on other sites

ok that looks like the default now in the language file:

 

catalog\includes\languages\english.php (or whatever the language you use is) should have something like this:

define('ENTRY_FIRST_NAME_TEXT', '*');

 

well in your case will be a different string not an asterisk is there a color tag or some html tag around it?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...