• Resolved hengstigal

    (@hengstigal)


    Hello,

    i have a problem with my site.
    I have Buddypress insatlled and your plugin and the option Enable/Disable: Invitation Code for user to register is Activated.

    I dont have the Invitation field in my Registration Page:
    https://prnt.sc/YqEE1v6zEz-W
    https://prnt.sc/d4gPtnQiMe9n

    If i deactivte BuddyPress i get the filed shown. But not with BuddyPress acitvated. What can i do??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @hengstigal,

    Thanks for using the plugin,

    I hope you are doing well, We have forwarded this to our technical team we will get back to you.

    Thanks & Regards

    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @hengstigal,

    Please add this code in the child theme’s functions.php. Please check it and let me know.

    add_action('bp_account_details_fields',  'nua_invitation_code_field');
    		function nua_invitation_code_field() {
    
    			if ( class_exists('pw_new_user_approve') && get_option('nua_free_invitation') == 'enable' ){
    			?>  <?php  $nonce = wp_create_nonce('nua-invitation-code-nonce');  ?>
    				<p>
    					<label> <?php esc_html_e('Invitation Code', 'new-user-approve'); ?></label>
    					<input type="hidden"  name="nua_invitation_code_nonce_field" value = <?php esc_attr_e($nonce) ?>/>
    					<input type="text" class="nua_invitation_code" name="nua_invitation_code" />
    				</p>
    				<?php
    			}
    		}

    Thank you

    Thread Starter hengstigal

    (@hengstigal)

    Hello thank you very mcuh!

    Is it possible to require a Invitation code to register?
    So that you cant get past the registration form, wihtout entering the correct invitation`?

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @hengstigal,

    Please add this code in the child theme’s functions.php. Please check it and let me know.

    add_filter('nua_invitation_code_optional','nua_registeration_required');
    
    function nua_registeration_required($required){
    	return false;
    }

    Thank you

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @hengstigal,

    We are resolving this thread due to lack of activity if you have any questions please open a new thread.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No Field Showing in Registration’ is closed to new replies.