Support » Plugin: WP w3all phpBB » Profile Builder – Admin Approve

  • Resolved rkdev87

    (@rkdev87)


    Hello,

    I’ve had to add the following to the class.wp.w3all-phpbb.php on line 1744.

    This is due to the Profile Builder plugin, admin approve feature. Without this change, when a user attempts to login to wordpress, their account is activated in PHPbb – even when they are not approved in Profile Builder.

    if(!wp_get_object_terms( $user_id, ‘user_status’ )) {
    $w3phpbb_conn->query(“UPDATE ” . $phpbb_config_file[“table_prefix”] . “users SET user_type = ‘0’ WHERE user_email_hash = ‘$user_email_hash’ OR username = ‘$username'”);
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author axew3

    (@axewww)

    Hello! Thank for the suggested addition!
    The post will be added/linked into documentation.

    How you configured things? Users can register in both side or only wordpress or only phpBB?
    If you let register in phpBB, they are added as deactivated or into a specified group with no roles?

    If you can, could you please let know what’s the better way to detect that the plugin Profile Builder is installed and running into wordpress?
    The code will so be wrapped inside the condition, like for example, for the ultimate member would be:
    if ( ! defined( 'WP_ADMIN' ) && class_exists( 'UM' ) ) { the code will fire and fix the issue in frontend user profile page.

    I see that Profile Builder isn’t free so i can’t test, so we assume, if it work fine for you, that’s should be the right way (or a way) to resolve the issue.

    Plugin Author axew3

    (@axewww)

    Hello again! This morning looking on fly to this answer and your added code that use function
    https://codex.wordpress.org/Function_Reference/wp_get_object_terms
    i do not think this is the right way to resolve this issue, and all the function w3_check_phpbb_profile_wpnu() should be rewrite to accomplish correctly in this case (a phpBB user added on fly into wordpress when previously register in phpBB side, then come into wp side to login or navigate wp site as logged into phpBB, as i assume that happen into your installation).
    It’s necessary a look into function w3_check_phpbb_profile_wpnu() fixing with easy for any scenario or plugin. I will take a look on this as soon and before the 1.9.9 release, that will contain the fix, i will return here asap with my proposed solution.

    Plugin Author axew3

    (@axewww)

    So, finally over again on forums to fix and answer something, i assume the answer above is the right one.
    We assume the mentioned plugin use the taxonomy wp logic to manage users registrations and data. That’s ok. I can’t test the plugin because it is not a free plugin, so take for good the very first post on this topic by @rkdev87 to resolve the issue
    https://wordpress.org/support/topic/profile-builder-admin-approve/

    Thank you for the proposed solution @rkdev87

    Next WP phpBB integration 1.9.9 version is coming out soon!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Profile Builder – Admin Approve’ is closed to new replies.