Search Results for 'notification user id'
-
Search Results
-
Thanks in advance for who may help me.
I´ve been trying, for more than one week, to create a custom notification and always got the same error, so I really need help:
WordPress database error: [Table 'dbase_wp.n' doesn't exist] SELECT * FROM n WHERE user_id IN (2) AND secondary_item_id IN (393) AND component_name IN ('activity') AND component_action IN ('new_at_mention') AND is_new = 1 WordPress database error: [Incorrect table name ''] INSERT INTO <code></code> (<code>user_id</code>, <code>item_id</code>,<code>secondary_item_id</code>, <code>component_name</code>, <code>component_action</code>,<code>date_notified</code>, <code>is_new</code>) VALUES (2,0,393,'activity','new_at_mention','',1) The code Im using to try this is: function buddypress_celebrities_add_notification ( $activity, $subject, $message, $content, $receiver_user_id ) { global $wpdb; $bp = buddypress(); $subject = 'Celebrity birthday'; $message = '1 Say happy birthday to $famoso_name'; $content = '2 Say happy birthday to $famoso_name'; $args = array( 'user_id' => 2, 'item_id' => $activity->id, 'secondary_item_id' => 393, 'component_name' => buddypress()->activity->id, 'component_action' => 'new_at_mention', 'date_notified' => $current_time, 'is_new' => 1, ); bp_notifications_add_notification( $args ); // $prueba = $args; } add_action( 'bp_activity_sent_mention_email', 'buddypress_celebrities_add_notification', 10, 1 ); // Then I call the function buddypress_celebrities_add_notification ( );//and after it DATABASE ERROR…
If someone can explain me what is going on or just point me in the righ direction to fix and understand this, I’ll be forever grateful.
I’m using BP for a client’s employee intranet and I’ve setup a custom admin dashboard for the client. The dashboard has two panels, one for WP related action and the second for BP related actions.
In the BP related panel, I want to add links for their authorized users to be able to send sitewide notifications and mass emails to their employees. Both these functions are on the frontend in the user’s profile messaging section.
To make this happen I need to add a dynamic link so when a user clicks on the email icon in dashboard panel the user will go to the compose mass message tab (added by 3rd party plugin) in their specific profile on the frontend.
I know how to accomplish this on the front end and in the menu navigation but none of the usual options or variables work inside the admin dashboard.
Any suggestions or advice on how to accomplish this?
Hi since 2 days people can’t upload activity updates with attached media anymore.
I found something in the debug.log. Someone an idea ? What does it mean ? Anyone else having this problem ? ( as admin I can upload btw)
[03-Aug-2015 10:25:11 UTC] PHP Notice: bp_core_get_notifications_for_user is deprecated since version 1.9! Use bp_notifications_get_notifications_for_user() instead. in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3391
[03-Aug-2015 10:25:11 UTC] PHP Notice: bp_core_get_notifications_for_user is deprecated since version 1.9! Use bp_notifications_get_notifications_for_user() instead. in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3391
[03-Aug-2015 10:25:12 UTC] PHP Notice: Undefined variable: fbcj_members_extension_check in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/buddypress-social-icons/buddypress-social-icons.php on line 11
[03-Aug-2015 10:25:12 UTC] PHP Notice: Undefined variable: fbcj_group_extension_check in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/buddypress-social-icons/buddypress-social-icons.php on line 28
[03-Aug-2015 10:25:12 UTC] PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3560
[03-Aug-2015 10:25:12 UTC] PHP Strict Standards: Declaration of myCRED_Notifications::after_general_settings() should be compatible with myCRED_Module::after_general_settings($mycred) in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/mycred-notice-plus/mycred-notice-plus.php on line 203
[03-Aug-2015 10:25:13 UTC] PHP Notice: Undefined variable: fbcj_members_extension_check in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/buddypress-social-icons/buddypress-social-icons.php on line 11
[03-Aug-2015 10:25:13 UTC] PHP Notice: Undefined variable: fbcj_group_extension_check in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/buddypress-social-icons/buddypress-social-icons.php on line 28
[03-Aug-2015 10:25:13 UTC] PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3560
[03-Aug-2015 10:25:13 UTC] PHP Strict Standards: Declaration of myCRED_Notifications::after_general_settings() should be compatible with myCRED_Module::after_general_settings($mycred) in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/mycred-notice-plus/mycred-notice-plus.php on line 203
[03-Aug-2015 10:25:14 UTC] PHP Notice: bp_core_get_notifications_for_user is deprecated since version 1.9! Use bp_notifications_get_notifications_for_user() instead. in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3391Hi,
I am trying to add to group activity stream and send a notification but its not working – Help pls
Adding to group activity like thisadd_post_type_support( 'product', 'buddypress-activity' ); function customize_page_tracking_args() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } global $bp; $gid = $bp->groups->current_group->id; $group = new BP_Groups_Group($gid, true); $user_id = get_current_user_id(); groups_record_activity( array( 'action' => apply_filters( 'groups_activity_new_update_action', sprintf( __( '%1$s publicó una actualización en %2$s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . esc_attr( bp_get_group_name( $group ) ) . '</a>' ) ), 'content' => $content, 'type' => $type, 'item_id' => $gid, 'user_id' => $user_id ) ); } add_action( 'save_post', 'customize_page_tracking_args', 1000 );Adding to notification like this
bp_notifications_add_notification( array( 'user_id' => $cid, 'item_id' => $post_id, ) );Hello I have a theme with a live notification feature, I asked the creator of the theme about how to add more notifications but he told me it all came from a buddypress notification table, so I should find a way to add the notification behavior on BP and then his add on will took those automatically.
I particularly want 2 more notification behaviors but I don’t really how to start, when you are in a group and you write something in one of the forums of that group, if somebody else write after you I woud like some kind of notification in order to follow the conversation. I tried the subscribe “+” but I didn’t receive nothing on my BP sire, (I can do it by email, but I would prefeer to avoid email notifications).
Same case with comments on products (I have bP and Woocommerce integrated), when somebody write something in a product I would like to automatically subscribe that user to receive updates or notifications if somebody answer him or write after him.
any idea how to adress those behaviors to facilitate the interaction between users?
Thanks!
Hi,
I’m trying to create custom notification in my plugin.
created this function in Class:
public function setup_globals( $args = array() ) {
global $bp;
$sr_notifications_test_slug = ‘sr_notifications_test’;
parent::setup_globals( array(
‘id’ => ‘sr_notifications_test’,
‘slug’ => $sr_notifications_test_slug,
‘notification_callback’ => array( $this, ‘sr_format_notifications_test’ )
) );/* Register this in the active components array */
$bp->active_components[$sr_notifications_test_slug] = ‘sr_notifications_test’;}
created following function :
function sr_format_notifications_test( $action, $item_id, $secondary_item_id, $total_items, $format = ‘string’ ) {
switch ( $action ) {
case ‘my_test’:
$link = get_permalink( $item_id );
$text = “Test Notification”;$return = apply_filters( $filter, array(
‘text’ => $text,
‘link’ => $link
), $link, (int) $total_items, $text, $link, $item_id, $secondary_item_id );
break;
}do_action( ‘sr_format_notifications_test’, $action, $item_id, $secondary_item_id, $total_items );
return $return;
}Notification added to DB:
bp_notifications_add_notification( array(
‘user_id’ => $user_id,
‘item_id’ => $activity->id,
‘secondary_item_id’ => $activity->user_id,
‘component_name’ => buddypress()->activity->id,
‘component_action’ => ‘my_test’,
‘date_notified’ => bp_core_current_time(),
‘is_new’ => 1) );
Please help call back function is not calling.
Thanks
I am looking to remove my WordPress Admin Bar (hide it completely) as users will not have access to most stuff on there anyway.
I would however like to keep the BuddyPress notifications area (the thing that says Howdy…) that has all the account options on.
I want to move this to an independent bar below my main menu as has been done on the BuddyPress site here, the bar that says BuddyPress.org My Sites and has the Howdy account bar on the right.
Does anyone know how this was done and how to do it?
I’ve been getting weird errors when trying to log an activity item via
bp_activity_add():WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '( user_id, component, type, action, content, primary_link, date_recorded, item_i' at line 1 for query INSERT INTO ( user_id, component, type, action, content, primary_link, date_recorded, item_id, secondary_item_id, hide_sitewide, is_spam ) VALUES ( 3163, 'members', 'new_member', '', '', '', '2015-07-16 15:47:00', 0, 0, 0, 0 ) made by require('wp-blog-header. php'), require_once('wp-load.php'), require_once('/srv/www/commons/current/web/wp-config. php'), require_once('wp-settings.php'), include('/themes/tuileries/functions.php'), bp_activity_add, BP_Activity_Activity->saveAs you can see, there’s no table name here. It should be
INSERT INTO wp_bp_activities...or thereabouts. It looks likeBP_Activity_Activity->save()is trying to access$bp->activity->table_name, but$bp->activitydoesn’t have atable_nameproperty at this stage. Instead, this is all that is in$bp->activity:BP_Activity_Component Object ( [name] => Activity Streams [id] => activity [slug] => [has_directory] => [path] => /srv/www/commons/current/web/app/plugins/buddypress/ [query] => [current_id] => [notification_callback] => [admin_menu] => [search_string] => [root_slug] => [meta_tables] => Array ( ) [global_tables] => Array ( ) [adminbar_myaccount_order] => 10 )Why isn’t there a table name here? How can I fix this?
Wordpress version is 4.2.2
Buddypress Version 2.3.2.1
bbpress Version 2.5.7
my website http://atheistzone.com/
I am using buddy premium theme.I am facing email related issue. I noticed it on Sunday when i sent mass emails from my old site and asked members to check out new site.
I noticed about 30 emails in pending columns. Activation emails were sent sometimes but most of the times were not sent.
Today i noticed another issue that is also related to email. Emails are sent but reaching about 10 to 45 minutes late in users’ account. I am also receiving notifications of new activity late.
Both activation emails and notifications of new replies are affected by this issue. Notifications of comments on blog posts are also reaching about 10 to 45 late in my email account. I am not using any email related plugin.
I have tested gmail as well as yahoo email account. Same problem. Email reaches late.
I have contacted my web host, HostGator twice via chat but he said it is not a server issue and blames software.
1. Which version of WordPress are you running?
4.2.22. Did you install WordPress as a directory or subdomain install?
3. If a directory install, is it in root or in a subdirectory?
It is at domain.com/members4. Did you upgrade from a previous version of WordPress? If so, from which version?
No5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
This is a fresh install–relatively, I’ve been playing and testing with it for a month or two, but no posts–not yet public.6. Which version of BP are you running?
2.3.2.17. Did you upgraded from a previous version of BP? If so, from which version?
I have updated my plugins whenever it asks so maybe, but the issues have been present pretty much since I started. I’vbe just been focusing on different areas.8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
Advanced Access Manager: not activated
Akismet: still need to get the API
Child Theme Configurator
Conditional Menus
Lazy Load for Videos
Microthemer: not activated
Press Permit Core: not activated
Restrict User Access
Simple:Press
UpdraftPlus – Backup/Restore
User Role Editor
Zippy CoursesSome are not activated because I was trying out a few different plugins for user roles.
9. Are you using the standard WordPress theme or customized theme?
I have created a child theme from the Social Triggers theme for Zippy Courses10. Have you modified the core files in any way?
I don’t think so.11. Do you have any custom functions in bp-custom.php?
I don’t think so.12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
Not running bbPress13. Please provide a list of any errors in your server’s log files.
How do I do this?
I copied the 300 most recent and removed those that were not from the members folder (smf forum had the most) and got a list of 16–of course there would be more if it listed more than 300. But these give addresses and IPs.
I’m probably not understanding how to do this.All of them are File not Found errors and there are 8 different ones–each error shows twice.
8 refer to Zippy courses, referencing the child theme and wp-admin
2: wp-admin/index.php
2: wp-admin/plugins.php
2: wp-admin/themes.php
2: wp-admin/update-core.phpThe other 8 do not refer to Zippy Courses, but otherwise refer to the same end places.
Does that help?14. Which company provides your hosting?
Cyberlynk15. Is your server running Windows, or if Linux; Apache, nginx or something else?
WindowsI switched themes to 2015 and then 2013 to see if it made a difference and it did not.
I installed a fresh install of WP at a new location (domain.com/members) for using the zippy courses plugin. Afterwards I thought I should try out BuddyPress with it, so I installed and activated it.
I’ve had some issues and I don’t know if its zippy courses, buddypress or something else. But I did just go to the codex and read that I should not have use softaculous to install WP.
So I think I should start over again—not a huge deal since I’m just playing around with zippy and buddy, but I would rather not lose some of the things I’ve done. How can I save what I’ve done and still reinstall? Zippy courses has an importer/exporter, so that’s no problem, but what about the other stuff:
I’ve set up user roles with a plugin and created a child theme and added a second menu and done some other things that, for me, took time.Some of the issues could simply be that I’m still learning (like the child-theme). All of the pages in both the zippy and buddypress core pages section say they are pointing to the page with the corresponding name. I have the front page set as Home. But when I try to go to the homepage it goes directly to the members page instead.
When I try the links at the top: activity, notifications, profile, settings; they all go toThe requested URL /members/members/Rollercoasterider/notifications/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.The only one that goes somewhere is the log out link and that goes to the Simple:Press forum I just set up—before I installed Simple:Press it went somewhere else. I don’t know why it is now going to Simple:Press. (Other than this now directing to Simple:Press, all these issues were present before I installed Simple:Press).
Why do pretty permalinks need to be used? I thought I read something (a few years ago) about these causing problems.
Hello,
1) Please i want when the user change his setting a green message in the page of profile general settings (~.com/members/hich-em/settings/) tell him changed successfully or error … i didn’t see it in my website for example i tried to change the email without giving the current password no erreur appears.2) i want when it changed successfully it send notification email tell him that his setting was changed
thanks 🙂
WP Version: 4.2.2
BP Version: 2.3.1Hey all!
I’ve recently installed BP and so far the functionality is great, but unfortunately it didn’t integrate perfectly with my theme. I would like to go in and alter a few things, specifically:
* Customize the search bar on the Members and Groups pages
* Change the thickness and color of the horizontal rules used throughout
* Change the color of the buttons used throughout (‘Post Update’, ‘Comment’, ‘Delete’, ‘Favorite’ etc.)
* Remove the white circles behind the counters for Notifications, Messages, Friends etc. on user pages, as well as on the counters for Members and Group Members on those respective pages, and throughout
* Remove the text highlight on the selected “section” of the various pages
* Change the background color of the input fields throughoutI am comfortable enough with CSS to do this and I’m sure it’s a simple matter, but I understand Buddypress’ CSS is integrated into its PHP files and I’m having a little trouble navigating, as I’m not familiar with PHP.
Can anyone point me in the right direction as to where to access the style elements of the default BP theme to make these minor changes?
Hi, I am creating the website dexterlist.com and the registered users do not receive any kind of notification (email, profile bell, live notifications) when someone comments to their posts. I am using a paid theme called Kleo: http://seventhqueen.com/themedemo/?product=kleo, WordPress version 4.2.2 and Buddypress version 2.3.1. The support forum of the Kleo theme told me it is not a theme problem but a Buddypress one. Please advise.