Skip to:
Content
Pages
Categories
Search
Top
Bottom

Member Profile – combine "Profile, Activity, Favorites & Mentions"


  • carmeetsroad
    Participant

    @carmeetsroad

    Hi Guys,

    Using CBOX Theme
    Using newest release of BP/WP

    Im trying to combine “Profile, Activity, Favorites & Mentions” so that when people click on a members avatar it takes them to the profile page with member profile info, activity, and mentions

    *it almost works*

    the only thing im missing is “mentions & favoites” part.. what I did was add:

    <?php locate_template( array( 'activity/activity-loop.php' ), true ); ?>

    in /members/single/profile.php

    and that seems to work partly.. but i would love to add the “MENTIONS”, if possible “Favorites”

    profile.php looks like this

    
    <?php
    
    /**
     * BuddyPress - Users Profile
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php if ( bp_is_my_profile() ) : ?>
    
    	<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    		<ul>
    
    			<?php bp_get_options_nav(); ?>
    
    		</ul>
    	</div><!-- .item-list-tabs -->
    
    <?php endif; ?>
    
    <?php do_action( 'bp_before_profile_content' ); ?>
    
    <div class="profile" role="main">
    
    	<?php
    		// Profile Edit
    		if ( bp_is_current_action( 'edit' ) )
    			locate_template( array( 'members/single/profile/edit.php' ), true );
    
    		// Change Avatar
    		elseif ( bp_is_current_action( 'change-avatar' ) )
    			locate_template( array( 'members/single/profile/change-avatar.php' ), true );
    
    		// Display XProfile
    		elseif ( bp_is_active( 'xprofile' ) )
    			locate_template( array( 'members/single/profile/profile-loop.php' ), true );
    
    		// Display WordPress profile (fallback)
    		else
    			locate_template( array( 'members/single/profile/profile-wp.php' ), true );
    	?>
    
    <?php locate_template( array( 'activity/activity-loop.php' ), true ); ?>
    
    </div><!-- .profile -->
    
    <?php do_action( 'bp_after_profile_content' ); ?>
    
  • The topic ‘Member Profile – combine "Profile, Activity, Favorites & Mentions"’ is closed to new replies.
Skip to toolbar