kamarr
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] How to delete Nickname field from profile?I’m using this plugin and the method above to remove unwanted fields, however I came across two problems when removing the contact info fields.
It seams the contact info fields are grouped together in one block of code.
<?php foreach ( wp_get_user_contact_methods() as $name => $desc ) { ?> <tr class="tml-user-contact-method-<?php echo $name; ?>-wrap"> <th><label for="<?php echo $name; ?>"><?php echo apply_filters( 'user_'.$name.'_label', $desc ); ?></label></th> <td><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr( $profileuser->$name ); ?>" class="regular-text" /></td> </tr> <?php
Since they are bunched under one block of code, I’m not sure what labels point to what.
Example:
I wanted to remove the social media, website and company name fields, however leave the zip code, phone number, city, etc. fields.
How would I target, display and save those fields like I would the nickname field, which is coded as such;<tr class="tml-nickname-wrap"> <th><label for="nickname"><?php _e( 'Username', 'theme-my-login' ); ?></label></th> <td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr( $profileuser->nickname ); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e( 'Usernames cannot be changed.', 'theme-my-login' ); ?></span></td> </tr>
Thank you for your assistance.
Forum: Plugins
In reply to: [Theme My Login] How to delete Nickname field from profile?@jeff Farthing
I’m using this plugin and the method above to remove unwanted fields, however I came across two problems when removing the contact info fields.
It seams the contact info fields are grouped together in one block of code.
<?php foreach ( wp_get_user_contact_methods() as $name => $desc ) { ?> <tr class="tml-user-contact-method-<?php echo $name; ?>-wrap"> <th><label for="<?php echo $name; ?>"><?php echo apply_filters( 'user_'.$name.'_label', $desc ); ?></label></th> <td><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr( $profileuser->$name ); ?>" class="regular-text" /></td> </tr> <?php
Since they are bunched under one block of code, I’m not sure what labels point to what.
Example:
I wanted to remove the social media, website and company name fields, however leave the zip code, phone number, city, etc. fields.
How would I target, display and save those fields like I would the nickname field, which is coded as such;<tr class="tml-nickname-wrap"> <th><label for="nickname"><?php _e( 'Username', 'theme-my-login' ); ?></label></th> <td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr( $profileuser->nickname ); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e( 'Usernames cannot be changed.', 'theme-my-login' ); ?></span></td> </tr>
Thank you for your assistance.
Forum: Reviews
In reply to: [Connections Business Directory] Buy the Plugin/TemplateI am having the same issue with the current update version of the plugin.
However, since the css update was added to the current version of the plugin should this be resolved out of the box, or should I add something to it?