Search Results for 'notification user id'
-
AuthorSearch Results
-
April 14, 2010 at 7:03 pm #73531
In reply to: How do I create a notification?
3sixtyParticipantJust 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?
April 14, 2010 at 4:08 am #73453In reply to: realtime activities update
3sixtyParticipantThis 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
April 13, 2010 at 3:10 am #73237In reply to: Sending notification to registered user
r-a-yKeymasterHey Erich,
That plugin you listed is considered “deprecated” by Boone.
He’s now working with David on the Group Activity Stream subscription plugin.
April 6, 2010 at 11:00 pm #72104Boone GorgesKeymastercrashutah – 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.
March 31, 2010 at 9:50 pm #71152In reply to: Automatic matches based on interests
jlindoMemberI 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.
March 30, 2010 at 3:35 pm #70831In reply to: add notifications and "Whats New" text to home page
dre1080Memberfor 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
March 30, 2010 at 3:30 pm #70830In reply to: add notifications and "Whats New" text to home page
dre1080Memberwhy 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 } ?>
March 27, 2010 at 8:15 pm #70457In reply to: Notifications Relocation
Mike PrattParticipant@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>';
?>March 25, 2010 at 11:03 pm #70177In reply to: Notification Problem
21cdbParticipantIt 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.
March 23, 2010 at 4:50 am #69778In reply to: BP 1.2 and bbPress admin/plugins
3sixtyParticipantI 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?
March 21, 2010 at 4:24 pm #69562In reply to: BP GroupBlog, P2 ready (with bugs)! Please review…
BoweParticipantFirst 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!
March 19, 2010 at 3:48 am #69158peterverkooijenParticipantIf 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…
March 18, 2010 at 5:27 pm #69011justin_kParticipantCan 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
March 18, 2010 at 2:16 pm #68973In reply to: Email notification not working
ecurtainParticipantThank 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!
March 17, 2010 at 9:49 pm #68867In reply to: Profile Comments with BP 1.2
Boone GorgesKeymasterYeah, 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.
March 16, 2010 at 5:38 pm #68622In reply to: [New Plugin] BuddyPress Group Forum Extras
rich! @ etivitiParticipantFirst, 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)
March 13, 2010 at 9:13 am #68073In reply to: external-group-blogs & group-twitter doesn't work
Michael BerraParticipant@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!
March 12, 2010 at 2:44 pm #67954In reply to: Achievements and BP 1.2
Ted MannParticipantThe 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).
March 11, 2010 at 10:58 pm #67871In reply to: Trying to do a notification check
Paul Wong-GibbsKeymasterI 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
}
March 10, 2010 at 11:09 pm #67661In reply to: Email notification not working
Ann ChristineParticipant– 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…
March 10, 2010 at 9:28 pm #67629In reply to: Email notification not working
Ann ChristineParticipantUnfortunately 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
March 10, 2010 at 6:09 pm #67602In reply to: Email notification not working
ruthlessbookieMemberok, 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.
March 10, 2010 at 2:02 pm #67554In reply to: Notify when someone @mentions you
rich! @ etivitiParticipantThis is more of a teaser than an explanation
ah yes, i tend to post in quick theory
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 ofbp_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
February 26, 2010 at 2:30 pm #65711In reply to: 1.2 plug-ins list
Michael BerraParticipantJust 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!
February 25, 2010 at 8:43 pm #65589In reply to: User notification when new reply etc
D CartwrightParticipantSounds 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
-
AuthorSearch Results