Join our new community forum for support & discussion

Join Now

Home Support Themes ExpertHive Modifying Login Modal For Alternative Login

Modifying Login Modal For Alternative Login

  • Author
    Posts
  • nirholas

    Hi! I have purchased a plugin which allows users to login through alternative method. How can I add this feature to my login + register modal from the homepage of ExpertHive?

    Here are shortcodes the plugin provides.

    Shortcodes
    You can also place the buttons everywhere you want with these shortcodes:

    Login Button
    [mtm_auth_app_instance_shortcode_login]
    Register Button
    [mtm_auth_app_instance_shortcode_register]
    Link/Unlink Button
    [mtm_auth_app_instance_shortcode_link]

    Thank you!

    yevhen developer

    Please try this PHP snippet

    add_filter(
    	'hivepress/v1/forms/user_login',
    	function( $form ) {
    		$form['header'] = hivepress()->helper->get_array_value($form, 'header').'shortcode here';
    		return $form;
    	},
    	1000
    );
    nirholas

    Where do i add the PHP again?

    nirholas

    I added it as a code snippet but it did not work. It displayed on my login forum but displayed the button like this: [mtm_auth_app_instance_shortcode_login]

    ihor developer

    Please try this one instead:

    add_filter(
    	'hivepress/v1/forms/user_login',
    	function( $form ) {
    		$form['header'] = hivepress()->helper->get_array_value($form, 'header').do_shortcode('shortcode here');
    		return $form;
    	},
    	1000
    );
    nirholas

    GOT IT! Thank you so much!!

    How to i edit the registration page now? Is it possible to use the link / unlink method in the user settings?

    nirholas

    I have solved the registration link button.

    There are a few logical operations I will need to figure out:

    When registering on ExpertHive using the MM plugin, the user account is created using the Ethereum address as the username. No email is provided. The user is unable to edit their profile or post a listing when they do not have an email attached, since they used MM auth they also have no password. Are there ways around these issues using auth methods for using my site?

    nirholas

    I have created a vendor attribute for users to create a custom display name (username). Users which sign up who attempt to create a listing are required to enter a display name. The display name is then attributed to the username of the user as the page slug. Does this make sense when using this type of MM plugin Auth? Is there a way to make it so email / password is not required for users who use the MM plugin to create listings and use the site?

    ihor developer

    Sure, if you added a custom attribute and set it as the Vendor name in HivePress/Settings/Vendors then the attribute value will be in sync with the vendor display name.
    Unfortunately I can’t say for sure about removing the email address requirement, please check the MM plugin settings because HivePress follows the WP requirements (a user account is added only if username, email and password are provided).
    Please use this forum if there are other issues https://community.hivepress.io/ This one will be read-only soon.

    nirholas

    If I want to change the URL of my current project, could I just change the URL on EasyWp and everything would transfer over to the new domain? I am hoping I could still manage Hivepress from the same WordPress dashboard, just need to change the URL of the project.

    ihor developer

    Yes, but please make sure that all the URLs linked to your site are also changed everywhere, you can try using a plugin like this one for migrating https://wordpress.org/plugins/all-in-one-wp-migration/

Viewing 11 posts - 1 through 11 (of 11 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.