BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24744

    Hi Brayden,
    you can update that code with this

    
    $activity_id = bp_get_activity_id();
        
    if( ! bp_is_anonymous_activity(  $activity_id ) ) :?>
    
    	<a href="<?php bp_activity_user_link();?>" <span class="text-primary"><i class="fa fa-paper-plane"></i> View </span><?php echo $xprofile_user;?> Profile</a>
    <?php else :?>
    	<a href="#"><span class="text-primary"><i class="fa fa-paper-plane"></i> </span> Anonymous </a>
    <?php endif;?>
    
    

    Also, you can modify it as you need.

    Hope that heps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24744

    Hi Jan,
    Thank you for posting.
    This is doable and we have done it in the past too. Since this plugin is going through major rewrite at the moment and I expect to release the next version by early next week, I will like to know if it is possible for you to wait till then? If not, i will post the code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24744

    Hi James,
    For the time being, you can put this in your bp-custom.php to allow direct publishing.

    
    add_filter( 'bcg_form_args', 'bcg_custom_form_args' );
    
    function bcg_custom_form_args( $args ) {
    	$args['post_status'] = 'publish';
    	
    	return $args;
    }
    

    Please do note that this plugin is going through rewrite at the moment and we will have a version ready by next week that will allow you to select these settings from Settings page.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24744

    Hi,
    Try Bp profile cover image plugin. They have used our code and modified it to set covers.
    https://wordpress.org/plugins/buddypress-cover-photo/

    Also, this is coming as part of BuddyPress 2.4

    Hope that helps

  • Keymaster
    (BuddyDev Team)
    Posts: 24744

    Hi Joshua,
    I personally have used only 4 bbPress plugins till date.

    1. Search BBPress 2.0 by Stephen Carrol:- Must if you need fully functional bbpress frum search

    2. GetShopped Support forums:- Slightly modified version of it. Using to give users point and rank for the bbpress posts. Also It allows us various topic status like resolved etc.

    3. bbPress Notify Admin:- Our very own plugin to get notifications whenever there is a new reply/new topic on the forum. It is very helpful if you are running support forums.

    4. bbPress backtick:- Again our own implementation to allow using backticks for posting code in bbPress forums. There is an alternative available as bbp backtick.

    That’s all I use. The first one is a must have for enhancing experience and the second helps you to have more engagement for the user.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24744
    Brajesh Singh on in reply to: [Resolved] Buddypress as Wire Plugin #1438

    Hi Joshua,
    since you had custom activity loop, It might have worked differently. I am glad you figured it out. Closing this topic as resolved now.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24744
    Brajesh Singh on in reply to: [Resolved] Buddypress Notification #1437

    Hi Joshua,
    Apologies for delayed reply.

    Please give the following code a spin.

    
    <?php 
    $css_class = '';
    $unread_notifications = bp_notifications_get_unread_notification_count( get_current_user_id() );
    
    if( $unread_notifications ){
    	$css_class = 'has-new-notifications';
    }
    
    ?>
    <a href="<?php bp_notifications_permalink();?>" class="someclass <?php echo $css_class;?>"> Notification</a>
    
    

    You will need to modify it for the icons or update for your theme but it shows how to add extra class when there are new notifications and link to the notifications page.

    If you want to link to unread notifications, you may update the bp_notifications_permalink() with bp_notifications_unread_permalink()

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24744
    Brajesh Singh on in reply to: Thank You To Brajesh #1425

    Hi Joshua,
    Thank you. I highly appreciate your generosity and supporting us.

    Hoping to assist even better in future 🙂
    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24744
    Brajesh Singh on in reply to: [Resolved] Blog categories #1424

    Hi,
    Apologies for my delayed reply.

    I believed you have group directory enabled. you can visit Groups directory and then click on individual group and there you can manage things. You can do it from your profile too but that only lists the groups you are member of.

    Hope it is more clear now.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24744

    Hi Brayden,
    Apologies for the delayed reply.
    Please use this code instead

    
    $activity_id = bp_get_activity_id();
        
    if( ! bp_is_anonymous_activity(  $activity_id ) ) :?>
    
    	<a href="<?php bp_activity_user_link();?>" <span class="text-primary"><i class="fa fa-paper-plane"></i> View </span><?php echo $xprofile_user;?> Profile</a>
    <?php endif;?>
    
    

    Here we are only showing the link if the user is not anonymous, otherwise nothing will be shown.