Title: karmenta's Replies | WordPress.org

---

# karmenta

  [  ](https://wordpress.org/support/users/karmenta/)

 *   [Profile](https://wordpress.org/support/users/karmenta/)
 *   [Topics Started](https://wordpress.org/support/users/karmenta/topics/)
 *   [Replies Created](https://wordpress.org/support/users/karmenta/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/karmenta/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/karmenta/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/karmenta/engagements/)
 *   [Favorites](https://wordpress.org/support/users/karmenta/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme My Login] [Plugin: Theme My Login] New User Email Notification](https://wordpress.org/support/topic/plugin-theme-my-login-new-user-email-notification/)
 *  Thread Starter [karmenta](https://wordpress.org/support/users/karmenta/)
 * (@karmenta)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-theme-my-login-new-user-email-notification/#post-3058232)
 * I added some lines into the register-form.php page:
 * > `<?php
   >  /* If you would like to edit this file, copy it to your current theme’s
   > directory and edit it there. Theme My Login will always look in your theme’s
   > directory first, before using this default template. */ ?> <div class=”login”
   > id=”theme-my-login<?php $template->the_instance(); ?>”> <?php $template->the_action_template_message(‘
   > register’ ); ?> <?php $template->the_errors(); ?> <form name=”registerform”
   > id=”registerform<?php $template->the_instance(); ?>” action=”<?php $template-
   > >the_action_url( ‘register’ ); ?>” method=”post”> <p> <label for=”user_login
   > <?php $template->the_instance(); ?>”><?php _e( ‘Username’, ‘theme-my-login’)?
   > ></label> <input type=”text” name=”user_login” id=”user_login<?php $template-
   > >the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value(‘
   > user_login’ ); ?>” size=”20″ tabindex=”10″ /> </p> <p> <label for=”user_email
   > <?php $template->the_instance(); ?>”><?php _e( ‘E-mail’, ‘theme-my-login’ )?
   > ></label> <input type=”text” name=”user_email” id=”user_email<?php $template-
   > >the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value(‘
   > user_email’ ); ?>” size=”20″ tabindex=”20″ /> </p> <p> <label for=”business_name
   > <?php $template->the_instance(); ?>”><?php _e( ‘Business Name’, ‘theme-my-login’)?
   > ></label> <input type=”text” name=”business_name” id=”business_name<?php $template-
   > >the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value(‘
   > business_name’ ); ?>” size=”50″ tabindex=”20″ /> </p> <p> <label for=”about_your_business”
   > <?php $template->the_instance(); ?>”><?php _e( ‘About Your Business’, ‘theme-
   > my-login’ ) ?></label> <textarea name=”about_your_business” cols=”50″ rows=”
   > 5″ class=”input” id=”about_your_business<?php $template->the_instance(); ?>”
   > tabindex=”20″><?php $template->the_posted_value( ‘about_your_business’ ); ?
   > > </textarea> </p> <p> <label for=”user_business_license_number<?php $template-
   > >the_instance(); ?>”><?php _e( ‘Business License Number’, ‘theme-my-login’ )?
   > ></label> <input type=”text” name=”user_business_license_number” id=”user_business_license_number
   > <?php $template->the_instance(); ?>” class=”input” value=”<?php $template->
   > the_posted_value( ‘user_business_license_number’); ?>” size=”20″ tabindex=”
   > 20″ /> </p> <p> <label for=”website<?php $template->the_instance(); ?>”><?php
   > _e( ‘Website’, ‘theme-my-login’ ) ?></label> <input type=”website” name=”website”
   > id=”website<?php $template->the_instance(); ?>” class=”input” value=”<?php 
   > $template->the_posted_value( ‘website’ ); ?>” size=”20″ tabindex=”20″ /> </
   > p> <?php do_action( ‘register_form’ ); // WordPress hook do_action_ref_array(‘
   > tml_register_form’, array( &$template ) ); //TML hook ?> <p id=”reg_passmail
   > <?php $template->the_instance(); ?>”><?php echo apply_filters( ‘tml_register_passmail_template_message’,
   > __( ‘A password will be e-mailed to you.’, ‘theme-my-login’ ) ); ?></p> <p 
   > class=”submit”> <input type=”submit” name=”wp-submit” id=”wp-submit<?php $template-
   > >the_instance(); ?>” value=”<?php _e( ‘Register’, ‘theme-my-login’ ); ?>” tabindex
   > =”100″ /> <input type=”hidden” name=”redirect_to” value=”<?php $template->the_redirect_url(‘
   > register’ ); ?>” /> <input type=”hidden” name=”instance” value=”<?php $template-
   > >the_instance(); ?>” /> </p> </form> <?php $template->the_action_links( array(‘
   > register’ => false ) ); ?> </div>`
 * and I changed the profile page to only include certain fields:
 * > `<?php
   >  /* If you would like to edit this file, copy it to your current theme’s
   > directory and edit it there. Theme My Login will always look in your theme’s
   > directory first, before using this default template. */
   > $user_role = reset( $profileuser->roles );
   >  if ( is_multisite() && empty( $
   > user_role ) ) { $user_role = ‘subscriber’; }
   > $user_can_edit = false;
   >  foreach ( array( ‘posts’, ‘pages’ ) as $post_cap )
   > $user_can_edit |= current_user_can( “edit_$post_cap” ); ?>
   > <div class=”login profile” id=”theme-my-login<?php $template->the_instance();?
   > >”>
   >  <?php $template->the_action_template_message( ‘profile’ ); ?> <?php $template-
   > >the_errors(); ?> <form id=”your-profile” action=”” method=”post”> <?php wp_nonce_field(‘
   > update-user_’ . $current_user->ID ) ?> <p> <input type=”hidden” name=”from”
   > value=”profile” /> <input type=”hidden” name=”checkuser_id” value=”<?php echo
   > $current_user->ID; ?>” /> </p>
   >  <?php if ( !$theme_my_login->options->get_option( array( ‘themed_profiles’,
   > $user_role, ‘restrict_admin’ ) ) && !has_action( ‘personal_options’ ) ): ?>
   >  <h3><?php _e( ‘User Options’, ‘theme-my-login’ ); ?></h3>
   >  <table class=”form-table”>
   >  <?php if ( rich_edit_exists() && $user_can_edit)://
   > don’t bother showing the option if the editor has been removed ?> <?php endif;?
   > > <?php if ( count( $_wp_admin_css_colors ) > 1 && has_action( ‘admin_color_scheme_picker’)):?
   > > <?php endif; // $_wp_admin_css_colors if ( $user_can_edit ) : ?> <?php endif;?
   > > <?php if ( function_exists( ‘_get_admin_bar_pref’ ) ) : ?> <tr class=”show-
   > admin-bar”> <?php if ( version_compare( $wp_version, ‘3.3’, ‘>=’ ) ) : ?> <?
   > php else : ?> <td> </td> <?php endif; ?> </tr> <?php endif; // function exists?
   > > <?php do_action( ‘personal_options’, $profileuser ); ?> </table> <?php endif;//
   > restrict admin ?>
   >  <?php do_action( ‘profile_personal_options’, $profileuser ); ?>
   >  <h3><?php _e( ‘User Info’, ‘theme-my-login’ ) ?></h3>
   >  <table class=”form-table”>
   >  <tr> <th><label for=”user_login”><?php _e( ‘Username’,‘
   > theme-my-login’ ); ?></label></th> <td><input type=”text” name=”user_login”
   > id=”user_login” value=”<?php echo esc_attr( $profileuser->user_login ); ?>”
   > disabled=”disabled” class=”regular-text” /> <span class=”description”><?php
   > _e( ‘Your username cannot be changed.’, ‘theme-my-login’ ); ?></span></td> 
   > </tr>
   >  <tr>
   >  <th><label for=”first_name”><?php _e( ‘First name’, ‘theme-my-login’)?
   > ></label></th> <td><input type=”text” name=”first_name” id=”first_name” value
   > =”<?php echo esc_attr( $profileuser->first_name ) ?>” class=”regular-text” /
   > ></td> </tr>
   >  <tr>
   >  <th><label for=”last_name”><?php _e( ‘Last name’, ‘theme-my-login’ )?
   > ></label></th> <td><input type=”text” name=”last_name” id=”last_name” value
   > =”<?php echo esc_attr( $profileuser->last_name ) ?>” class=”regular-text” /
   > ></td> </tr>
   >  <tr>
   >  <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=”text” name=”nickname” id=”nickname” value
   > =”<?php echo esc_attr( $profileuser->nickname ) ?>” class=”regular-text” />
   > </td> </tr>
   >  <tr>
   >  <th><label for=”display_name”><?php _e( ‘Display name publicly as’, ‘
   > theme-my-login’ ) ?></label></th> <td> <select name=”display_name” id=”display_name”
   > > <?php $public_display = array(); $public_display[‘display_nickname’] = $profileuser-
   > >nickname; $public_display[‘display_username’] = $profileuser->user_login; 
   > if ( !empty( $profileuser->first_name ) ) $public_display[‘display_firstname’]
   > = $profileuser->first_name; if ( !empty( $profileuser->last_name ) ) $public_display[‘
   > display_lastname’] = $profileuser->last_name; if ( !empty( $profileuser->first_name)&&!
   > empty( $profileuser->last_name ) ) { $public_display[‘display_firstlast’] =
   > $profileuser->first_name . ‘ ‘ . $profileuser->last_name; $public_display[‘
   > display_lastfirst’] = $profileuser->last_name . ‘ ‘ . $profileuser->first_name;}
   > if ( !in_array( $profileuser->display_name, $public_display ) )// Only add 
   > this if it isn’t duplicated elsewhere $public_display = array( ‘display_displayname’
   > => $profileuser->display_name ) + $public_display; $public_display = array_map(‘
   > trim’, $public_display ); foreach ( $public_display as $id => $item ) { $selected
   > = ( $profileuser->display_name == $item ) ? ‘ selected=”selected”‘ : ”; ?> 
   > <option id=”<?php echo $id; ?>” value=”<?php echo esc_attr( $item ); ?>”<?php
   > echo $selected; ?>><?php echo $item; ?></option> <?php } ?> </select> </td>
   > </tr> </table>
   >  <h3><?php _e( ‘Contact Info’, ‘theme-my-login’ ) ?></h3>
   >  <table class=”form-table”>
   >  <tr> <th><label for=”email”><?php _e( ‘E-mail’,‘
   > theme-my-login’ ); ?> <span class=”description”><?php _e( ‘(required)’, ‘theme-
   > my-login’ ); ?></span></label></th> <td><input type=”text” name=”email” id=”
   > email” value=”<?php echo esc_attr( $profileuser->user_email ) ?>” class=”regular-
   > text” /></td> </tr>
   >  <tr>
   >  <th><label for=”url”><?php _e( ‘Website’, ‘theme-my-login’ ) ?></label
   > ></th> <td><input type=”text” name=”url” id=”url” value=”<?php echo esc_attr(
   > $profileuser->user_url ) ?>” class=”regular-text code” /></td> </tr>
   >  <?php if ( function_exists( ‘_wp_get_user_contactmethods’ ) ) :
   >  foreach (
   > _wp_get_user_contactmethods() as $name => $desc ) { ?> <?php } endif; ?> </
   > table>
   >  <h3><?php _e( ‘Password’, ‘theme-my-login’ ); ?></h3>
   >  <table class=”form-table”>
   >  <?php
   >  $show_password_fields = apply_filters( ‘show_password_fields’, true,
   > $profileuser ); if ( $show_password_fields ) : ?> <tr id=”password”> <th><label
   > for=”pass1″><?php _e( ‘New Password’, ‘theme-my-login’ ); ?></label></th> <
   > td><input type=”password” name=”pass1″ id=”pass1″ size=”16″ value=”” autocomplete
   > =”off” /> <span class=”description”><?php _e( ‘If you would like to change 
   > the password type a new one. Otherwise leave this blank.’, ‘theme-my-login’);?
   > ></span><br /> <input type=”password” name=”pass2″ id=”pass2″ size=”16″ value
   > =”” autocomplete=”off” /> <span class=”description”><?php _e( ‘Type your new
   > password again.’, ‘theme-my-login’ ); ?></span><br /> <div id=”pass-strength-
   > result”><?php _e( ‘Strength indicator’, ‘theme-my-login’ ); ?></div> <p class
   > =”description indicator-hint”><?php _e( ‘Hint: The password should be at least
   > seven characters long. To make it stronger, use upper and lower case letters,
   > numbers and symbols like ! ” ? $ % ^ & ).’, ‘theme-my-login’ ); ?></p> </td
   > > </tr> <?php endif; ?> </table>
   >  <?php
   >  do_action( ‘show_user_profile’, $profileuser ); ?>
   >  <?php if ( count( $profileuser->caps ) > count( $profileuser->roles ) && apply_filters(‘
   > additional_capabilities_display’, true, $profileuser ) ) { ?>
   >  <br class=”clear”/
   > > <table width=”99%” style=”border: none;” cellspacing=”2″ cellpadding=”3″ 
   > class=”editform”> <tr> <th scope=”row”><?php _e( ‘Additional Capabilities’,‘
   > theme-my-login’ ) ?></th> <td><?php $output = ”; global $wp_roles; foreach (
   > $profileuser->caps as $cap => $value ) { if ( !$wp_roles->is_role( $cap ) ){
   > if ( $output != ” ) $output .= ‘, ‘; $output .= $value ? $cap : “Denied: {$
   > cap}”; } } echo $output; ?></td> </tr> </table> <?php } ?>
   >  <p class=”submit”>
   >  <input type=”hidden” name=”user_id” id=”user_id” value
   > =”<?php echo esc_attr( $current_user->ID ); ?>” /> <input type=”submit” class
   > =”button-primary” value=”<?php esc_attr_e( ‘Update Profile’, ‘theme-my-login’);?
   > >” name=”submit” /> </p> </form> </div> `
 * The pages look fine but aren’t sending the forms to either the admin or new registrar.
 * Thanks so much for your help!

Viewing 1 replies (of 1 total)