pippinsplugins / bbpress-private-replies Goto Github PK
View Code? Open in Web Editor NEWA simple bbPress extension for allowing users to mark their replies as private
A simple bbPress extension for allowing users to mark their replies as private
When viewing the profile and Replies Posted section, private replies are still open to the public.
When a new private reply is posted, only site admins (users that have permission to view the reply) should get notified.
Shall we add an option to mark a whole topic and all its replies as private ? Isn't it too much?
When a user subscribes to a topic on a site with a URL that creates an invalid no-reply email, we can get a fatal error like this:
Fatal error: Uncaught phpmailerException: Invalid address: [email protected]/bbpress
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' )
I have the same problem with the previous post.
The topic author cannot read private replies from Participants.
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
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.
For example, I had a poster post a reply, but did make it private. When editing a reply, there should be a check box to make it private for the poster.
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.
We need to make sure that users subscribed to a forum do not get the "New reply posted" email when a different user posts a private reply.
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.
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
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 )
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.
Hello,
There should be the ability to mark full topics private. Could this be added?
Thanks.
we need to add the information in the revision log when a reply is set to private.
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
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' );
}```
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 ?? :)
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.
When an admin adds a private reply, no one excepted admins can see it. We should add an method that allows the topic's author to see the private message.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.