Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • @wp_new_user

    Participant

    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

    @wp_new_user

    Participant

    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.

    @wp_new_user

    Participant

    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

    @wp_new_user

    Participant

    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

    @wp_new_user

    Participant

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

    @wp_new_user

    Participant

    @shanebp thank you!


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

    @wp_new_user

    Participant

    here’s the link

    @wp_new_user

    Participant

    ok done, thanks!

    @wp_new_user

    Participant

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

    @wp_new_user

    Participant

    Hi Paul,

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

    Regards,
    Leo

    @wp_new_user

    Participant

    Anyone, any idea how to make this, please?

    @wp_new_user

    Participant

    It is '. anything else that looks erroneous?

    @wp_new_user

    Participant

    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!

    @wp_new_user

    Participant

    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!

    @wp_new_user

    Participant

    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