• Resolved mkaiit

    (@mkaiit)


    Hi sir
    Please i googled and found a way to hide nickname as the plugin author said. Now I have another problem it says error the nikname is required. please how can i make it not required?
    i see the code says required but i have removed in in my custom profile file under my theme, so I am not sure how to make it not required.

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    You’ll need to keep the nickname field present, but just set it to type="hidden".

    Thread Starter mkaiit

    (@mkaiit)

    Hi
    i did that,
    <tr class=”tml-nickname-wrap”>
    <th><label for=”nickname”><?php _e( ‘Nickname’, ‘theme-my-login’ ); ?> <span class=”description”><?php _e( ‘(required)’, ‘theme-my-login’ ); ?></span></label></th>
    <td><input type=”hidden” name=”nickname” id=”nickname” value=”<?php echo esc_attr( $profileuser->nickname ); ?>” class=”regular-text” /></td>
    </tr>

    but it still showing and still has the word required near it. when u click save and u didnt fill the filed it tells u:
    ERROR: Please enter a nickname.

    2) and pease can i prevent users from changing thier email?

    Thread Starter mkaiit

    (@mkaiit)

    please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nickname is required’ is closed to new replies.