• LBLW

    (@lblw)


    Hi there,

    First of all; I really love the plugin! I was searching for such a function for a long time now, and I’ve tried everything. Please keep on develophing this plugin!

    I have managed to get the plugin working and it let’s us know when members birthday arrived. But now I tried to put the code you provide to another user, so that members can celebrate each other on their birthday.

    accept, I see the link, but I get an error. Could you please tell me what I’m missing or doing wrong? I use buddy Boss, I don’t know if that’s a problem.

    kind regards,
    Chari LBLW

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Prashant Singh

    (@prashantvatsh)

    Hi

    Thanks for your kind words.

    But now I tried to put the code you provide to another user, so that members can celebrate each other on their birthday.

    Could you please explain this more? Which code you have provided to another user?

    Kind Regards
    Prashant

    Thread Starter LBLW

    (@lblw)

    Hi Prashant Singh,

    SO very happy that you are replying! Thank you very much.

    I meant I was using the code u gave to another user (question, on this website) to try to get the notification working. But unfortunately, it doesn’t work for me. See the code below. Can u please help me figuring out what to do, so I can get it working? I hope you can help!

    Thank you in advance Prashant Singh!,

    Kind regards,
    LBLW.nl

    <strong><strong>function ps_filter_bp_get_button( $button_contents, $args, $button ) {
    if($args[‘link_text’] == ‘Wish Happy Birthday’){
    $mmbr_id = str_replace(‘private_message-‘, ”, $args[‘id’]);
    $custom_url = get_user_meta($mmbr_id, ‘private_message-‘,true); // If URL is not saved in user_meta then you can change this function to get user URL.
    $button_contents = ‘<div class=”send-private-message generic-button” id=”bpbp-custom-userurl”>Wish Happy Birthday</div>’;
    }
    return $button_contents;
    }
    add_filter( ‘bp_get_button’, ‘ps_filter_bp_get_button’, 10, 3 );</strong></strong>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notifications Greetings’ is closed to new replies.