Search Results for 'notification user id'
-
Search Results
-
Topic: New User Actions for BP
In the beloved wp-fb-autoconnect plugin that allows users to login to BP using Facebook, I think I found an error in how it creates a user. I believe it’s using the WP user creation and misses some of the BP user creation. Hopefully, Andy or someone can tell me if my assumption is correct.
Here’s what the wp-fb-autoconnect plugin uses to create a new user:
$user_login_id = wp_insert_user($user_data);
wp_new_user_notification($user_login_name);
//Tag the user with our meta so we can recognize them next time, without resorting to email hashes
update_usermeta($user_login_id, $jfb_uid_meta_name, $fb_uid);
In another plugin I saw these actions for user creation, but I couldn’t tell if they just built on other BP core items or were the actual actions that needed to be called.
add_action(“user_register”);
add_action(“bp_core_signup_user”);
I also found this one for creating a wpmu user:
wpmucreateuser()
I also checked the documentation and thought it should be in this link, but it wasn’t:
http://codex.buddypress.org/developer-docs/action-reference/
I imagine somewhere in the core is a list of the functions that create a new user, but I’m hoping someone might know which actions need to be called by a plugin to create a BP user properly.
I looked for a plugin that did this as well as posts on here but didn’t find anything. I’m hoping to find a way to display links under ‘Notifications’ on the top admin bar when someone replies to an “update” you posted on either your profile or on a group. Users get email notifications (if they choose to in their settings) when someone replies but I’ve been told tons of times that it would be more effective to have this show up on the ‘Notifications’ section on top just like friend requests and messages. Is there a way to do this?
Topic: Notifications Relocation
Hey guys, I’m currently murdering a version of the theme unplugged for buddypress, personally I like what I’m seeing, you be the judge, lwees.com. I have removed the navigation bar that appears on top of the site (I know I should know th damn name by now), but I would like to keep the notifications feature somewhere else.
I know how to play with the coding to get it done but I would like ideas about where to do this, I was planning to do it in the sidebar just bellow the avatar of a logged in user but I’m unsure if that will break any functionality. Any ideas are extremely welcome.
I’m using the latest of everything, WordPress MU, BuddyPress, and Latest Plugins. Thanks, Bye.
Based on this topic.
Plugin Authors — If your plugin does not appear in the “Confirmed Update Friendly” PLEASE UPDATE IT ASAP. It’s really important as your plugins are crashing/have the potential to crash user’s WordPress installations when BuddyPress is updated. This reflects poorly on the project, even though BP is not the problem.
This will take you less than 5 minutes to do if you create a loader.php file and add the code in the link below, then just include your existing main plugin file when BuddyPress has loaded.
http://codex.buddypress.org/how-to-guides/checking-buddypress-is-active/
Not Update Friendly (crashes site):Any plugins in this list that have not been updated for 1.2 will be removed from http://buddypress.org/extend/plugins/.
- BuddyPress Events Calendar
- bpPicture Album
- BuddyPress AJAX Chat
- BP-TagBox
- Twire / Twitter to Wire
- Auto Group Join
- Achievements
- BuddyPress Stats
- CD BuddyBar Logo Changer ( is_site_admin() doesn’t exist in WP 2.9.2 before bp_init – should be current_user_can(‘install_plugins’) )
- Remove Avatars ( is_site_admin() doesn’t exist in WP 2.9.2 before bp_init – should be current_user_can(‘install_plugins’) )
- BP Translate ( is_site_admin() doesn’t exist in WP 2.9.2 before bp_init – should be current_user_can(‘install_plugins’) )
Potentially Not Update Friendly (does not crash site but needs updating):Plugins that don’t crash but do not check if BuddyPress is active:
- BP Group Documents
- BuddyPress Group Tags
- BuddyPress Rate Forum Posts
- BuddyPress Multilingual
- BuddyPress Profile Widget for Blogs
- TDLC Birthdays
- Jet Random Members Widget
- Jet Random Groups Widget
- BuddyPress Admin Bar Mods
- BP Announce Group
- BP Redirect to Profile
- BuddyPress Real Names
- Buddypress Pages to Navigation
- BP Tiny MCE
- Inbox Widget
- BP Paginated Posts
- BP Registration Options
- BuddyPress Friends On-line (FOL)
- Remove BuddyPress AdminBar
- Invite Friends
Plugins that use an old method of BP detection and need updating to use bp_init loader method:
- BuddyPress Maps
- BuddyPress Group Blog
- BuddyPress My Friends Widgets
- BuddyPress Widget Pack
- BuddyPress-Kaltura Media Component)
- BuddyPress Group Email Subscription
- BuddyPress Classifieds
- BuddyPress Quick Press
- BuddyPress Group Wiki
- BuddyPress Sitewide Featured Posts
- BuddyPress Group Activity Notifications ( Error in live version: First argument is expected to be a valid callback, ‘ass_init’ )
Confirmed Update Friendly (high-fives!):- Tweetstream
- Facestream
- BP Group Management
- BP Groupblog
- BP Expand Activity
- Invite Anyone
- BuddyPress Forums Extras (all)
- BuddyPress Like
- oEmbed for BuddyPress
- Forum attachments for BuddyPress
- BP Profile Privacy
- BP Notification Widget
- BP Import Blog Activity
- Custom Profile Filters for BuddyPress
- BP Include non Member Comments
- BP MPO Activity Filter
- BuddyPress Links
- BuddyPress Group Twitter
- BuddyPress External Group Blogs
- BP Random Members Widget
- BuddyPress Template Pack
- Group Forum Subscription for BuddyPress
- Enhanced BuddyPress Widgets
- BuddyPress Album+
- BuddyPress Geo
- BP Member Filter (but should move all BP specific code to separate file to be safe)
- BP Member Map (but should move all BP specific code to separate file to be safe)
- BuddyPress Restrict Group Creation (but should move all BP specific code to separate file to be safe)
- BuddyPress Sitemap Generator (but should move all BP specific code to separate file to be safe)
- Welcome Pack
Please post a followup message if you have updated your plugin, or if you find any other plugins that crash.
Checking your BuddyPress plugins
Deactivate all of your plugins. Individually activate a single BuddyPress plugin. If it activates and you do not get a white screen or white screen with error message, then the plugin is update friendly. Otherwise please post it in this thread to add to the hall of shame!
If you get a white screen then to fix this remove the plugin folder from wp-content/plugins/
Hi,
I’m trying to make a plugin to allow users to upload documents to their buddypress profile. I’ve manage to setup the database, and the admin settings menu. Now what I need to do is add the code that generates a tab within the user’s profile where the user can upload/delete files and others can brows through them.
I don’t really have a deep understanding of the inner workings of BuddyPress, all I’ve done so far is based on reading through other similar plug-ins and forum posts:
The current code I’ve writer when activated brakes the individual members profile to the point that wordpress returns a blank page with not a single html tag. Here is the relevant code I’ve written so far. All I want to do at the moment is make the tab appear when I click on a users profile. I’ll deal with populating it later,
// Create Slugs and global variables<br />
if ( !defined( 'BP_PROFILE_DOCUMENTS_SLUG' ) )<br />
define ( 'BP_PROFILE_DOCUMENTS_SLUG', 'profile_documents' );</p>
<p> function bp_profile_documents_setup_globals() {<br />
global $bp, $wpdb;</p>
<p> /* For internal identification */<br />
$bp->profile_documents->id = 'profile_documents';<br />
$bp->profile_documents->table_name = $wpdb->base_prefix . 'bp_profile_documents';<br />
$bp->profile_documents->format_notification_function = 'bp_profile_profile_format_notifications';<br />
$bp->profile_documents->slug = BP_PROFILE_DOCUMENTS_SLUG;</p>
<p> /* Register this in the active components array */<br />
$bp->active_components[$bp->profile_documents->slug] = $bp->profile_documents->id;</p>
<p>}</p>
<p>/*/ add navigation item for user --<br />
function bp_group_documents_setup_nav() {<br />
global $bp, $current_blog, $group_object;</p>
<p> bp_core_new_nav_item( array(<br />
'name' => __( 'Chopo87' ),<br />
'slug' => $bp->profile_documents->slug,<br />
//'position' => 50,<br />
//'show_for_displayed_user' => false,<br />
//'screen_function' => 'messages_screen_inbox',<br />
//'default_subnav_slug' => 'inbox',<br />
//'item_css_id' => $bp->messages->id<br />
) );<br />
}/**/As you can see the “bp_group_documents_setup_nav()” function definition is commented out. This is because as soon as I insert that piece of code I brake the user profile web page. I’ve added the other code based on the group documents plugin to see if it helped, but this may not be necesary or helpful. I’ve also commented out most of the bp_core_new_nav_item as i read (here http://codex.buddypress.org/developer-docs/functions/core/bp_core_new_nav_item/) that they are optional.
You can find my full code at http://aitzol.com/buddypress_profile_documents.txt
Any help would be apreciated
Chopo
Hi, I have a main component (buddypress maps)
and I’m writing a plugin to extend it.
From that plugin, I would like to fire a new notification.
In the component, I have
$bp->maps->format_notification_function = ‘bp_maps_format_notifications’;
function bp_maps_format_notifications( $action, $item_id, $secondary_item_id, $total_items ) {
global $bp;
switch ( $action ) {
}
return do_action( ‘bp_maps_format_notifications’, $action, $item_id, $secondary_item_id, $total_items );
}
in the plugin, I have
add_action(‘bp_maps_format_notifications’,’bp_maps_profile_batch_locate_format_notifications’,10,4);
function bp_maps_profile_batch_locate_format_notifications ($action, $item_id, $secondary_item_id, $total_items ) {
global $bp;
switch ( $action ) {
case ‘batch_profile_marker_set’:
$profile_edition_link=$bp->loggedin_user->domain . $bp->profile->slug.’/edit/group/’.$bp->maps_profile->options[‘group_id’];
return apply_filters( ‘bp_maps_single_marker_set_notification’,$link);
break;
}
do_action( ‘bp_maps_profile_batch_locate_format_notifications’, $action, $item_id, $secondary_item_id, $total_items );
return false;
}
The notification IS saved; the notification count in buddypress IS show; but the notification link do not appear.
Maybe a priority problem or something like this.
Any idea ?
Topic: Ascii Characters in Email
I just set up buddypress on my site yesterday and I’m still tweaking it to fit my theme. I am able to find most of my answers in the forums – kudos to you all for providing such help!
My issue is that the name of my site is Girls Can’t WHAT? but when an email notification is sent to a user form buddypress, it shows up as Girls Can't WHAT? (in case that gets mangled when I click “send post”, the apostrophe is converted to the ascii code instead of the apostrophe.)
I tried changing it in my wp general settings to the ascii code instead of the apostrophe, but it still shows up that way. I even tried using /’ but that didn’t work either. How can I fix this?
I basically just want the notification to show an “button” instead of all the text. So if it’s a message it will have [1] <– The number only
I copied the function over and renamed it.
function bp_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( '', '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( '', 'buddypress' ); ?></a></li>
<?php
}
echo '</ul>';
echo '</li>';
}
?>Hi all
First off a HUGE thumbs up to all involved in the BuddyPress project – it’s a phenomenal development & we’re loving it!
I have just upgraded our single user installation (running on WP 2.9.2) to BP 1.2.2. We are using the BP-Default theme.
The reason I rushed into the upgrade was to implement the new member email activation fix as mentioned in the change log (Fixed inconsistencies with new account activation between WordPress MU and standard WP. All new accounts must now be activated to confirm a valid email is being used.)
However two test registrations, using different email addresses (both tested as valid) produced no email activation messages. Am I missing a setting somewhere that needs to be in place in order to achieve this feature on a single installation site?
Secondly – is there a way to implement a redirect or a message of some sort to users who have registered but not yet activated their account? At the moment, trying to login with one of the new not activated accounts simple sends the user back to the home page. Something along the lines of a “Your account still needs to be activated, please follow the instructions in the email sent to your address”.
And finally – if 1 and 2 above are solvable, would the addition of a “resend activation email” link somewhere be out of the question as a further enhancement to the system?
Both these test accounts are passed to the WP user list and appear under the users settings in the admin dashboard as expected.
Thanks in advance for any suggestions!
P.S. System emails are still being sent without problems – received email notification of a private message from the site so don’t think that’s a problem.