• Resolved Lionel69

    (@lionel69)


    Hello,

    I’m on a project with a WordPress multisite that have a private area using WP-Customer Area. But I need to add 2 functionnality that your plugin offer :

    • Additionnal fields on registration
    • Manual approval of registration by admin

    I manage to install your plugin and so far it almost works like a charm. The manual approval i operationnal and I was able to add custom fields to the registration form.

    unfortunatly, those custom fields are not saved on registration… It’s the only thing that’s holding me back on this project so I need some help to figure out what’s the problem.

    Thanks!

    https://wordpress.org/plugins/wp-members/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    If you are trying to integrate with another plugin, you need to make sure that any fields utilize the same meta key. So any fields that you use/create with WP-Members should be create so that the meta key (option name) is the same as whatever the other plugin uses.

    Thread Starter Lionel69

    (@lionel69)

    Thanks for your reply, but the problem seems to be that Wp-Customer Area override WP-Members form validation and user creation.
    Unfortunatly I’ve no idea where to go in order to change this… Any advice?

    Plugin Author Chad Butler

    (@cbutlerjr)

    Unfortunatly I’ve no idea where to go in order to change this… Any advice?

    At this time, unfortunately, no – I’m not familiar with that plugin.

    Thread Starter Lionel69

    (@lionel69)

    I’ve finally managed to get this working, simply by using the shortcode to display your registration form in a custom register page… kind of ashamed I didn’t think of this in the first place! ^^

    Now I know this is not the same problem but to avoid creating more useless topics, I ask you here a couple more questions :

    First I need to translate the notification email sent to the admin when someone register and its content doesn’t appear to be in the translation file.

    And finally I want to disable the displaying of the login form after a successful registration, since I have enabled admin moderation, but I can’t find where to go in order to do so.

    Can you help me with these?

    Plugin Author Chad Butler

    (@cbutlerjr)

    First I need to translate the notification email sent to the admin when someone register and its content doesn’t appear to be in the translation file.

    Since email content can be customized in the Emails tab, it is not static so it is not included in the translation template. If your site is a single language, just put your content into the Emails tab accordingly. If it is multiple languages, then you would need to filter the email when it is generated and provide translated content at that point. Use the wpmem_email_filter filter for that.

    I want to disable the displaying of the login form after a successful registration, since I have enabled admin moderation, but I can’t find where to go in order to do so.

    Use the wpmem_login_form filter to empty the HTML served for the form when the $action is “login” and the value of $wpmem->regchk is “success”. In other words,

    add_filter( 'wpmem_login_form', 'my_login_form_filter', 10, 2 );
    function my_login_form_filter( $form, $action ) {
    	global $wpmem;
    	if ( 'login' == $action && 'success' == $wpmem->regchk ) {
    		$form = '';
    	}
    	return $form;
    }
    Thread Starter Lionel69

    (@lionel69)

    Many thanks for your answers!
    I’ve managed to get my project up and running with your help!

    Last thing, the [fields] shortcode doesn’t seems to get the translation of the default fields names (ie first name, last name, country). Any idea?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin compatibility with others’ is closed to new replies.