Search Results for 'notification user id'
-
Search Results
-
Hi,
I have created a custom page with a single subnav item using the code below:
function profile_tab_achievements() { global $bp; bp_core_new_nav_item( array( 'name' => 'Achievements', 'slug' => 'achievements', 'screen_function' => 'achievements_screen', 'position' => 100, 'parent_url' => bp_loggedin_user_domain() . '/achievements/', 'parent_slug' => $bp->profile->slug, 'default_subnav_slug' => 'awards' ) ); } add_action( 'bp_setup_nav', 'profile_tab_achievements' ); function profile_subnav_awards() { bp_core_new_subnav_item( array( 'name' => 'Awards', 'slug' => 'awards', 'parent_url' => bp_loggedin_user_domain() . '/achievements/', 'parent_slug' => 'achievements', 'screen_function' => 'achievements_screen' ) ); } add_action( 'bp_setup_nav', 'profile_subnav_awards' );I would like the subnav of this page to have a Order By Dropdown, much like exists in the groups & notification pages. I cannot find any guide on how to add this to the subnav menu though. Can anyone help? I mean just to add the drop down. I think I can probably figure out the sorting myself once I have the dropdown added.
Topic: Please help with emails
Hi. I would love if someone could help me with a few concerns I have regarding emails in relation to BuddyPress Version 3.2.0.
First, I want to disable email notifications and am wondering if there is code I should put into the functions.php of a child theme or if unchecking the situation in an email template on BuddyPress will be sufficient in not having notifications sent due to such sitauations as mentions and replies.
Also, I want to disable activation emails and allow my users to be auto-approved. Can anyone tell me the best way to accomplish this?
I appreciate any assistance that you may be able to provide me.
Hi Everyone,
I have upgraded to BuddyPress: 3.1.0 and now i can’t seem to access messages and i am using Thrive Nouveau Child theme.Browser Developer Browser error
JQMIGRATE: Migrate is installed, version 1.4.1
http://www.google-analytics.com/analytics.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
underscore.min.js?ver=1.8.3:5 Uncaught SyntaxError: Unexpected token ;
at new Function (<anonymous>)System Info
// Generated by the Send System Info Plugin //
Multisite: No
WordPress Version: 4.9.8
Permalink Structure: /%postname%/
Active Theme: Thrive Nouveau ChildPHP Version: 7.2.9
MySQL Version: 5.6.40
Web Server Info: ApacheWordPress Memory Limit: 64MB
PHP Safe Mode: No
PHP Memory Limit: 256M
PHP Upload Max Size: 1000M
PHP Post Max Size: 1000M
PHP Upload Max Filesize: 1000M
PHP Time Limit: 600
PHP Max Input Vars: 10000
PHP Arg Separator: &
PHP Allow URL File Open: NoWP_DEBUG: Disabled
WP Remote Post: wp_remote_post() works
Session: Enabled
Session Name: PHPSESSID
Cookie Path: /
Save Path: /var/cpanel/php/sessions/ea-php72
Use Cookies: On
Use Only Cookies: OnDISPLAY ERRORS: N/A
FSOCKOPEN: Your server supports fsockopen.
cURL: Your server supports cURL.
SOAP Client: Your server has the SOAP Client enabled.
SUHOSIN: Your server does not have SUHOSIN installed.ACTIVE PLUGINS:
404 to 301: 3.0.1
Absolutely Glamorous Custom Admin: 6.4.1
bbP private groups: 3.6.7
bbPress: 2.5.14
BP Block Users: 1.0.2
BP Local Avatars: 2.2
BP Simple Front End Post: 1.3.4
BuddyBlog: 1.3.2
BuddyKit: 0.0.3
BuddyPress: 3.1.0
BuddyPress Clear Notifications: 1.0.4
BuddyPress Docs: 2.1.0
BuddyPress Global Search: 1.1.9
BuddyPress Security Check: 3.2.2
BuddyPress User To-Do List: 1.0.4
GA Google Analytics: 20180828
GD bbPress Toolbox Pro: 5.2.1
GDPR: 2.1.0
Gears: 4.1.9
Gravity Forms: 2.3.2
Hide Admin Bar From Front End: 1.0.0
Image Upload for BBPress: 1.1.15
Insert Headers and Footers: 1.4.3
Invite Anyone: 1.3.20
iThemes Security Pro: 5.4.8
Kirki Toolkit: 3.0.33
MediaPress: 1.4.2
MediaPress – Downloadable Media: 1.0.3
Menu Icons: 0.11.2
Nifty Menu Options: 1.0.1
Really Simple SSL: 3.0.5
reSmush.it Image Optimizer: 0.1.16
Restricted Site Access: 7.0.1
s2Member Framework: 170722
SeedProd Coming Soon Page Pro: 5.10.8
Send System Info: 1.3
Slider Revolution: 5.4.7.3
SSL Insecure Content Fixer: 2.7.0
TaskBreaker – Group Project Management: 1.5.1
The Events Calendar: 4.6.23
The Events Calendar PRO: 4.4.30.1
Users Insights: 3.6.5
WP-Polls: 2.73.8
WPBakery Page Builder: 5.5.4
WP Mail SMTP: 1.3.3
WP Nag Hide: 1.0
WPS Hide Login: 1.4.3
Yoast SEO: 8.2
YouTube Live: 1.7.10Thanks
Rockforduk
Hello, I’m using Buddypress 3.1.0, bbPress 2.5.14, and the Boss theme 2.4.6 to create an online network/forums website. The website is 7ctest2.site and the wordpress version is 4.9.8.
Is it possible to merge the Read and Unread notifications into one page on /members/user/notifications/ ?
How would I go about implementing this?
I’m new to both Buddypress and bbPress and was handed down this website to complete. Any help or idea would be helpful. Thank you!
I’m trying to do an ajax function where after certain conditions are met, 2 users will become friends. I am using friends_add_friend function to achieve it but when I execute that function, my ajax function doesn’t return the success data. The friends_add_friend will execute but it will stop there preventing my ajax to display the notification. Any idea how to fix this?
this is my code
if($create_subscription!='fail'){
friends_add_friend(bp_loggedin_user_id(),bp_displayed_user_id(),true); //the code stops hereecho json_encode(array('sent'=>true, 'message'=>__('The payment was processed successfully!')));
}
Hello friends
Got this code from buddydev website
for theme functions php
works, but newer versions of buddypress have
5 group options. This code covers 4.——————————————————————————————————
add_action( ‘bp_core_activated_user’,‘bpdev_set_email_notifications_preference’);
function bpdev_set_email_notifications_preference( $user_id ) {
//I am putting all the notifications to no by default
//you can set the value to ‘yes’ if you want that notification to be enabled.
$settings_keys = array(
‘notification_activity_new_mention’ => ‘no’,
‘notification_activity_new_reply’ => ‘no’,
‘notification_friends_friendship_request’ => ‘no’,
‘notification_friends_friendship_accepted’ => ‘no’,
‘notification_groups_invite’ => ‘no’,
‘notification_groups_group_updated’ => ‘no’,
‘notification_groups_admin_promotion’ => ‘no’,
‘notification_groups_membership_request’ => ‘no’,
‘notification_messages_new_message’ => ‘no’,
);foreach( $settings_keys as $setting => $preference ) {
bp_update_user_meta( $user_id, $setting, $preference );
}//that’s it. have fun!
}
———————————————————————————————————
This is the option it doesn’t cover—–
#5
“Your request to join a group has been approved or denied”Can anyone update this ? That would be awsome.
Thanks alot
buddypress 2.8.2
WordPress 4.7.5Hi,
I would like that user can follow any other user and get email notification when the that user publish a new post on the website. I am good looking for a plugin or script even paid and buddypress compatible than allow me to do that.
i have not found a solution for that.
thanks for your help
Greetings,
We are using LDAP to populate and maintain our Buddypress members list, and because of this we don’t want people to be able to change their password or email address via the Settings > General tab. We would like to therefore hide the General tab and have Settings redirect to a different tab instead (preferably Settings > Profile)
I have gone through the forums and have viewed other posts by people dealing with the same issue, specifically this one:
Here’s the code:
function bpex_change_profile_settings_default_tab() { if( bp_is_active( 'xprofile' ) ) : $access = bp_core_can_edit_settings(); $slug = bp_get_settings_slug(); $args = array( 'parent_slug' => $slug, 'subnav_slug' => 'notifications', 'screen_function' => 'bp_settings_screen_notification', 'user_has_access' => $access ); bp_core_new_nav_default( $args ); endif; } add_action( 'bp_actions', 'bpex_change_profile_settings_default_tab' ); function bpex_remove_general_item_on_usermenu() { global $wp_admin_bar; if ( bp_use_wp_admin_bar() ) { $wp_admin_bar->remove_node( 'my-account-settings-general' ); } } add_action( 'wp_before_admin_bar_render', 'bpex_remove_general_item_on_usermenu' ); function bpex_remove_profile_settings_general_tab() { if( bp_is_active( 'xprofile' ) ) : bp_core_remove_subnav_item( 'settings', 'general' ); endif; } add_action( 'bp_actions', 'bpex_remove_profile_settings_general_tab' );This seems to be the solution I need, but when I add the code to bp-custom.php it does remove the General tab, but now clicking on Settings generates a 404 error. As this post is over a year old, I’m wondering if there have been changes to Buddypress that stops this from working.
I should mention that I’ve done some (but not a lot) of PHP programming. I did have a co-oworker who is quite proficient at PHP look over this with me, but everything we tried failed to work.
Thanks for any help anyone can give.
WordPress version 4.9.6
Latest Version of BuddyPress (recently updated)
Link to the site: https://highaltitudecrypto.io/
—
Here is the error that is showing: https://prnt.sc/jxthxoBackground info:
The previous developer coded this theme in his own way. When he finished the site, the client/site owner deleted the developer’s (admin) user profile. When he did, all sorts of issues like this arose. We have fixed most, but I am not sure how to fix this particular issue. The error is displayed in that screenshot, so I was hoping you could help!hey guys,
when the user have read/clicked on a notification then the notifitcation should automatically delete. i want to do that with a ajax call.so my idea is to add a filter on the function bp_notifications_get_notifications_for_user() to manipulate the output.
but i need for the ajax call a notification_id. so that he knows which notofiation he has to delete.add_filter( 'bp_notifications_get_notifications_for_user', 'bp_follow_notify_format_notifications', 9, 5 ); function bp_follow_notify_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { if ( 'follow_new_post' === $action ) { if ( (int) $total_items > 1 ) { $title = sprintf( __( '%d new posts have been published', 'bp-follow-notify' ), (int) $total_items ); $link = bp_get_notifications_permalink(); } else { $title = sprintf( __( '%s is kiteboarding.', 'bp-follow-notify' ), bp_core_get_user_displayname( $secondary_item_id ) ); $link = get_permalink( $item_id ); } // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters('bp_follow_notify_notification', '<div onClick="clickedOnNotification('.$notificationID.')" title="' . esc_attr( $title ) . '">' . esc_html( $title ) . '"</div>', $title, site_url().$link ); // Deprecated BuddyBar } else { $return = apply_filters( 'bp_follow_notify_notification', array( 'text' => $title, 'link' => $link ), $link, (int) $total_items, $title, $title ); } return $return; } return $action; }here is the important line.
$return = apply_filters('bp_follow_notify_notification', '<divonClick=”clickedOnNotification(‘.$notificationID.’)”title="' . esc_attr( $title ) . '">' . esc_html( $title ) . '"</div>', $title, site_url().$link );cheers Pau