This topic has 19 replies, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #96652
     regiswillm
    Participant

    add 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

    #96945
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #96960
     regiswillm
    Participant

    the problem is that this code makes the button disappear rather than redirect to the page membership, you have a solution?

    #96967
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #96974
     regiswillm
    Participant

    Ok thank you, I have another question, I tested your plugin “BuddyPress Cover Photo” but it does not support sweetdate, is normal?

    #96983
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #96996
     regiswillm
    Participant

    Yes it’s good, look attachments

    Attachments:
    You must be logged in to view attached files.
    #97000
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #97003
     regiswillm
    Participant
    This reply has been set as private.
    #97007
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #97018
     regiswillm
    Participant

    I’ll let you know tomorrow, thank you for your help

    #97035
     Laura
    Moderator

    Sure, will be here 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura 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 🙂

    #97379
     regiswillm
    Participant

    hello laura, but by disabling the plugin, it does not work, are you sure this plugin is compatible with the theme sweetdate?

    #97466
     Laura
    Moderator

    Hello, 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 plugin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura 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 🙂

    #97702
     regiswillm
    Participant

    hello, even disabling the plugin, it does not work, are you sure this plugin “BuddyPress Cover Photo” is consistent with the theme sweetdate?

    #97880
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #97942
     regiswillm
    Participant

    Hello,
    this is where this option comes with cover buddypress feature by default
    trhanks Laura

    #98092
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #98463
     regiswillm
    Participant

    Hello,
    this can not be resolved because you have not answered my question !!
    where is this option “cover” by default in buddypress feature
    Thanks Laura

    #98750
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

Viewing 20 posts - 1 through 20 (of 20 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?