Search Results for 'notification user id'
-
Search Results
-
Hi all,
I’ve copied-and-pasted the notifications loop into a custom drop down / flyout box like Facebook, done the same for friend requests and messages and almost everything is working wonderfully. The messages loop outputs a read/unread css class to show a user which messages are unread, how do I do something similar with the notifications?
I have copied-and-pasted bp_has_notifications() into my functions.php file, removed the IF statements at the top that filter for either read or unread so the loop now outputs both read and unread messages in the same go when called in my custom flyout boxes, but I’m trying to figure a way of outputting a css class for the read or unread notifications.
I’ve tried IF = $is_new; within the notifications while loop to echo a css class with no success.
any of you kind clever people have any ideas how I can do this?
Thanks in advance!
as per guidelines – here is my spec – WordPress 4.3.1, Directory install (root), BP 2.3.5, quite a few plugins installed, bbpress (2.5.8), Buddyboss wall, BP profile search. Buddyboss media, Activity comment notifier, paid memberships pro, cloudflare and a few others. Running Avada theme. Core files have not been touched (I know I would get told off if I did đ ) Nothing in bp-custom. Hosted by namecheap.
edited : clarify some ambiguity
Topic: Customization questions
Hi
I have a project coming up for a client that is an NGO that offers study abroad courses for students. Their website needs are very complex and will require a lot of customizations to buddypress if I decide to use it.
My first questions is, is it possible to update profile content/meta (including custom content I will add) after a user submits a form within a section in their profile? Each student will be required to perform a list of tasks/assignments that they will need to check off (hopefully with a form) and I would like the status of their tasks to be updated within their user profile. Is it also possible to add in forms for things like this to work? Would it be a third party plugin or does buddypress offer form functionality that can tie into the user profile meta?
It would be ideal for the user to have a checklist of things to do and as they complete them they just check a checkbox and after they save the form it would then display an updated status so that moderators can see their progress.
Along with custom form functionality, is it possible to have custom email notifications and replies going out after form submission that would also be managed and or customized within buddypress? or would that be another third party plugin I would have to add in?
Then for user and user role capabilities, is it possible to have multiple logins or users access the same account/profile? I would like to have parents and students have access to the same profile/students’ user profile but also have different user roles assigned to them.
My last questions is, I would like to add the capability for the users to pay a deposit that would also update the users profile after paying. Would this be third party? If so, is it possible to tie into the user meta to update their status? The deposit amount is also a variable in that the price will be different based on some of the course registration options/variables entered in by the student. *Some will need financial aid as some will not need it, so deposit will change based on that variable.
Thanks for your time
Hi all,
Iâve got a community-website and would like to offer a kind of notification-service.
The user should give information what he is looking for and via email this user should be informed about new suitable users in the community.
The notification-email should be designed, so I guess I have to work with a newsletter-plugin like mail chimp.
Do you have any idea what will be the best?Use the BP_Profile_Search Plugin and do some cronjob shortly before sending out the email?
Iâm happy to read any ideas to this topic!Best wishes
Miriam—
WordPress (newest version)
BuddyPress (newest version)
BP Profile SearchHello All,
I tried searching through this forums but did not find a way. I basically want to customize the emial that is sent when a new memebership requests. When i look at the plugin code i see that there is a line
$message = apply_filters_ref_array( ‘groups_notification_new_membership_request_message’, array( $message, &$group, $requesting_user_name, $profile_link, $group_requests, $settings_link ) );
is there any way i can change the $message for my site? Mine is a single site and not a multi site installation. If i can where do i write the filter in theme’s function.php???
Thanks a lot.
Thanks
ParagHello,
I am working with buddy press and i have one task I want accept and reject both button functionality on notification section in place of Read|Delete action and both should be work like real button work accept and reject.I am trying but it is not working. my add code for accept and reject both button .
<div class="action"> <a>"><?php _e( 'Accept', 'buddypress' ); ?></a> <a>"><?php _e( 'Reject', 'buddypress' ); ?></a> <?php do_action( 'bp_friend_requests_item_action' ); ?> </div>using
bp_friend_accept_request_link()i am not getting friend id like i got
url
localhost/myfolder/members/username/friends/requests/accept/?_wpnonce=3abfc1f1ddbut it should be like
localhost/myfolder/members/username/friends/requests/accept/22?_wpnonce=3abfc1f1ddi am missing 22and this is friend id. so please solve my problem.
i also want when user accept and reject friend request then friend request notification should be hide or delete.
Thanks
Hi,
I have manage to do the following:
1. Create an activity
2. Create a notification for that activityI have used the following code as proof of concept:
add_action('bp_ready', function() { //1. Add an action $activity_id = bp_activity_add([ 'action' => '<b>HEJHEJHEJ</b>', 'content' => '<b>my content my content my content my content my content my content</b>', 'component' => 'groups', 'type' => 'activity_update', 'user_id' => get_current_user_id(), ]); //2. Send the notification if (bp_is_active('notifications')) { $activity = new BP_Activity_Activity($activity_id); $notification = bp_notifications_add_notification(array( 'item_id' => $activity->id, 'secondary_item_id' => $activity->user_id, 'user_id' => $activity->user_id, 'component_name' => buddypress()->activity->id, 'component_action' => 'new_at_mention', 'date_notified' => bp_core_current_time(), 'is_new' => 1, )); } });So how do i make Buddypress to send an email to the user about that notification? Is there any tutorial that describes the process?
I am able to add buddypress notification using below – How do I set custom message in ‘component_action’ ? I want the notification say something like new group group activity and the link should go that activity –
BTW, where do I look to find out all component actions that are available to use here?
Thank you
‘ bp_notifications_add_notification( array(
‘user_id’ => (int) $to,
‘item_id’ => (int) $group_id,
‘secondary_item_id’ => $activity->user_id,
‘component_name’ => buddypress()->groups->id,
‘component_action’ => ”,
‘date_notified’ => bp_core_current_time(),
‘is_new’ => 1,
) );
`Hi everyone,
I’am currently try to add custom notification from a non BuddyPress component. I’m using this hooks:
bp_notifications_get_registered_components
bp_notifications_get_notifications_for_user
and this function:
bp_notifications_add_notificationEverything works well except the hook
bp_notifications_get_notifications_for_user. My problem is in my installation there is the bbPress plugin. It is also using this hooks. So this hooks is call twice, and the$actionargument is empty or contain the rendered notification content. So I’m not allowed to do the right things on the second call.I must add this to this file in bbPress plugin :
/wp-content/plugins/bbpress/includes/extend/buddypress/notifications.phpon line 78 (at the end of the functionreturn $action):/** * Format the BuddyBar/Toolbar notifications * * @since bbPress (r5155) * * @package bbPress * * @param string $action The kind of notification being rendered * @param int $item_id The primary item id * @param int $secondary_item_id The secondary item id * @param int $total_items The total number of messaging-related notifications waiting for the user * @param string $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar */ function bbp_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New reply notifications if ( 'bbp_new_reply' === $action ) { $topic_id = bbp_get_reply_topic_id( $item_id ); $topic_title = bbp_get_topic_title( $topic_id ); $topic_link = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $topic_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $topic_id ); $title_attr = __( 'Topic Replies', 'bbpress' ); if ( (int) $total_items > 1 ) { $text = sprintf( __( 'You have %d new replies', 'bbpress' ), (int) $total_items ); $filter = 'bbp_multiple_new_subscription_notification'; } else { if ( !empty( $secondary_item_id ) ) { $text = sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), (int) $total_items, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) ); } else { $text = sprintf( __( 'You have %d new reply to %s', 'bbpress' ), (int) $total_items, $topic_title ); } $filter = 'bbp_single_new_subscription_notification'; } // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( $filter, '<a href="' . esc_url( $topic_link ) . '" title="' . esc_attr( $title_attr ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $topic_link ); // Deprecated BuddyBar } else { $return = apply_filters( $filter, array( 'text' => $text, 'link' => $topic_link ), $topic_link, (int) $total_items, $text, $topic_title ); } do_action( 'bbp_format_buddypress_notifications', $action, $item_id, $secondary_item_id, $total_items ); return $return; } return $action; } add_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 5 );And i have to do the same thing for my custom notification rendering.
So my question is quite simple: Is this a bug? A bug from bbPress? A bug from BuddyPress? Or I am not using the hook properly?
Please advice me, and I create a ticket if it is necessary.
Thanks in advance.
