Changing text to uppercase in signup form

Discussion in 'Customization & add-ons' started by newdo4u2, Jan 22, 2005.

  1. newdo4u2

    newdo4u2 Guest

    I'm sure this is a stupid, newbie question, but how can I insure that text is changed to uppercase in some of the fields in signup page?

    thanks in advance
    DD
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    there are no ways to do it without little script customization.
  3. newdo4u2

    newdo4u2 Guest

    I'm planning on upgrading version just after Feb 1, is this something I can request for additional fee? Thanks Alex
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It is possible without any fees.
    Create file amember/site.inc.php
    with the following content:
    PHP:
    <?php

    function vsf(&$vars){
         
    // replace your_short_field_name1 and your_short_field_name2
         // with actual field names (short)
         
    $vars['your_short_field_name1'] = strtoupper($vars['your_short_field_name1']);
         
    $vars['your_short_field_name2'] = strtoupper($vars['your_short_field_name2']);
         return array();
    }
    setup_plugin_hook('validate_signup_form''vsf');

    ?>
  5. newdo4u2

    newdo4u2 Guest

    Thank you thank you

    Thanks so much Alex, worked like a charm!

Share This Page