-
Author
-
January 6, 2016 at 16:31 #96652
regiswillm
Participantadd as friend button restriction in member profiles depending on membership level as for the private messages, but I have found this code on the forum and it makes disappear the button rather than redirect to the page accession (see currently found code).
/* Remove the Add friend button for users that don’t have certain membership levels */add_action(‘after_setup_theme’, ‘restrict_friend_button’);function restrict_friend_button(){$membership_levels = array(2,3);if (!pmpro_hasMembershipLevel($membership_levels) ) {remove_action( ‘bp_member_header_actions’, ‘bp_add_friend_button’, 5 );remove_action(‘bp_directory_members_item_last’,‘kleo_bp_member_dir_friend_button’, 11);}}thanks for your help,
Régis
January 7, 2016 at 17:05 #96945Laura
ModeratorHello, i see, what is the issue exactly? 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 7, 2016 at 17:23 #96960regiswillm
Participantthe problem is that this code makes the button disappear rather than redirect to the page membership, you have a solution?
January 7, 2016 at 17:28 #96967Laura
ModeratorHello, right now its not available, but we will add more features in the near future 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 7, 2016 at 17:32 #96974regiswillm
ParticipantOk thank you, I have another question, I tested your plugin “BuddyPress Cover Photo” but it does not support sweetdate, is normal?
January 7, 2016 at 17:40 #96983Laura
ModeratorHello, have you tried going to Settings > Buddypress > Settings and check to use bp plugin?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 7, 2016 at 17:54 #96996regiswillm
ParticipantYes it’s good, look attachments
Attachments:
You must be logged in to view attached files.January 7, 2016 at 17:56 #97000Laura
ModeratorHello, i see, can you share an user so i can check it out? 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 7, 2016 at 18:05 #97007Laura
ModeratorHello, i see the issue, please try deactivating some plugins, it could be a conflict
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 7, 2016 at 18:18 #97018regiswillm
ParticipantI’ll let you know tomorrow, thank you for your help
January 7, 2016 at 18:34 #97035Laura
ModeratorSure, will be here 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 8, 2016 at 20:03 #97379regiswillm
Participanthello laura, but by disabling the plugin, it does not work, are you sure this plugin is compatible with the theme sweetdate?
January 9, 2016 at 14:54 #97466Laura
ModeratorHello, i ment disable some plugins and test again, if the snippet doesnt work even like that then you would need another snippet.
PaidMembershipsPro plugin is compatible with Sweetdate, you are just testing a custom snippet which is not part of the theme or the pluginHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 11, 2016 at 09:34 #97702regiswillm
Participanthello, even disabling the plugin, it does not work, are you sure this plugin “BuddyPress Cover Photo” is consistent with the theme sweetdate?
January 11, 2016 at 21:42 #97880Laura
ModeratorHello, it is, buddypress comes with cover feature by default, if you want to test it disable the bp cover photo plugin
If anything let me know 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 12, 2016 at 11:57 #97942regiswillm
ParticipantHello,
this is where this option comes with cover buddypress feature by default
trhanks LauraJanuary 12, 2016 at 19:20 #98092Laura
ModeratorHello, so this is resolved? Let me know 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 14, 2016 at 09:44 #98463regiswillm
ParticipantHello,
this can not be resolved because you have not answered my question !!
where is this option “cover” by default in buddypress feature
Thanks LauraJanuary 15, 2016 at 22:36 #98750Laura
ModeratorHello, if you disable the bp cover plugin, buddypress cover will be available by default
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
You must be logged in to reply to this topic.