Replies
- Christopher Niedzwiecki on December 2, 2016 at 10:37 pm in reply to: [Resolved] Filtering profile activity #6637
Got it :D! Thanks a lot.
- Christopher Niedzwiecki on November 30, 2016 at 12:04 am in reply to: [Resolved] Filtering the sitewide activity #6561
This is the code I used and it worked. Thanks a lot for the help!!!!
function bpex_bp_activity_types( $retval ) {
if( ! bp_is_activity_directory()) {
return $retval;
}if ( bp_is_active( ‘activity’ ) ) {
// list of all BP activity types – remove or comment those you won’t show.
$retval[‘action’] = ‘
//activity_comment,
//activity_update,
// bbp_topic_create,
// bbp_reply_create,
//friendship_created,
//created_group,
//joined_group,
//last_activity,
//new_avatar,
new_blog_post,
//new_blog_comment,
//new_member,
//updated_profile
‘;return $retval;
}
}
add_filter( ‘bp_after_has_activities_parse_args’, ‘bpex_bp_activity_types’ ); - Christopher Niedzwiecki on November 30, 2016 at 12:01 am in reply to: [Resolved] Filtering the sitewide activity #6560
Do I put that above everything? Sorry, I’m a php noob lol.
- Christopher Niedzwiecki on November 29, 2016 at 11:19 pm in reply to: [Resolved] Filtering the sitewide activity #6558
Well this does it on all activity even on your personal profile. Is there a way to just keep this setting on ONLY the activity page?
- Christopher Niedzwiecki on November 29, 2016 at 11:12 pm in reply to: [Resolved] Filtering the sitewide activity #6557
^comment whatever you dont want in the activity stream by putting a // before it. For example I put // before everything except “new_blog_post”
- Christopher Niedzwiecki on November 29, 2016 at 11:12 pm in reply to: [Resolved] Filtering the sitewide activity #6556
I discovered the buddypress support lol. I found an answer that works for me. Here it is for others that may need it. Sorry 😛
function bpex_bp_activity_types( $retval ) {
if ( bp_is_active( ‘activity’ ) ) {// list of all BP activity types – remove or comment those you won’t show.
$retval[‘action’] = ‘
activity_comment,
activity_update,
// bbp_topic_create,
// bbp_reply_create,
friendship_created,
created_group,
joined_group,
last_activity,
new_avatar,
new_blog_post,
new_blog_comment,
new_member,
updated_profile
‘;return $retval;
}
}
add_filter( ‘bp_after_has_activities_parse_args’, ‘bpex_bp_activity_types’ ); - Christopher Niedzwiecki on November 29, 2016 at 11:06 pm in reply to: [Resolved] Filtering the sitewide activity #6555
<?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) . ‘&action=new_blog_post’ ) ) : ?>
^this gave me a syntax error and it is from the codex lol
The only suggestion I have for the poke is when you are on the page that has all your pokes. I think it should be ajax because if you poke one person then it takes you off that page.
- Christopher Niedzwiecki on November 21, 2016 at 12:43 am in reply to: "[x]Clear notifications" moves up during live notification #6432This reply has been marked as private.
- Christopher Niedzwiecki on November 21, 2016 at 12:40 am in reply to: "[x]Clear notifications" moves up during live notification #6431This reply has been marked as private.