Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 30 total)

  • tronix-ex
    Participant

    @tronix-ex

    @danbp I actually got it, the function is in this file.

    bbpress\includes\common\formatting.php

    Thanks for your time, you can close the topic.


    tronix-ex
    Participant

    @tronix-ex

    Hi @danbp,

    Thanks for your reply. Sorry for didn’t mention that yes I want this in a bbpress topic is there a way to do this?

    Thanks,


    tronix-ex
    Participant

    @tronix-ex

    Bump!!!

    I need the “Load Newest” feature in the single member page. see below

    Example:
    mysite.com/members/user/activity

    Currently its working only on the main activity page. see below

    Example:
    mysite.com/activity/

    please help.


    tronix-ex
    Participant

    @tronix-ex

    @danbp thanks for your response I’ve used the below code as per the suggested link but still it dosen’t work.

    function my_bp_activities_per_page_5_on_user_activity( $retval ) {
        // only fetch the last five entries if we're on a user's activity page
        if ( bp_is_user_activity() ) {
    	$retval['action'] = 'bbp_reply_create, bbp_topic_create, activity_update';
    	$retval['object'] = 'profile, status';
     } 
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activities_per_page_5_on_user_activity' );

    tronix-ex
    Participant

    @tronix-ex

    Hi @danbp,

    Thanks for your response. How to define 2 filters in a loop I am using the below filter but it doesn’t work

    <php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&object=profile,status&action=bbp_reply_create,bbp_topic_create' ) ) : >

    Please help.

    Thanks,


    tronix-ex
    Participant

    @tronix-ex

    Also I want to show the user display name instead of user name


    tronix-ex
    Participant

    @tronix-ex

    Currently I am looking for this also


    tronix-ex
    Participant

    @tronix-ex

    You may be find the solution but I am pasting my solution here if someone else needed this.

    <?php
    $user_id = bp_is_user() ? bp_displayed_user_id() : bp_loggedin_user_id() ;
    
    $args = apply_filters( 'bp_show_friends_args', 
    			array( 
    				'user_id'        => $user_id, 
    				'type'           =>'active', 
    				'per_page'       => 6,
    				'max'            => $limit, 
    				'populate_extra' => 0
    			)
    		);
    
    if ( bp_has_members( $args ) ) { ?>
    		    	<ul class="bpsf-members">
    			      <?php while ( bp_members() ) : bp_the_member(); ?>
    
    			      	<li class="bpsf-member">
    				        <div class="item-avatar">
    				          	<a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name();?>">
    				          		<?php bp_member_avatar( $avatar_args ) ?>
    				          	</a>
    				        </div>
    				        <?php do_action( 'bp_show_friends_after_friend_avatar', bp_get_member_user_id() );?>
    				    </li>
    
    			      <?php endwhile; ?>
    			     </ul>
    <?php } ?>

    tronix-ex
    Participant

    @tronix-ex

    Nevermind I just fixed it myself, some extra function was conflicting with it.

    Cheers!


    tronix-ex
    Participant

    @tronix-ex

    Ok after the latest update 2.7 my site doesn’t load the older activities on “Load More” button. It was working fine with the older version


    tronix-ex
    Participant

    @tronix-ex

    When members do any activitiy SWA will show(without reload the page) load newest button but this is not working in the single member profile page if member do any activity it doesn’t show load newest.


    tronix-ex
    Participant

    @tronix-ex

    I am actually asking for the “Load Newest” not load more. Load Newest is working on the Site-Wide activity but not in Member profile activity.


    tronix-ex
    Participant

    @tronix-ex

    I figured this out danbp you can close the topic please.


    tronix-ex
    Participant

    @tronix-ex

    I figured this out you can close the topic.


    tronix-ex
    Participant

    @tronix-ex

    Nevermind it works danbp you can close the topic. Ton of thanks for your help.


    tronix-ex
    Participant

    @tronix-ex

    That worked thank you so much, why am I getting repeated activity upon load more?


    tronix-ex
    Participant

    @tronix-ex

    Hi Danbp,

    You are simply awesome it worked, now all I need is to show 50 activities per page. I’ve used the below code but it still showing 20 activities.

    function bpfr_filtering_activity( $retval ) {
    if ( bp_is_page( 'activity' ) ) {
    	// activities to filter on, comma separated
    	$retval['action'] = 'new_forum_post, new_forum_topic';
    	$retval['max'] = '50';
    }		
    		return $retval;
    	}	
    add_filter( 'bp_before_has_activities_parse_args', 'bpfr_filtering_activity' );

    Thanks,


    tronix-ex
    Participant

    @tronix-ex

    Hi Danbp,

    Thanks for your help and the span tag is now working like a charm. But why the rich texteditor is not working for messages/single.php, I am using the same function as messages/compose.php for single also but it gives error There was a problem sending that reply. Please try again.

    Please help on this.

    Thanks,


    tronix-ex
    Participant

    @tronix-ex

    Thats right me either need this as its working in the compose message but not in reply message.

    Please help.


    tronix-ex
    Participant

    @tronix-ex

    yes that works for members header and showing active user time. But I want to display the last activity(comments/posts/replies/topic-created) time of each online user.

    For example:

    [avatar] user last activity was at 11:00pm
    [avatar] user last activity was at 03:17am
    [avatar] user last activity was at 09:29am


    tronix-ex
    Participant

    @tronix-ex

    Thanks for your response danbp but its a different thing that you suggested.


    tronix-ex
    Participant

    @tronix-ex

    I even tried to pull the data using this <?php echo bp_activity_latest_update( bp_displayed_user_id() ); ?> but no success.

    I actually want to get the time of the last activity.


    tronix-ex
    Participant

    @tronix-ex

    Thanks danbp for suggesting stuff. please see below my answers.

    1. okay
    2. no solutions at all
    3. I am not getting anything using this function


    tronix-ex
    Participant

    @tronix-ex

    Well I appreciate your quick responses over my questions but I have to find a way because its my client requirements.

    Could you help me in these items please?

    1. how to get the total number of current online users?
    2. I need to add auto refresh on the current online users list
    3. how to get the last activity date of each current online user?

    Thanks again,


    tronix-ex
    Participant

    @tronix-ex

    Oh sorry please se below.

    Q. Do you mean a way to show WHERE the actual user is on the site?
    A. Yes

    For example:-

    Who’s Online:
    1. [avatar] user currently viewing this [page] in the site
    2. [avatar] user currently viewing this [page] in the site
    3. [avatar] user currenty viewing this [page] in the site

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