Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 651 through 675 (of 1,091 total)
  • Author
    Search Results
  • rypo73
    Participant

    Hi there. On a dev site we have a handful of users. As of about 48 hours ago, one of those users disappeared from the ‘who’s online’ or buddypress members plugins. Delving into it, I see that user has no last_activity row in the wp_usermeta table. They’re active all the time on the site – several times a day. Their activities appear and trigger the associated notifications etc. (friend requests, etc.)

    I inserted a row into the table with an incremented umeta_id and set a date/time value of yesterday evening. They then ‘reappeared’. However, the next time they logged in to do something, that row got wiped out altogether and we’re back to square one.

    Anyone-else experienced this? Anything we can do bar delete their user from the dbase and start over? Is it likely there will be other ‘corruptions’ in the dbase? Can you recommend a tool/plugin to ‘check’ the dbase for integrity or ‘fix’ a BuddyPress inconsitency?

    #162812
    ethanthekiwi
    Participant

    Thanks, I realized that I didn’t have email notifications working. Once I enabled those using WP-Mail-SMTP, I got the friend request and could see the tab. The URL for that page is http://localhost/members/username/friends/requests/

    makmacmc
    Participant

    Hello.

    I am running both the latest version of BB and WP.

    First of all thanks for a great plugin!

    I am running digital Access Pass and need to run registration and user profile fields through DAP.

    In BB settings (in profile) I see both General and Notifications. I know I can disable this but what I want to do is link ‘General’ to the DAP profile page and keep ‘Notifications’.

    I there a way to override the ‘General’ link without editing core files? if so, how?

    If I need to edit core files which ones would I need to edit to change the ‘General’ link and / or edit the BB user nav bar?

    Any help is greatly appreciated.

    Thanks!

    #162516
    oriadam
    Participant

    Hi @riente,
    I read your blog post twice but couldn’t get it…
    Did you edit the original BP code?
    Perhaps latest BP update changed the location of the function you edited.

    My code looks something like that:

    <?php
    require('wp-load.php');
    require_once('wp-includes/user.php');
    require_once('wp-includes/pluggable.php');
    require_once('wp-content/plugins/buddypress/bp-core/bp-core-loader.php');
    
    $from_id=get_current_user_id();
    if (empty($from_id)) exit; // do nothing if there's no current user
    ///////// ...some boring code here... ////////
    $sum=10; // for example
    $to_user_link = bp_core_get_userlink($to_id);
    $from_user_link = bp_core_get_userlink($from_id);
    
    $note_to="You got $sum points from $from_user_link"; // <--- notification to be sent to payee
    $note_from="You sent $sum points to $to_user_link";  // <--- notification to be sent to payer
    
    /********** Now how do I send the above notifications to the relevant users $from_id and $to_id? ********/
    bp_core_add_notification( $item_id, $to, $component_name, $component_action, $secondary_item_id);
    

    Thank you!

    David Cavins
    Keymaster

    Hi Modemlooper-

    My theme is a child theme of Twenty Twelve, so my style.css declares Template: twentytwelve.

    I followed your suggestion then took it a step farther and included slightly modified version of the js setup functions from the template pack in my `functions.php` file. I’ll post them here in case somebody else has the same problem I’m having:

    `function bp_support_theme_setup() {
    global $bp;

    // Load the default BuddyPress AJAX functions if it isn’t explicitly disabled or if it isn’t already included in a custom theme
    if ( ! function_exists( ‘bp_dtheme_ajax_querystring’ ) )
    require_once( BP_PLUGIN_DIR . ‘/bp-themes/bp-default/_inc/ajax.php’ );

    // Let’s tell BP that we support it!
    add_theme_support( ‘buddypress’ );

    if ( ! is_admin() ) {
    // Register buttons for the relevant component templates
    // Friends button
    if ( bp_is_active( ‘friends’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_add_friend_button’ );

    // Activity button
    if ( bp_is_active( ‘activity’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_send_public_message_button’ );

    // Messages button
    if ( bp_is_active( ‘messages’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_send_private_message_button’ );

    // Group buttons
    if ( bp_is_active( ‘groups’ ) ) {
    add_action( ‘bp_group_header_actions’, ‘bp_group_join_button’ );
    add_action( ‘bp_group_header_actions’, ‘bp_group_new_topic_button’ );
    add_action( ‘bp_directory_groups_actions’, ‘bp_group_join_button’ );
    }

    // Blog button
    if ( bp_is_active( ‘blogs’ ) )
    add_action( ‘bp_directory_blogs_actions’, ‘bp_blogs_visit_blog_button’ );
    }
    }
    add_action( ‘after_setup_theme’, ‘bp_support_theme_setup’, 11 );

    /**
    * Enqueues BuddyPress JS and related AJAX functions
    *
    * @since 1.2
    */
    function bp_support_enqueue_scripts() {

    // Add words that we need to use in JS to the end of the page so they can be translated and still used.
    $params = array(
    ‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
    ‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
    ‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
    ‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
    ‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
    ‘comments’ => __( ‘comments’, ‘buddypress’ ),
    ‘close’ => __( ‘Close’, ‘buddypress’ )
    );

    // BP 1.5+
    if ( version_compare( BP_VERSION, ‘1.3’, ‘>’ ) ) {
    // Bump this when changes are made to bust cache
    $version = ‘20120412’;

    $params[‘view’] = __( ‘View’, ‘buddypress’ );
    $params[‘mark_as_fav’] = __( ‘Favorite’, ‘buddypress’ );
    $params[‘remove_fav’] = __( ‘Remove Favorite’, ‘buddypress’ );
    }
    // BP 1.2.x
    else {
    $version = ‘20110729’;

    if ( bp_displayed_user_id() )
    $params[‘mention_explain’] = sprintf( __( “%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.”, ‘buddypress’ ), ‘@’ . bp_get_displayed_user_username(), bp_get_user_firstname( bp_get_displayed_user_fullname() ), bp_get_user_firstname( bp_get_displayed_user_fullname() ) );
    }

    // Enqueue the global JS – Ajax will not work without it
    wp_enqueue_script( ‘dtheme-ajax-js’, BP_PLUGIN_URL . ‘/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version );

    // Localize the JS strings
    wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );
    }
    add_action( ‘wp_enqueue_scripts’, ‘bp_support_enqueue_scripts’ );
    `

    Which is identical to installing the template pack only for the JS, I think. Everything’s working as expected, so I think we can consider this problem resolved. Thanks for your attention, Hugo and Modemlooper.

    -David

    #161570
    angslycke
    Participant

    @modemlooper Revisiting this thread. I’m still looking to change the activation e-mail to go to the site admin instead, and even though this should be fairly easy I must be missing something. The code should be something like this, right?

    `
    function my_redirect_activation_email()
    {
    return get_site_option( ‘admin_email’ );
    }
    add_filter(‘bp_core_activation_signup_user_notification_to’, ‘my_redirect_activation_email’);
    `

    Added this to my custom-functions.php but can’t seem to get it to work, WordPress stills sends the e-mail with the activation link to the new user instead. Any ideas? Thanks!

    #161538
    zaghareet
    Participant

    Sorry, I didn’t get an email notification that there was a reply.

    Yes, I did that and it didn’t change anything. Any other ideas?

    leepowers
    Participant

    When a user comments on an entry in an activity stream they are emailed a notification.

    This notification contains a link that results in an infinite redirect.

    The email reads as follows:

    To view the original activity, your comment and all replies, log in and visit: https://block122.com/activity/p/99/

    However the link provided:
    https://block122.com/activity/p/99/

    Results in an infinite redirect (finally stopping here):
    https://block122.com/activity/p/99/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/

    The link in the email is completely incorrect. It should be this instead:
    https://block122.com/members/lee-powers/activity/99/

    How can I ensure the correct link goes out?

    How can I fix it so anyone visiting an old single activity link gets redirected to the correct link?

    #161446

    In reply to: Forum Users Support

    tocia_pivot
    Participant

    I need some help this issue as it is still going on. And we are willing to hire someone to resolve this issue. We have installed SB but that sends two notifications. Then we deactivated but the notifications that is going out doesn’t provide a new user with a password. we’ve tried short coding it to no avail. We need some assistance from someone with the now how to fix this new subscriber notification issue we’re having. Someone with the now how, please email tocia@pivot-media.com – we are willing to pay for your service!

    Thanks

    Lee
    Participant

    Have a bug where the permalink in post timestamps is being rewritten to include the active logged in user’s name slug. The rewrite happens after the timestamp has been clicked and the opened page has begun to load. This causes the update link to load a page with no content instead of a page with the update in the content area of the theme.

    For example, if an update’s timestamp (or notification) links to

    http://example.com/activity/p/8838/

    after being clicked, the link changes to

    http://example.com/members/username/activity/8837/

    This bug happens in 1.7 and happened in 1.6.x too. Thought the update to 1.7 might fix it.

    I’ve tried resetting the permalinks and disabling plugins.

    Any ideas what might be causing it or how I might fix it?

    #161416
    Marcio batista
    Participant

    Hello, same problem here.
    How to fix?

    Error on line 95:
    “Warning: sprintf() [function.sprintf]: Too few arguments in /home/ninstitu/public_html/trevinhodasorte.com.br/comunidade/wp-content/plugins/buddypress/bp-activity/bp-activity-notifications.php on line 95”

    The action itself works, but why the error appears?
    Why the error?
    Remove the notification is not enough, everyone needs to do, much work. It is no longer so easy to fix?
    See the full archive here: http://pastebin.com/R4P5DGbg

    Thankful!

    #161188
    blg002
    Participant

    Is there a way to allow users to subscribe to a “Site Wide Forum” to be notified of any new topics in said forum.

    Part b) I would like to be able to make this the default for users.

    Part c) I would like this to be the default only for new users, I don’t want to annoy existing users.

    #161070
    LePasi
    Participant

    @Chouf1 Thanks, i know for sure how to change css of an element, but i have to create this element at first …

    and the code i was looking for is :
    ` $wp_toolbar->add_node(array(
    ‘id’ => ‘bp-notifications’,
    ‘title’ => __(‘ ‘),
    ‘href’ => bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/notices/’,
    /*’meta’ => array(‘class’ => ‘notifications’)*/
    )); `
    thanks to @bp-help , this is how to add a picture.

    Am i right, with the code above, there will be a div with the id bp-notification and a image will be place into it ? Is there a way to just create a div with a certain id and then control the image via background (css) ?

    I added the code and right now my code in this section (bp-member-adminbar.php) is this:
    Pastebin Code

    THE RESULT is … the toolbar disappeard. 🙁

    #160920
    boiy
    Participant

    @hnla

    please is there any code or plugging that can track specific keywords in my buddypress or wordpress site and notify the users who has mentioned that keyword

    example… if users are in the apple group.. and a user in the andriod group mentions ‘apple’ or about apple.. and if apple is among the keywords i want tracked

    then all users in the apple group should get a notification that a user in andriod group mentioned or said something related to their group or what was mentioned

    and also it should take more than one key word.. if its also possible to send all those users a mail when they are notified…

    coolicious
    Participant

    hello,

    i have some errors after updating to 1.7. these errors are under my footer of the Simple n Bright Theme.

    Strict Standards: Non-static method BP_Friends_Friendship::get_friendship_request_user_ids() should not be called statically in /www/htdocs/w0100a71/testdrivetests/wp-content/plugins/buddypress/bp-friends/bp-friends-functions.php on line 208

    Strict Standards: Non-static method BP_Messages_Thread::get_inbox_count() should not be called statically in /www/htdocs/w0100a71/testdrivetests/wp-content/plugins/buddypress/bp-messages/bp-messages-functions.php on line 216

    Strict Standards: Non-static method BP_Core_Notification::get_all_for_user() should not be called statically in /www/htdocs/w0100a71/testdrivetests/wp-content/plugins/buddypress/bp-members/bp-members-notifications.php on line 86

    Strict Standards: Non-static method BP_Messages_Notice::get_active() should not be called statically in /www/htdocs/w0100a71/testdrivetests/wp-content/plugins/buddypress/bp-messages/bp-messages-template.php on line 590

    Can you help me?

    Regards,
    Sandro

    Hugo Ashmore
    Participant

    @bphelp all the further requirements you want to add can be found in the various core files, I know no better than you at this stage and would have to be reading through those files to identify what functions, variables etc I had to work with to achieve what I wanted, I did something similar to this  a while back for  custom WP pages dragging user data out, the only way I managed that was by studying the core files.

    Without wanting to sound harsh 🙂  it’s down to you to finish now, the bits like avatars shouldn’t be too hard to figure now you’ve got this far.

    When it’s finished  get it placed on the WP plugin repo.

    bp-help
    Participant

    @hnla Okay I added this and it places the count under the title. Now all I need to do is:
    1.) Add name of person sending friend request and messages beside the count as well as the greeting.
    Example: You have 1 friend request from USER1, You have 2 messages from USER2

    2.) Add avatar of person sending the friend request or message to to left in the drop-down notification.

    If you or anyone else can help on that it will be great.
    For anyone who would like to use this I packaged it as a plugin here:
    https://github.com/bphelp/custom_toolbar
    If you would like to help with the code I can add you as a contributor. Thanks everyone!

    #157544
    Paul Wong-Gibbs
    Keymaster

    Assuming the Settings component is active, users can turn off notifications inside their profiles.

    Hugo Ashmore
    Participant

    now having to write this a second time as bp decided I wasn’t logged in for some odd reason after I submitted so this is brief.

    Watch your syntax, don’t wrap those functions in strings, ‘;’ line terminations in an array ought not to be there. You don’t need or want to echo out those functions at this point simply pass the function through so simply the ‘get’ function.

     

    This is a working example  of two:

    <code>

    $wp_toolbar->add_node(array(
    ‘parent’ => ‘user-friends’,
    ‘id’ => ‘friend-requests’,
    ‘title’ => ‘ Friend Requests ‘,
    ‘href’  => bp_loggedin_user_domain() . bp_get_friends_slug() . ‘/requests/’,
    ‘meta’ => array(‘html’ => ‘<span>’ . bp_friend_get_total_requests_count( bp_loggedin_user_id() ) . ‘</span>’ )
    ));

    </code>

    <code>

    $wp_toolbar->add_node(array(
    ‘parent’ => ‘user-messages’,
    ‘id’ => ‘messages’,
    ‘title’ => ‘ Messages ‘,
    ‘href’  => bp_loggedin_user_domain() .  bp_get_messages_slug() . ‘/view/’,
    ‘meta’ => array(‘html’ => ‘<span>’ . bp_get_total_unread_messages_count(bp_loggedin_user_id() . ‘</span>’ ) )
    ));

     

    </code>
    This isn’t ideal but all I can see to work with in add_node() but there may be better approaches, and to get this working I mainly had to study the code page to see how the ‘meta’ was handled.

    bp-help
    Participant

    @chouf1 with your help and hnla’s I have this working but even with the above examples in how to get the counts in a drop down I am not certain how to do this. Where do I place:

    echo bp_friend_get_total_requests_count( $user_id );

    echo bp_get_total_unread_messages_count($name );

    echo count($notifications);

    In the code because it either fires off an error or it actually echo’s the code. What am I doing wrong? Thanks again for all your help! 🙂
    `
    function custom_toolbar($wp_toolbar) {
    global $wp_admin_bar;

    if ( is_user_logged_in() ) {

    $wp_toolbar->add_node(array(
    ‘id’ => ‘bp-notifications’,
    ‘title’ => __(‘ ‘),
    ‘href’ => bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/notices/’,
    /*’meta’ => array(‘class’ => ‘notifications’)*/
    ));

    $wp_toolbar->add_node(array(
    ‘id’ => ‘user-friends’,
    ‘title’ => __(‘ ‘),
    ‘href’ => bp_loggedin_user_domain() . bp_get_friends_slug() . ‘/requests/’,
    /*’meta’ => array(‘class’ => ‘menupop’)*/
    ) );

    $wp_toolbar->add_node(array(
    ‘id’ => ‘user-messages’,
    ‘title’ => __(‘ ‘),
    ‘href’ => bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/view/’,
    /*’meta’ => array(‘class’ => ‘menupop’)*/
    ) );
    }
    }
    add_action(‘admin_bar_menu’, ‘custom_toolbar’, 999);
    `

    #156590
    bp-help
    Participant

    I made some changes now all the icons link to the pages but I need help to show the drop down menu for each individual notification. Here is what I have so far and I really am not certain of the id of each type of notification! Thanks in advance!

    
    function custom_toolbar($wp_toolbar) {
    global $wp_admin_bar;
    
    if ( is_user_logged_in() ) {
    	
    	$wp_toolbar->add_node(array(
    	'id' => 'bp-notifications',
    	'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/notifications.png" /> '),
    	'href'  => bp_loggedin_user_domain() .  bp_get_messages_slug() . '/notices/',
    	/*'meta' => array('class' => 'notifications')*/
    	));
    	
    	$wp_toolbar->add_node(array(
    	'id' => 'user-friends',
    	'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/friends.png" />'),
    	'href'  => bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/',
    	/*'meta' => array('class' => 'menupop')*/
    	) );
    	
    	$wp_toolbar->add_node(array(
    	'id' => 'user-messages',
    	'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/messages.png" />'),
    	'href'  => bp_loggedin_user_domain() .  bp_get_messages_slug() . '/view/',
    	/*'meta' => array('class' => 'menupop')*/
    	) );
    	}
    }
    add_action('admin_bar_menu', 'custom_toolbar', 999);
    
    #156560
    bp-help
    Participant

    Okay with this code I got all links to work. Thanks @chouf1 for helping. Now I just need the get the friend requests and messages to have a drop down to display when there is a message. If anyone has a better idea I am totally open to suggestions. I would like to get this working like facebooks if possible. Also I was wondering in the below code how can I get the images loaded dynamically from plugins /images folder I created? Thanks again!


    function custom_toolbar($wp_toolbar) {
    global $wp_admin_bar;

    if ( is_user_logged_in() ) {

    $wp_toolbar->add_node(array(
    'id' => 'bp-notifications',
    'title' => __(' '),
    'meta' => array('class' => 'notifications')
    ));

    $wp_toolbar->add_node(array(
    'id' => 'friends-requests',
    'title' =>__(' '),
    'href' => bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/',
    ) );

    $wp_toolbar->add_node(array(
    'id' => 'messages-inbox',
    'title' => __(' '),
    'href' => bp_loggedin_user_domain() . bp_get_messages_slug() . '/view/',
    ) );
    }
    }
    add_action('admin_bar_menu', 'custom_toolbar', 999);

    danbpfr
    Participant

    here’re the 3 counter. Their names are explicit enough i guess to see the right place where to use 😉

    echo bp_friend_get_total_requests_count( $user_id );

    echo bp_get_total_unread_messages_count($name );

    echo count($notifications);

    tvanes
    Participant

    Hi all,
    I have a Buddypress/WP site for a decidedly untechnical crowd, and I need a simple way people can choose to get notified about all new forum topics and all new blogs (it is not a high traffic site). This is not an RSS using group.

    The site has a single forum through bbpress and I am not sure, but I think the Buddypress management of the forum is not in place (I have no mysql tables specific to bbpress).

    I have a mailing list for newsletter purposes but what I am looking for is more of new content notification.

    Are there any suggestions to do one or both of these functions?

    Thank you!

    #154863
    Slava Abakumov
    Moderator

    Use a plugin Welcome Pack by Paul Gibbs and enable there emails editing. You will be able to edit all email that are sent to users.

Viewing 25 results - 651 through 675 (of 1,091 total)
Skip to toolbar