Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Leo
    Participant

    @wp_new_user

    I have found out the reason, it is because of the BuddyPress Like plugin.
    Maybe it is because of a custom theme or whatever, but when you like and unlike the same activity, all your activities are removed.

    Just to be aware if anyone also has this issue.

    Regards,
    Leo


    Leo
    Participant

    @wp_new_user

    Thanks for your reply @slaffik.
    The matter is the user who’s activities are removed is the administrator.

    I don’t want to restore them I just want to prevent that from happening again.


    Leo
    Participant

    @wp_new_user

    Yes, correct, thanks @shanebp!

    Another thing, now my custom members loop is sorted – newest first.
    I just wonder if there’s such a thing ‘the filed last updated date‘ so that I could sort the loop by the filed update date?

    Thank you!
    Leo


    Leo
    Participant

    @wp_new_user

    Thank you @shanebp. there’s no error now and thanks for the reference, I’m going to need it.

    Here’s what works for me if someone needs it:

    global $wpdb;
    $db_query = "SELECT user_id FROM wp_bp_xprofile_data WHERE field_id = 2 AND value != ''";
    $match_ids = $wpdb->get_col($db_query);
    $members_imploded = '&per_page=20&type=newest&include=' . implode(",", $match_ids);
    if ( bp_has_members($members_imploded) ) :

    Regards,
    Leo


    Leo
    Participant

    @wp_new_user

    thanks @hastig this is quite a useful list, we may need later
    yes I figured out how to make it on activity stream


    Leo
    Participant

    @wp_new_user

    @shanebp thank you!


    @hastig
    I didn’t even know it’s this much complicated.


    Leo
    Participant

    @wp_new_user

    here’s the link


    Leo
    Participant

    @wp_new_user

    ok done, thanks!


    Leo
    Participant

    @wp_new_user

    Hi shanebp,
    I checked it on a custom theme, Twenty Sixteen and Twenty Thirteen. Nothing changes.


    Leo
    Participant

    @wp_new_user

    Hi Paul,

    Thanks for your reply. I am using the latest version of BP 2.4.3 (and WP 4.4.1).

    Regards,
    Leo


    Leo
    Participant

    @wp_new_user

    Anyone, any idea how to make this, please?


    Leo
    Participant

    @wp_new_user

    It is '. anything else that looks erroneous?


    Leo
    Participant

    @wp_new_user

    Hi @shanebp,
    here are the errors:

    1)
    if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ).’&scope=favourites’ ) ) :
    the error is:
    Parse error: syntax error, unexpected ‘}’ in /homepages/38/d602737955/htdocs/web/wp-content/plugins/asplugin/asplugin.php on line 42

    2)
    echo if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ).’&scope=favourites’ ) ) :;
    the error is:
    Parse error: syntax error, unexpected ‘if’ (T_IF) in /homepages/38/d602737955/htdocs/web/wp-content/plugins/asplugin/asplugin.php on line 38

    3)
    echo bp_ajax_querystring( ‘activity’ ).’&scope=favourites’;
    it prints on screen only: &scope=favourites

    Thank you!


    Leo
    Participant

    @wp_new_user

    Hi @antipole, thanks. I made it.

    Now what I need is to remove a filed from there, for example, ‘active 2 minutes ago’, is it possible to remove it, too, using bp-custom.php?

    Thanks!


    Leo
    Participant

    @wp_new_user

    Hi, I wonder if there’s a way of doing the same by adding a function to bp-custom.php file?

    Thank you!

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