Replies
- Richard Foley on January 11, 2019 at 8:48 am in reply to: [Resolved] BP AutoLoader loads 7 months ago #20137
And so quick! 🙂
- Richard Foley on January 11, 2019 at 8:47 am in reply to: [Resolved] BP AutoLoader loads 7 months ago #20136
hi Brajesh,
glad to have nudged you into an overdue update (and rewrite) of this very useful little plugin. It works fine and just as expected, many thanks!
Closing.
R.
- Richard Foley on January 9, 2019 at 7:13 am in reply to: [Resolved] MediaPress user hogging site feed (moderation control?) #20079
ps. I’ll still take a look at your more advanced restrictions plugin when you release it, but this has taken the edge off the urgency for the moment. Again, this was a very helpful solution and I really appreciate your helping me with this task, Brajesh. Thank you.
R.
- Richard Foley on January 9, 2019 at 4:20 am in reply to: [Resolved] MediaPress user hogging site feed (moderation control?) #20077
hi Brajesh,
I’m using your code, and it’s working as expected. Very flexible and works well with your plugin. Clearly I need to read up on classes in PHP, I was expecting that to work differently.
Great job – many thanks again for stepping in!
R.
- Richard Foley on January 8, 2019 at 7:01 pm in reply to: [Resolved] MediaPress user hogging site feed (moderation control?) #20064
hi Brajesh,
that looks very helpful, I think my solution was a tad “naive”, yours looks much more complete (and functional…). I’ll look at it tomorrow and be sure to let you know how I get on.
R.
- Richard Foley on January 8, 2019 at 6:40 pm in reply to: [Resolved] MediaPress user hogging site feed (moderation control?) #20062
hi Brajesh,
an example using a role, or capability, would be really useful.
R.
- Richard Foley on January 8, 2019 at 4:36 pm in reply to: [Resolved] MediaPress user hogging site feed (moderation control?) #20057
Looking at this a bit more, I’m thinking I might need to remove and replace your can_post_update() function entirely (via remove_action) and replace it (via add_action) with my own capability logic. Hmmm.
- Richard Foley on January 8, 2019 at 3:39 pm in reply to: [Resolved] MediaPress user hogging site feed (moderation control?) #20054
notes: this seemed to work, or at least the rate-limiter plugin certainly kicked in. However, it appeared to block all users, not just the ones I was after (with the restricted role). It’s possible I may be using the action/call incorrectly?
R.
- Richard Foley on January 8, 2019 at 3:01 pm in reply to: [Resolved] MediaPress user hogging site feed (moderation control?) #20053
hi Brajesh,
here’s my question… I currently have this boilerplate, but am unsure how it will mesh with your class. Possibly I need to initialize, or call a global instance, here.
// ignore the $user arg, just ask about the current user. function my_restrict_post( $user ) { // use my capability to block based on the user role if ( current_user_can( 'not_post_freely' ) ) { return false; // block the post } return true; // let the user post } add_filter( 'can_post_update', array( 'BP_Rate_Limit_User_Activity_Helper', 'my_restrict_post' ) );
How does this look – advice always welcome…
R.
- Richard Foley on January 8, 2019 at 9:40 am in reply to: [Resolved] Assist with lightbox display for guests #20048
hi Brajesh,
this is functioning as expected. It took me a while to work out why it wasn’t at first, and it turned out I had another “feature” enabled which rerouted around the request, once I’d found that and fixed it everything behaved correctly.
I do realize this is somewhat outside your remit of support for your own plugins, so an extra many thanks again for your assistance with this!
R.