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: 25407
    Brajesh Singh on in reply to: BuddyPress Private Message Rate Limiter #11042

    Hi amv,
    Is there a chance that you were logged in as super admin while testing the plugin.

    The plugin does not apply any limit when the message sender is super admin.

    For limit to admin, this plugin is not suitable for that purpose. This plugin is mostly aimed at restricting message flooding.

    We do have the message privacy plugin that partially does the job. The problem is that plugin does not have an option to disable the settings for users yet.

    If you want, I can post some code that will allow admin only message. Please do note that it won’t work with the Rate limiter plugin.

    Please let me know and I will do the needful.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    Brajesh Singh on in reply to: Display Bp Featured Member on template #11039

    Hi Edwrd,
    Welcome to BuddyDev.

    The simplest way will be to use the shortcode. Using shortcode is much more flexible(options).

    for template(using php), there is no better way than this.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    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: 25407
    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: 25407
    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: 25407
    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: 25407
    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: 25407
    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: 25407
    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: 25407

    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