BuddyDev

Search

BuddyPress Message Privacy help

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #9904

    Hi,
    I have added the support to use nice name instead of the login name.

    You will need to add the following code in your theme’s functions.php or in the bp-custom.php(plugins directory)

    
    /**
     * Use nicename as token for the message privacy plugin.
     *
     * @param string $type 'default' or 'nicename'.
     *
     * @return string
     */
    function buddydev_use_nicename_for_user_token( $type ) {
    	return 'nicename';
    }
    add_filter( 'bpdmp_user_identifier_type', 'buddydev_use_nicename_for_user_token' );
    
    

    https://buddydev.com/plugins/buddypress-message-privacy/

    Since it was the only option, I avoided adding the admin option and bloating the plugin. We will have the option in admin once we release our next generation dashboard for BuddyDev.

    Please do let me know if it works or not?

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 64
    Graham on #9909

    Thanks Brajesh,

    Please let me know when the new version works and comes out, so I can order it.

    Since I have never used any of your software, if I order only one months support and at a future date the plugin stops working properly due to a WP upgrade, what happens?

    Do I just order another month’s support? If so, do I have to re-install the plugin, or will it update itself by overwriting the existing one?

    Thanks,
    Graham

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #9910

    Hi Graham,
    Version 1.1.0 is available now which contains the update.

    About upgrades:- If it stops working for a future version of WordPress/BuddyPress and that happens beyond the included free upgrade period, you will need to buy it again.

    If you have the BuddyDev dashboard installed(Please see your account settings page for the API Key), You can seamlessly upgrade(Just like any plugin from wp.org)

    Hope that clarifies.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 64
    Graham on #9911

    Hi Brajesh,

    Thanks for clearing that up. I will check it out.

  • Participant
    Level: Enlightened
    Posts: 64
    Graham on #9912

    Hi Brajesh,

    Set up the BuddyDev dashboard and verified API key. Then bought the plugin with 12 month’s support.

    Installed the plugin and set my own (and two test members) to allow all.

    Now, neither I nor the other two members can send any messages. You get an error saying you did not select a recipient, even though they are showing in that field.

    Deactivated the plugin and messages worked again.

    What am I doing wrong?

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #9913

    Hi Graham,
    My apologies for the inconvenience.

    May ask if you are using the setup code for nicename?

  • Participant
    Level: Enlightened
    Posts: 64
    Graham on #9914

    I can’t see anywhere to set that. I have a very busy dashboard and can’t find that. Where do I set that?

  • Participant
    Level: Enlightened
    Posts: 64
    Graham on #9915

    Do I have to add the code above to my child functions.php file?

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #9916

    Please wait. I am adding the option in admin in next 30 mins. I understand now that It was a bad idea to ask adding code.

  • Participant
    Level: Enlightened
    Posts: 64
    Graham on #9918

    Don’t know if it’s related, but I only have ONE php file in my plugin – “buddypress-message-privacy.php”

    There is no “bp-custom.php” or any other php file.

You must be logged in to reply to this topic.

This topic is: not resolved