Sedang Disiapkan

Buddypress activity feed customisation

I building a website, and I need 2 customisations for my buddypress activity feed.

1.

I need a code I can put in my [url removed, login to view], 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; ?>

Kemahiran: HTML, Javascript, MySQL, PHP, Wordpress

Lihat lebih lanjut: buddypress activity stream plugin, buddypress activity filter plugin, buddypress activity stream shortcode, buddypress custom activity loop, buddypress block activity stream types, bp_has_activities( bp_ajax_querystring( 'activity' ), buddypress activity stream filter, buddypress activity loop, I need my website re-configured.I already have a design, I just need you to build my personal website., i want to create a website and need direction, i have a website idea and i need a developer, make a website of uttrakhand i need its leyote, my company name is nustar nustar online we sell ink and toners we are currently building a website and need a catchy logo for ou, my company name is nustar (nustar online) we sell ink and toners we are currently building a website and need a catchy logo for , need website building need website building

Tentang Majikan:
( 1 ulasan ) Denmark

ID Projek: #15382596

Dianugerahkan kepada:

webethics

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: http://nonnospizzahowell.com.bh-1 Lagi

€160 EUR dalam 3 hari
(42 Ulasan)
6.4

26 pekerja bebas membida secara purata €152 untuk pekerjaan ini

OutsourceMan

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 w Lagi

€147 EUR dalam 3 hari
(297 Ulasan)
7.9
AxonTech

Hello, I have gone through the entire requirement. It will take around 3 to 4 Working Days to do those BuddyPress Customizations. We are ready to start immediately Relevant Skills and Experience 1) https://apollovisio Lagi

€187 EUR dalam 4 hari
(120 Ulasan)
7.2
shinemonkey212

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 a Lagi

€155 EUR dalam 3 hari
(110 Ulasan)
7.3
liangjongai

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 t Lagi

€155 EUR dalam 3 hari
(109 Ulasan)
6.2
WebXcellance

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

€95 EUR dalam 3 hari
(79 Ulasan)
6.0
krishan725

Relevant Skills and Experience i'm krishan, with more than 7 years of experience in Graphic Design, psd-html, jqery, HTML5, javascript, bootstrap, css, psd-wordpress, jpeg-html. Relevant Skills and Experience Our port Lagi

€155 EUR dalam 3 hari
(54 Ulasan)
6.1
techieankur

HI there, I would love to assist you for both of this tasks as I have all the required expertise and skill set available for performing this job. Share me link of your website so I could review it. Relevant Skills and Lagi

€155 EUR dalam 3 hari
(28 Ulasan)
5.1
manjeet2017

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, Lagi

€155 EUR dalam 3 hari
(17 Ulasan)
4.1
infraveocorp

.hello sir, I'have read your project and got know that you want us to build a website Relevant Skills and Experience . I want to infrom you that we are Infraveo having 25+ full stack developers and 15+ system admins Lagi

€120 EUR dalam 5 hari
(4 Ulasan)
3.1
hexiaoyun

Hello, Please give me a chance. If you choose me I will do it with lower price. If you give me a chance , you will get all . Payment isn’t important for me but a good feedback is valuable. Relevant Skills and Experien Lagi

€200 EUR dalam 3 hari
(3 Ulasan)
2.6
vashishtrupinder

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 - .

€155 EUR dalam 3 hari
(2 Ulasan)
2.6
Ankit1007

Dear sir, I have a team of expert developer and designer who can give make any kind of application with their skill set. Relevant Skills and Experience [url removed, login to view] [url removed, login to view] http://205. Lagi

€155 EUR dalam 3 hari
(5 Ulasan)
2.6
visetechnologies

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 H Lagi

€188 EUR dalam 3 hari
(1 Ulasan)
0.6
€155 EUR dalam 3 hari
(1 Ulasan)
0.7
sharmaghp

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 the Lagi

€166 EUR dalam 2 hari
(0 Ulasan)
0.0
sonalisinghdalla

Hi Being expertise in all the membership plugins of wordpress I can handle any task related to buddypress , I need to discuss further with you so if you can come online. Thanks Relevant Skills and Experience wordpre Lagi

€138 EUR dalam 3 hari
(0 Ulasan)
0.0
degreeinfo

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, Lagi

€277 EUR dalam 7 hari
(0 Ulasan)
0.0
dimplephp

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 br Lagi

€111 EUR dalam 3 hari
(0 Ulasan)
0.0
indiaozone

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 se Lagi

€44 EUR dalam 3 hari
(0 Ulasan)
0.0
clarigoinfotechh

Dear client, Thanks for sharing your needs, hope you are doing great. Yes we can customize your website. Past work:- [url removed, login to view] [url removed, login to view] Relevant Skills and Experience I h Lagi

€155 EUR dalam 5 hari
(0 Ulasan)
0.0