• Hi,
    1. How do I show the “show password” eye in the password field for the form
    2. I had access to a shortcode to generate user ID. Is it possible to have different User ID for different registrations, since I have other registrations on the website. Here is the short code
    (

    add_action(“user_register”,”um_012022_generate_unique_account_id”);
    function um_012022_generate_unique_account_id( $user_id ) {
    $unique_account_id = ‘GAND-‘ . str_pad( $user_id, 5, ‘0’, STR_PAD_LEFT );
    update_user_meta( $user_id, “um_unique_account_id”, $unique_account_id );
    }

    )

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @klenshop

    1. This functions will be added in future.
    2. Sorry, I can’t understand your question.

    Regards.

    Thread Starter klenshop

    (@klenshop)

    2. I am generating two different forms for two different people and I want their USER IDs to be different since they are two different groups. How do I implement that using the code I got your the docs

    @klenshop

    1. You can try this code snippet for a “show password” eye

    add_filter( "um_confirm_user_password_form_edit_field","um_user_password_form_edit_field", 10, 2 );
    add_filter( "um_user_password_form_edit_field","um_user_password_form_edit_field", 10, 2 );
    
    	function um_user_password_form_edit_field( $output, $set_mode ){
    		
    		ob_start();
    ?>
    		<div id='um-field-show-passwords' style='color: white !important; text-align:left;display:block;'>
    			<i class='um-faicon-eye-slash'></i>
    			<a style="color: white !important;" href='#'>Show or hide password</a>
    		</div>
    		<script type='text/javascript'>
    			jQuery('#um-field-show-passwords a').click(function(){ 
    				
    				jQuery(this).parent("div").find("i").toggleClass(function() {
    					if ( jQuery( this ).hasClass( "um-faicon-eye-slash" ) ) {
    						jQuery( this ).parent("div").find("a").text('Hide password');
    						jQuery( this ).removeClass( "um-faicon-eye-slash" )
    						jQuery(".um-form").find(".um-field-password").find("input[type=password]").attr("type","text");
    					return "um-faicon-eye";
    					}
    					
    					jQuery( this ).removeClass( "um-faicon-eye" );
    					jQuery( this ).parent("div").find("a").text('Show password');
    					jQuery(".um-form").find(".um-field-password").find("input[type=text]").attr("type","password");
    				
    					return "um-faicon-eye-slash";
    				});
    
    				return false; 
    
    			});
    		</script>
    <?php 
    		return $output . ob_get_clean();
    
    	}

    Install the code snippet into your active theme’s functions.php file
    or use the “Code Snippets” plugin.

    https://www.ads-software.com/plugins/code-snippets/

    2. You can try this new plugin “UM Unique User Account ID”

    https://github.com/MissVeronica/um-unique-user-account-id

    Thread Starter klenshop

    (@klenshop)

    Alright. Have seen you just coded. Very grateful for that. I will take a look and get back to you

    Plugin Support andrewshu

    (@andrewshu)

    Hi @klenshop

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

    Thread Starter klenshop

    (@klenshop)

    @missveronicatv
    I just realised that, if I change the membership, the user ID does change along. Thus from the plugin you gave. Is there anyway you can help?

    @klenshop

    Can you explain how you “change the membership”?

    Thread Starter klenshop

    (@klenshop)

    From what we have, the user ID is based on the membership that the user registered with. So each membership have a specific User ID. But when the user membership changes, the user ID doesn’t change. eg
    first membership starts with GK
    second membership starts with JK
    I want the user member ID to change if the membership also changes.

    @klenshop

    How do you change the Membership level by an Admin, from frontend or backend?
    Do you have an UM field defining the membership level?

    Thread Starter klenshop

    (@klenshop)

    I change it at backend. But users can also change through updrade
    Yes, there is UM field for membership level

    Thread Starter klenshop

    (@klenshop)

    I change the membership using the user role

    Thread Starter klenshop

    (@klenshop)

    @missveronicatv Any help on that please?

    @klenshop

    Yes I have made a new plugin which is a duplicate of your current plugin
    but using Role IDs instead of Form IDs for the unique ID.

    You must use both plugins.

    Copy the formatting rules and replace Form IDs with UM Role IDs.
    Set the meta-key for unique membership ID to um_unique_account_id

    https://github.com/MissVeronica/um-unique-membership-id

    Thread Starter klenshop

    (@klenshop)

    @missveronicatv can you please elaborate more. Not to clear. Read the readme file to but still not clear

    @klenshop

    Can you post your formatting rules for the GK and JK unique account IDs.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Ultimate member Forms’ is closed to new replies.