Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • luckyrajiv
    Participant

    @luckyrajiv

    Yes, I have Added another Stream as a Wall for Activity rather than using Personal.

    Thanks.


    luckyrajiv
    Participant

    @luckyrajiv

    @ljmac It works now, but one problem, I had to remove this line

    		$following = bp_follow_get_following( array( 'user_id' => $user_id ) );
    

    After this it works, but one more problem, Now all Personal , Favorites, Groups, Mentions have the same stream like wall.

    What i have actually done See here:
    At bp-activty-template.php I added

    	if ( 'wall' == $scope || 'just-me' == $scope || 'friends' == $scope || 'groups' == $scope || 'favorites' == $scope || 'mentions' == $scope ) {
    

    then

    			switch ( $scope ) {
    				case 'wall':
    					if ( bp_is_active( 'friends' && 'bp-follow' ) )
    						$friends = friends_get_friend_user_ids( $user_id );
    						$me = array( bp_loggedin_user_id() );
    						$wall = array_merge_recursive( $friends, $me );
    						if ( empty( $wall ) )
    					return false;
    						$user_id = implode( ',', (array) $wall );
    						$display_comments = true;
    					break;	
    					
    				case 'friends':
    					if ( bp_is_active( 'friends' ) )
    						$friends = friends_get_friend_user_ids( $user_id );
    						if ( empty( $friends ) )
    							return false;
    
    						$user_id = implode( ',', (array) $friends );
    					break;
    

    And After that i Replace the line in Theme/Activity/activity-loop.php

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).'&scope=wall' ) ) : ?>
    

    luckyrajiv
    Participant

    @luckyrajiv

    @ljmac yes, i had added the code to bp-activity-template.php.


    luckyrajiv
    Participant

    @luckyrajiv

    After Adding this

    <?php if ( bp_has_activities( ‘scope=wall’ ) ) : ?>

    by replacing this line

    <?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) ) ) : ?>

    in theme/activity/activity-loop.php

    It shows the Wall in Personal Sub-Nav, But it does show me and my friends updates.

    The Problem is after scrolling down the page it shows LOAD MORE, and when clicked it shows the same Last 20 Updates every time i click LOAD MORE, rather than showing Old 20 Updates.

    Ex: if i have a to h when i click load more it should show i to z , but it shows a-h again and again.

    PLEASE HELP.


    luckyrajiv
    Participant

    @luckyrajiv

    Okay. Thanks for the info.

    Forget about Breadcrumbs. Is there any function to make homepage redirect to user profile page once the user is logged in?

    Basically, I want to remove the homepage once the user is logged in.

    Because there is no point showing the user, homepage ( with slides and details about the site ), once they are logged in.


    luckyrajiv
    Participant

    @luckyrajiv

    its not working. i added in bp-custom.php and functions.php in child theme. None of them are working.


    luckyrajiv
    Participant

    @luckyrajiv

    TOPIC IS RESOLVED.


    luckyrajiv
    Participant

    @luckyrajiv

    Thanks a Lot Henry.

Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar