Giter VIP home page Giter VIP logo

buddypress-registration-options's People

Contributors

drivingralle avatar gregrickaby avatar tw2113 avatar williamsba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buddypress-registration-options's Issues

JS conflict with BP templates

"This plugin breaks all the javascript on the default Buddypress templates. I'm not entirely sure why (it doesn't generate any console errors - but it prevents any of the input elements for activity, forums etc from being rendered)."

Multisite compatibility

Make it so admins of individual sites can manage the user list, not just the super admin. Will help those using WP for SaaS instances and need to allow others to maintain their own subsite.

wpdb::prepare arguments

Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/c/s/l/_/html/training/wp-content/plugins/bp-registration-options/includes/admin.php on line 19 and defined in /home/content/c/s/l/_/html/training/wp-includes/wp-db.php on line 990

Prevention of logged out users from seeing any content.

Is it possible to block logged out users completely at this point? Is that part of the map_meta_cap bit that I have going for the bbPress addon.

I think this may be part of user confusion. Also most definitely a "bug" because users are thinking it does this, and wanting it to completely exclude and we're not quite offering that yet.

Are there any settings within BuddyPress we need to make sure are being set?

Issue with notification at the top.

"When any user logs into to site and goes to their dash board they will see the message:

You have "x" new member requests that need to be approved or denied. Please click here to take action.

If they click, they get:
You do not have sufficient permissions to access this page.

But, of course, they should not ever see that message to begin with :-("

Non-approved people able to post to bbpress

"I have an non-approved (waiting approval) user who can post to the bbpress forum at my site. I have all the right settings - both check boxes in the BPRO settings checked."

Banning capabilities.

Save an option when a user is banned and then use it to catch and prevent the IP from registering in the future.

in_array issue

Warning: in_array() expects parameter 2 to be array, null given in \bp-registration-options.php on line 1594

Update to work with segregated bbPress.

The built-in forums from yesteryear are gone and bbPress is standalone. We'll need to find a way to prevent users from seeing those pages when not approved.

Ideas:
grab bbP settings for which page is the forum, redirect
check for CPT
check post content for bbpress shortcodes.

Mini roadmap

4.1.1
#29 localization typo
#28 make sure emailed urls are properly spaced around words.

4.2
#30 Hooks for everything.
#27 BP 1.8 testing
#20 bbPress limiting
#17 Banning.

Banned members registering new accounts.

"When I ban a new member, they still come back and register again. The same ip number. This does not seem to be working for me, or have I done something wrong in the settings."

Catchable Fatal Error with WP_Error

Catchable fatal error: Object of class WP_Error could not be converted to string in /home/fmthost/public_html/memberswjc/wp-content/plugins/bp-registration-options/includes/core.php on line 229

Generic php notices

Notice: Object of class WP_Error could not be converted to int in /Applications/XAMPP/xamppfiles/htdocs/wp/buddypress/wp-content/plugins/bp-registration-options/includes/core.php on line 206

Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/wp/buddypress/wp-content/plugins/bp-registration-options/includes/core.php on line 221

Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/wp/buddypress/wp-content/plugins/bp-registration-options/includes/core.php on line 222

Consider Gravity Forms integration.

"If you are thinking about integrating BP Registration Options with Gravity Forms Registration Add On then a list of developer hooks and filters for the GF Registration Add On can be found at:

http://www.gravityhelp.com/documentation/page/User_Registration_Add-on_Developer_Docs

The one that looks particularly interesting is:
gform_user_registration_add_option_group
Used to add a group of options to the "Additional Options" section of the User Registration Feed. Useful when you want to add one or two options without requiring a whole section.

You could potentially add a BP Registration Options choice to the Gravity Forms Additional Options menu."

/**
 * GF Registration Process Set User to Not Authenticated to enable verification
*/

function gf_bp_profile_activation( $user_id ) {
    global $wpdb;

     //Update the user status to '69' which we will use as 'not activated' (0 = active, 1 = spam, 69 = not active)
    $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_status = 69 WHERE ID = %d", $user_id ) );

    if ( !is_multisite() ) {
        $activation_key = wp_hash( $user_id );
        $userdata = get_userdata($user_id);
        update_user_meta( $user_id, 'activation_key', $activation_key );

        if ( apply_filters( 'bp_core_signup_send_activation_key', true ) ) {
            bp_core_signup_send_validation_email( $user_id, $userdata->user_email, $activation_key );
        }
    }
}

add_action( 'gform_user_registered', 'gf_bp_profile_activation', 11 );

Add and update FAQs

What does this plugin do, as of $current version.

What does this plugin not do, as of $current version.

Does it offer support for bbPress?

Does it account for multisite super admins being the only ones able to edit users?

Is this a good plugin to help prevent spam coming into my whole site?

Premature confirmation emails

1- The confirmation link was being sent to users before admins confirmed that user. Therefore, we had to edit the code to not send the confirmation link. Instead the users got a message telling them that their account is under review. We then just look at the email and the usermail and make a decision.

Version # for next release

Hey Brian, curious on your thoughts for the next version number with what I did the past 4 days or so. Does this look like a 4.1 release? or should I move it down to more a 4.0.2

Member count

Make sure the BP member count is properly reflected depending on user status.

User access wasn't restricted

From the forum:

The user's access wasn't restricted after registration. As the administrator, I didn't get an email that the user had registered. There wasn't any diagnostic information that I could see, so I wasn't able to troubleshoot. Any suggestions on how to move forward? I'm using WP 3.5.1, BuddyPress 1.7.2, bbPress 2.3.2.

Check and update what plugin says it does via .org repo.

Right now, the wordpress.org repo says "Moderate new BuddyPress members, fight BuddyPress spam, set BuddyPress Groups or Blogs/Sites new members can join on the registration page. "

However, last looked, the Groups/Sites join limit isn't present, unless I simply missed that setting. Do we need to update the text that's in the header to more accurately present what the plugin currently does?

Moderated members

Make sure all incoming registrations must be moderated, when specified.

Set bbPress forum role on user approval

Hi Michael Beckwith asked me to post this idea over here from the Wordpress forums. Thanks

Would it be possible to check the user's forum role upon approval of their registration and update it to participant?

Something like this: (Hooked into the approval process.)

if (user_status != '69) && (forum_role = bbp_spectator) {

update forum_role to bbp_participant}

This way, upon registration and first login, their forum role could be set to 'spectator' using the auto process in bbPress. Then, when a user is approved by the admin it also does an automatic update of their forum user role to participant.

call_user_func_array() issue

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wds_bp_registration_options_bp_before_member_header' not found or invalid function name in /nfs/c07/h01/mnt/112059/domains/womenunitedfc.com/html/wp-includes/plugin.php on line 406

WangGuard support

As per http://wordpress.org/support/topic/blank-new-member-request-admin-notifications?replies=7, WangGuard is deleting users in the middle of the process or before we can properly fetch user data. It seems we get a user ID but before we can get the info for it, the user gets deleted and we still send an email. Empty values result.

I think this is something we should incorporate support with, the best we can, because our plugin is likely to be used with plugins like WangGuard.

Ideas:
review user ID fetching and info fetching before the email is sent
check for hooks in wangguard that indicate the user has been deleted already. Stop if yes.
http://wordpress.org/plugins/wangguard/

Make play nice with WP-FB-Autoconnect.

Unless a more elegant way can be found, put this inside the $_GET check in wds_bp_registration_options_bp_core_activate_account() in core.php

//Somehow the WP-FB-AutoConnect plugin uses $_GET['key'] as well for user IDs. Let's check if the value returns a user.
$is_user = get_userdata( $_GET['key'] );
if ( $is_user && $bp_moderate ) { //if it IS a user, and $bp_moderate is still true
    $bp_moderate = false; //lets set it to false
    $sql = 'UPDATE ' .$wpdb->base_prefix.'bp_activity SET hide_sitewide = 0 WHERE user_id = %d';
    $wpdb->query( $wpdb->prepare( $sql, $user_id ) ); //and update the hide_sitewide column.
    return; //and then exit out like a sir.
}

Patch 1

--- includes/core.php Mon Oct 22 22:31:36 2012
+++ includes/core.php Tue Feb 05 23:19:49 2013
@@ -15,7 +15,7 @@
add_action( 'init', 'wds_bp_registration_options_core_init' );
function wds_bp_registration_options_core_init(){
global $bp_moderate, $bprwg_privacy_network, $wpdb, $bp, $user_ID, $blog_id;

  • if ( !is_admin() ) {
  • if ( !current_user_can( 'edit_users' ) ) {
    if ( is_multisite() ) {
    $blogid = $blog_id;
    switch_to_blog(1);
    @@ -31,14 +31,16 @@
    if ( $bp->current_component && $user_ID == 0 && $bp->current_component != 'register' && $bp->current_component != 'activate' ) {
    if ( $bp->pages->register->slug ) {
    wp_redirect( site_url().'/'.$bp->pages->register->slug );
  • exit;
    } else {
    exit();
    }
    //if logged in and not approved then redirect to their profile page
    } elseif ( $bp->current_component && $user_ID > 0 && ( $bp->displayed_user->userdata == '' || $bp->displayed_user->userdata != '' && $bp->displayed_user->id != $user_ID ) ) {
    $user = get_userdata($user_ID);
  • if ( $user->user_status == 69 ) {
  • if ( $user->data->user_status == 69 ) {
    wp_redirect( $bp->loggedin_user->domain );
  • exit;
    }
    }
    }
    @@ -197,7 +199,7 @@
    *
    */
    add_filter('bp_after_activate_content', 'wds_bp_registration_options_bp_after_activate_content');
    -add_filter('bp_before_member_header', 'wds_bp_registration_options_bp_before_member_header');
    +add_filter('bp_before_member_header', 'wds_bp_registration_options_bp_after_activate_content');
    function wds_bp_registration_options_bp_after_activate_content(){
    global $bp_moderate, $user_ID, $blog_id;
    if ( is_multisite() ) {
    @@ -205,7 +207,7 @@
    switch_to_blog(1);
    }
    if ( $bp_moderate && isset( $_GET['key'] ) || $bp_moderate && $user_ID > 0 ) {
  • $activate_message = get_option('bprwg_activate_message');
  • $activate_message = stripslashes(get_option('bprwg_activate_message'));
    echo '

    '.$activate_message.'

    ';
    }
    if ( is_multisite() ) {
    @@ -220,7 +222,7 @@
    *
    *
    */
    -add_action( 'bp_core_activate_account', 'wds_bp_registration_options_bp_core_activate_account');
    +
    function wds_bp_registration_options_bp_core_activate_account($user_id){
    global $wpdb, $bp_moderate;
    if ( $bp_moderate ) {
    @@ -243,5 +245,5 @@
    }
    }
    }

    +add_action( 'bp_core_activate_account', 'wds_bp_registration_options_bp_core_activate_account');
    ?>
    \ No newline at end of file

HTML email notifications

"Works great but it would be better if texts for approved or denied messages would accept

a) HTML standard codes and/or
b) sending text only emails (WordPress default)
"

link in my notification mail does not appear as a link

link in my notification mail does not appear as a link: appears as '.... go tohttp://...

found in core.php
' .... request please go to', 'bp-registration-options')...
replaced by
' .... request please go to ', 'bp-registration-options')...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.