Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 826 through 850 (of 1,091 total)
  • Author
    Search Results
  • #120086
    jetlej
    Participant

    Progress: I found the BP function in the core and figured out how to alter it to achieve the effect, but I can’t figure out how to do this in the function.php file instead of altering the core file.

    The function:

    `function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) {
    global $bp;

    if ( empty( $date_notified ) )
    $date_notified = bp_core_current_time();

    $notification = new BP_Core_Notification;
    $notification->item_id = $item_id;
    $notification->user_id = $user_id;
    $notification->component_name = $component_name;
    $notification->component_action = $component_action;
    $notification->date_notified = $date_notified;
    $notification->is_new = 1;

    if ( !empty( $secondary_item_id ) )
    $notification->secondary_item_id = $secondary_item_id;

    if ( !$notification->save() )
    return false;

    return true;
    }`

    and adding the following above return true; made it work:

    ` if ( $component_name == ‘messages’ ){
    return false;
    }

    if ( $component_action == ‘friendship_request’ ){
    return false;
    } `

    #119922
    wendymerritt
    Participant

    1. WordPress v. 3.2.1
    2. WordPress is the root install of my shared hosting package with Hostgator
    3. If a directory install, is it in root or in a subdirectory?
    4. I was already running the current version of WordPress
    5. Yes, everything was functioning correctly before the upgrade
    6. BuddyPress v. 1.2.10
    7. I think I was previously using BuddyPress v. 1.2.9
    8. The plugins that are currently active on the domain are:
    BuddyPress Announce Group
    E-Newsletter
    Social Profiles Widget
    WordPress Amazon Associate
    WP-Cycle
    The plugins that are currently active on the network are:
    Akismet
    BackupBuddy
    Biblefox for WordPress
    BP Groupblog
    BuddyPress
    BuddyPress Badge
    BuddyPress Classifieds
    BUddyPress Mobile
    BuddyPress Sitemap Generator
    Flexi Pages Widget
    Genesis Connect
    Genesis Favicon uploader
    Genesis Simple Edits
    Genesis Simple Menus
    Google Calendar Events
    Membership Premium
    Multisite User Management
    Tiny MCE Advanced
    WPMU DEV Update Notifications
    9. Genesis theme with the GenesisBuddy Add-on
    10. Have you modified the core files in any way? No
    11. Do you have any custom functions in bp-custom.php? No
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? We don’t use bbPress
    13. Please provide a list of any errors in your server’s log files. My server Error Log file is empty
    14. Which company provides your hosting? Hostgator
    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux

    #119898
    acurran
    Member

    My 3 step solution to this problem is as follows:

    1. Install plugin – BuddyPress Pending Activations (https://wordpress.org/extend/plugins/buddypress-pending-activations/)
    2. Make hack to plugin function bp_pending_activations_admin() so that it sends an email when a user is activated:
    $resendusers = $wpdb->get_results( $wpdb->prepare( “SELECT u.ID, u.user_login, u.user_email, m.meta_value FROM ” . CUSTOM_USER_META_TABLE . ” m, “. CUSTOM_USER_TABLE .” u WHERE u.ID = m.user_id AND m.meta_key = ‘activation_key’ AND u.ID IN ({$userids})” ) );

    foreach ( $resendusers as $resend ) {

    /* Activate the signup */
    $user = apply_filters( ‘bp_core_activate_account’, bp_core_activate_signup( $resend->meta_value ) );

    /* If there was errors, add a message and redirect */
    if ( $user->errors ) {
    echo ‘There was an error activating this account, please try again: ‘. $resend->user_login;
    } else {
    $to = $resend->user_email;
    $subject = “Your ?????? Account Has Been Activated!”;
    $message = “Your account has been activated. Go to http://??????/ and sign in with the username and password that you created when you signed up.nnWelcome to ?????!”;
    $admin_email = get_site_option( “admin_email” );
    $from_name = “??????????”;
    $message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
    wp_mail( $to, $subject, $message, $message_headers );
    }
    3. Redirect activation email to admin (to use as a noitification for admin instead of automatically sending activition key to user) by adding this to functions.php:
    function change_activation_email_to($content) {
    return get_site_option( “admin_email” );
    }
    add_filter( ‘bp_core_activation_signup_user_notification_to’, ‘change_activation_email_to’);

    So the when a new user signs up, they do not get any activation email. That goes to the admin instead. You will need to change the wording in your template to let the user know that they have to wait for manual approval. Admin logs in to WP admin and goes to Pending Activitations and activates the user. An email is sent to user to let them know they have been activated.

    #119711
    r-a-y
    Keymaster

    Various notification settings are scattered throughout the BuddyPress codebase; each setting is saved as user meta.

    To disable them, you have to set each one to “no” for each member.

    eg. To disable email notifications for a member, you can use:
    `update_user_meta( $user_id, ‘notification_messages_new_message’, ‘no’ );`

    You’ll have to pass the user’s ID for the `$user_id` variable.

    In BP 1.2.9, to find notification settings, try looking at /plugins/buddypress/bp-X.php, where X is each component’s main loader and search for “notification_settings”, then grab the meta key and rinse and repeat:
    eg. https://buddypress.trac.wordpress.org/browser/tags/1.2.9/bp-messages.php#L254

    kloppster
    Member

    I am trying to update the message notification url that a user gets when they receive a private message. I would prefer the link to point directly to the new message, rather than the users message overview. Unfortunately this doesn’t seem possible without hacking the BP core code as the filter for the content doesn’t include the message_id. Is there any other possible way to do what I am trying to do, or any chance new filters could be added to this method?

    Andrew Behla
    Member

    I posted to the S2 member forum about a conflict that I’m having between the buddypress and S2 member plugins.

    I am getting the email error in the General Settings, Email Configuration:
    “Conflict warning: You have another theme or plugin installed that is preventing s2Member from controlling this aspect of your installation. When the pluggable function wp_new_user_notification() is handled by another plugin, it’s not possible for s2Member to allow customization of New User Emails. This is NOT a major issue. In fact, in some cases, it might be desirable. That being said, if you DO want to use s2Member’s customization of New User Emails, you will need to deactivate one plugin at a time until this conflict warning goes away.”

    When I deactivate the buddypress plugin, the error message goes away. My understanding is that S2 Members works with Buddypress, and i think it was working before. The problem is that because of the conflict, I’m not able to customize the welcome email after a user registers.

    I would still like to see if we could get rid of that error code message, the one that conflicts with buddypress. A big reason that I switched from Wishlist to S2 was so that it would work with Buddypress. Has anyone figured out how to fix the conflict so that customized emails can be created for new user signups?

    I’d like to customize the text in that email, but am not able to because of the conflict warning error message that I listed above. The options in the S2 member email settings to customize the email are all greyed out.

    #23767
    pandaboy
    Member

    Hi guys,

    Is there a way to cancel or re-send request to “Add as a Friend” on Buddypress?

    For some reasons, the users of my site have tried adding friends but the other party could not respond to it (it didnt appear on the request or notification page). I think there might be some conflict somewhere with a previous plugin I’ve used before (now new users can add friends without any problem) but the previous friend requests were all stuck.

    Please help.Thanks in advance.

    #118553

    In reply to: Frisco Child Theme

    David Carson
    Participant

    If anyone can help test browser compatibility for this theme, especially IE 7/8/9, I’d be very grateful. You can report issues here or on GitHub at https://github.com/davidtcarson/frisco/issues

    P.S. I’m pinging you @InterMike just to make sure you get notified about my last post with theme options info and custom.css usage. … I messed up your username in that post so you probably didn’t receive notification.

    staurand
    Member

    Same issue here with BuddyPress 1.2.9 & WP 3.2.1

    The problem seems to come from this file :
    /buddypress/bp-groups.php
    which calls
    do_action( 'groups_promoted_member', $user_id, $bp->groups->current_group->id );

    before the file below is included
    /buddypress/bp-groups/bp-groups-notifications.php
    that should add the action to add the notification:
    add_action( 'groups_promoted_member', 'groups_notification_promoted_member', 10, 2 );

    Quick fix:

    function addGroupNotificationFile($user_id, $group_id)
    {
    require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    }
    add_action('groups_promoted_member', 'addGroupNotificationFile', 100, 2);

    AlecTaylor
    Member

    Good Evening,

    I’m comparing BuddyPress with Drupal Commons, to figure out which to use on my student-group site.

    I’m a big time Drupal user/admin, but have used and administrated WordPress blogs in the past.

    On top of the regular social-network features (add friends, see friends profile, see feed of friends updates, message friends) I need:

    • Group functionality: Users can affiliate themselves to a certain group, to get notifications from them. Also events can be created by groups (by group-admin), and everyone is part of one group by default (for site-wide notifications).
    • Event support: users can RSVP for an event on the site-wide calendar
    • Users can express interest for an event to be held
    • Donation support: users can donate, and when they do, it’s [optionally] added to there profile)

    Which social-network package includes the aforementioned features?

    If both, which has a better theme collection?

    Thanks for all information,

    Alec Taylor

    FYI: And yes, I know that posting here will not give me an unbiased result, but at the same time, this is a niche software, so this is the best place to ask.

    cjones81
    Member

    I Would like to display new message notifications in

    r-a-y
    Keymaster

    Try this 3rd-party plugin:

    BuddyPress User Notifications Widget plugin

    Is this the wrong forum to discuss this idea?

    Anybody have any thoughts on this? Thanks

    David Bisset
    Participant

    Since search is still down here, forgive me if this is a repeat topic. Basically wondering if anyone else has encountered this and can provide a solution. Basically install the BuddyPress Skeleton Component into WP 3.2 / BP 1.2.9.

    The example menu tab examples work EXCEPT for the example under the settings tab (where general and notifications are for the profile). The menu tab is visible, but click it and you get redirected on the homepage. Maybe this is due to some hooks being moved or switched around – I know the skeleton component is showing it’s age but wondering if perhaps anyone can point me in the right direction. OR if anyone knows of a plugin that currently adds a menu choice under user settings.

    #115860
    mistercyril
    Participant

    I found a post written by Boone ( http://bpdevel.wordpress.com/author/boonebgorges/ ) where he says something about replacing all references to “$current_user” with “$bp->displayed_user” in order to allow super admins to have access to user settings.

    I am using BuddyPress v.1.2.8 and found this code in bp-core-settings.php…

    /***** NOTIFICATION SETTINGS ******/

    function bp_core_screen_notification_settings() {
    global $current_user, $bp_settings_updated;

    $bp_settings_updated = false;

    if ( $_POST ) {
    check_admin_referer('bp_settings_notifications');

    if ( $_POST ) {
    foreach ( (array)$_POST as $key => $value ) {
    update_user_meta( (int)$current_user->id, $key, $value );
    }
    }

    $bp_settings_updated = true;
    }

    add_action( 'bp_template_title', 'bp_core_screen_notification_settings_title' );
    add_action( 'bp_template_content', 'bp_core_screen_notification_settings_content' );

    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }

    function bp_core_screen_notification_settings_title() {
    _e( 'Notification Settings', 'buddypress' );
    }

    function bp_core_screen_notification_settings_content() {
    global $bp, $current_user, $bp_settings_updated; ?>

    <form action="loggedin_user->domain . BP_SETTINGS_SLUG . '/notifications' ?>" method="post" id="settings-form">

    <input type="submit" name="submit" value="" id="submit" class="auto" />

    <?php
    }

    Can someone help me out with implementing this?
    Thanks,
    C.

    #22934
    mistercyril
    Participant

    Hello,
    I was wondering if there was a clever way to switch default email notification settings from YES to NO for all my users.
    I would even be happy with guidance for doing it in SQL, but it should stay like this for new users as well…
    Thanks,
    C.

    #115158
    Marian
    Participant

    @en0ch

    So sorry I didn’t see your request for more help. I have my settings to be notified of any @mentions and replies to my forum posts but for some reason I did not receive any notification that you had replied. Not sure if it’s a problem with BuddyPress.org notifications or what.

    Anyway, it’s probably too late and you hopefully found a solution already, but I’ll post this here just in case you or anyone else are still looking for a way to disable the random visit menu in the BuddyPress admin bar without disabling the admin bar itself.

    Rather than explain the inadequate solution of changing #bp-adminbar-visitrandom-menu display to none in the stylesheet, let me give the function override solution instead:

    In your theme’s footer.php file, right BEFORE it says “, add the following code:
    `
    <?php
    if (!is_user_logged_in()) {
    remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_random_menu’, 100 );
    }
    ?>
    `
    That’s if you want the random visit menu to be removed only for users who are not logged in.

    If you want it to be removed for all users, whether or not they’re logged in, use this simpler code instead:
    `
    <?php
    remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_random_menu’, 100 );
    ?>
    `

    I see that the font for the code I just posted is not clearly legible in places. Please note that the remove_action line ends with a semi-colon ;

    HTH
    :-)
    Marian

    #115135
    Steve
    Participant

    Hi r-a-y,

    Almost two months after implementing this I have developed it further and it’s working great! Thanks again for your help.

    However, I am struggling to work out how I can implement this same function for status updates in addition to profile updates? Using your code, how would I need to edit it and where would it need to go?

    `
    function my_update_profile_send( $id ) {
    $text = bp_core_get_user_domain( $id );
    wp_mail( ‘YOUR ADMIN EMAIL ADDRESS’, ‘Profile Updated’, $text );
    }
    add_action( ‘xprofile_updated_profile’, ‘my_update_profile_send’ );
    `

    Cheers,
    Steve

    #22652
    Nahum
    Participant

    Is there a way to reset all Pending friend requests? Just for me as an admin to do and in general would it be a good idea to have a way to reset old pending friend requests older than X months. I know there’s a Requests tab under Friends that stores these but I’m trying to manually reset email notifications also. After years of old memberships and different site design changes, it would be nice to get a refresh on those pending friendships so users can try to refriend old users.

    ryy705
    Member

    Hello everyone,
    As I understand it, I have to use the following function to send a notification:
    `function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = false, $date_notified = false )`
    My question is: What is $item_id ? I looked at other plugins and some use it to send in the sender’s user id and some treat it as an unique id for the the notification. What is the proper way to use it?

    Scotty501
    Member

    When I post a reply to a topic as any user I get the following error.

    `http://www.picturemefamous.com/groups//
    Warning: Invalid argument supplied for foreach() in /home2/picturem/public_html/wp-content/plugins/buddypressbbpress-email-notification/bn-bb-notification.php on line 42

    Warning: Cannot modify header information – headers already sent by (output started at /home2/picturem/public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-templatetags.php:337) in /home2/picturem/public_html/wp-includes/pluggable.php on line 897`

    The topic does post – but the user sees the above message.

    The same applies if I create a new topic in a group too.

    #112709
    ScrltOTara
    Member

    I tested non-BP emails, like lost password, and got that just fine, so it’s just BP emails not sending. No user signup notifications or group digests at all, when they worked fine last week. I did nothing but upgrade the plugins since.

    pnerger
    Member

    I also had this problem and went through a deep analysis.

    The issue stems from the fact that Bluehost requires that the email be sent from an account that exists on the system. They do this as an anti-spam technique and they require this even if the mail is originating from within the system.

    Enter WordPress. PHP uses a mail function mail(). WordPress maps this to wp_mail() and pretty much everyone uses the wp_mail for the plugins within WordPress. This makes sense as it allows customization of WordPress mail at a relatively low cost of performance.

    Enter Buddypress. Buddypress places a filter upon wp_mail() such that all email originate from the user ‘noreply’ on the domain such that end users don’t reply to the notifications. Sounds cool.

    But remember that Bluehost does not allow email to be sent from non-accounts and that’s the catch.

    Using a foreign SMTP does not work for Bluehost blocks those ports. Using local SMTP will work but you need to provide the right setup and credentials. Finally, using mail-from plugin works since it filter’s the Buddyhost filter changing the email from address back to a valid Bluehost email account.

    Hopefully, this explains what is happening and you can choose which strategy you want to use to fix the problem.

    #112144
    @mercime
    Participant

    == All I want to do is to hide the “Dashboard” button ==

    Know that the “Dashboard” link in adminbar appears for logged-in users who have a role greater than Subscriber on your blog. If you still want to do this then if you don’t have one yet, create a bp-custom.php file, add the code below and upload to wp-content/plugins folder:
    `<?php
    remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_thisblog_menu’, 6 );
    ?>`

    == have Notifications and buttons like “Edit Profile” etc [in adminbar] ==

    Notifications link and “Edit Profile” buttons are already in adminbar for logged-in-users.

    PLEASE!!! My users are complaining loudly about this issue. Some of them have nearly a dozen un clearable notifications because of this issue! I can only imagine the chaos that will ensue once the community has been active for a year and they have dozens and dozens of notifications that won’t go away…

    And new users can’t find answers to these already answered forum topics!

    I think a simple solution would be to not allow forum topics to add to the activity stream. I can do this with a great plugin. But how do I clear all the notifications that users already have?? And besides, this is only a hack. I would like to keep forums updates in the activity stream, to encourage interaction.

    Thanks

Viewing 25 results - 826 through 850 (of 1,091 total)
Skip to toolbar