Hello. For the last few hours, I have been trying to achieve two things simultaneously:
1) I want the directory to show all users, even ones who haven’t logged in for the first time.
2) I want the directory to sort alphabetically by default.
To solve the first problem, I have implemented the solution here: https://buddypress.org/support/topic/members-not-showing-4/
When I select “Alphabetical” from the sort dropdown, it only displays users who have filled in their profile.
I tried implementing this solution and while it does sort alphabetically on default, it shows the same list as above: https://buddypress.org/support/topic/sort-user-list-by-last-name/
How can I create a directory that displays all users, including new ones who haven’t logged in yet, and sort alphabetically at the same time?
Thanks!
Use the per_page parameter. More info.
Deactivating Youzer by itself didn’t give me any improvements. So its gotta be a buddypress issue.
I just found out that when I deactivate Buddypress and Youzer and use the sign-in from my theme everything works fine. WordPress takes me to the “ugly” registration page and even sends me an email which I need to activate.
So I just wanted to update this in case anyone else was looking for something along these lines.
I found some code on The Buddypress Codex page that spelled out how to actually add the column. From there I added some custom coding to it to allow it to link to the membership page and accept the requests:
<?php
/* BuddyPress Custom Code */
// add the column
function groups_admin_add_custom_column( $columns ) {
$columns["pending_group_members"] = "Join Requests";
return $columns;
}
add_filter( "bp_groups_list_table_get_columns", "groups_admin_add_custom_column" );
// add the column data for each row
function groups_admin_custom_column_content( $retval = "", $column_name, $item ) {
if ( "pending_group_members" !== $column_name ) {
return $retval;
}
if ( "private" == $item["status"] ) {
$user_ids = BP_Groups_Member::get_all_membership_request_user_ids( $item["id"] );
return "<a href='". site_url(). "/groups/". $item["slug"] ."/admin/membership-requests/'>" . count( $user_ids) . "</a>";
}
return "-";
}
add_filter( "bp_groups_admin_get_group_custom_column", "groups_admin_custom_column_content", 10, 3 );
?>
Thanks for the reply,
so I can not use Buddypress e AE global templates elementor together?
Hey guys,
I m using buddypress and youzer on my website and it seems like whenever people use the registration form to sign up, they are taken back to the homepage but no user is being created in the database. I also have wpforo forum plugin running which supposedly works smoothly in conjuction with buddypress.
Looking forward to your help
greetings
fullenchilada
BuddyPress does not include articles, you can post new activity updates, do you mean that or something else?
@kaneesha we have released BuddyPress Moderation it might help you.
Actually Stream supports BuddyPress, so give it a go and see if it catches what’s happening. If it’s only affecting one user it’s unlikely to be a bug or conflict though it could maybe be a database error.
Thank you for your reply. The content missing, are his post he has made through his personal profile on the buddypress site.
Behaviour confirmed.
I believe this is a bug.
Please open a bug ticket here.
Use the same login as you use for these forums.
Reference this thread in your ticket.
thanks for the answer! but could you be a bit more specific? I’m a beginner in BuddyPress and I’m having hard times understand it properly. I tried to use the filter but if I remove the add_action (apparently) it won’t affect anything and if I use it, it removes half of the content in the profile page.
thanks
Please use the code button when posting code.
Try using this filter hook:
apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id );
To adjust the value returned by: bp_the_profile_field_value()
For reference: that hook is found in: buddypress\bp-xprofile\bp-xprofile-template.php
There’s two you could try, BuddyPress Docs which is a bit old but still works. Or my own plugin BP Post Status which is the new kid on the block.
BuddyPress Docs sets up it’s own post type and adds collaborative editing to it. This means that the editing experience is somewhat limited.
BP Post status uses standard posts and add group based statuses to it so that posts can be assigned as Group posts, members only friends only etc and since it uses posts (or any other post type) you can exxjoy the full classic editor or my own front end publisher – BP Site Post Note that Gutenberg does not support custom post statuses so it can only really be used in classic editor mode.
There’s a couple of other options, such as BuddyDev’s Blog Categories for Groups or if you are looking for a document library there BP Documents.
Hi,
I’m using BuddyPress and the result that I’d like to reach is modifying a field in the user profile page (http://yourSite/members/userName). So far I’ve found bp_after_profile_content and bp_before_profile_content but what I want is affecting one field inside the profile_fields_content. I’m not using any custom field and I can’t find a solution. Does any of you have any idea? I’m in function.php of a child theme and my function so far is this one:
function get_member_field_test($data){
$data = bp_get_member_profile_data( ‘field=lname’ );
if ( strlen($data) > 3){
$data = substr($data,0, 3).’…’;
return $data;
}
}add_action(‘bp_before_profile_content’,’get_member_field_test’);
thanks in advance
Hi,
I would like Onesignal to additionally notify users when a BuddyPress notification is activated.
There is an option for ‘Additional Custom Post Types’. (If this is not an option, is there another workaround)?
Thanks in advance for the support!
Hi,
Thank you for youre response. I’m happy to know that its not something i did wrong. It could be an help to others if in the future it would be fixed. Yes I would like to raise this on trac. I used the link you gave me trac and made a new ticked to inform about the issue.
I really like the way buddypress works, the help by volunteers, the quality of the work, all the plugins. So compliments for the team and moderators.
greetings,
have a nice day
Log:
PHP Warning: reset() expects parameter 1 to be array, boolean given in /site_path/wp-content/plugins/buddypress/bp-core/bp-core-template.php on line 3034
Code: https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/bp-core-template.php#L3034
BuddyPress 4.2.0
WordPress 5.1.0
PHP 7.2.15-1+ubuntu16.04.1+deb.sury.org+1
I’m trying to create a network where people ‘register’ for the services by submitting a Group. After the group is submitted, an invoice will be sent manually, and after it gets paid, the admin will manually change the Group to Public.
I’ve used this code snippet to skip the Group Settings Page when users submit their group (I don’t want them to be able to change it themselves).
But now, I’m trying to force all new Groups to be Hidden instead of the default value Public. I’ve edited the create.php, but that does not seem to work, I guess because the Group Settings page gets skipped. Is there a different way to set the default value to Hidden?
Kind regards,
I think yes it is still BuddyPress registration page because I am seeing the same texts for both registration page and BuddyPress backend loco translation setting.
Yep but it would require custom code I would have said. There’s a BuddyPress filter called bp_current_user_can and a WordPress filter map_meta_cap you could hook into these, determine the user and situation and choose to allow the action accordingly.
I think the first thing to check is that it’s still the BuddyPress registration page. Your theme may have overloaded it and that might be the issue.
Hi there, I can confirm this as an issue, would you like to raise this on trac to get it fixed?