Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

  • megin
    Participant

    @megin

    Hi @r-a-y,

    Thank you for your replay. I faced same issue in bulk message delete. Please help me to resolve the issue.


    megin
    Participant

    @megin

    Hello,

    Anybody please do reply to me.


    megin
    Participant

    @megin

    Thanks @djpaul.


    megin
    Participant

    @megin

    Hi,

    I have the same problem. Throughout the website, we make use of unique display_name. I didn’t get the real hook or filter to manage this situation. Please check the link below.

    change username to display name


    megin
    Participant

    @megin

    Thanks @danbp.


    @vn213322com
    , yes almost same as Facebook. You have any idea about that?


    megin
    Participant

    @megin

    Hi danbp,

    Thank you for your replay.

    My target is, show display_name all over the site.
    example:- while we are using @mention plugin, drop down user list shows the display_name. when we select any name, then the @display_name need to show on post field and also @display_name shows the activity display loops.


    megin
    Participant

    @megin

    Got the solution.

    using bp_groups_posted_update instead of bp_activity_posted_update.

    function add_meta_to_activity( $content, $user_id, $activity_id ) {
    
    bp_activity_update_meta( $activity_id, ‘option1’, $_POST[‘option1’] );
    
    }
    add_action( ‘bp_groups_posted_update’, ‘add_meta_to_activity’, 10, 4 );

    megin
    Participant

    @megin

    Hi @danbp,

    Thank you for your reply.
    I wrote bp-custom.php inside the folder( wp-content/plugins/).

    I would link to add extra field inside the file( buddypress/bp-themes/bp-default/activity/post-form.php) and need to insert that value on the table (wp_bp_activity_meta). I wrote the function for this purpose. Unfortunately its not working. please help.

    function add_meta_to_activity( $content, $user_id, $activity_id ) {
    
        bp_activity_update_meta( $activity_id, 'option1', $_POST['option1'] );
    
    }
    add_action( 'bp_activity_posted_update', 'add_meta_to_activity', 10, 3 );
Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar