Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 551 through 575 (of 638 total)
  • Author
    Search Results
  • #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!

    #68867
    Boone Gorges
    Keymaster

    Yeah, it’s a bit of a change, isn’t it?

    My strategy for making the transition easier for my users is two-fold:

    1) Make the profile the default view for users (rather than activity), by adding

    define( 'BP_DEFAULT_COMPONENT', $bp->default_component = 'profile' );

    to wp-config.php

    2) Adding the @mentions profile tab, plus some explanatory text, to the members/single/home.php template in my child theme. Thus, right below

    <?php locate_template( array( 'members/single/profile.php' ), true ) ?>

    I’m adding

    <h4><?php bp_displayed_user_fullname(); ?>'s mentions</h4>
    <p>Whenever anyone posts an update on this site containing <?php bp_displayed_user_fullname(); ?>'s handle (<strong>@<?php bp_displayed_user_username() ?></strong>), it shows up as a public message below.</p>

    <p>Want to leave your own public message for <?php bp_displayed_user_fullname(); ?>?

    <div class="generic-button" id="post-mention" >
    <a href="<?php bp_send_public_message_link() ?>" title="<?php _e( 'Mention this user in a new public message, this will send the user a notification to get their attention.', 'buddypress' ) ?>"><?php _e( 'Mention this User', 'buddypress' ) ?></a>
    </div>

    followed by the activity loop, taken right from bp-default/activity/activity-loop.php, but with the following relevant modification: the arguments for bp_has_activities are

    <?php if ( bp_has_activities( 'scope=mentions' ) ) : ?>

    (You’ll have to do some styling to make it look right, but you get the idea.)

    It’s not an exact duplication of the Wire – I’ve tried to embrace the new @mention stuff, while still capturing the “leave a note for me” spirit of the Wire.

    #68622
    rich! @ etiviti
    Participant

    First, where is the “@ mentions” part in the BBCode that @3sixty is referring to?

    Technically when Ajaxed Quote is enabled and someone quotes a post in the forums – the activity-update-filter will pick up the @username mention – thus if the user has the notifications turn on – they will get an email about it.

    Second, should we be activating both BBCode and Shortcode sub-plugins?

    No

    Activate the “Forum Extras – BBCode” if you want to parse the bbcode into html prior to database update. (useful if you have external but also ok for internal). I’m a fan of this method as the process happens pre-save but when a user goes back to edit a post – they’ll see html

    Or

    Activate the “Forum Extras – Shortcode” and then Viper’s Shortcode BBCode wordpress plugin – this will retain the shortcode bbcode markup in the database. All this does does is enable the shortcode filter hook on the bbpress post content. (buddypress already hooks shortcode filter on activity updates) – Downside to this approach if you ever deactivate the shortcode – you’ll see the bbcode markup instead of filtering to the html equivalent but when a user edits a post – they see bbcode instead of html.

    Hopefully not too confusing. I’ll update the documentation in the next release (working on getting bbpress favorites enabled)

    #68073
    Michael Berra
    Participant

    @andy: great! Really awaiting to use this plugin… Hopefully it will work nicely with notification (as mentioned above without making the users crazy :-)), because both plugins are very important for my platforms!

    #67954
    Ted Mann
    Participant

    The irrationalgames.com example is exactly what I was thinking of. It seems to me that sites that incorporate some kind of graphic badge into their achievements systems get far more adoption than sites that do it with just text/email notifications. FourSquare, Hollrr, etc

    I like @modemlooper’s idea to put the badges under a profile tab. I would also love to come up with a way to tap into this for my blog themes — so that users who have achieved different achievements would have those badges displayed with their avatar (a kind of way to display their authority and credibility).

    #67871
    Paul Wong-Gibbs
    Keymaster

    I assume you are having issues getting the count of unread notifications a user has. Try this:

    if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>

    <span><?php echo count($notifications) ?></span>

    <?php

    }

    #67661
    Ann Christine
    Participant

    @r-a-y

    – I ticked the Send e-mail via GMail

    – SMTP host was then automatically set as smtp.gmail.com

    – port set automatically to 465

    – Use SMTPAUTH ticked

    – Username and passwd filled in.

    It does not work. I looked at the link you provided and tried to untick the “send e-mail via Gmail”, did not help…

    #67629
    Ann Christine
    Participant

    Unfortunately I have the same problem as the two of you. I am running fresh installations – newest WPMU and BP.

    It was running all fine.

    Now I (admin) get no email notifications at all – users do not receive any either. The activation emails are not being sent. The WPMU ones are not sent out either.

    I am using a catch-all email on my email host to be able to sign up with different emails on the same domain.

    First thing I was thinking was whether BP or WP was thinking all this signup from the same email domain was SPAM and therefore closing down signups from my IP or whatever.

    I have searched for answers and found this: https://mu.wordpress.org/forums/topic/13039

    Apparently some hosts do not allow automated emails to be sent out.

    (However, if my host do not allow this, how come it worked fine for two weeks?)

    Only plugin I have installed is the cets-blog-defaults. I have tried to deactivate it, but it does not help.

    This is really frustrating :(

    #67602

    ok, I have identified the culprit – the install giving me problems is one that I did the one-step install from my hosting admin that uses SimpleScript. I just did another test install manually, and everything works as it should.

    but this creates a new problem: I have a live site w/ over 350 users, and that too was originally installed last September w/ SimpleScript. Those initial users were able to sign up, but somewhere along the way, that process broke.

    So the question is this:

    Can I do a manual re-install of WPMU over an existing install from SimpleScript? is it just a matter of uploading/over-writing the WPMU files? I’ll replicate my live site & database in a test directory, disable all plugins, and give it a whirl, and post my results here.

    oh, btw, incase you’re wondering, I’m hosting on BlueHost. Their supprt is usually really good until it comes to WP and SimpleScript stuff, even though they’ve integrated it into their control panel.

    #67554
    rich! @ etiviti
    Participant

    This is more of a teaser than an explanation

    ah yes, i tend to post in quick theory :-P

    I don’t know if it would work but essentially;

    you would need to write your own action function that hooks on bp_activity_posted_update that mimics the logic of bp_activity_at_message_notification (where it looks for an username match in the content – then on the match issue the notification. have to figure out a way to delete the notification though)

    function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = false, $date_notified = false ) { (located in bp-core-notifications.php)

    I wouldn’t know what the proper component name/type in this case would be

    i did submit a trac ticket enhancement for this though

    #65711

    In reply to: 1.2 plug-ins list

    Michael Berra
    Participant

    Just a little WARNING:

    Do NOT use

    “External Group Blogs” together with

    “Group activity stream subscription”

    They don’t like each other.

    Your users will be spammed with dozens of Emails a couple times a day.

    I think this is why the notifications plugin just picks up everything and the “external groups” fetches articles a couple times. Averytime stuff gets fetched, notifications for all the items (not just the new ones) gets sended out. So far my guess.

    I wrote the plugin-creators about it. hopefully they find a solution.

    BUT the plugins for themselves are GREAT!!! :-) THX!

    #65589
    D Cartwright
    Participant

    Sounds very interesting :) I would have no problem with you getting involved in improving it. I’ll drop you a message on namoo as it’s easier to keep track of things there (for me, at least) and we can discuss things further. I’m ultra busy tonight though, so it’ll probably be sometime over the weekend :)

    #65580
    Dwenaus
    Participant

    Very interesting thread. Myself, I’m very interested in helping further develop the group to email functionality. Having notifications in the buddybar would be a bonus.

    My question is, does anyone have an idea when email notifications will be in core? I thought it was planned for 1.3, but lots is planned for 1.3 and I see the roadmap does not include email notifications.

    If it’s not planned for a while, then I’d like to help further refine the group activity stream subscription plugin. I need digest support as well I think I can improve the usability a bit. (@aekeron) any thoughts on any of this?

    #65311
    finni3
    Participant

    Ok, obviously there are the possibilitiy of information overflow, but that does not mean you shouldn´t have the option of turning notifications on. In Cartwrights plugin you can choose what you want the users to be notified of. For some bbpress installations, being notified of e.g. forum replies to a topic you started, is feasible – for larger ones they may not be.

    Let´s take facebook as an example:

    You don´t get notified of every wallpost in a group. Why not? Because you would have 200 new notifications every day if you are a member of a popular group.

    But you do get notified if a friends comments on your wall, or if someone comments on a post that you also commented on. This keeps the conversation going and is a good way of keeping up with things you find interesting etc.

    Apparantly, notifcations in the buddybar can be done with a plugin, since Andy has made it possible for plugins to plug in to the notifications area. In light of this information I am not advocating this having to be in core. If it where to be in core, I can understand only wanting the notifications to be “citical only”. But as a plugin I don´t see a problem with having the option to allow notifications of comment replies, forum replies etc. An option regarding forum replies could be to have a “do not notify me of furter updates” link if you are not interested in the forumpost anymore.

    There is always a fine line with giving people enough info and too much info, but I suggest that it should be up to each admin to decide what works best for his community.

    Any more thoughts?

    #65298
    Mike Pratt
    Participant

    @finni3 I must agree with @D Cartwright and @Michael here. CInsider the los of utility if your notifications menu all of a suden gives word of every forum posting of every topic you were involved in? Imagine if you posted once and then left for awhile and saw that you had 214 forum replies? What would you do with that?

    In general, I think it’s safe to keep screen notifications to those items that post heads ups infrequently but when they do , it’s very important (hence the real need for the heads up) ex a Private Message, Friend Request. Another criterion would be the kind of action required (in the case of a forum reply, the only required action is to read it (not critical, obviously)

    #65278
    Michael Berra
    Participant

    Yes – i think a mail is enough for groups… (digests will be awesome! :))

    dlittle800
    Participant

    @jfigura – thanks for the tip about avoiding WPMU DEV templates, lol.

    Re: too many quirky things in BP – I’ve found that a software program is ‘nothing but’ a bunch of quirky things. But it sure would be great if some brilliant programmer could create a plugin to solve this issue – I would certainly DONATE!

    @Peter – you are definitely right about the trend to store sign-up email password notifications – In fact, I have a folder in my Gmail labelled ‘passwords’ full of logins including the one for Buddypress and WPMU! (I’d be resetting my password everyday if I didn’t)

    @Mike – I would be willing to live with the current BP password situation because I sometimes forget (or delete) my own passwords and need to reset them and never even bother creating a password I can remember.

    Where I’m at now, is trying to figure out how the frig to change the message from WPMU so I can eliminate the password that does not work (it actually sends the correct username).

    I tried changing the text in the WPMU Admin panel, but this seems to have no effect at all – So I’m posting at the WPMU forum trying to find out which file to change.

    Any ideas would be welcome : )

Viewing 25 results - 551 through 575 (of 638 total)
Skip to toolbar