• Resolved Mark Cutting

    (@mcutting)


    Hi – is there any planned support for Ultimate Member ? I’m a premium user of your plugin and have recently switched away from TML to UM.

    Thanks

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

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    I will take a look at what this involves.

    David

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    Which shortcode in particular (see http://docs.ultimatemember.com/article/210-ultimate-member-shortcodes) are you using to create the login form? Is it ultimatemember_social_login ? Or something else?

    David

    Thread Starter Mark Cutting

    (@mcutting)

    Hi David. It’s the default shortcode. The social login element is added afterwards as it’s a premium plugin. If you get a copy of ultimate member you’ll see what I mean. It works fine on wp-admin provided wordpress core handles the login session.

    Thread Starter Mark Cutting

    (@mcutting)

    David,

    The shortcode being used is actually a form generated by the plugin. In this instance, it’s [ultimatemember form_id=xxxx]

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Do you have a link to some instructions? I don’t really follow from that what I’m meant to do.

    Thread Starter Mark Cutting

    (@mcutting)

    Hi David. Only what’s here I’m afraid
    http://docs.ultimatemember.com

    [ No bumping please. ]

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    I’m sorry – it’s not enough for me to go on to know how to set up a login form without investing more time in research and documentation searching than I currently have available.

    David

    Thread Starter Mark Cutting

    (@mcutting)

    Hi David – I found this – http://docs.ultimatemember.com/collection/28-for-developers
    Perhaps this is of some use ? Was wondering it it was possible to hook in the 2FA somewhere ?

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    I’m really just asking for a sequence of clear steps for how to set up the particular form on a WP site that you’re interested in seeing integration with. Presumably this is something you’ve previously done yourself? I am very pressed for time, so was hoping that somebody could just give me a “here’s how to set up a login form, 1, 2, 3” so that I don’t need to spend time doing that investigation myself.

    David

    Thread Starter Mark Cutting

    (@mcutting)

    Hi David,

    I’m asking the developers of ultimate member of they can help here
    https://wordpress.org/support/topic/support-for-two-factor-authentication/#post-9587513

    I’d really like to get this working.

    Thanks

    Thread Starter Mark Cutting

    (@mcutting)

    David – I’ve stumbled across this in my search for more information – https://wordpress.org/support/topic/bypass-otp/

    I think that this would be very useful as it describes the process of how Ultimate Member completes the authentication process – by using 999

    Thread Starter Mark Cutting

    (@mcutting)

    Decided to use a workaround in order to get the two factor I needed. It’s a bit convoluted, but here goes

    1. Leave Ultimate Member installed and functional, handling everything but the login and logout functions
    2. Install Theme My Login and let this handle the login and logout functions (note that if you have existing slugs for login and logout, these pages should be deleted
    3. Point Ultimate Member at the new pages for login and logout
    4. Modify CSS for TML so that it matches the style of UM
    5. Install and activate Two Factor Authentication plugin. Configure as necessary
    6. In my case, I have the full suite of plugins for UM so I also included shortcodes for Social Media Login etc in the same page
    7. Using a custom set of functions, modified the URL for register, reset password etc to UM pages. Don’t have the functions to hand at present, but I’d anyone wants these, just let me know
    8. Test all functions. As TML is handling the login session, the 2FA component works as intended. Register simply forwards onto UM so this works as expected
    9. Logout uses TML and works as expected

    I would advise against creating the pages in advance and then having TML create btw ones, as the meta tags do not activate when running validations such as bad username and password etc.

    Again, a slightly convoluted and long way round solution, but it works as intended and to the user, looks exactly the same.

    I just hope that the developers of Two Factor Authentication and UM can come up with a working 2FA solution. Both are well written and flexible plugins, yet don’t seem to support our interact with each other. It’s a pity, but I hope this changes soon on both fronts – particularly as I have a premium subscription for both.

    Good day @mcutting, i would love to get access to those functions that you added to your website that enabled you to link Theme-my-login and ultimate member with the two factor authentication plugin.
    Thanks

    Thread Starter Mark Cutting

    (@mcutting)

    @smoothmazi.

    Here you go

    function theme_action_url_redirect( $url, $action, $instance ) {
    	// useful if you're in sub-domain, you can also change a bit more like using get_permalink( $page_id )
    	$site_url = get_bloginfo( 'url' );
    	switch ( $action ) {
    		case 'register' :
    			$url = $home_url . '/register/';
    		break;
    		case 'lostpassword' :
                $url = $home_url . '/password-reset/';
    			//$url = get_permalink( 3809 ); // where 10 is the new lost password page
    		break;
    	}
    	return $url;
    }
    add_filter( 'tml_action_url', 'theme_action_url_redirect', 10, 3 );
    function tml_title( $title, $action ) {
    	if ( is_user_logged_in() ) {
    		$user = wp_get_current_user;
    		if ( 'profile' == $action )
    			$title = 'Your Profile';
    		else
    			$title = sprintf( 'Welcome, %s', $user->display_name );
    	} else {
    		switch ( $action ) {
    			case 'register' :
    				$title = 'Register';
    				break;
    			case 'lostpassword':
    			case 'retrievepassword':
    			case 'resetpass':
    			case 'rp':
    				$title = 'Forgot Password ?';
    				break;
    			case 'login':
    			default:
    				$title = '';
    		}
    	}
    	return $title;
    }
    add_filter( 'tml_title', 'tml_title', 11, 2 );

    Let me know if you need anything else.

    @mcutting the code works like a charm. Thanks a lot.

    I guess this should be a wake up call for UM devs.

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Support for Ultimate Member’ is closed to new replies.