Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 526 through 550 (of 629 total)
  • Author
    Search Results
  • #80034
    techguy
    Participant

    If you put it in functions.php you’ll probably need to do something like this:
    function auto_login_bp() {
    //Automatically log the user in
    $user_info = get_userdata($user_id);
    wp_set_auth_cookie($user_id);
    do_action(‘wp_signon’, $user_info->user_login);
    }

    add_filter( ‘wpmu_signup_user_notification’, ‘auto_login_bp’ );

    Although, even then it might not know the $user_id variable. So, you might have to add the code in my original post to the bp-auto-activate-user-and-blog plugin on line 170 or so. Although, that will cause the issues I mentioned above I think.

    #80027
    techguy
    Participant

    @mazen I just figured out the code to make it work on WP. I’ll add it to my plugin above soon. Here’s the code:
    //Automatically log the user in
    $user_info = get_userdata($user_id);
    wp_set_auth_cookie($user_id);
    do_action(‘wp_signon’, $user_info->user_login);

    I tried it a little with WPMU. It kind of works, but there’s some sequencing that needs to happen better. Cause it logs me in, but not before the login box appears in the sidebar. So, it looks like you’re not logged in, but you are. Which is weird, because it’s not happening to me on WP. Although, it’s likely cause on WP I’m hooking to bp_core_signup_user and in WPMU it hooks to wpmu_signup_user_notification.

    Who’s for a unified signup process (WPMU and WP) now that they’re one?

    drifter0658
    Member

    Okay…I worked around the sitewide messages issue with a plugin called: Sitewide Newsletters

    Users still cannot create a new blog

    Hugo Ashmore
    Participant

    Boone there is this plugin which is really for dev setups where passing emails through the dev network is awkward so allows you to register a user normally then go into backend and manually approve using the activation id

    WPMU Manual Member Approve:
    http://mattkern.com/wpmu-manually-approve-new-members-on-local-install/

    Would you believe though I just tried to run it on my local site and it’s broken! at least it’s throwing an undefined function error bp_page_title()

    Haven’t time to look into that but it doesn’t look to much of an issue.

    Of course this doesn’t get round the issue of letting those users know they have been activated and not really sure one wants to simply activate a bunch of accounts when the users are never going to know about it.

    Of course once activated and once you have established you are sending emails correctly you might be able to work some means of adding everyone to a group and posting an update to that group that will send a notification out to email addresses?

    #75268
    Dwenaus
    Participant

    An quick update. The new version should not be used on live sites because we are currently re-doing the data structure, so any groups that users join now, they will have to re-join later.

    About the follow topic link on the topic page, I forgot to put in the read me the instructions for adding the proper action hook into the buddypress code. I’ve added the request to trac, so it should eventually be in BP core.

    Here you can see what needs to be added: https://trac.buddypress.org/attachment/ticket/2129/2129_forum_topic.diff
    really it is just ` ` that needs to be added to bp-themes/bp-default/groups/single/forum/topic.php before `

    `

    stay tuned for the final version which will be ready in about a week.

    #74618
    3sixty
    Participant

    I still can’t figure out how to ping the user. This would be a good topic for Buddypress Gurus to think about for a FAQ or developer guide.

    #74513
    Avatar
    Participant

    Hey mates, I’ve been trying to work this out as well.

    Been trying Andy’s External Blogs RSS and Group Twitter Plugins

    with WPmu 2.9.2

    They work well within the Groups,

    But they seem to have this feature of updating the Group Activity Feed every time a user visits the group.

    So I get double / multiple posts.

    + with the Group Notifications Plugin, I get multiple emails

    every time someone visits the group and refreshes the feed.

    Any Ideas how I could at least shut off the refresh every time someone visits the group.

    If this is manageable, they’re both great and very useful plugins.

    Please let me know your thoughts and solutions.

    – Jeff –

    http://www.Vybee.com

    .

    #74460

    In reply to: send mass email

    Gianfranco
    Participant

    I didn’t try yet the” This is a notice to all users” yet, but I thought that that would send an email notifications to all the users (if they have email notifications on).

    Selecting that checkbox, does it send only a site notification instead? I mean when users log in? No mail?

    #73847
    Gianfranco
    Participant

    I tried this, doesn’t print anything neaither:

    <ul id="user-menu">
    <li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>

    <?php function my_bp_adminbar_notifications_menu() {
    global $bp;

    if ( !is_user_logged_in() )
    return false;

    echo '<li id="bp-adminbar-notifications-menu"><a href="' . $bp->loggedin_user->domain . '">';
    _e( 'Notifications', 'buddypress' );

    if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
    <span><?php echo count($notifications) ?></span>
    <?php
    }

    echo '</a>';
    echo '<ul>';

    if ( $notifications ) { ?>
    <?php $counter = 0; ?>
    <?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
    <?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
    <?php $counter++; ?>
    <?php } ?>
    <?php } else { ?>
    <li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
    <?php
    }

    echo '</ul>';
    echo '</li>';
    }
    ?>

    <?php if( function_exists('my_bp_adminbar_notifications_menu') ) my_bp_adminbar_notifications_menu(); ?>

    </ul>

    Is anything in there correct?

    #73834
    Gianfranco
    Participant

    @r-a-y I tried this:

    <?php function my_bp_adminbar_notifications_menu() {
    global $bp;

    if ( !is_user_logged_in() )
    return false;

    echo '<li id="bp-adminbar-notifications-menu"><a href="' . $bp->loggedin_user->domain . '">';
    _e( 'Notifications', 'buddypress' );

    if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
    <span><?php echo count($notifications) ?></span>
    <?php
    }

    echo '</a>';
    echo '<ul>';

    if ( $notifications ) { ?>
    <?php $counter = 0; ?>
    <?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
    <?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
    <?php $counter++; ?>
    <?php } ?>
    <?php } else { ?>
    <li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
    <?php
    }

    echo '</ul>';
    echo '</li>';
    }
    ?>

    Which is the same funtion except for the name “my_bp_adminbar_notifications_menu”.

    It doesn’t print anything.

    Probably something with the “bp_core_get_notifications_for_user” that is desabled because of my desabling the default Admin bar?

    I admit that I php is not my strong point at all.

    #73823
    Gianfranco
    Participant

    I’ve put the function right in the ul, like so:

    <ul id="user-menu">

    <li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>
    <li>| <a id="logout" href="<?php echo wp_logout_url( get_option('home') ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a></li>

    <?php bp_adminbar_notifications_menu(); ?>

    </ul>

    …to see waht it produces. It just breaks my layout. The whole ul disapeears and the layout after that is broken.

    In Firebug I can see this error: Call to undefined function bp_adminbar_notifications_menu()

    Mmm… I got BP Template Pack installed, if that makes it a hint of any kind.

    #73531
    3sixty
    Participant

    Just to start building this out as a how-to:

    To add a notification, you would call this function located in bp-core-notifications.php

    bp-core-notifications; function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = false, $date_notified = false )

    So as a test, if you wanted to store a notification that the user had just visited the activity page, you could make up a new notification type ‘activity_viewed’ and use this code:

    bp_core_add_notification('100', (int)$bp->loggedin_user->id, 'activity', 'activity_viewed');

    Of course, that’s useless unless we ping the user. Next step: how do we add the little notification to the buddy bar? Any ideas?

    #73453
    3sixty
    Participant

    This is now officially a “Potential Future BuddyPress Feature” for BP 1.4+ (ie, after BP 1.3, which looks to be essentially the WP 3.0 compatibility release). Here is the short list:

    A quick blog post form via the theme. (try plugin: BuddyPress QuickPress)

    Privacy controls (try plugin: bp-authz)

    Global content tagging

    Inappropriate content flagging

    Bulk accept/reject friendship requests

    Grouping of similar activity stream items

    Ability to block all communication from a user

    Option to receive forum post notifications via email

    Message file attachments

    Structured profile fields (templates for address / phone number)

    Profile field specific searching (try plugin: BP Member Filter)

    AJAX live updating of site wide activity stream

    #73237
    r-a-y
    Keymaster

    Hey Erich,

    That plugin you listed is considered “deprecated” by Boone.

    He’s now working with David on the Group Activity Stream subscription plugin.

    Boone Gorges
    Keymaster

    crashutah – Thanks a million for the feedback. The Facebook language is really helpful. I think I should be able to add an opt-out feature with only a little work.

    As for your other excellent suggestions:

    – Definitely agree about customizing the subject. My plan was to make it customizable by the site admin, but not by the end user – but on second thought it would be easy enough to put a toggle on the back end that lets the site admin decide whether users can personalize the subject line

    – The Reply To idea is very good. I’m using wp_mail, WP’s built in mail function, which in theory should allow me to feed in some headers. I will give it a try – but no promises on this one, as I’ve had trouble making the WP default reply-to address work correctly in the past and don’t feel like tearing any more hair out over it :)

    – Something must have gotten screwed up in your apostrophe comment. Do you mean that a slash showed up? I suppose that makes sense. I will have a look at stripping those slashes.

    – Great, great idea about autopopulating email field. I will take care of it right away.

    – Your point about auto-adding/auto-friending is well-taken. I kind of feel the same way. I think I might make it an admin option: send group/friend invites, or just do the adding. I can see arguments both ways (you give a good case for auto-adding, but you might also think that it’s nice to get some notifications first thing when you log in…) so I think it might be best left as an option for the administrator.

    Again, I really appreciate the detailed feedback.

    #71152
    jlindo
    Member

    I am also very interested i this functionality. The ideal for me would be a sidebar widget with something like “suggested friends” or “people with similar interests” that lists a few links to people who’s profile info is similar. A weekly email notification of these people’s profiles would also be fantastic.

    This has same great implications because it encourages users to interact with people they don’t know and they are (might be?) more likely to do so because of their self-described similarities.

    #70831
    dre1080
    Member

    for the whats new text u can try,

    <?php if (is_user_logged_in() ) { //only logged in user can view this ?>

    //place content here

    <?php } ?>

    u can use that to show something only to logged in users and:

    <?php if (!is_user_logged_in() ) { //only non-logged in user can view this ?>

    //place content here

    <?php } ?>

    to show something only to users who are not logged in

    if u are using a text widget try use the widget logic plugin also

    #70830
    dre1080
    Member

    why not use the bp-notifications widget plugin and create a widget area where you would like in your template..

    check your code for the login form because iv tried this and it goes once a user is logged in..

    try this:

    <?php if (!is_user_logged_in() ) { //only non-logged in user can view this ?>

    <form name=”login-form” id=”login-form” class=”standard-form” action=”<?php echo site_url( ‘wp-login.php’, ‘login’ ) ?>” method=”post”>

    <div style=”font-weight:bold; margin-left: 20px; margin-bottom: 10px;”><label>

    <input type=”text” name=”log” id=”userbar_user_login” class=”input” value=”<?php echo attribute_escape(stripslashes($user_login)); ?>” /></label></div>

    <label><?php _e( ‘Password’, ‘buddypress’ ) ?>

    <input type=”password” name=”pwd” id=”userbar_user_pass” class=”input” value=”” /></label>

    <p class=”forgetmenot”><label ><input name=”rememberme” type=”checkbox” id=”userbar_rememberme” value=”forever” /> <?php _e( ‘Remember Me’, ‘buddypress’ ) ?></label></p>

    <input type=”submit” title=”Login” name=”wp-submit” id=”userbar_wp-submit” value=”<?php _e(‘Login’); ?>” tabindex=”100″ />

    <input type=”hidden” name=”redirect_to” value=”<?php bp_root_domain() ?>” />

    <input type=”hidden” name=”testcookie” value=”1″ />

    </form>

    <?php } ?>

    #70457
    Mike Pratt
    Participant

    @LwEEs

    You can also place this code anywhere you want and style your own little Notifications Block:

    <!-- Notifications block -->
    <?php
    echo '<li id="notifications-menu"><span id="menu-title">
    <a href="' . $bp->loggedin_user->domain . '">';
    _e( 'Notifications', 'buddypress' );

    if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
    <span><?php echo '('.count($notifications).')' ?></span>
    <?php
    }
    echo '</a></span>';
    echo '<ul>';

    if ( $notifications ) { ?>
    <?php $counter = 0; ?>
    <?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
    <?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
    <?php $counter++; ?>
    <?php } ?>
    <?php } else { ?>
    <li><a href="<?php echo $bp->loggedin_user->domain ?>">
    <?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
    <?php
    }
    echo '</ul>';
    echo '</li>';
    ?>

    #70177

    In reply to: Notification Problem

    21cdb
    Participant

    It happened to me as well – same scenario as modemlooper has been described. I could get rid of the notification by clicking on the “friends” tab in the user menu.

    #69778
    3sixty
    Participant

    I use the bpGroups plugins (“forums” subdomain of the BP site) but the plug-in required some updating to get everything working smooth (activity notifications, public/private/hidden/ready only stuff)

    @nuprn1, what did you modify? I noticed that posts in bbpress don’t show up on the activity notifications, and the public/private/hidden stuff doesn’t seem to work either…

    Also, the plugin is looking for an Authorized Buddypress Username, or “the user that BuddyPress uses to access bbPress.” Is there actually still a user, or was that part of the older BP/bbpress integration method?

    #69562
    Bowe
    Participant

    First note: AWESOMEMILICIOUS!

    2nd note: Posting new blogposts works great! I can add new posts/photos and videos on the blog page and you get a nice growl like notification when you post something.. This is some serious next level stuff!

    The magazine theme layout looks cool, but I feel it’s bit overwhelming for certain users. especially on lower resolutions I feels a bit crammed, with the 3 column recent posts, etc. But I think that’s something personal, and you already said that you’re working on different layouts. I’ve tried to view a different layout in my blog, but could not find the settings. But my suggestion for a third theme would be:

    http://emberapp.com/bowromir/images/untitled-8/sizes/o

    This is quite simple but powerful enough.. I don’t know if you can add custom text boxes/widgets, but I think that would allow user to be creative with their blog. I forgot to offer a search/archive widget, but that would be handy as well.

    3rd note: To avoid confusion I would probably rename Status Update in the groupblog to something like News Update or Blog Update, so that it does not get mixed up with a status/activity update in BuddyPress. To be honest I think that the P2 status update does not add much to it, because a group admin can easily post a status update in the group itself. I understand it’s a added feature in the P2 theme, but I think BP handles it very well.. This is also something personal though :)

    4th: Maybe allow the user to switch to a full markup mode or tiny editor to have more control over longer posts. You already mentioned bringing everything to the front end, but maybe you can solve this by opening a lightbox with the full featured posting of the WP backed (and then remove the navigation in the admin, so the users only sees the posting area). This might be complicated and/ore messy, but it would make for a better user experience.

    I’m really really impressed with the current plugin so far and I can’t wait to try it on my site. Thanks so much for sharing this Marius and the rest of YWAM!

    peterverkooijen
    Participant

    If you want to change or add to how user data is stored in the database, you can add some lines to this section of _process_login.php:

    //Insert a new user to our database and notify the site admin
    $user_login_id = wp_insert_user($user_data);
    $user_login_name = $user_data['user_login'];
    wp_new_user_notification($user_login_name);

    I added the following to get fullname as display name, instead of just the first name:

    $fullname = $fbuser['first_name'].' '.$fbuser['last_name'];
    $firstname = $fbuser['first_name'];
    $lastname = $fbuser['last_name'];

    update_usermeta( $user_login_id, 'nickname', $fullname );

    $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d", $fullname, $user_login_id ) );

    I could probably shorten that, but it works…

    JK
    Participant

    Can I request that we move this discussion to my plugin homepage’s comments? It’s much easier to get notification everytime someone replies, and then other users of the plugin will be aware of it too :P

    #68973
    ecurtain
    Participant

    Thank you *so much* for suggesting mail_from, ruthlessbookie. It solved my problem when nothing else seemed to work. I’m running WP / single user, and tried every suggestion I found:

    What did not work:

    – disabling everything except BP (notifications worked fine with BP off)

    – setting up SMTP plugins with gmail

    – setting up SMTP with my own host (hostmonster)

    – installing the BP update

    What DID work:

    – mail_from plugin — Whoo hoo!

    So glad there’s a solution. Will take a look at xmsmmgrs’s suggestion next. Thanks!

Viewing 25 results - 526 through 550 (of 629 total)
Skip to toolbar