Author Topic: How to Add text to right of user registration email input field ?  (Read 4560 times)

brmecham

  • Beginner
  • *
  • Posts: 4
On the checkout page, the New Customer registration form, I want to add text next the Email input field. "We respect your privacy"

I can't figure out how to add that text to the right of the email input field. I've searched and read on the forum for hours finding no solution.

I found that via /administrator/components/com_vitruemart/classes/ps_userfield.php I could add to this line (line 417):

Code: [Select]
echo '<input type="text" id="'.$field->name.'_field" name="'.$field->name.'" size="'.$field->size.'" value="'. ($db->sf($field->name)?$db->sf($field->name):'') .'" class="inputbox" '.$maxlength . $readonly . ' />'."\n";
problem with that is it adds the text to the right side of all input fields. I only want the text to show up next to the email field.

Anyone know how to accomplish this?

felixp

  • Jr. Member
  • **
  • Posts: 192
    • FMCA
Re: How to Add text to right of user registration email input field ?
« Reply #1 on: October 08, 2009, 22:54:50 pm »
This should work; place it after that line:
if ($field->name == 'email') echo "We respect your privacy <br />";
Joomla - 1.5.6
VirtueMart - 1.1.3

brmecham

  • Beginner
  • *
  • Posts: 4
Re: How to Add text to right of user registration email input field ?
« Reply #2 on: October 09, 2009, 05:41:40 am »
This should work; place it after that line:
if ($field->name == 'email') echo "We respect your privacy <br />";
Unfortunately that didn't work. Thanks for the effort though.

felixp

  • Jr. Member
  • **
  • Posts: 192
    • FMCA
Re: How to Add text to right of user registration email input field ?
« Reply #3 on: October 09, 2009, 14:00:18 pm »
It should have. Did you re-name the email field by any chance?

I'll try it on mine.
Joomla - 1.5.6
VirtueMart - 1.1.3

brmecham

  • Beginner
  • *
  • Posts: 4
Re: How to Add text to right of user registration email input field ?
« Reply #4 on: October 15, 2009, 21:36:55 pm »
Did you try it on your site? and did it work?

brmecham

  • Beginner
  • *
  • Posts: 4
Re: How to Add text to right of user registration email input field ?
« Reply #5 on: November 06, 2009, 20:11:12 pm »
Anyone have a solution to this?

Scar

  • Full Member
  • ***
  • Posts: 1035
    • J-lux
Re: How to Add text to right of user registration email input field ?
« Reply #6 on: November 06, 2009, 23:10:26 pm »
Can't you just use the tooltip function?