Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 676 through 700 (of 1,091 total)
  • Author
    Search Results
  • #154713
    funmi omoba
    Participant

    @naijaping, what a good job. Please can you share some of your code with us.

    1 how to have a notification menu like urs friend request, message etc.

    Or better still if you can give me ur child theme. I dont mind to pay some quid.

    Awaiting ur reply.
    Thanks

    2 how did you get auto loadmore working.

    3 also online / offline user icon.

    #154651
    mavraky
    Participant

    Hello,

    Im using the latest version of WordPress and Buddypress. I can’t find the option to activate the group site notification (does it exist?) so when some member of a particular group post something inside of it the other users get notified in the site notification system (not by email) How to make it work?

     

    Thank you

    bp-help
    Participant

    @medemlooper It just does not work, is there an error in the syntax, did you forget the add action below the function? Just curious because I can not get it to work. I wish there was an easier way to do this because It would be awesome. Please help I am stuck and I have done just about everything I know to do to get this going!

    bp-help
    Participant

    @modemlooper I used the code you supplied on gethub and I put it in my child themes functions.php between opening and closing php tags. Then I placed bp_notification_badge() within opening and closing php tags in the header.php just under the div id=”header” and nothing shows up at all. What have I done wrong?

    bp-help
    Participant

    @modemlooper I am interested in using this too! Just for clarification would you place the function in the link you provided https://gist.github.com/modemlooper/5042788 in functions.php in my child theme then edit the header.php and then add as a li item in the menu or somewhere else in the header.php? Then style it in the style.css. Thank you!

    Andres Felipe
    Participant

    Hi, that is just what I (and think a lot of us) need. Nothing yet about the widget code?

    P.S: In this moment I’m using BuddyBar widget (https://wordpress.org/extend/plugins/buddybar-widget/) plugin is not as good as @naijaping code but do its job. A god thing about this plugin is than give You a Log in form and after log in, it changes to something like @naijaping widget.

    #153546
    David Hunt
    Participant

    Okay, phew, it wasn’t as serious as I first thought. This now won’t send an email if the content is empty (which is, apparently, the case when a user is being deleted):

    `function pa_send_notification_email( $args ) {
    // If current user deletes his/her own activity, do nothing
    if (($args[‘user_id’] != bp_loggedin_user_id())) {
    $ud = get_userdata($args[‘user_id’]);
    $to = $ud->user_email;
    // Build the message
    if (($to) && ($to != ”)) {
    global $wpdb;
    $content = $wpdb->get_var( $wpdb->prepare( “SELECT content FROM “.$wpdb->prefix.”bp_activity WHERE id = %d;”, $args[‘id’] ) );
    if ($content != ”) {
    $subject = ‘Your post has been removed’;
    $message = ‘A moderator has removed your post. If you want to know why, please forward this message to the moderation team.
    ‘;
    $message .= ‘Removed content:
    ‘;

    $message .= wpautop( $content );
    $message .= ”;

    //Send email
    wp_mail($to, $subject, $message, ‘content-type: text/html’ );
    }
    }
    }
    }
    add_action( ‘bp_before_activity_delete’, ‘pa_send_notification_email’);`

    #153544
    David Hunt
    Participant

    Hmm, the situation is not as dire as I thought. I did more testing and it appears that, when I delete a user who as posted multiple times, my function only sends one notification email to the user — but the SQL query is empty (as we might expect). So I think all I need to do is put a check in to see whether the deleted “content” is empty or not, and if it is, don’t send the email.

    I’ll keep updating this thread with my findings in case it’s useful to anyone!

    #153540
    David Hunt
    Participant

    Revisiting this thread with a new issue!

    My function has been working well, except I’ve recently discovered a small flaw: if an administrator deletes a user, then the user receives an email informing him or her that his activity has been removed for each and every thing he or she has ever posted! For a prolific user, that could be hundreds or thousands of emails. Not good!

    This is by virtue of the user-delete process — it appears as though BuddyPress deletes each activity individually, and then WordPress deletes the user account.

    For reference, my function is:

    `function pa_send_notification_email( $args ) {
    // If current user deletes his/her own activity, do nothing
    // otherwise construct and send email
    if ($args[‘user_id’] != bp_loggedin_user_id()) {
    $ud = get_userdata($args[‘user_id’]);
    $to = $ud->user_email;
    // Build the message
    if (($to) && ($to != ”)) {
    $subject = ‘Your post has been removed’;
    $message = ‘A moderator has removed your post. If you want to know why, please forward this message to the moderation team.
    ‘;
    $message .= ‘Removed content:
    ‘;
    global $wpdb;
    $message .= wpautop( $wpdb->get_var( $wpdb->prepare( “SELECT content FROM “.$wpdb->prefix.”bp_activity WHERE id = %d;”, $args[‘id’] ) ) );
    $message .= ”;

    //Send email
    wp_mail($to, $subject, $message, ‘content-type: text/html’ );
    }
    }
    }
    add_action( ‘bp_before_activity_delete’, ‘pa_send_notification_email’);`

    So what I think I need is an extra check in my function, to make sure we are not about to delete the user. I’ve thought about a secondary function to hook into the `delete_user` action to set a global variable, and then checking for this variable in my `pa_send_notification_email()` function.

    But I am not sure how to go about this. Does anyone have any thoughts?

    #153451
    philipt18
    Participant

    I’m using Buddypress Social from WPMU.

    I switched to BP Default and:

    – didn’t see the double avatar in the Activity list
    – same problem with updating my profile
    – same problem trying to create a Group

    For the first issue, of confirming a friend, it was a little more complicated. I used Safari which was logged into antoher user account to accept friendship. It worked normally. I then went to the Friends list, and cancelled the friendship. I’m not sure why the friend was still listed there, but I took advantage of that and clicked on the Add Friend button. It loaded a new page that said:

    Are you sure you want to do this?

    and then a link that said:

    Please try again.

    which links back to my Friends page, which this time was blank. In any case, the combination of ‘Are you sure…’ and ‘Please try again.’ seems out of place.

    I then went to the Members page, and clicked Add Friend again. I then went to the Members page using my admin account (the account I requested friendship of) and it listed the members including the account I requested from – and next to that name it had a button labeled ‘Cancel Friend Request’ which seems backwards. However, I noticed two notifications in the top menu, one which said the user had accepted my friendship request, and another saying the user had requested my friendship. I selected the second one and was taken to the Requests page. I clicked Accept and it seemed to work normally.

    Hope that’s all clear…

    #153369
    Keith Kelly
    Participant

    I did check out some of the “like” plugins, but most of them hadn’t been maintained or didn’t work properly. I was hoping to tailor a core feature to work in a similar, simple way. So far I think what I have done works great, but just need to incorporate notifications.

    I still think that it wold be useful if a user was notified when someone favorited their activity.

    #153054
    Derek Melo
    Participant

    Hey guys!!!

    Everytime I mention any user I get this error:

    /wp-content/plugins/buddypress/bp-activity/bp-activity-notifications.php on line 95

    How can I fix that?

    WP version: 3.5.1
    BP Version: 1.6.4

    Activated plugins:

    BP Group Documents
    BP Group Management
    BP Show activity liked names
    BuddyPlug
    BuddyPress
    BuddyPress Avatar Bubble
    BuddyPress Extended Friendship Request
    Buddypress Jquery Activity Stream Widget
    BuddyPress Message Attachment
    BuddyPress Translations
    BuddyPress user account type PRO
    CodeStyling Localization
    TDLC Birthdays

    Thanks

    Derek

    Paul Wong-Gibbs
    Keymaster

    Set your users to the Contributor role, not Editor. Contributors can write drafts, but can’t publish.

    I also want these people to receive notifications every time a new post is published.

    If you specifically mean notifications inside BuddyPress, I’m not aware of any plugins that do this. You’ll have to write something yourself. If you mean notifications more generally, consider using the Jetpack plugin — users can subscribe to your site, and receive email updates when a post is published.

    Regardless of what type of notification you meant, you’ll probably have to write some custom code to get it to send a message to your users when e.g. you promote them to Editor.

    omgbud
    Participant

    Hi,

    this is a code I use personally, but requires you to edit the bp-groups-actions.php, sorry i do not know how to write function.

    open buddypress/bp-groups/bp-groups-actions.php

    around line 150

    After this line:
    `do_action( ‘groups_group_create_complete’, $bp->groups->new_group_id );`

    Add this code:
    ` $to = “YOUREMAILADDRESS”;
    $name= bp_core_get_username(bp_loggedin_user_id());
    $groupname = bp_get_new_group_name(bp_get_new_group_id());
    $groupurl = bp_get_group_permalink( $bp->groups->current_group );
    $subject = “$name created new group $groupname”;
    $body = “$name created new group $groupname, visit $groupurl”;
    mail($to, $subject, $body);
    `

    That’s it, when a user hit the Finish create group button this code will send to the email stated address with the newly created group link. use at your own risk. Hope someone better can create a theme function or a plugin for this.

    This is needed to keep track of newly created groups to alert you if spammers are creating groups to spam.

    Hope it helps.

    #151573
    myladeybugg
    Participant

    I did find this one: Tagged User Notification It seems to be working so far.

    myladeybugg
    Participant

    I am looking to move or add part of the admin bar to my main nav bar. I would like to add the login/user and notifications to my main nav bar and hide the admin bar on the front end.

    I know how to remove it, but can’t seem to figure out how to add these features to my nav bar.

    This is the portion of the admin bar I need:

    View post on imgur.com

    And here is where I would like to add it:

    View post on imgur.com

    #150296
    rhodez
    Participant

    Hi there,

    A suggestion: push notifications from BuddyPress to smartphones (iPhone, Android) would be a killer feature. Getting activity stream updates (user selects filter preferences) to smart phone really would really make a huge difference in engagement. There is already a plugin for WordPress for this purpose (http://wordpress.org/extend/plugins/pushover-notifications/), but it would be a lot more useful for BuddyPress!

    myladeybugg
    Participant

    I am looking to customize all email content, activation emails as well as notification emails. I am using WP multisite with buddypress.

    Currently when an email comes through it looks like this:

    New comment on your post “My Comments Work”
    Author : USER (IP: xx.xxx.xxx.xxx , )
    E-mail : USER@aol.com
    URL :
    Whois : http://whois.arin.net/rest/ip/xx.xxx.xxx.xxx
    Comment:
    Hello

    You can see all comments on this post here:
    http://domain.com/2012/12/19/my-comments-work/#comments

    Permalink: http://domain.com/2012/12/19/my-comments-work/#comment-6
    Trash it: http://domain.com/wp-admin/comment.php?action=trash&c=6
    Spam it: http://domain.com/wp-admin/comment.php?action=spam&c=6

    I would like to get rid of most of the content in this email. Any ideas on where to locate the files?

    Thanks

    VegasKev88
    Participant

    I’m in the last testing phases of my site before and launch and I’ve hit a snag. I’m running WP 3.5 with BP 1.6.2.

    I have the group invites plugin enabled for group invites and the invite anyone plugin for membership invites.

    I tried to send an invite for membership to a friend and he did not get it. I thought that maybe it just hit his spam folder by accident, so I manually added him.

    Once he was added, I invited him to the dev group for the site. I got the green status bar notification telling me that the invite was successful.

    I was logged into his account in a different browser and I waited/refreshed for at least 15 minutes and the notification icon has stayed at zero.

    I clicked on the notification icon, thinking it was just slow to update, and there still were no notifications.

    He thoroughly checked his spam one more time and no email notifications either.

    I then created a dummy account with another email of mine, and I got the same results.

    Then I tried to send friend requests. No notifications for those either.

    Oddly enough, I have two demo users that I created a couple of weeks ago, and when they send private messages to each other, they do receive the notifications in the buddybar.

    So it seems that goup invites, membership invites and friend invites are the ones that are not functioning as needed.

    Any thoughts on this would be awesome. I saw several threads similar to this from a few years ago, but nothing relative or recent from what I can see. Thanks in advance.

    adamlawson
    Participant

    Hello all,

    My Name is Adam and I am very new to the WordPress/Buddypress scene. My experience with it has been outstanding. Its ease of use and many features makes this a valuable resource. I have some questions regarding WordPress and Buddypress integration. Once installed I will be running the latest version of both.

    Allow me to paint my scenario then asks my questions. Please respond to all that you can. I can also be contacted directly via email at admcalvin@yahoo.com

    Thank you in advanced!

    I am creating a website that will be generating content (mostly articles) for specific categories. For sensitive reasons I will use bogus examples here. Some examples are Fashion, Design, Hair, Modeling etc… I want to integrate these articles with the social abilities of Buddypress. Providing the end user the ability to comment, post, share, re-post etc…

    The site home page will consist of a custom page (not posts) where users will see an aesthetically pleasing overview of the categories. Once they click on the category to read further detail they will be asked to create a profile. This is where the Buddypress integration comes in.

    The end user clicks on a category, and begins to fill out the profile questionnaire. Some questions would be, Age, Gender, Categories interested in etc… Once they fill this out they would be redirected to the page that they were originally interested in. At the bottom of the article will be a button for “My Dashboard”.

    What I would like to do is to create a sort of Dashboard for the user that would provide the articles/posts per the answers that they filled out in the Profile Questionnaire. Hence if I chose Fashion and Hair, I could click “My Dashboard” and view those articles. I would like the end user to be able to change this content whenever they want. Remove/add cotegories etc…

    In the broad sense of Buddypress I still want to use the Profile and Activity Streams. The end user could see new posts or other friends or groups activity, comments etc…

    So with that my questions would be this:

    1. Create a custom profile questionnaire

    2. Setup the redirection once the questionnaire has been filled out

    3. Create a Dashboard with content generated from the questionnaire

    4. Setup notifications to notify the user that their profile is not complete. For example “Profile Setup” like add more categories or invite friends, add profile photo etc…

    Again please answer all that you can. Who knows maybe there are plugins that manage these sorts of things.

    Thanks again, I greatly appreciate the input.

    #149879
    VegasKev88
    Participant

    I’m working on a buddypress install where I want to keep /members/ , /forums/ , /groups/forums/ and a few other areas private to non-logged in users.

    I’ve thought about adding s2Member however, since I won’t be charging for anything on the site, s2Member is a bit overbearing for what I want to do.

    I also thought about adding the ‘Private BuddyPress’ plugin, however, that appears to only give options to select specific pages, rather than page templates, and for the buddypress, it seems to be an ‘all or nothing’ kind of scenario.

    If there isn’t a plugin out there that people can vouch for, I’m cool with coding it myself, I’ve just never attempted to make page templates function in this fashion.

    Ideally, what I’d like to do is this.

    when a non-logged in site visitor visits a page that is dedicated to logged in members only, they are able to visit the page, but the content would not appear, instead of the ‘content’ being shown, it could maybe route to pull content from another php template that would have a notification box with a message about registering or logging in and then I could add a banner to the login page and a banner to the register page.

    I know this isn’t too difficult to code, but I’m having some difficulty determining where best to start in the codex to start writing the code. If someone could point me in the right direction, that would be awesome, unless of course, there is a plugin that would solve my issue in 5 minutes instead of coding. I’m just fearful of using s2Member as it’s heavy for what I need.

    Thanks in advance for any assistance.

    #149470
    black key
    Participant

    // the problem with your code:
    $bp->bp_like->slug = ‘bp_like’;
    ——————————————————
    function bp_like_setup_globals() {
    global $bp, $current_blog;
    $bp->bp_like=new stdClass();
    $bp->bp_like->id = ‘bp-like’;
    $bp->bp_like->slug = ‘bp_like’;
    $bp->bp_like->notification_callback = ‘bp_like_format_notifications’;
    $bp->active_components[$bp->bp_like->slug] = $bp->bp_like->id;
    do_action( ‘bp_like_setup_globals’ );
    }
    add_action( ‘bp_setup_globals’, ‘bp_like_setup_globals’ );

    function bp_like_format_notifications( $action, $item_id, $secondary_item_id, $total_items,$format=’string’) {
    global $bp;
    $glue=”;
    $user_names=array();
    $activity = new BP_Activity_Activity( $activity_id );
    $link=ac_notifier_activity_get_permalink2( $activity_id );

    //si c’est le posteur d’origine, dites que vous êtes, d’autre dire de% s après
    if($activity->user_id==$bp->loggedin_user->id){
    $text=__(“your”);
    $also=””;
    }
    else{
    $text=sprintf(__(“%s’s”), bp_core_get_user_displayname ($activity->user_id));//quelqu’un
    $also=” also”;
    }
    $ac_action=’new_bp_like_’.$item_id;

    if($action==$ac_action){
    //if ( (int)$total_items > 1 ) {
    // $users=ac_notifier_find_involved_persons($activity_id);
    $total_user= $count=count($users);//montrent de nombreux utilisateurs uniques ont commenté
    if($count>2){
    $users=array_slice($users, $count-2);//simplement indiquer le nom de deux affiches, le repos doit être aussi et ‘n’ autre a également commenté
    $count=$count-2;
    $glue=”, “;
    }
    else if($total_user==2)
    $glue=” xxxxxxxxx “;//si il ya 2 utilisateurs uniques, disons x et y commenté

    foreach((array)$users as $user_id)
    $user_names[]=bp_core_get_user_displayname ($user_id);

    if(!empty($user_names))
    $commenting_users=join ($glue, $user_names);

    if($total_user>2)
    $text=$commenting_users.” xxxxxxxxxxxxxxxx “.$count.” xxxxxxxxx”.$also.” xxxxxxxxxxxxxxxx on “.$text. ” post”;//peut-on changer la poste à quelque chose de significatif en fonction de l’élément d’activité?
    else
    $text=$commenting_users.$also .” xxxxxxxxxxxx on “.$text. ” post”;

    if($format==’string’)
    return apply_filters( ‘bp_activity_multiple_new_likes_notification’, ‘‘ . $text . ‘‘);
    else{
    return array(‘link’=>$link,
    ‘text’=>$text);
    }
    return false;
    }

    }

    #149338

    In reply to: Notification Alert

    Tammie Lister
    Moderator

    Whilst I’ve not used it http://buddydev.com/buddypress/buddypress-user-notifications-widget-plugin/ may be useful for this – not sure if updated. I’d say you want to show as a number on top of a png background right? Writing to a png is a whole another story 🙂

    #148419
    thinkcrush
    Participant

    On a fresh install of wordpress, after installing a new premium theme “topbusiness” i was at the last step of bp installation when after pressing finish and activate, my website crashed. I now can’t see my website or log into wordpress.

    The theme required a buddy press theme pack
    I am using the newest buddypress and the newest wordpress

    here’s the error

    [22-Dec-2012 02:11:22] WordPress database error Table ‘sharktan_wor1.wrd_bp_notifications’ doesn’t exist for query SELECT * FROM wrd_bp_notifications WHERE user_id = 1 AND is_new = 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/topbusiness/page-blank.php’), get_footer, locate_template, load_template, require_once(‘/themes/topbusiness/footer.php’), wp_footer, do_action(‘wp_footer’), call_user_func_array, wp_admin_bar_render, do_action_ref_array, call_user_func_array, bp_members_admin_bar_notifications_menu, bp_core_get_notifications_for_user, BP_Core_Notification::get_all_for_user

    [22-Dec-2012 02:26:53] PHP Fatal error: Cannot redeclare bp_tpack_theme_setup() (previously declared in /home4/sharktan/public_html/wp-content/plugins/bp-template-pack/bpt-functions.php:25) in /home4/sharktan/public_html/wp-content/themes/topbusiness/admin/includes/buddy/bpt-functions.php on line 63

    Help is appreciated.

Viewing 25 results - 676 through 700 (of 1,091 total)
Skip to toolbar