-
Iurie Malai replied to the topic [Resolved] groups_get_group_members() – 'exclude_admins_mods' parameter in the forum How-to & Troubleshooting 10 years, 4 months ago
@0bservator Thank you!
-
Iurie Malai started the topic [Resolved] groups_get_group_members() – 'exclude_admins_mods' parameter in the forum How-to & Troubleshooting 10 years, 5 months ago
To display members of a group I use the groups_get_group_members() function. But, by default, this function excludes from listing the admins and mods. I know there is a parameter exclude_admins_mods (true by default) that can help to include admins and mods in displayed list of members, but I do not understand how to use it. I tried some variants…[Read more]
-
Iurie Malai replied to the topic How add filter to bp_the_profile_group_field_ids? in the forum How-to & Troubleshooting 10 years, 5 months ago
@SimpleOne, thank you, I will test that!
-
Iurie Malai replied to the topic How add filter to bp_the_profile_group_field_ids? in the forum How-to & Troubleshooting 10 years, 5 months ago
Can you show how you solved your problem? danbp‘s code did not work for me. As you, I also wanted to hide some xprofile fields and tabs that I don’t want users to be able to edit.
-
Iurie Malai started the topic Group Members Loop shortcode troubleshutting in the forum How-to & Troubleshooting 10 years, 5 months ago
I created a shortcode to display a list of group members, but I always get the “This group has no members” result. What is wrong here? The group with ID 2 exists and have one member.
add_shortcode( 'group_members', 'list_group_members' );
function list_group_members() {
global $bp;
if ( bp_group_has_members( 'group_id=2' ) ) {
echo '<ul…[Read more]
-
Iurie Malai replied to the topic Conditional Exclusion of a xProfile Fields Group from editing in the forum How-to & Troubleshooting 10 years, 6 months ago
@danbp, I know how to check for errors, but this didn’t helped me too much :). I solved with the blank page, but no more. Your solution works for hiding some xProfile tabs from viewing, but not from editing them. Am I wrong? Sorry!
This is my tested function (as I said, it hiding only from viewing, not from editing):
[Read more]
function… -
Iurie Malai replied to the topic Conditional Exclusion of a xProfile Fields Group from editing in the forum How-to & Troubleshooting 10 years, 6 months ago
-
Iurie Malai replied to the topic Conditional Exclusion of a xProfile Fields Group from editing in the forum How-to & Troubleshooting 10 years, 6 months ago
@danbp, thank you! I tested your solution (the last function), but no success. Is enough to put this in the bp-custom.php file?
I tried the next simple function to hide the extended fields group number 2 from editing for all members, but it not working.
function flegmatiq_profiles( $retval ) {if( bp_is_profile_edit() )…[Read more]
@flegmatiq
Active 7 years, 11 months ago