Search Results for 'notification user id'
-
AuthorSearch Results
-
February 6, 2019 at 6:23 pm #302663
In reply to: Restrict Users from deleting notifications
Venutius
ModeratorAh yes, slight correction required:
<?php $args = array( 'links' => array( bp_get_the_notification_mark_link( bp_displayed_user_id() ) ) );?>February 6, 2019 at 5:54 pm #302662In reply to: Restrict Users from deleting notifications
hthornhillhww
Participantthanks for your help, I have got the page to only show the unread link but now when you hover over the link, it wont work as the format of the link is wrong, do you know why?
This is the link before (top) and after (bottom)
https://www.dropbox.com/s/zoiencz9qbweanr/links%20before%20and%20after%20change.jpg?dl=0
and this is my code
<?php $args = array( 'links' => array( bp_get_the_notification_mark_link( $user_id ) ) );?> <td class="notification-actions"><?php bp_the_notification_action_links( $args ); ?></td>February 6, 2019 at 5:00 pm #302661In reply to: Restrict Users from deleting notifications
Venutius
ModeratorYou are welcome.
When you get to edit the file you will see something like this:
<?php bp_the_notification_action_links(); ?>The extra code will need to go within a set of PHP tags just like the function call is.
So your code should end up looking something like this:
<?php $args = array( 'links' => array( bp_get_the_notification_mark_link( $user_id ) ) );?>place this in a new line before the modified function call:
<?php bp_the_notification_action_links( $args ); ?>February 6, 2019 at 3:27 pm #302654In reply to: Restrict Users from deleting notifications
Venutius
ModeratorIt looks like the function
bp_the_notification_action_links()accepts $args that would allow you to remove the delete link. So you could overload your `members/single/notifications/notifications-loop.php file to include something like the following:$args = array( 'links' => array( bp_get_the_notification_mark_link( $user_id ) ) );and add this to the function call:
bp_the_notification_links( $args )Something like that looks like it would work, not tested it though.
February 3, 2019 at 5:19 pm #302593Topic: Solved – BuddyPress Smtp Settings
in forum How-to & Troubleshootingdrstrats
ParticipantHi
I’m using BuddyPress and upon registration of users, the email notifications are sent using the hosting server which lands 100% of the times at spam folder.
to solve this I’ve installed the WP Mail SMTP plugin but this it didn’t affect BuddyPress Smtp settings.
Please someone with a solution to solve this.
ThanksJanuary 15, 2019 at 12:34 pm #302227Varun Dubey
Participant@datenfresser You can find them inside user meta
http://prntscr.com/m7gdur
To set default values you can check previous threadJanuary 11, 2019 at 9:56 am #302168In reply to: Remove notification count if zero
Venutius
ModeratorOne aspect I forgot was if the user is not logged in, ths would fix that:
const notificationsCounter = document.getElementById('ab-pending-notifications'); const notificationsIndicator = document.getElementById('wp-admin-bar-bp-notifications'); function counterChange() { if (notificationsCounter.innerText == '0') { notificationsIndicator.style.display = 'none'; } else { notificationsIndicator.style.display = 'block'; } } if (notificationCounter){ notificationsCounter.addEventListener('change', counterChange); } counterChange();December 11, 2018 at 6:15 pm #282717In reply to: User to User Messenger plugin
mrditt
ParticipantAs you know, with Buddypress users see an email whenever someone sends them a message and they are offline. We have asked repeatedly to your support if Cometchat overrides BP’s direct messaging function at the basic pricing tier? Because Cometchat email notifications are according to your pricing menu are only available to the highest tier Enterprise pricing and that would cost $12,000 US per year! This functionality is something that Buddypress already does, free, so if CometChat ove rides this functionality then we cannot pay you $12,000 to get it back. Are we missing something? We have tried to ask your support this question but have not received a response. Thank you.
November 30, 2018 at 12:07 am #282380kaneesha
ParticipantHi there,
So i’ve managed it with a mix of my initial code which i posted firstly and your permalink, so i’ve changed basically this:
$notif = '<span class="noticecount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span>';to this:
$notif = '<a href="' . bp_get_notifications_unread_permalink() . '"><span class="noticecount"><i class="noticecounttitle">Notifications</i>'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a>Ok so far so good, but this alchemy failed badly with my unread messages version.
I testedbp_get_messages_permalink(), or bp_get_unread_messages_permalink()and basically the wierdest combinations one can imagine but nothing worked.I’ve searched then here the BP froums plus additionally stack overflow but it seems there are so many techniques to link stuff that i’m utterly lost here.
There were also permalink tags with the term slug this and slug that so i thought i ask here again before my head explodes.
November 29, 2018 at 1:14 pm #282318shanebp
ModeratorSuggestion…
//notification alerts function my_nav_menu_notif_counter( $menu, $args ) { if (!is_user_logged_in()) { return $menu; } else { if( $args->theme_location == 'primary' ) { $unread = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); if ( 0 != $unread ) { $link = '<a href="' . bp_get_notifications_unread_permalink() . '">Notifications '. $unread . '</a>'; $notif = '<span class="noticecount">' . $link . '</span>'; $menu .= $notif; } } } return $menu; } add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter', 10, 2 );November 22, 2018 at 2:40 pm #282090In reply to: Problem with hotmail
josuesantana
ParticipantHola, tengo el mismo el problema que @doshermanastuciudadhoy no llega el email de confirmación a los dominios hotmail…
Al eliminar el código del archivo bp-core.filters.php la web peta, tambien es cierto que yo tengo la versión 3.2.0… este es el código:// Add 'List-Unsubscribe' header if applicable. if ( ! empty( $tokens['unsubscribe'] ) && $tokens['unsubscribe'] !== wp_login_url() ) { $user = get_user_by( 'email', $tokens['recipient.email'] ); $link = bp_email_get_unsubscribe_link( array( 'user_id' => $user->ID, 'notification_type' => $email->get( 'type' ), ) ); if ( ! empty( $link ) ) { $headers['List-Unsubscribe'] = sprintf( '<%s>', esc_url_raw( $link ) ); } } return $headers; } add_filter( 'bp_email_get_headers', 'bp_email_set_default_headers', 6, 4 );Podrías ayudarme?
November 13, 2018 at 7:25 am #281822In reply to: Can Buddy Press use Forgot Password Key
Anonymous User 16484011
InactiveHi !
Prashant,
Thanks again.
Sorry for delay in reply because I want experiments on your above article.
I read the whole third part of your above link. But it’s for making a plugin. I tried direct the changes to a demo wordpress installation php files but it’s not works for me. I mashed up because I haven’t core developer.
Can any other things or plugin solve my problem ?
I found on net about the same problem’s solution. I got the plugin pie for the same.
In this plugin I am able to add forgot password page template. Just go to pie register-> Notification -> Select tab User notification-> select template from dropdown “Password reset request”.
But after user fill password reset form when they click …
1) User got a link with token. I don’t want this ? I send just only token without link like otp.
2) After clicking user must redirect to page where they can paste the key which they received.
3) After pasting the key I have two options…
A) Either user redirect to create a new password and confirm password page.
B) OR user got a new password via mail which auto generated by site to their registered mail id.Thanks and Regards
October 21, 2018 at 10:32 pm #279275In reply to: No “Create Group” button is visible
tsortore
ParticipantHere is my theme and a list of plugins, most of which came with the premium theme. There have been no complaints I’ve found of the groups not working “out-of-the-box” with this theme.
*** These were the only plugins that did NOT come with the theme.
Theme: WOffice
Active Plugins:- Akismet Anti-spam
- All in one WP Migration
- BP xProfile Location ***
- BuddyPress
- Buddypress Xprofile Fields Custom Css Classes ***
- DP Pro Event Calendar
- Eonet Live Notifications
- File Away
- GamiPress
- LocateAnything ***
- Slider Revolution
- Unyson
- User Role Editor ***(suggested and tested compatible plugin)
- Wise Chat
- WP ERP
- WP ERP – PDF Invoice
- WP Bakery Page Builder
Still no luck getting group creation working.
Thanks for your response! Any ideas?
October 20, 2018 at 6:51 pm #279231Prashant Singh
ParticipantPlease try this code:
add_action('wp_footer','ps_remove_delete_button'); function ps_remove_delete_button(){ if(!current_user_can('manage_options')){ ?> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('.notifications .delete').hide(); jQuery('.notifications .confirm').each(function() { if (jQuery(this).text() == 'Delete') jQuery(this).hide(); }); }); </script> <?php } }Please check if body tag has class ‘notifications’.
Thanks
September 25, 2018 at 8:42 am #276737mutoha
ParticipantUmm…It’s difficult.
This time I solved it as follows.
(function($){ var url = location.href var urlSplit_notifications = url.split('/')[5]; if( urlSplit_notifications == 'notifications' ){ const target = document.getElementById("notifications-user-list"); const observer = new MutationObserver(records => { alert('completed!'); }); const options = { childList: true }; observer.observe(target, options); let shouldStopObserving = false; if(shouldStopObserving){ observer.disconnect(); } } })(jQuery);I really appreciate your help in resolving the problem.
See you whenever.September 24, 2018 at 4:37 pm #276697In reply to: Blank notifications in Buddypress
perteus
ParticipantHi, i have problem with this issue
I have WPForo and BuddyPress (but issue was same with bbpress) And if somebody reply on topic when i have subcribion, i have in notification menu blank title. Only Date and time send and action menu. In my Database in wp_bp_notitications is
id 13677 user_id 3 item_id 394 secondary_item_id 49 component_name community component_action wpforo_new_reply date_notified 2018-09-24 13:48:17 is_new 1September 18, 2018 at 4:07 pm #276549In reply to: Notifications alert is not working in Buddy Press
jillellarajakumar
ParticipantHi,
Thanks for the reply.
I have installed poll plugin. Once admin will create a poll, it should be display notification alert for the users.Not only about the poll. If i create events, breaking news and upcoming events etc.
You can register and login here,
Once login, you can see the right sidebar. Whatever i have update or create from right sidebar.
The notification alert should be display in top right with “bell” icon.August 28, 2018 at 5:18 am #275960In reply to: Notification not showing in user profile
raneeshct
ParticipantThanks. Unfortunately this is not what I am looking for. This notifies only the author of the blog. I need to notify all the users who commented on the particular blog.
ow let’s assume I have two users A and B registered in the website and consider a post with Title “Hello All”
1. User A made a comment on the post “Hello All”
2. User B made a reply comment to the User A’s commentit is expected to show a notification on User A profile under notification tab on site such us User B replied to your comment.
Please advice
August 27, 2018 at 5:49 am #275935In reply to: Notification not showing in user profile
raneeshct
ParticipantThis is not the solution I am looking for. Let me explain what I clearly needs.
I have an existing WordPress website with a few posts. I have installed BuddyPress plugin. Now let’s assume I have two users A and B registered in the website and consider a post with Title “Hello All”
1. User A made a comment on the post “Hello All”
2. User B made a reply comment to the User A’s commentit is expected to show a notification on User A profile under notification tab on site such us User B replied to your comment. Unfortunately this is not happening on the website. To cross check whether it is a theme issue, I have changed the theme to default themes of WordPress and notification is not yet showing. Please help. Looking forward to an immediate response.
Here is the website URL https://beanstalkminds.com/
August 26, 2018 at 9:50 pm #275926In reply to: Notification not showing in user profile
Prashant Singh
ParticipantI am not sure if you are creating blog posts or activity. BuddyPress sends notification for these updates https://codex.buddypress.org/administrator-guide/notifications/
If it is a blog post then you have to go with this code to get notification https://wordpress.stackexchange.com/questions/263950/new-post-notifications-for-users-buddypress
August 22, 2018 at 4:07 pm #275839Topic: Combine Read and Unread Notifications?
in forum How-to & Troubleshootingwallacelin
ParticipantHello, 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!
July 28, 2018 at 6:23 pm #275474Topic: How update default emal preference code ?
in forum How-to & Troubleshootingwebsite001
ParticipantHello 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.5June 24, 2018 at 9:04 pm #274684In reply to: Buddypress, Analytics & GDPR
knowitallninja
ParticipantHi @r-a-y
My apologies for responding so slowly. I didn’t get a response notification to my email for some reason.
As for Twitter. I’m not sure what they’re doing. I just know that Google Analytics are very clear that under GDPR no personally identifiable information should be passed in the URLs to Analytics and that usernames count as PII.
I had a look at that ticket. Unfortunately the code in there causes my member areas to not work. It does replace their usernames with their id numbers in the url, but the url isn’t functional.
So I guess my only option is to try that plugin to change all my users nicenames? That’s unfortunate. I really would hope the Buddypress developers would look into this as it is definitely an issue with Google Analytics conditions which I imagine many BP users do use.
I’ll give the nicenames plugin a go soon.
Thanks
May 31, 2018 at 3:40 am #273785ethanstein
ParticipantIt seems like parameters 6-8 are no longer being passed with the new version of buddypress?
This is my code which has been working:
function bp_custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string', $component_action, $component_name, $id ) { if ("wbp_party" === $component_name && is_user_logged_in()) { ... if ( 'string' === $format ) { $return = apply_filters( 'wbp_notification_filter','<a href="'.$custom_link.'">'.$custom_title.'</a> ', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'wbp_notification_filter_array', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } return $return; } } add_filter( 'bp_notifications_get_notifications_for_user', 'bp_custom_format_buddypress_notifications', 10, 8 );May 28, 2018 at 7:32 pm #273713In reply to: Activation Emails are not being sent
filipponeri20
ParticipantThanks a lot @sharebophar for your solution. I had to do a little of adjustment but it was right on the spot!
PROBLEM:
buddypress nouveau not sending activation email but buddypress nouveau sending correctly emails to user for notifications on manually activated users. So in my case the problem was ONLY that the validation email was not sent. I say ‘only’ from a technical perspective but from the user perspective was a VERY BIG issue. Again thanks @sharebophar for your solution
Also note that I am not running a wordpress multisite.SOLVED:
Here are the steps I have employed:STEP 1
a) browse to “/bp-core/bp-core-functions.php” in buddypress plugin directory
b) replace the code for ‘core-user-registration’ and ‘core-user-registration-with-blog’ with the following one'core-user-registration' => array( /* translators: do not remove {} brackets or translate its contents. */ 'post_title' => __( '[{{{site.name}}}] Activate your account', 'buddypress' ), /* translators: do not remove {} brackets or translate its contents. */ 'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: <a href=\"{{{activate.url}}}\">{{{activate.url}}}</a>", 'buddypress' ), /* translators: do not remove {} brackets or translate its contents. */ 'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' ), ), 'core-user-registration-with-blog' => array( /* translators: do not remove {} brackets or translate its contents. */ 'post_title' => __( '[{{{site.name}}}] Activate {{{user-site.url}}}', 'buddypress' ), /* translators: do not remove {} brackets or translate its contents. */ 'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account and site, go to the following link: <a href=\"{{{activate-site.url}}}\">{{{activate-site.url}}}</a>.\n\nAfter you activate, you can visit your site at <a href=\"{{{user-site.url}}}\">{{{user-site.url}}}</a>.", 'buddypress' ), /* translators: do not remove {} brackets or translate its contents. */ 'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}\n\nAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ), ),STEP 2
a) go to wordpress dashboard, settings, buddypress
b) select and run the ‘repair email’ optionSTEP 3
all now works. I have been testing it with dummy users. I hope the whole explanation helps.
Regards -
AuthorSearch Results