Thanks @ubernaut 🙂
Is BuddyPress still be developed?
Yes it is. You can suscribe to latest dev updates at https://bpdevel.wordpress.com/ where I’ve just posted the contributors’ priorities for BP 2.3.0. If you have time, please feel free to participate in our 2015 BuddyPress Survey at https://buddypress.org/2015/02/2015-buddypress-survey/
I don’t know that plugin, sorry.
xprofile_get_field_data(2) where 2 = field id, this is not the entered value. For what do you need each member to give a number ?
The field has an ID and a value. What you need is the value, not the ID as all user use the same field ID to enter a number.
This means if field ID 2 contains 35 or other value, do something and if empty do nothing or else.
xprofile_get_field_data fetch a value, let’s say 35 (as example)
Your document has a var $entry[35] with 35 in array.
User Igor registered on the site with a user ID of 2156. Completed his profile and entered number 35. Igor’s avatar is generated by Gravatar.
What i don’t understand for the moment is the relation between the document and Igor !
The usage example given by the author let me doubt that you can bind a user in a excel tab with a BP user avatar, at least because the doc is not stored in the DB, but only screen readable.
here are some plugins you might want to check out:
https://wordpress.org/plugins/buddypress-media/
https://wordpress.org/plugins/wordpress-wiki-plugin/
not sure why you think it’s not very active here, there are at least a dozen posts here a day. last BP release was within the last few weeks. this is the right spot but you may want to post on the job board if you need more personal help.
Looking for a Wiki, photo and video sharing and perhaps social media sharing capabilities for a new BuddyPress site. Any suggestions?
Also wondering why the discussion here isn’t very active? Is BuddyPress still be developed? Is there any place to ask for some assistance?
I’m using the latest versions of WordPress (4.1.1) and BuddyPress (not sure which version, but just installed it yesterday). Using the Custom Community theme.
Thanks!
my snippet hides buddybar items to non logged user, not BP usermenu items on Toolbar.
To do that, you have to read the codex document i indicated in one of previous post.
BuddyMenu is built a la BuddyPress. And you got support for this here.
Toolbar is built a la WordPress. WP support is here.
If you had looked a little on the forum (ie. Remove Edit My Profile), you could find this:
https://buddypress.org/support/topic/remove-edit-my-profile/#post-150939
And again, the one or other code doesn’t remove BP pages, only items.
This is working code that gets the data from a field that registered users have to fill out in their profiles in wordpress:
<?php
$field = xprofile_get_field_data(2, $user_id);
echo '<span class="wisfb_carNumber">' . $field . '<span>';
?>
This is the code that generates data from a Excel-file:
<?php $data = wp_excel_cms_get("EXCEL-DOCUMENT"); ?>
<?php foreach($data as $entry): ?>
<?php echo $entry[1]; ?>
<?php endforeach; ?>
Now I want to do this:
If the number witch is generated in:
<?php echo $entry[1]; ?>
is the same number as in the users “Profile fields” witch is 2:
$field = xprofile_get_field_data(2, $user_id);
get this users avatar:
echo get_avatar();
Does anyone have an idea on how to do this?
This is the code I’m trying now. This one spits out the default img but aint getting the users avatar:
<?php
if ($entry[1] === xprofile_get_field_data(2, $user_id)); {
echo get_avatar($field);
}
?>
Hi @whoaloic
What do you mean by “note”?
Messages can be either public or private. Private messages work kind of like chat, and can be seen only by the ‘thread’ participants. Public message are ‘front-end’. You can public message someone by prefixing their username with the @ symbol. Public messages are also known as mentions.
Regarding favourites, see this Trac ticket for how the feature will be improved over the next few versions.
Hope this information helps.
@studdlypig
The admin user or primary user that is setup when a wordpress site installed is always able to login directly, and it’s initally only that user that can activate plugins i.e BuddyPress so I’m not sure why you are having trouble with activation requests. /wp-login.php should allow the admin to login regardless of whether BP is activated or not.
What account are you trying to login with, the admin user ID 1 ?
In the BP settings screen ‘Page’ tab what page have you associated to ‘Activation’ in the select box, as the redirect here appears to be the main issue and the WP link to login on the WP toolbar should redirect to the wp-login screen, which you can actually access directly by modifying your browser url so you can actually login as admin and manage your site.
fyi you shouldn’t have to trouble your web hosts to deactivate BP, using a control panel or ftp you can rename the plugins folder which will force a deactivation of the plugin or any plugin if they give trouble.
You have to learn how to find what you need for customizing your site. I allready answered. So again, for such things, you have WP Codex (as detailled previously)
https://codex.wordpress.org/Class_Reference/WP_Admin_Bar/add_menu
Hi, I am very new to making websites and only just discovered wordpress. The issue I am having is that when I go my website, then try to access the admin side it ask me to activate my account.
“Activate your Account
Please provide a valid activation key.”
I was able to have my hosting company look into it and they found the only way I could log in was for them to deactivate buddypress. I tried to adjust the settings I though were causing the problem however I guess I did not figure out what it was. Every time I reactivate buddypress I have to contact my host and have them deactivate buddypress in order for me to log in. I was wondering if anyone could help me with this or should I just uninstall and re-install the plug in. And is there something I did that I should avoid doing when I re-install it?
I am using all the most current versions of WordPress and Buddypress, as I just started the site about a week ago. I am using the Twenty Fifteen theme. http://www.gamersthatlift.com
Thank you for your time
If you need features of BP then you need both, I think so.
But before that you may ask here https://wordpress.org/support/plugin/paid-memberships-pro
if you can exactly do what you are asking for.
Thanks.
hi @michaelhpdx,
maybe these posts will help you ?
https://buddypress.org/support/topic/my-conditional-tags-are-not-being-respected-in-genesis/
https://yoast.com/wordpress/plugins/canonical/
Or maybe this snippet (intended for WP SEO at least) which removes canonical
function bpfr_wpseo_canonical_exclude( $canonical ) {
global $bp;
if ( function_exists( 'buddypress') && ( buddypress()->displayed_user->id || buddypress()->current_component ) ) {
$canonical = false;
}
return $canonical;
}
add_filter( 'wpseo_canonical', 'bpfr_wpseo_canonical_exclude' );
Hi @mocmocmk
A popular plugin to manage media seems to be rtMedia. I think you can display a gallery with the [rtmedia_gallery] shortcode
[quote]If you want a permanent notice to show without users being able to close it would it not be better to just add a text widget and add your own styling to make it stand out as a permanent reminder?[/quote]
I rather do just install a widget, then go across google to find ways to do it in a text html styling. If there is a widget of plugin. I rather do that first.
Thanks danbp, you are the man for showing something better than wasting time trying to code in a text widget.
This is a widget that came with BuddyPress, and seems to me that with that comment up there, sounds like they rather have me do the work than just take a close button out of there own widget. Not like an adult way, sounds more like I am child and don’t want to do it attitude. Same as WordPress, when you request something. I mean they are developers, and all they want to do is say no for something they already created. Since, getting attitudes are the fondest things on BuddyPress, bbPress, and WordPress forums, then I will just stop asking for things that should be from them. I am not going to develop the software for them.
For someone like me that rarely asks for anything. I got jumped on pretty fast there.
Again thanks, danbp for the smarter reply.
Comment-image-attachments as thumbnails in comments and in the BP Activity stream. How to do ?
Comment image attachment plugins for WP does not give the chance to attach and/or show images in BP comments. Fortunately I found BP checkins plugin by imath that lets you exactly do this. However this scope is limited only in the BP checkin pages. Users are curious and interested – if this can be done there why not all over the site ?
If you have any code or patch please share https://buddypress.trac.wordpress.org/ticket/6261#comment:2
or please post some useful code or plugin that will allow us to post/attach images in comments (not more than one or two) and show thumbs in Activity stream.

[screenshot from bpcheckin plugin]
Thanks
Hmm… just come across some other problems.
1. The codex example still isn’t inserting the entry into the Show drop-down menu.
2. I have a post type called “document” and that isn’t working at all, although my others are.
Finally, and this is just an observation, but I wonder why all of this is necessary. The WordPress function register_post_type() already allows you to set singlular and plural labels for post types – surely it would be better for the bp_activity_set_post_type_tracking_args() function that we’re modifying here to use these labels by default?
Hi @sofijagb
That particular email’s message isn’t filterable but the function which sends the email is pluggable, which means you can write your own function. For more info on pluggable function in WordPress, check out:
https://codex.wordpress.org/Pluggable_Functions
The function you’ll need to override is wp_new_user_notification()
Hope this info helps!
To resolve this, you’ll need to look at the member pages which aren’t being indexed (look at their templates, URLs, sitemap entries) and work out what is different to the pages that are being indexed. I think you mentioned there could be an issue with the sitemap, so that’s another avenue to investigate. Perhaps try installing a different XML sitemap. Personally, I’ve used XML Sitemap which has always been reliable (and support from the author is very good as you’ll be able to see from the resolved tickets I’ve opened on that support forum). Then there is Google XML Sitemaps which has 1m+ active installs, so that looks popular
Hi @verdon,
Background
consider this and this
Can BuddyPress Profiles (Members) set-up and associate listings
Read here
Can BuddyPress have a professional look and feel?
Visit biowebspin.com
Hi,
I am really struggling with trying to hide my admins from my site. I searched this site and tried every code available with no success. Below is the last code I tried with no success.
https://buddypress.org/support/topic/hide-admins-activities-from-all-activity-feeds-in-buddypress/
Any ideas what I am doing incorrectly? This code is inserted in my child themes fuction.php correct?
I am racking my brain on this one!
Thanks for any help,
Ken
The Theme I am using is KLEO by Seventh Queen
Buddy Press version Version 2.2.1
Website:http://www.cmpg-annex.org/
Other Plugins
Akismet
bbPress
BuddyPress Cover Photo
K Elements
MOJO Marketplace
Paid Memberships Pro
PMPro MailChimp Integration
PMPro Register Helper
PMPro Set Expiration Dates
Register Helper Example
Revolution Slider
rtMedia Pro for WordPress, BuddyPress and bbPress
The Events Calendar
WPBakery Visual Composer
// deny access to admins profile. User is redirected to the homepage
function bpfr_hide_admins_profile() {
global $bp;
if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
wp_redirect( home_url() );
exit;
endif;
}
add_action( 'wp', 'bpfr_hide_admins_profile', 1 );
// Remove admin from the member directory
function bpdev_exclude_users($qs=false,$object=false){
$excluded_user='1'; // Id's to remove, separated by comma
if($object != 'members' && $object != 'friends')// hide admin to members & friends
return $qs;
$args=wp_parse_args($qs);
if(!empty($args['user_id']))
return $qs;
if(!empty($args['exclude']))
$args['exclude'] = $args['exclude'].','.$excluded_user;
else
$args['exclude'] = $excluded_user;
$qs = build_query($args);
return $qs;
}
add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
// once admin is removed, we must recount the members !
function bpfr_hide_get_total_filter($count){
return $count-1;
}
add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter');
// hide admin's activities from all activity feeds
function bpfr_hide_admin_activity( $a, $activities ) {
// ... but allow admin to see his activities!
if ( is_site_admin() )
return $activities;
foreach ( $activities->activities as $key => $activity ) {
// ID's to exclude, separated by commas. ID 1 is always the superadmin
if ( $activity->user_id == 1 ) {
unset( $activities->activities[$key] );
$activities->activity_count = $activities->activity_count-1;
$activities->total_activity_count = $activities->total_activity_count-1;
$activities->pag_num = $activities->pag_num -1;
}
}
// Renumber the array keys to account for missing items
$activities_new = array_values( $activities->activities );
$activities->activities = $activities_new;
return $activities;
}
add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );
Is not Buddypress Registration same as WordPress Registration?
Thanks.