Viewing 13 posts - 1 through 13 (of 13 total)
  • Question

    #53613
    @jasonvphase2solutions

    I am running the Reply by Email plugin along with a plugin called Site Private (https://wordpress.org/plugins/site-private/). I am not receiving messages back from email with the Site Private plugin active. When I deactivate that plugin the Reply by Email plugin works fine. The Site Private is a very simple plugin with one file. See below for the code. What might be causing the issue here?

    defined('ABSPATH') or exit;
    
    function siteprivate_redirect()
    {
        global $pagenow, $current_user, $current_blog, $bp;
    
      // get current user's information
      get_currentuserinfo();
      // use WPMU function is_user_member_of_blog() to check site membership
      $userID = $current_user->ID;
      $blogID = $current_blog->blog_id;
      
    
       if ('wp-login.php' !== $pagenow 
    	&& !current_user_can('subscriber') && !current_user_can('contributor') && !current_user_can('author') && !current_user_can('editor') && !current_user_can('administrator')
    	   ) {
           // auth_redirect();
    		wp_redirect( wp_login_url( $redirect ) );
        exit();
        }
    }
    
    add_action('plugins_loaded', 'siteprivate_redirect');
    

    Answers

    #53680
    @adminzenoed

    I’m using WP Require Auth and I think this also seems to reject direct post if not logged in.. not so sure tho’.. I am sure BB team can help to allow http_post to ‘/wp-admin/admin-ajax.php?action=cloudmailin_incoming_service’ through…

    #53688
    @vapvarun

    Hi @adminzenoed @jasonvphase2solutions
    I have notified developer to cross check approach, there are several plugin which normally people use to lock down their site to build private community.
    I hope solution will be plugin specific , every plugin use a different approach.
    Regards
    Varun Dubey

    #54087
    @vapvarun

    Hi @jasonvphase2solutions
    Please add this plugin , it will fix the issue
    Extract the zip and upload the php file inside your plugin folder just like hello.php
    It is plugin specific solution only if your are using https://wordpress.org/plugins/site-private/

    Regards
    Varun Dubey

    #54090
    @vapvarun

    Hi @adminzenoed
    Please add this plugin , it will fix the issue
    Extract the zip and upload the php file inside your plugin folder just like hello.php
    It is plugin specific solution only if your are using WP Require Auth

    Regards
    Varun Dubey

    #55065
    @bradleyrf

    Hey Varun,
    I use Private Community for BP Lite to keep my site private. It’s no longer a free plugin but if you need a copy to create a workaround for me I can send you the version I have.

    Thanks for all you do.

    #55075
    @vapvarun

    Hi @bradleyrf, Please sent them at [email protected]

    Regards
    Varun Dubey

    #55809
    @vapvarun

    Hi @bradleyrf, I have attach a plugin file please install it along with Reply by Email.
    Regards

    #55811
    @vapvarun

    Added fix for BP member Only

    Regards

    #55917
    @jasonvphase2solutions

    Thank you Varun! It works perfectly. One last question, if you are using a different login url, how should the plugin fix be modified. I’m using (https://wordpress.org/plugins/rename-wp-login/) and tested it with the fix and it didn’t work. When I deactivated rename-wp-login it worked fine. I’m thinking it has something to do with $pagenow.

    Thanks again for your help. Much appreciated!

    #56051
    @vapvarun

    Hi @jasonvphase2solutions
    you can pass page slug instead of wp-login.php
    Regards

    #56070
    @bradleyrf

    @vapvarun — I uploaded private-community-rbe-fix.php to the /plugins/buddyboss-reply-by-email folder.

    When running a test from the dashboard, I’m able to send the test email. But when I reply to that email it never comes and I get the following error in the logs:

    Failed incoming mail error: (From source doesn’t have permission with this token.

    Plus a get a failed reply message in my inbox.

    Thoughts?

    #56117
    @vapvarun

    Hi @bradleyrf, you will need to install it as separate plugin and activate it
    File will goes to /plugins/
    Regards

Viewing 13 posts - 1 through 13 (of 13 total)
  • The question ‘Plugin conflict’ is closed to new replies.