I building a website, and I need 2 customisations for my buddypress activity feed.
1.
I need a code I can put in my [login to view URL], that excludes specific user_roles (role) AND (role && role) from being shown in the overall activity feed. The activity has to only be visible for site-admin and user.
I have found this code, where admin are excluded via user ID, but it needs to be changed to meet my needs:
// hide admin's activities from all activity feeds
function bpfr_hide_admin_activity( $a, $activities ) {
// ... but allow admin to see his activities!
if ( is_site_admin() )
return $activities;
foreach ( $activities->activities as $key => $activity ) {
// ID's to exclude, separated by commas. ID 1 is always the superadmin
if ( $activity->user_id == 784 ) {
unset( $activities->activities[$key] );
$activities->activity_count = $activities->activity_count-1;
$activities->total_activity_count = $activities->total_activity_count-1;
$activities->pag_num = $activities->pag_num -1;
}
}
// Renumber the array keys to account for missing items
$activities_new = array_values( $activities->activities );
$activities->activities = $activities_new;
return $activities;
}
add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );
At the moment I only works if I change the "if" statement to:
if ( bp_is_group() || bp_is_user() )
return $activities;
2.
I need a extra feed entry on the buddypress/activity/entry.php. This entry has to show all activity from a specific user_role (role) AND (role && role)
I have copy pasted the code, and where the code has to be:
<?php do_action( 'template_notices' ); ?>
<div class="item-list-tabs activity-type-tabs" role="navigation">
<ul>
<?php do_action( 'bp_before_activity_type_tab_all' ); ?>
<li id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'onesocial' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'onesocial' ), bp_get_total_member_count() ); ?></a></li>
// THE CODE HAS TO GO HERE
<?php if ( is_user_logged_in() ) : ?>
<?php do_action( 'bp_before_activity_type_tab_friends' ); ?>
<?php if ( bp_is_active( 'friends' ) ) : ?>
<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
<li class="selected" id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'onesocial' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'onesocial' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
<?php endif; ?>
<?php endif; ?>
I am Wordpress Rockstar from last 7+ years and have in-depth knowledge about themes, plug-in customization, blog and API elements.
Relevant Skills and Experience
WordPress Portfolio:
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
Proposed Milestones
€160 EUR - Buddypress activity feed customisation
Please share the details so we can proceed further.
Looking for a positive response.
With Regards,
€160 EUR v 3 dnech
5,0 (62 recenze)
7,0
7,0
21 freelanceři nabízejí v průměru €145 EUR za tuto práci
Surely, We are ready to help you with customization for my buddypress activity feed.
Can we discuss little more?
We are ready to start the work now!
Relevant Skills and Experience
Please review our profile and past work here:
https://www.freelancer.com/u/OutsourceMan
Proposed Milestones
€147 EUR - https://www.freelancer.com/u/OutsourceMan
Please select us right away, so that we can get started without wasting a day!
Thanks
Vaishali
Hi!
I'm interesting your project very well.
i mastering PHP and javascript.
And also I have many experience and good skill about web and android development.
Let's go ahead with me
Stay tuned, I'm still working on this proposal.
Hi sir, How are you?
I read your description carefully and i am very interesting in your project.
We are the great IT solution team with solid experiences in these fields.
I hope we to work together.
Relevant Skills and Experience
WordPress
Proposed Milestones
€155 EUR - Initial
Wordpress customization
Relevant Skills and Experience
Respected Sir,
We have 7+ year exp in php and wordpress.
We have expertise in content management system in wordpress.
Proposed Milestones
€95 EUR - Project
Hi,
Available to customisations of your BuddyPress activity feed. I am available to start immediately.
Relevant Skills and Experience
experienced with BuddyPress
Proposed Milestones
€155 EUR - .
Hi, I went through your requirement and feel comfortable to do this job. I have good experience in website design & development. Please initiate chat to discuss further.
Relevant Skills and Experience
PHP, Word press, Magneto, CSS, HTML
Proposed Milestones
€155 EUR - Complete Milestone
Hello there,
I am interested and ready to start, lets discuss with details.
Relevant Skills and Experience
I have more than 7 + years experience in designing websites using Photoshop, HTML, CSS, JS, Bootstap, JQuer, PHP, Wordpress/woocommerce, Codeigniter
Proposed Milestones
€277 EUR - will Discuss
Shoot me a message so we can discuss and can start work.
Thanks
BuddyPress Feed Customization
Relevant Skills and Experience
I can customize the BuddyPress Feed. I will customize the attached code.
Proposed Milestones
€166 EUR - 20% upfront next 50% after half of project and then remaining after completion of project
Hi
Greetings !
I have gone through all of your requirements and details you have provided. I had accomplised this work and delivered to my many a past clients.
Relevant Skills and Experience
HTML, Javascript, MySQL, PHP, WordPress.
Proposed Milestones
€188 EUR - PHP
Looking For Poistive Response
Thanks
Hi,
we can decide rates from your side (price can be negotiated)
I understood your requirement I have knowledge in this filed 5+ yr so many projects I have done.
Relevant Skills and Experience
kindly let me know in brief what kind of requirement do you have
lets can show you my previous work I have the team of development and designer they are expert in their skills
connect on chat box...
Proposed Milestones
€111 EUR - thanks
Hi
AM READY TO START NOW.
I read through the job details carefully and I am absolutely sure that we can do the project very well.
Relevant Skills and Experience
Iam an expert programmer/coder working in the field of Web designing and Development over last 5 years and have worked on each and every aspect of websites
Proposed Milestones
€111 EUR - ,
.So let me know when we can discuss further about the project.
Hello,
I have seen your requirements. I have done so many projects before and win clients's trust. I can also do ypur project. Please come on chat for detail discussion.
Relevant Skills and Experience
Hello,
I have seen your requirements. I have done so many projects before and win clients's trust. I can also do ypur project. Please come on chat for detail discussion.
Proposed Milestones
€44 EUR - Milestone
Please come on hat for detail discussion so that i ca start your project ASAP (R.S.)