Support » Plugin: BuddyPress Registration Options » Anyway to see user registration before approving user?

Viewing 15 replies - 1 through 15 (of 28 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hello,

    This is something that I have marked as done for version 4.3.0, but I also don’t have that done enough to release yet. So in short, it’s planned and coming, but not sure when.

    If you’re comfortable with editing the plugin files yourself, I can show you want needs to be done and where to have approving in our plugin also approve in BP core’s management.

    navyspitfire

    (@navyspitfire)

    Hi Michael, I am super comfortable with editing plugin files/code, I just don’t have enough experience to write it myself, but if you list everything step by step I’ll have no problem following along. I would greatly appreciate any help with this.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Luckily BuddyPress made it really simple:

    Around this line range, in the includes/admin.php file: https://plugins.trac.wordpress.org/browser/bp-registration-options/tags/4.2.11/includes/admin.php#L190

    Make it match https://github.com/WebDevStudios/BuddyPress-Registration-Options/commit/60ec79e0051770c0d37bb4e4c2a0a2cf82bdcd3f

    In short, after we set our spam status to false, have it run:

    bp_core_process_spammer_status( $user_id, 'ham' );
    navyspitfire

    (@navyspitfire)

    Hi Michael, I added that line of code where you said and nothing is happening. What is supposed to happen? With that line is the user going to be activated under ‘manage signups’ (so I don’t have to do it manually) if I approve them under ‘BP registration’?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    With that line in place, once you click approve for the user, it should mark them as non-spam for the BuddyPress core listing as well. Two birds with one stone type thing. It would only do both when done from our plugin. Approving in BP Core’s doesn’t take care of ours at the same time.

    navyspitfire

    (@navyspitfire)

    Actually I just noticed that once I approve in BP registration and try to activate under manage sign up, I get an error (which I missed earlier) saying: 1 account not activated. User: the sign up has already been activated. So looks like it works!! Thank you.

    Sidebar questions: Do you know how to completely remove the user from the manage signups list? I guess I don’t mind if the users stay in that list as long as they are activated, but it would be nice if their names disappeared.

    navyspitfire

    (@navyspitfire)

    This is a long shot and not part of your plugin, but maybe you can help. I’m using the xprofile file fields in my registration and the files are being saved in my /uploads/ folder. Is there anyway they can be saved to my media or emailed as attachments to the admin once the user registers?

    I also noticed that my user role is set to ‘none’; not sure how that happened, but how can I make it so new users are ‘subscribers’ by default?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    For the first one: https://github.com/WebDevStudios/BuddyPress-Registration-Options/issues/124

    For your media question, I do not personally know.

    For your last one. We don’t alter roles with our moderation. We do our checks via user meta. Best answer I have at the moment is that something else is interfering with the assigned role, or possibly we’re not doing enough with our core not-spam marking from earlier in this thread. Possible that that area also sets roles.

    Okay, thanks for replying. I really appreciate everything.

    Michael I have one last favor to ask you. I found a thread where you modified your plugin to add a Additional Data column in the moderate registrations tab that lists all the users’ registration info.

    I’m using the xprofile custom fields type plugin and I have two files fields in my registration. Currently under the additional tab column it lists the destination path to the file the user uploaded (/profiles/userID/filename).

    To be able to view or download that file from that column, would it be as easy as going into the plugin files and replacing the destination path with a download link to that path? I really need a way to view/download the files from the dashboard.

    Update: Got links to the files, so that’s great. Now I am trying to create a link to the user’s gravatar photo (link to the URL of the gravatar photo). This is my latest attempt: <p>Photo: <a href="<?php bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb') ); ?>" target="_blank">View Now</a></p>

    One last update. This is my attempt, which seems to get the first folder in the /avatars/ folder:

    <?php  $args = array(
        'item_id'       => true,
        'object'        => 'user',
        'type'          => 'full',
        'avatar_dir'    => 'avatars/' . $user_id . '/' ,
        'width'         => false,
        'height'        => false,
        'class'         => 'avatar',
        'css_id'        => false,
        'title'         => false,
        'alt'           => '',
        'email'         => false,
        'no_grav'       => false,
        'html'          => false,
        'extra_attr'    => '',
        'scheme'        => null,
        'force_default' => false
    );?>
    
    <p>Verification Photo: <a href="<?php echo bp_core_fetch_avatar( $args ); ?>" target="_blank">View Now</a></p>
    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Which part(s) are missing that you still need me for? Outputting data of some sort in the last column for the list of pending users?

    I created a link that appears at the bottom of the additional data column that I want to link to the photo of the gravatar the user uploaded during their registration. Here is that code:

    <?php  $args = array(
        'item_id'       => true,
        'object'        => 'user',
        'type'          => 'full',
        'avatar_dir'    => 'avatars/' . $user_id . '/' ,
        'width'         => false,
        'height'        => false,
        'class'         => 'avatar',
        'css_id'        => false,
        'title'         => false,
        'alt'           => '',
        'email'         => false,
        'no_grav'       => false,
        'html'          => false,
        'extra_attr'    => '',
        'scheme'        => null,
        'force_default' => false
    );?>
    
    <p>Verification Photo: <a href="<?php echo bp_core_fetch_avatar( $args ); ?>" target="_blank">View Now</a></p>

    It’s working except it’s not fetching the user’s gravatar photo; the above code fetches something like .../uploads/avatars/1/filename.jpg; “1” is the first folder in the avatars folder and not the userID of the current user.

    I wanted to see if you knew how to get the current user’s gravatar photo.

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘Anyway to see user registration before approving user?’ is closed to new replies.