@philipstancil
@bphelp
I want to hide specific users from the “(BuddyPress) Recently Active Members” & “(BuddyPress) Members” widgets (latter one is most important for me), but I don’t want these users from the members directory. So what does the below code exactly do? Does it exclude users from members directory or the widgets? Or both?
<?php
// Remove admin from directory
add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
function bpdev_exclude_users($qs=false,$object=false){
//list of users to exclude
$excluded_user='1';//comma separated ids of users whom you want to exclude
if($object!='members')//hide for members only
return $qs;
$args=wp_parse_args($qs);
//check if we are listing friends?, do not exclude in this case
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;
}
//Remove admin from member count
add_filter('bp_get_total_member_count','bpdev_members_correct_count');
function bpdev_members_correct_count($count){
$excluded_users_count=1; //change it to the number of users you want to exclude
return $count-$excluded_users_count;
}
?>
Hello and thanks for all the future help. I am trying to figure out how to put rank and @ in the forum like you have on buddypress.org?
Participant
@xevo
1 day, 1 hour ago
Why is Jetpack visible for any user that registers for my site?
I would like to be able to use some of the features that Jetpack offers but I do not want everyone else to have it visible in their dashboard when they register.
Any advise or feedback is greatly appreciated!
I am running the latest version of
Buddypress 1.8.1,
Wordpress 3.6 and
Jetpack 2.4
My site is http://sportsuniting.com/
Hi Xevo,
It depends how much you can code.
You can add one using the bp_core_new_subnav_item() function.
Let me know if you want more help – you should be able to find more info if you google it.
This is a good example:
Add tab to profile
Hi @mercime
Thanks. – i just downloaded the db via phpmyadmin
We are running a BP default child theme – would i simply remove it from the theme files?
How about the link to ‘read more’ for a forum post showing up in the activity stream. Is that also done in the theme files – as opposed to settings?
Best regards
bp_is_profile is used to test if its a profile page. try that in a conditional.
Have you tried confirming this behavior on a fresh install? If so i’d put in a trac ticket otherwise you’re probably going to be on your own for that one. It’s possible your import process is the root of the cause.
in buddypress settings under Groups Settings and the heading Group Creation un-check the box that says “Enable group creation for all users”
Hi buddypress community,
I was wondering if there is an easy way to add a tab in the profile page (between friends/groups etc) and load some code on that page.
Thanks!
I personally think a media option should’ve been in the core since the start. All the plugins that have been made are cool and all, but most of them are really big and bloaty or are premium.
A simple media option in buddypress which can be added upon by plugins would be a much better way to go in my personal opinion.
Yes BP Activity Plus works well. Thanks. (sorted a recent hiccup – it was just a silly mistake by me!)
Possible other options include rtMedia https://wordpress.org/plugins/buddypress-media/ and previously there was buddypics.
Communication, now, with photos/video etc is just exploding-its now just a huge part of online social interaction.
While i am truly appreciative of the countless developers and whole open-source eco-system that produces the plugins – sometimes developers, even commercial developers, move on to something else and the particular plugin does not get upgraded or does but months later.
Technically also as BP Activity Plus puts uploads into its own bpfb folder the links will not persist if the plugin is deactivated.
For niche functionality perhaps this is not so important but for a major functionality like say photo uploads my two cents is that it might be worthwhile for buddypress (as social interaction is its core) to have it built in. Its just to future proof it.
Am not talking about 1.82 but say aim for after 1.90
The p2 theme which i suspect the core devs might use quite a bit is a reasonable functioning template
(However, all this could be hugely difficult with Buddypress – I just haven’t a clue )
If it was in my hands (now i really am getting way above myself here) I would add “Add Media” and Map/Location (my p2 example – at http://trulysuperb.com/
Anyway I will put something up on the trac.
While i’m here – thank you @mercime for the huge lots of help in this forum and the wp forum over the years.
Hi, I’m trying to get BuddyPress running, and I can see the activate account page, but I don’t have an activation key. Nothing was sent. How do I re-trigger this?
Hello BP Team <3 from Brazil, Sao Paulo
We have a lot of options with BP. That´s amazing.
Now, we are looking for a simple counter member single home.
WordPress 3.5.1
BuddyPress 1.6.4
http://www.cidadesonho.com
Social Network of our city 🙂
Cheers!
@fideldonson no problem
Backup all tables in site’s database and you’re fine. But also check if there’s a bp-custom.php file in wp-content/plugins/ in server, and back that up if there’s one.
You can remove the status update box in different ways. It just depends on whether you’re using a WordPress theme or BP Default child theme.
Hi all
I just recently took over running a pretty heavily modified buddypress site (fully updated wordpress and buddypress installs) with a lot of activity (cant link to it as it is for a school). I know my way around wordpress (especially front end developing), but buddypress seems like a whole other game. And i keep running into dead ends when i have questions. So here are my three most pressing questions:
1) Backup. I want to do this manually once in a while – beyond the normal wp-db backup what should i do? – anything not obvious to be aware of?
2) When logged in the top most thing the user sees is a ‘whats up?’ ‘post to profile’ field. I want that gone, but cant find anything in the settings or in this forum?
3) When logged in and viewing the activity stream. Forum posts show up with a link to the poster, forum and group. What is really missing is a ‘read more’-link to the post being displayed. Again my search has not helped. How can i insert this link into the activity stream version of the post?
I hope my questions are not too dumb 😉
@valuser better to post this in BP Trac. Not sure that this would be added to core though. It’d be up to the devs. Just curious, BP Activity Plus plugin is not working for you?
@bp-help Thanks for reverting back quickly. I did search before I posted and the only one that found similar to my case was https://buddypress.org/support/topic/how-do-i-hide-extended-profile-fileds-from-users/
But I haven’t used the plugin the post mentions about, I did a backend database import by exporting and importing sql.
And I have done all the standard steps I do when something is amiss in WP or BP like deactivating all plugins and reverting to default theme. Yet the problem persists. Further I noticed in my DB that a meta field bp_xprofile_visibility_levels is only set for a handful of users in the users_meta table. Though it being set doesn’t really set the visibility level properly.
@envieme
I can’t recall it but I have seen this issue on the forums before when it dealt with importing members and not respecting the default profile visibility. Maybe a search through the forums will help and if I am not wrong it was resolved so maybe doing a search can help. If not perhaps another volunteer will provide you a better solution. Good luck!
Am on BP 1.8 and somehow can’t get x-profile visibility to work. It doesn’t seem to respect the default visibility options set by the admin. Yet it does work once the user themselves change the visibility settings (again) via their profile.
For instance, as admin I set default profile field visibility of “admins” only to a text field location. Yet all users who already have the field set as well as new users do not have it visible to everyone. But if the user edits his profile and again sets it to “admin only” it works as it should and doesn’t appear in the user profile when viewed publicly as non-admin. Same for loggedin members as well.
Other things to consider about my Buddypress install are:
1) Use ultimate facebook registration and no access to wordpress default registration
2) I imported all my users (some wp and largely others bp) into this bp installation manually via sql import from previous a installation
3) I would prefer not to post a public link here to my site but can share on PM if anyone wants to look at it.
Thank you
untested:
$activity_action = sprintf( __( '%1$s wroteDD a new post, %2$s, in %3$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>', get_the_category_list( ', ', '', $post->ID ) );
I want to create new sidebar on right side… using latest version of buddypress
That the front-end “Add Media” functionality of the p2 Theme to be ported to the Buddypress activity core.
Is there a possibility ?
@caspergrimaldi
Please give more complete info on your install. You mentioning “The plugin” is a guessing game and most of us can only spare a little time here and there and we don’t have time to ask every user to provide the details they should have provided when they first opened their thread. Most of the threads you see that no one has answered yet is largely because of this. https://buddypress.org/support/topic/when-asking-for-support-2/
As @hnla has advised you may want to consider hiring a developer. They usually have more advanced knowledge of the things that can be problematic to most novices.