Forum Replies Created
-
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,
LeoThanks 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.
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!
LeoThank 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,
Leothanks @hastig this is quite a useful list, we may need later
yes I figured out how to make it on activity streamhere’s the link
ok done, thanks!
Hi shanebp,
I checked it on a custom theme, Twenty Sixteen and Twenty Thirteen. Nothing changes.Hi Paul,
Thanks for your reply. I am using the latest version of BP 2.4.3 (and WP 4.4.1).
Regards,
LeoAnyone, any idea how to make this, please?
It is
'
. anything else that looks erroneous?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 422)
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 383)
echo bp_ajax_querystring( ‘activity’ ).’&scope=favourites’;
it prints on screen only: &scope=favouritesThank you!
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!
Hi, I wonder if there’s a way of doing the same by adding a function to bp-custom.php file?
Thank you!