Search Results for 'notification user id'
-
Search Results
-
Hi, something i am a little stuck on with this, I would like to show the users Avatars in the notifications received via the notification bubble rather than just have the text, I cannot seem to find much about how i would do this after searching the net for answers, Can anyone point me in the right direction on how to do this?
I believe i would have to echo the avatar from user id :
echo bp_activity_avatar( array( ‘user_id’ => $user_id ) );
something like this maybe within the notification loop?
thx in advance.
I created a plugin that allows the members in a group to have a video chat. When the admin starts the chat a notification is send to all the group members.
The notifications are saved in the database but are not displayed in the notifications page.
This is the function that sets up the global variables for the plugin:function bp_group_videochat_setup_globals() {
global $bp, $wpdb;/* For internal identification */
$bp->videochat=new BP_Group_videochat();
$bp->videochat->id = ‘videochat’;$bp->videochat->table_name = $wpdb->base_prefix . ‘bp_group_videochat’;
$bp->videochat->notification_callback=’bp_group_videochat_format_notifications’;
$bp->videochat->slug = BP_GROUP_videochat_SLUG; //video-chat/* Register this in the active components array */
$bp->active_components[$bp->videochat->slug] =’1′;
do_action( ‘bp_group_videochat_setup_globals’ );
}
add_action( ‘bp_setup_globals’, ‘bp_group_videochat_setup_globals’ );And this is the format notifications function:
function bp_group_videochat_format_notifications( $action, $item_id, $secondary_item_id, $total_items) {
global $bp;
switch ( $action ) {
case ‘new_video_chat’:
$group_id = $secondary_item_id;$group = new BP_Groups_Group( $group_id );
$group_link = bp_get_group_permalink( $group );$groupSlug=groups_get_slug( $secondary_item_id);
$url=home_url( $bp->groups->slug . ‘/’ .$groupSlug . ‘/group-chat’ );
return ‘‘ . sprintf( __( ‘%s group broadcast invite!’, ‘video-chat’ ), $groupSlug ) . ‘‘;
break;
}
do_action( ‘bp_group_videochat_format_notifications’);
return false;}
To create the notifications I use the bp_notifications_add_notification function:
bp_notifications_add_notification( array(
‘user_id’ => $user,
‘item_id’ => rand(),
‘secondary_item_id’ => $bp->groups->current_group->id,
‘component_name’ => ‘video-chat’,
‘component_action’ => ‘new_video_chat’,
‘date_notified’ => bp_core_current_time(),
‘is_new’ => 1,
) );Is there anyone here that could help me? Should it work in theory?
I created a plugin that allows the members in a group to have a video chat. When the admin starts the chat a notification is send to all the group members:
bp_notifications_add_notification( array( 'user_id'=> $value, 'item_id'=> rand(), 'secondary_item_id' => $bp->groups->current_group->id, 'component_name'=> 'chat', 'component_action'=> 'new_group_chat', 'date_notified'=> bp_core_current_time(), 'is_new' => 1, ) );The notifications are saved in the database but are not displayed in the notifications page.
This is the function that sets up the global variables for the plugin:function bp_group_chat_setup_globals() { global $bp, $wpdb; /* For internal identification */ $bp->chat->id = 'chat'; $bp->chat->table_name = $wpdb->base_prefix . 'bp_group_chat'; $bp->chat->notification_callback='bp_group_chat_format_notifications'; $bp->chat->slug = BP_GROUP_chat_SLUG; /* Register this in the active components array */ $bp->active_components[$bp->chat->slug] = $bp->chat->id; do_action( 'bp_group_chat_setup_globals' ); } add_action( 'bp_setup_globals', 'bp_group_chat_setup_globals' );And this is the notifications format function:
function bp_group_chat_format_notifications( $action, $item_id, $secondary_item_id, $total_items) { global $bp; switch ( $action ) { case 'new_group_chat': $group_id = $secondary_item_id; $group_link = bp_get_group_permalink( $group ); $groupSlug=groups_get_slug( $secondary_item_id); $url=home_url( $bp->groups->slug . '/' .$groupSlug . '/' . 'group-chat' ); if ( (int)$total_items > 1 ){ return apply_filters('log_multiple_verifications_notification','' . sprintf( __( '%s group broadcast invite!', 'chat' ), $groupSlug ) . '',$total_items); } else{ return apply_filters('log_single_verifications_notification','' . sprintf( __( '%s group broadcast invite!', 'chat' ), $groupSlug ) . '',$total_items); } break; } do_action( 'bp_group_chat_format_notifications', $action, $item_id, $secondary_item_id, $total_items ); return false; }Any suggestions?
Hi,
I am looking for solutions to How to automatic scroll down page when i click for example “groups” or “notifications” or “frends”.
I found this topic https://buddypress.org/support/topic/scroll-down-user-profile-page/ but i don’t know where i must paste this<div id='anchor'>whatever</div>code.
I would like to when user click “groups” and then go to for example “notifications” he will be see your notifications at the top.He must scrool down page to see his notifications, groups, friends etc.
Please help.
Sorry for my english.In my budypress install (wp4.0, buddypress 2.1.1) a new reply message on the member notifications page is shown with an kader lid van fr_regiomanager” (yep dutch)
Of course i don’t want the user link href to show up like this, it shouldn’t show the nested user link or the one around it. Any ideas on how i can fix this? i tried to disable the translation as well but no luck. i’ts part of the bbp_format_buddypress_notifications function by the way.
hope someone has an idea, looks ugly 🙁
Topic: Custom post video share
Hello All,
I’m looking to create a BuddyPress site that allows users to share youtube videos. My wish list of the features I would like to create are as follows:
- Custom post type for adding a video (video post type).
- Create a page containing a loop filtered for displaying each video post.
- Create an entry in the activity stream alerting that a new video has been posted.
- Create a notification that alerts users if their friends adds a video.
I am pretty clear on how to create a custom post type and then create a filtered loop to display the custom posts. I’m not so sure about adding an entry to the activity stream and creating an alert for the users’ friends. Would anyone be able to give me some advice on how to achieve this?
Cheers!
Hello, i’m using the latest BP release with the latest WP release but unfortunately some counters does not working correctly for me. Here a picture:

There is one group created, and the counter for groups is not showing 1 but count, reverse other counters does not show correctly the zero numeber (show no-count)
I recently disabled with code the “Register” page, the one of BP, and also installed a registration anti-spam software.
Already tried myself to change the original code i found: bp_get_total_group_count_for_user() with the only one is working for me (notifications): bp_get_total_group_count_for_user( bp_loggedin_user_id() )
But this does not work. A little help should be creately appreciated… Stefano
i manipulated the selector for albums and now user are available to upload pictures to any album_id they want but now i always get a error notification.
I think that buddypress check wheater the album exist or not. How can i switch this off?
Alright, so I’m almost ripping out my hair over this. I’ve checked other threads on here, I’ve put the .po and .mo files in multiple directories (wp-content/languages, theme/languages, bp-languages), I’ve added the bp-custom file, tried to change the language with wp-config, and even selected the language from Settings->General.
All I’m trying to do is change some of the words talking about friends to something else. I’m not using a BuddyPress theme, it’s the Duena theme (https://wordpress.org/themes/duena).
I took the .pot file and edited it with a text editor for Ubuntu called gedit, then I saved it as .mo & .po files and named them accordingly. I’ve triple checked every other fix to the issue for the past few days and have had zero success.
Since this is supposed to help, here is my info below. Any help is greatly appreciated! I just need a simple step-by-step of what to do for my versions of WP and BP, I can follow them to the letter, and then report what happens.
1. Which version of WordPress are you running? 4.0
2. Did you install WordPress as a directory or subdomain install? Directory.
3. If a directory install, is it in root or in a subdirectory? Root.
4. Did you upgrade from a previous version of WordPress? If so, from which version? The previous version, but was having the issue prior to the upgrade.
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes, everything works perfect, I just need certain words like “Friends” changed to something else.
6. Which version of BP are you running? 2.0.2
7. Did you upgraded from a previous version of BP? If so, from which version? The previous one, had this issue prior to the upgrade.
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? (BuddyDev)BP Poke, All In One SEO Pack, BP Profile Search, BP Xtra Signup, Buddypress – Who clicked at my Profile?, BuddyPress Edit Activity Stream, BuddyPress Friends Only Activity Stream, BuddyPress Live Notification, BuddyPress Username Changer, BuddyPress Usernames Only, Gatekeeper, Limit Login Attempts, Maintenance, Membership Premium, Registration Honeypot, RS Buddypress Activity Refresh, rtMedia for WordPress BuddyPress and bbPress, Simple Login Log, Useful Banner Manager, and Welcome Pack.
9. Are you using the standard BuddyPress themes or customized themes? Duena, so a regular theme? Not designed particularly for BuddyPress though.
10. Have you modified the core files in any way? Other than uploading the .mo & .po files and the bp-custom.php, no.
11. Do you have any custom functions in bp-custom.php? Yes, the function from every tutorial talking about the language, but changed for my custom language file.
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? Nope, no bbPress.13. Please provide a list of any errors in your server’s log files. None.
14. Which company provides your hosting? My own, HostArmor.
15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux + Apache.
First off:
1. Which version of WordPress are you running?
a. Wordpress 4.02. Did you install WordPress as a directory or subdomain install?
a. Main directory3. If a directory install, is it in root or in a subdirectory?
a. n/a4. Did you upgrade from a previous version of WordPress? If so, from which version?
a. Yes, 3.85. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
a. No. Alphabetical pagination was only showing 20 members previously6. Which version of BP are you running?
a. Version 2.0.27. Did you upgraded from a previous version of BP? If so, from which version?
a. No8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
a. Add New Default Avatar 1.3.1
b. Backup 2.2
c. BuddyPress 2.0.2
d. BuddyPress Pending Activations 1.0.2
e. BuddyPress Real Names 0.3.5
f. Contact Form 7 3.9.3
g. Custom Facebook Feed 2.1.1
h. Email Address Encoder 1.0.4
i. Google Analytics Dashboard for WP 4.3.3
j. JotForm Feedback Button 1.0
k. Newsletter 3.6.3
l. Photo Gallery 1.1.30
m. PHP Code for posts 1.2.0
n. SYN Media WooCommerce USPS 2.1.0
o. The Events Calendar 3.7
p. The Events Calendar: WooCommerce Tickets 3.7
q. The Events Calendar PRO 3.7
r. WooCommerce 2.1.12
s. WooCommerce Advanced Notifications 1.1.9
t. WooCommerce Advanced Product Quantities 2.1.6
u. WooCommerce Subscriptions 1.5.9
v. WooCommerce Thumbnail Input Quantities 1.1.2
w. WooThemes Helper 1.3.0
x. WP-Members 2.9.6
y. WPFront User Role Editor 1.29. Are you using the standard BuddyPress themes or customized themes?
a. Custom theme10. Have you modified the core files in any way?
a. No, only member-loop11. Do you have any custom functions in bp-custom.php?
a. No12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
a. N/A13. Please provide a list of any errors in your server’s log files.
a. WordPress database error Unknown column ‘bprn_293’ in ‘having clause’ for query SELECT COUNT(u.ID) FROM vae_bp_xprofile_data u GROUP BY u.user_id HAVING bprn_293 IS NOT NULL AND bprn_1 IS NOT NULL made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/headway/index.php’), HeadwayDisplay::layout, HeadwayDisplay::grid, HeadwayLayoutRenderer->display, HeadwayGridRenderer->render_grid, HeadwayBlocks::display_block, do_action(‘headway_block_content_content’), call_user_func_array, HeadwayContentBlock->content, HeadwayContentBlockDisplay->display, HeadwayContentBlockDisplay->loop, HeadwayContentBlockDisplay->display_entry, HeadwayContentBlockDisplay->display_entry_content, the_content, apply_filters(‘the_content’), call_user_func_array, bp_replace_the_content, apply_filters(‘bp_replace_the_content’), call_user_func_array, BP_Members_Theme_Compat->directory_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require(‘/themes/iherb/buddypress/members/index.php’), bp_get_template_part, bp_locate_template, load_template, require(‘/themes/iherb/buddypress/members/members-loop.php’), bp_has_members, BP_Core_Members_Template->__construct, bp_core_get_users, BP_User_Query->__construct, BP_User_Query->do_user_ids_query14. Which company provides your hosting?
a. Our own – That Hosting Company (http://thathost.co)15. Is your server running Windows, or if Linux; Apache, nginx or something else?
CentOS 5.8 (64 bits version) – Interworx Front End 5.0.14-580
———————The problem:
We are using a custom members-loop. The pagination on the alphabetical list is limiting the members to the first 20 and not offering additional pagesTroubleshooting:
– We attempted to adjust the ajax search query, but it did not seem to make a difference.
– We removed the custom buddypress member-loop and used the default. We found the same issue occurred.Notes:
– We have 143 members
– We are using a custom theme builder “Headway”
– Pagination issue does not seem to be effecting “Latest”, “Random” or “Newest Registered” Options.
– Site is live at http://www.iherb.org/members/