Giter Site home page Giter Site logo

bbpress-private-replies's People

Contributors

chriscct7 avatar corsonr avatar fastlinemedia avatar fxbenard avatar jrfnl avatar kingyes avatar pippinsplugins avatar rahul286 avatar shazahm1 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

bbpress-private-replies's Issues

Private replies from non-OP users emailed to OP

We've had threads where other non-moderator/non-OP users posted private replies. These private replies are hidden from the thread author (OP) when viewing the forums (good IMO) but are still emailed to the OP if the OP subscribes to the thread.

I believe the email behavior should match the behavior of what is hidden in the forum.

To do this, the second half of this conditional be removed:
https://github.com/pippinsplugins/bbPress-Private-replies/blob/master/bbp-private-replies.php#L274

So just if( user_can( $user_id, 'moderate' )

Author cannot read private replies...

I have the same problem with the previous post.

The topic author cannot read private replies from Participants.

  • The author can read private replies from the Keymaster and Moderators.
  • The poster of the private reply can read it.
  • The Keymaster and Moderators can read the private reply.

Private replies are covered in blue, so it looks it's partly working, but not perfectly...

Does anybody have any solutions??

Wordpress 4.9.8 bbPress 2.5.14 bbPress Private Replies 1.3.3

Topic Author can't read private replies

Hi, great plugin but I am having difficulties making it work.

The private reply content can be seen by Admins, the reply author but not the topic author.

The topic author is logged in.

Using bbpress 4.7.4 and your version 1.3.3.

Any help would be appreciated.

Add Disable Private Replies Option to Forums

Each individual forum should be able to disable the option to use private replies. I think this should just be a checkbox that says Disable Private replies. If the box is checked, users will not be able to set a reply as private.

Suggestion: Private replies that only the forum moderators can see

The plugin currently works as follows, as per the description: "the original poster and forum moderators can see the content of the reply".

It'd be great if, for moderators, there was also a second possibility available: a private reply which only forum moderators can see. This would allow forum moderators to leave notes, either for themselves or for other moderators, that the original poster can't see.

Filter for capability

We would like to change the capability required to view private replies from moderate to administrator. Currently, there is no way to do that, so I'm proposing a new filter that would allow us to change this. Here's an example of what I'm thinking...

public function get_capability() {
    return apply_filters( 'bbp_private_replies_capability', 'moderate' );
}

Which can be used in the various parts of the plugin where needed like so...

user_can( $reply_author, $this->get_capability() )

I would be happy to submit a pull request if you think this is something you would be willing to include. Let me know!

Thanks,
Justin

Major bug allowing private replies to be visible to the public.

The bug is in the hide_reply() function.

$current_user->ID will === int 0 if user is not logged in.

$reply_author = bbp_get_reply_author_id( $reply_id ); will === int 0 if user is not logged in.

So this will eval to true when users are not logged in allowing private replies to be visible to the public.
if( $reply_author == $current_user->ID )

Add CSS to Style Private Replies

I'd like to see the background color of private replies get changed to reflect their private status, in the same way that closed / spam topics/replies have their backgrounds changed.

Private replies are still displayed in BuddyPress Activity Streams

I was looking for a solution for this topic and fixed it using following code. I am not plugin developer. Kindly check it if its okay

http://wordpress.org/support/topic/private-replies-are-still-displayed-in-buddypress-activity-streams?replies=5

public function update_reply( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $author_id = 0, $is_edit = false ) {

        if( isset( $_POST['bbp_private_reply'] ) ){
            update_post_meta( $reply_id, '_bbp_reply_is_private', '1' );

            add_filter( 'bbp_is_site_public', 'yourownprefix_enable_bbp_activity', 10, 2);

            function yourownprefix_enable_bbp_activity( $public, $site_id ) {
              return false;
            }
        }
        else
            delete_post_meta( $reply_id, '_bbp_reply_is_private' );

    }```

Remove action that triggers the css file

I think it is a waste to use a request for one line of css, so I am trying to remove the action that is triggering the enqueued css file:

remove_action( 'wp_enqueue_scripts', array( 'BBP_Private_Replies', 'register_plugin_styles' ), 1000 );

The above is not working. Can you help me out with htis @pippinsplugins ?? :)

Provide option to override the default `do_not_reply` email address

In the recent version of bbPress, the way subscription emails are generated is changed and I see that you have made this commit to fix it. But unfortunately there are couple of problems in the way the default do_not_reply is generated. They are documented in this bbpress forum post and blog post

This ticket in bbPress fixes most of the issues with the default do_not_reply email address and also adds some filters so that people can change them if needed. The do_not_reply email address generation logic should be changed to the one that is used in the ticket so that it fixes the issues with it.

Private replies in email to any topic/thread subscribers

Hey Pippin, thanks for the awesome plugin.

In a recent version you fixed the thread subscribers email issue in which any user that was subscribed to the thread would get the private message in the inbox but after a lot of testing with multiple user accounts, it seems that the fix is not working. The hook seems to be not working at all.

Please take a look and let me know if you can help!

A hotfix would be appreciated.

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.