-
Author
-
February 25, 2016 at 16:46 #106607jazzbuzzParticipant
Hi there,
I would like to hide certain info from activity stream.
Used your snippet from the blog but does not work. I keep getting a white page after submitting functions.php.
Where is the issue?
//Block certain activity types from being added
function bp_activity_dont_save( $activity_object ) {
$exclude = array(
‘updated_profile’,
‘new_member’,
‘new_avatar’,
‘friendship_created’,
‘joined_group’
);Thank you 🙂
February 26, 2016 at 21:45 #106937LauraModeratorHello, have you tried https://wordpress.org/plugins/buddypress-block-activity-stream-types/ ?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 26, 2016 at 22:29 #106961jazzbuzzParticipantHi Laura,
the plugin hasn´t been updated in two years so I prefer not to use it 🙁
you published the php snippet already but it does not seem to work. Could you not check it for me please?
Thank you 🙂
February 27, 2016 at 19:56 #107120LauraModeratorHello, did you try adding the code to bp-custom.php ( in plugins folder )
Let me know 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 27, 2016 at 20:29 #107126jazzbuzzParticipantIt keeps showing me a white page and I cannot find an error in the code. Could you please check it again?
Thank you 🙂
February 28, 2016 at 18:47 #107235LauraModeratorHello, you could try with this, go to the main theme files, copy the file activity-loop.php found buddypress – activity
and go to the child theme, create 2 new folders, “buddypress” and inside create a new folder “activity” now paste the file and edit itFind
COPY CODE<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
Replace it with
COPY CODE<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=activity_update' ) ) : ?>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 28, 2016 at 20:19 #107259jazzbuzzParticipantHi Laura,
I do not have such a file. See image attached.
Attachments:
You must be logged in to view attached files.February 29, 2016 at 15:40 #107370LauraModeratorHello, please check inside the main theme files
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 29, 2016 at 15:43 #107372jazzbuzzParticipantAlright my bad… you meant to go to the theme folder not to the plugin folrder.. will try now 😉
February 29, 2016 at 15:50 #107374jazzbuzzParticipantDid everything like you said. Tried below code in functions.php and bp-custom.php but keep getting a white page even after changing the activity-loop.php 🙁
Where is the issues? 🙁
COPY CODE//Block certain activity types from being added function bp_activity_dont_save( $activity_object ) { $exclude = array( 'updated_profile', 'new_member', 'new_avatar', 'friendship_created', 'joined_group' );
February 29, 2016 at 23:42 #107517LauraModeratorWhat code did you add to activity loop?
Delete the old code above and only change activity loop as i mentioned before 🙂
Let me knowHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 1, 2016 at 10:51 #107563jazzbuzzParticipantI did but what is it doing now, how I can hide certain activities from activity stream?
March 1, 2016 at 15:05 #107648LauraModeratorHello, the code should only show profile updates at the activity
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 1, 2016 at 15:07 #107650jazzbuzzParticipantHi Laura,
it does indeed. Thank you.
Could you tell me all the events it is showing now?
March 1, 2016 at 17:34 #107741LauraModeratorHello, only profile updates, nothing else 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
You must be logged in to reply to this topic.