Replies
Hello Brajesh,
Im currently testing buddypress version 11.0 beta 2 and I discovered an issue/conflict with the code I shared above.
After publishing an article, the activity link is being displayed in this format (https://www.site.com/article//) instead of (https://www.site.com/?p=40926). This (https://www.site.com/article//) leads to 404 error.
This issue started when this feature was added https://buddypress.trac.wordpress.org/ticket/8052
Can you help simply the code I shared with you so it does not affect the links in activity update output.
Thanks
- Tosin on November 26, 2022 at 4:24 pm in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #47452
Thanks
This is now resolved
Thanks you very much Brajesh
- Tosin on November 15, 2022 at 12:27 pm in reply to: [Resolved] Redirect users immediately after profile photo upload #47362
Thanks Brajesh my issue is now resolved
- Tosin on November 12, 2022 at 10:05 am in reply to: [Resolved] Redirect users immediately after profile photo upload #47309
Thanks Brajesh
The code worked perfectly, I solved the perfmatters issue by disabling defer javascript function when viewing logged in user profile with the code below
/* Turn off perfmatters jd defer on change avatar page */ add_filter('perfmatters_defer_js', function($defer) { if(bp_is_my_profile()) { return false; } return $defer; });
It would have been awesome if their was a function to target only the (change profile photo) page instead of using bp_is_my_profile()
Alternatively which javascript code does your code work with and where is it located in the buddypress folder maybe I could just exclude the js file path from the defer function
- Tosin on November 11, 2022 at 11:37 am in reply to: [Resolved] Redirect users immediately after profile photo upload #47294
With perfmatters I had defer javascript option enabled, is there a work around?
- Tosin on November 11, 2022 at 11:26 am in reply to: [Resolved] Redirect users immediately after profile photo upload #47293
Tested this again and it now works there was a conflict with perfmatters (https://perfmatters.io/) plugin
I also noticed that there is a redirect when photo is deleted, how can I stop this the redirect should only work for photo upload and not photo delete.
Thanks
- Tosin on November 11, 2022 at 11:22 am in reply to: [Resolved] How to disable all activity meta buttons #47292
Thanks Brajesh this is now resolved
- Tosin on November 10, 2022 at 6:10 pm in reply to: [Resolved] How to disable all activity meta buttons #47286
The filters are ok
I also don’t want the comments to be recorded in database
For example when a user comments on a blog post, buddypress should not record a corresponding activity for the comment.
Thanks