Replies
- Brajesh Singh on July 28, 2017 at 3:24 am in reply to: [Resolved] Redirect user if not member type #10089
You are welcome!
- Brajesh Singh on July 28, 2017 at 3:14 am in reply to: Missing a private wall/activity function of mediapress #10088
Hi Thorsten,
Thank you for posting about it. I have been debating about whether to have it or not for a long time?The problem I see:-
If we allow selecting privacy on the activity post, we will not only need to manage it for the gallery(or media) but also for the involved privacy.
BuddyPress supports very limited privacy either All or just me(only the poster). Implementing a custom privacy like friends only/followers only etc is not very efficient(specially on a medium,large size sites).BuddyPress does not have a roadmap for activity privacy, that makes this issue even more troublesome. What if we implement the privacy for activity and then BuddyPress team decides to add their own? What will happen to the existing updates in that case.
If we don’t take the activity privacy in account and just allow for media privacy, It will be a half baked solution.
I will not want to have a functionality in core for which we can not guarantee the interoperability in future.
I do understand that it is a need of the time for now so I am proposing to have it as a free addon that bridges it between BuddyPress Activity and MediaPress. Will that be ok with you?
Thank you
Brajesh - Brajesh Singh on July 27, 2017 at 6:15 am in reply to: [Resolved] Adding Usernames to Gallery Listing #10084
Hi Kristin,
Welcome to BuddyDev.Please use this snippet instead
/** * Add @gallery-creator-username after the title */ function mpp_custom_show_author_user_name_with_gallery() { $gallery = mpp_get_gallery(); if ( ! $gallery ) { return ; } echo '@' . bp_core_get_username( $gallery->user_id ); } add_action( 'mpp_before_gallery_actions', 'mpp_custom_show_author_user_name_with_gallery' );You may modify it to suit your need.
Hope that helps.
Regards
Brajesh - Brajesh Singh on July 27, 2017 at 5:53 am in reply to: [Resolved] Redirect user if not member type #10082
Hi Ahmed,
Please try this then.function yoostart_restriction() { if ( ! is_page('devenir-vendeur') ) { return ; } // we are sure we are on that page. // Is user logged in? if ( ! is_user_logged_in() ) { bp_core_redirect( home_url( '/test') ); } $member_type = bp_get_member_type( bp_loggedin_user_id() ); if ( empty( $member_type ) || 'particulier' === $member_type ) { bp_core_redirect( home_url( '/test') ); } } add_action( 'bp_template_redirect', 'yoostart_restriction' );Let me know if it works as expected or not?
- Brajesh Singh on July 27, 2017 at 1:52 am in reply to: [Resolved] Redirect user if not member type #10080
Is ‘particulier’ the only member type you want to redirect for? If yes, We can merge the last two conditions. Please let me know and I will post an update. Also, a better optimisation will be to check if ! is_page(‘page-name’) and return.
Regards
Brajesh - Brajesh Singh on July 26, 2017 at 4:56 pm in reply to: [Resolved] Found BuddyPress User Testiomonials issues #10077
Thank you.
That helped a lot.
I will push another update today then and will message back.
Thank you
Brajesh - Brajesh Singh on July 26, 2017 at 3:41 pm in reply to: [Resolved] Found BuddyPress User Testiomonials issues #10075
Hi Thorsten,
Thank you
1,2. Yes, I am aware.
1. is theme specific and that’s why I had mentioned that I will update the css on site after your upgrade.
2. Reordering:- Good idea, the button must be reordered. The sperator is again css but I can add that in plugin css.3. Confirmation message, is that when the testimonial is approved and the other user gets it? Sorry, I am not able to read the text.
Please let me know about the 3rd point and I will push an update again today.
Regards
Brajesh - Brajesh Singh on July 26, 2017 at 12:22 pm in reply to: [Resolved] Found BuddyPress User Testiomonials issues #10072
Hi Thorstein,
Hope you are doing well.Please upgrade to 1.1.2. It removes the new testimonial tab. Please let me know after the update as I will need to add some css on the site.
https://buddydev.com/plugins/bp-user-testimonials/
Thank you
Brajesh Hi Diana,
Thank you. I am doing well and hope the same for you.It’s good to know that the the Eonet Manual User Approve is working with it. we have our own Admin power tools coming in next two weeks that will have these functionality too.
Thank you for the details on the caldera forms. I am not much familiar with it. I will certainly look at it in next 2-3 days and will let you know if I will be able to provide an addon for it(Need to check the market for it).
Thank you
Brajesh- Brajesh Singh on July 26, 2017 at 10:02 am in reply to: BuddyPress Editable Activity – not working #10070
Hi Bogdan,
Thank you.About the link, It is temporarily set as text to avoid the server side round trip for generating actual content.
I will put some code that allows handling this, Hoping that this is a better experience for user. Please allow me till tomorrow.