Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] BP anonymous activity NOT working. #11036

    Closed the other topic. Closing it too now.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] BP anonymous activity NOT working. #11034

    Closing it and marking as resolved in favour of
    https://buddydev.com/support/forums/topic/bp-anonymous-activity-not-working-2/

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] BP anonymous activity NOT working. #11033

    You are welcome. Thank you for marking it as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] BP anonymous activity NOT working. #11031

    Thank you.
    We can easily do that using the following code

    
    <?php if ( ! bp_is_anonymous_activity( bp_get_activity_id() ) || is_super_admin() ) : ?>
    	<?php $member_id = bp_get_activity_user_id();
    	echo '<div class="name">' . bp_core_get_user_displayname( $member_id ) . '</div>';
    	echo '<div class="nice-name">@' . bp_core_get_username( $member_id ) . '</div>';
    	?>
    <?php endif ;?>
    
    

    Hope it works for you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] BP anonymous activity NOT working. #11029

    Hi,
    Sorry for my presumption.

    Please use the following code.

    
    <?php if ( ! bp_is_anonymous_activity( bp_get_activity_id() ) ) : ?>
    	<?php $member_id = bp_get_activity_user_id();
    	echo '<div class="name">' . bp_core_get_user_displayname( $member_id ) . '</div>';
    	echo '<div class="nice-name">@' . bp_core_get_username( $member_id ) . '</div>';
    	?>
    <?php endif ;?>
    

    I will only display the @ name for the non anonymous activity.

    Hope that helps.
    PS:- Please do not copy the code from the mail. Copy it from here on forum. The text sent on email is encoded and will cause problem.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] BP anonymous activity NOT working. #11027

    Hi Arik,
    Thank you. It’s strange that the other topic is not open for you.
    I am going to close that and link to here as that topic is not working for us.

    Thank you for finding the issue,
    You can use the following

    
    
    if( bp_is_anonymous_activity(  $activity_id ) ) {
    
    // 
    }
    
    

    for example, you can change your above code section to something like this

    
    <?php if( bp_is_anonymous_activity( bp_get_activity_id() ) ) :?>
    // what do you want to show here.,
    <?php else :?>
    
    Your original code here.
    <?php endif;?>
    
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] BP anonymous activity NOT working. #11025

    Hi Arik,
    I am very sorry, I haven’t closed the topic. It seems after my reply you were not able to reply or is there a chance that you were logged off.

    1. I value you purchasing our plugin and I am here to help. There is no question of closing any topic. I or my team will never do it. If it happened, my sincere apologies. We haven’t done it and I am still seeing the topic open, It is most probably some kind of confusion. Also, It is a public forums so I won’t achieve anything by closing an unanswered post.

    Can you please check it one more time and see if it is closed for you or is it some caching
    https://buddydev.com/support/forums/topic/bp-anonymous-activity-not-working/

    My email is brajesh@buddydev.com in case the topic gets closed or anything.

    I haven’t heard anyone about the topic getting closed, so If it is some kind of bug on our forum, My apologies in advance.

    Please check and let me know.

    About the issue- Most probably BuddyBoss wall is filtering on the displayed name and overwriding our name. I will check and update the plugin today.

    Thank you
    Brajesh

    PS: Please do check about the topic closing and let me knwo if it is still happening for you?

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    Thank you.

    Please use the Settings panel to keep the updated translated content for the email. The email contents are taken from settings and translation won’t have effect on it. So, Please use the settings panel for translating the email message subject/content.

    Please let me know if that works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] BP anonymous activity NOT working. #11022

    Hi Arik,
    Thank you for purchasing the plugin.

    Is there any chance that you are using a plugin/code to filter user display names in activity or anything like this?

    Also, what happens when you click on the user image in the activity stream, does it take to user page or somewhere else?
    PS:- Please make sure you are not logged in as site admin.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    Thank you.

    Please upgrade to 1.0.1
    https://buddydev.com/plugins/media-moderator-for-mediapress/

    Please let me know if you still see any issue.

    Thank you
    Brajesh