Hi,
I would like users to submit phone number on registration and automatically save it in a WordPress field.This should be only visible for admins, and therefore, the xProfile fields won’t work. To create a user the user fill out this form with password and email (Username is created programmatically).

I would like the phone number field there as well, but I’m not sure how to update the field at submission.
I tried to add the field with this code: <input type="text" name="phone" id="phone" value="" class="regular-text" <?php bp_form_field_attributes('phone'); ?>
But the field is blank when I check in WP admin. Any idea how I can do this?
If i click to edit a user in WP admin I want the number to be added to this field.

I followed a tutorial to create the field, and added it to my function file with this code:
add_action( ‘show_user_profile’, ‘my_show_extra_profile_fields’ );
add_action( ‘edit_user_profile’, ‘my_show_extra_profile_fields’ );
function my_show_extra_profile_fields( $user ) { ?>
<h3>Extra profile information</h3>
<table class=”form-table”>
<tr>
<th><label for=”phone”>Telefon</label></th>
<td>
<input type=”text” name=”phone” id=”phone” value=”<?php echo esc_attr( get_the_author_meta( ‘phone’, $user->ID ) ); ?>” class=”regular-text” /><br />
<span class=”description”>Vennligst angi ditt telefonummer slik ati </span>
</td>
</tr>
</table>
<?php }
add_action( ‘personal_options_update’, ‘my_save_extra_profile_fields’ );
add_action( ‘edit_user_profile_update’, ‘my_save_extra_profile_fields’ );
function my_save_extra_profile_fields( $user_id ) {
if ( !current_user_can( ‘edit_user’, $user_id ) )
return false;
update_usermeta( $user_id, ‘phone’, $_POST[‘phone’] );
}`
Just commited Buddy Member Stats to Github, a plugin to get all BuddyPress related counts on user profile and BuddyPress Community Stats, a similar one acting at site level. This one is a fully rewamped version of the original who stopped to work normally around BP 1.7. New version make it compatible with WP 4.3+ and BP 2.3+
Community Stats display a basic community stats widget on dashboard, and can be added to any theme in sidebar, footer or elsewhere to your convenience.
Install from Github
===================
– download and unzip to wp-content/plugins/ directory
– remove -master from the folder name (git add this automatically)
– files starting by .git can also be removed
– go to dashboard > plugins and activate.
– read About page.
– go to dashboard > settings and setup the options. Save.
– You’re done.
Enjoy !
Try the BP Local Avatars plugin.
BuddyPress use Gravatar by default, like WordPress.
If your user uploaded custom avatars, you may use bp_core_fetch_avatar in place of wp’s get_avatar
http://oik-plugins.eu/buddypress-a2z/oik_api/bp_core_fetch_avatar/
More about avatars here and search for “avatar”
http://hookr.io/plugins/buddypress/#index=a
I have a site with 2000 users which I have decided to convert to a social network with buddy press. Many of the users already have an avatar. My surprise was that after installing buddypress, it is not picking up the users avatar.
Before, I could display the avatars with get_avatar() but I think buddypress uses a different function.
How can I make buddy press to use the wordpress installation avatars of my users?
Is there a plugin or a hook?
I really appreciate your help!
I have created a custom page in my theme and it is almost the same as the activity page.
I’ve added the activity post form and activity loop. It is all working fine, but the mentions popup doesn’t appear when writing out a mention name in the post form. This is because the mentions.js and mentions.css is not adding (though it does add and work if I turn comments on for that custom page in the WordPress admin). Also some plugins that use the activity post form such as activity plus plugin is not being added to the post form, but it works fine on the activity page. someone else had this problem: https://wordpress.org/support/topic/use-on-custom-page-template?replies=6.
Is there something I’m supposed to add to make buddypress load up properly on a custom page?
Hi, i am trying to link the user-name in my themes navigation to the user-profile (frontend).
I am on
Wordpress 4.3.1
Buddypress 2.3.4
True Mag Theme 4.1 by CactusThemes
In the theme options i can enable to extend the navigation by the user-name, avatar and a little dropdown menu with links to edit profile and to logout.
Unfortunately the user-name and avatar are empty links and i want to link them to the users profile.
I asked the theme author but he couldn’t help and said i should ask the buddypress author 😉
so this is the html/php code for that little navigation extension
<li class="menu-item current_us">
<?php
echo '<a class="account_cr" href="<strong>#</strong>">'.$current_user->user_login;
echo get_avatar( $current_user->ID, '25' ).'</a>';
?>
<ul class="sub-menu">
<li class="menu-item"><a href="<?php echo $link; ?>"><?php _e('Edit Profile','cactusthemes') ?></a></li>
<li class="menu-item"><a href="<?php echo wp_logout_url( get_permalink() ); ?>"><?php _e('Logout','cactusthemes') ?></a></li>
</ul>
</li>
as you can see the href on the first a is empty.
Can you tell me what i have to write there to link it to the users profile?
and additionally could you tell me how to link the ‘Edit Profile’ link to the frontend profil-edit screen and not to the wordpress backend?
i noticed that when i activate the extended profile component of buddypress that this works. but then i have to fill that undesired name field on “base”…
The website i am talking about is http://wordpress.freekickerz.net
Login credentials for testing purpose are hallo/hallo
if you need any more information please let me know.
greetings from Cologne, Germany
Jan
Hi, actually I’ve already added
add_post_type_support( 'recipe', 'buddypress-activity' );
to bp-custom.php in /wp-content/plugins. The recipes are counted in the “member activity stream”, but only the ones posted directly in the parent site, not the ones posted in the member’s blog.
I think it’s a pity you can’t use a “blog” as the user profile page, or at least give the user profile page, the same kind of customisation as a full blog install. I think this is more a “Facebook” kind of approach, everyone will have more or less the same kind of page, with minimal customisation option (I guess the header profile). But since WordPress already has a multisite option, and Buddypress already support multisite environment, have the chance to use the user’s blog as if it were his “user profile” would have been a huge facility.
@RafVin Here’s how to hide “All Members” tab with CSS.
Find a file called “style.css” in the wordpress active theme, add the code below and re-upload the file.
#buddypress div.item-list-tabs ul li.selected a {
display: none !important;
}
Warning! When you update your theme, you’ll loose these CSS changes so try doing this in a child theme if you’d like to retain the changes when you update your theme.
Showing custom tasks under personal? Well that requires some custom PHP coding or probably a plugin. Hopefully, someone will help you with this.
@konberg find a file called “style.css” in the wordpress active theme, add the code below and reupload the file.
#buddypress .standard-form div.radio div label {
text-transform: lowercase;
}
Warning! When you update your theme, you’ll loose these CSS changes so try doing this in a child theme if you’d like to retain the changes when you update your theme.
Let me know if that works.
The filter call is:
apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
Your function expects 2 parameters. Your add_filter call states there is only one.
And there is only one – an array.
Read about that kind of filter https://codex.wordpress.org/Function_Reference/apply_filters_ref_array
Try something like this:
function cshp_add_thumbs_to_activity( $array ) {
$post_id = $array[1]->secondary_item_id;
//etc
$array[0] = // new content
return $array;
}
add_filter( 'bp_get_activity_content_body', 'cshp_add_thumbs_to_activity', 15, 1 );
Thanks for the reply on this and sorry just now getting back…life got in the way…can you explain in newbie elementary terms exactly what you were discussing in regards to having me show up as admin and not just looking like a logged in user on buddypress…what is happening is…when I log into my wordpress I show up on my webpage as like a logged in user..doesn’t say admin or anything…I want to be displayed as a admin/moderator for the site…how do I do this…in elementary terms please as I am new to WordPress although I have learned so much and have actually almost put up a complete website…but I am even newer to buddypress although I have it up on my site…these little kinks such as this one are getting in the way…thankful for this buddypress support forum….if you could help I would greatly appreciate it!! Rhonda
We had WordPress Multisite up and running on Windows Server 2008 for a few years before switching over to NGINX (we could never get the MS box to run quickly enough, and it needed to be restarted a fair amount when there was heavy traffic.)
Before we made the switch, we hired Ruslan Y to look over our configuration and make suggestions for optimizing. They were some great suggestions. I’ve copied the document he shared with us here. I’m not sure if he still does this, but you could try.
https://drive.google.com/file/d/0B9yl4no9k_c2eFdDNlU2dnNnNTA/view?usp=sharing
Regardless of what plugin you end up using, it might be worth a few dollars to have someone look at your set up and optimize it. The biggest issue of running WP on IIS is that most support forums won’t have what you are looking for, and when you run into problems, you will be immediately dismissed because developers love to blame IIS for bugs when they hear you aren’t running on LAMP.
Just taking a guess here, but depending on your setup, you may not have the URL ReWrite module active. You need Pretty Permalinks to make BP work. Here’s a tutorial: http://www.iis.net/learn/extensions/url-rewrite-module/enabling-pretty-permalinks-in-wordpress
It doesn’t work like that. In a multisite instance, your users can all have their own blogs (think wordpress.com). What BuddyPress does is allow you to see all of the activity from those subsites in one Activity feed (among other things).
I have set up the categories in the main site, and I expected to see the same categories on every site, but it doesn’t work.
Although this isn’t a BP feature, there is a plugin that does this. It hasn’t been updated in a while, but you could test it out, or purchase support from Brajesh and request a fix if you run into issues:
http://buddydev.com/plugins/mu-global-terms/. There’s a write-up on the plugin here: http://wptavern.com/wordpress-multisite-global-terms-plugin-share-taxonomies-across-a-network
Also in the user activity stream I cannot see the posts the user has written in his own blog.
That SHOULD work. You mention a custom post type though: is that the activity you are hoping to see? By default BP only shows posts and comments, not custom post types. You can register custom post types: https://codex.buddypress.org/plugindev/post-types-activities/
If the subsite that you are hoping registers activity is set to discourage search engines in Settings/Reading then it won’t register on the main site.
You may also want to try one of the default themes (twentyxx) to see if it’s your theme screwing things up. Many themes that tout themselves as BuddyPress-Ready, are doing some funky things best left to plugins in their functions.php file.
Check out this page, specifically option B: https://codex.buddypress.org/getting-started/installation-in-wordpress-multisite/
If you Network Activate BP, but then change what BP considers it’s “home” by adding this constant as described in that codex article: define ( 'BP_ROOT_BLOG', $blog_id );
Then bbpress activity from your main/root domain should populate the activity stream of your BP subdomain.
Hi,
At my WordPress/Buddypress site users can create custom post.
I want a “Write to the author” from the custom post- Using Buddypress message system.
I came across this code:
https://buddypress.org/support/topic/link-to-a-private-message/
Which I put in functions.php.
And it works fine.. Except the “Send To”.
The author name dosent get passed through..
The solution could be in this line:
$compose_url.=('r=' . bp_core_get_username( $to_id ));
I have tried to store a varible, and writing something like this:
$compose_url.=('r='$authorname'' . bp_core_get_username( $to_id ));
But I can’t get it right… Nothing really works.
It only works when I write it manually like this:
$compose_url.=('r=authorname' . bp_core_get_username( $to_id ));
But that, of course, dosent really work for me..
Have anybody success with sending a PM message from a post?
Or have some idea what I could do, to get the author name / username in the “Send To”-Field.
Good evening, I would like to question.
I would like to hide from the activities page, the tab “all members” and make sure that on that page to show only tasks that appear in the tab “Personal”, the reshares (the reshares are handled by the plug-in of BP reshare imath ), the activities of groups that have registered (updates, new discussions, answers the discussions, updates of users also who are not my friends) and the activities of friends (all I publish my friends who are in the tab My Profile – activities – friends)
So I would like to divide the assets as has facebook.
You can kindly help me?
My WordPress version is 4.3.1., That BuddyPress is 2.3.4. I have the theme Kleo. My site is still under development.
Thank you.
Hi, I am quite new with buddy press. I’ve installed it in a wordpress multisite environment. I have many issues: First: I use a theme (is a buddy press ready theme) with a custom post type, this custom post type has categories, I have set up the categories in the main site, and I expected to see the same categories on every site, but it doesn’t work.
Also in the user activity stream I cannot see the posts the user has written in his own blog.
Is there something I miss for let buddy press work in a multisite environment? I basically would like to share posts and taxonomies trough the whole network.
Hi all,
I’ve a platform website, with a wp forum, buddypress, classifieds, and I activated wp multisite mode.
I’m thinking I could have some advantages installing BUDDYPRESS MULTISITE, meaning having buddypress in all the mini websites of my network…..but I don’t know exactly which ones might be the features.
I’ll try here to say some thoughts;
with buddypress multisite:
– can the buddypress members of the main site leave comments and communicate with the owner of a sub website who use some buddypress features in his website?
For instance:
people register to the main site, so they have their own profile: their first aim is to communicate into the forum, which in my case is simple press.
Then these members go to some subsites of the newtwork, let’s say to a sponsor website and he create some buddypress activities: can the members interact in that page?
I’m just wondering what exactly mean having buddypress multisite.
And the last thing: for having buddypress all over the main site and subsites should I follow the ( F ) procedure of the following guide?
https://codex.buddypress.org/getting-started/installation-in-wordpress-multisite/
Thanks in advance
Hi all,
I’ve got a community-website and would like to offer a kind of notification-service.
The user should give information what he is looking for and via email this user should be informed about new suitable users in the community.
The notification-email should be designed, so I guess I have to work with a newsletter-plugin like mail chimp.
Do you have any idea what will be the best?
Use the BP_Profile_Search Plugin and do some cronjob shortly before sending out the email?
I’m happy to read any ideas to this topic!
Best wishes
Miriam
—
WordPress (newest version)
BuddyPress (newest version)
BP Profile Search
You could try Paul’s Welcome Pack plugin. It’s listed as not been updated in 2 years but it should still work.