Replies
- Brajesh Singh on November 7, 2018 at 1:40 pm in reply to: [Resolved] paiement with featured Member #18599
Hi Herve,
Thank you.1. You should keep this from your old code.
add_action( 'super_after_paypal_ipn_payment_verified', 'ajout_membre_a_la_une_apres_paiement' ); function ajout_membre_a_la_une_apres_paiement($data){ $custom = explode('|', $data['post']['custom']); $form_id = $custom[0]; $user_id = $custom[3]; if( $form_id==112 ) { bp_featured_members()->add_user($user_id); update_user_meta( $custom[3], '_paid_featured', 1 ); } }The top section before class and replace everything else with the new code.
Thank you for clarification.
It seems to me that you will need two different interval methods depending on whether a user is paid or not.
We will need to update the code again to have the 2 situations. I will share the function in next 2 days.
Thank you
Brajesh - Brajesh Singh on November 6, 2018 at 2:10 pm in reply to: [Resolved] BuddyPress Member Types Pro – MemberShip Compability #18595This reply has been marked as private.
- Brajesh Singh on November 6, 2018 at 2:08 pm in reply to: [Resolved] paiement with featured Member #18594
Hi Herve,
1. I am not sure what that file is , you will need to replace the old class code with the new one.For others, Please help me understand better. I am sorry but I am unable to understand the requirements in your message.
Thank you
Brajesh - Brajesh Singh on November 6, 2018 at 2:03 pm in reply to: Group Tabs creator pro – how to change default home tab #18593
Hi Hugo,
I will look at the LMS extension today and will get back to you. I will be in a better position to explain/fix the issue once I take a look at it today.Thank ou
Brajesh - Brajesh Singh on November 6, 2018 at 7:05 am in reply to: Group Tabs creator pro – how to change default home tab #18588
Hi Hugo,
The plugin had issues with tabs added using BuddyPress Group Extensions. I found that these tabs were added too late and that’s why Group tabs was unable to find/update it.I have updated the group tabs plugin to make it work with the group extensions too.
Please use version 1.0.3
https://buddydev.com/plugins/buddypress-group-tabs-creator-pro/Let me know if it works for you or not?
Regards
Brajesh - This reply has been marked as private.
- Brajesh Singh on November 6, 2018 at 5:46 am in reply to: [Resolved] How to disable public and private messages for specific users #18586
Hi Tosin,
I haven’t been able to use the Message UX plugin yet. I will need a few more days before looking into it.Thank you
Brajesh - Brajesh Singh on November 6, 2018 at 5:45 am in reply to: [Resolved] Profile Visibility Manager v1.6.1 – Follow button? #18584
Thank you.
- Brajesh Singh on November 6, 2018 at 5:44 am in reply to: [Resolved] How to synchronize Woocommerce Membership Levels with Buddypress Groups #18583
Hi Rudolf,
Thank you for confirming.Please see
https://buddydev.com/support/forums/topic/disable-member-directory/
to disable BuddyPress members directory.
Hope that helps.
Regards
Brajesh - Brajesh Singh on November 5, 2018 at 1:37 pm in reply to: [Resolved] paiement with featured Member #18579
Hi Herve,
Here is the updated class.
https://gist.github.com/sbrajesh/45191a9497649750c607fe1bd43b68c8You can see the allowed time by the method
get_role_based_interval()There. Please feel free to change it.
Also, I have changed the strategy for storing details/removing users and it won’t work for old featured members.
The new strategy is:-
When a user is marked as featured, we find out the feature interval and save the future expiry time(in seconds).Using the cron job, we check if the expiry time is less than current time and if yes, we remove those users from featured.
Hope it helps.
Regards
Brajesh