Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] How to show/public Profile Field Groups to everyone!

  • Avatar of Bluesharp
    Bluesharp
    Participant

    @bluesharp

    Hi,

    On my site I have a Field Group named “Student” among with the “Base” group. I edit profile and enter data to these fields, on User/Profile/View tab – I see my full profile data. I log out- and come back to the user profile base to view full profile – but I can only see the Base Profile. How can I make it to show all profile? Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @bluesharp What theme are you using? Change to Twenty Fourteen theme and check if issue is resolved.

    Avatar of Bluesharp
    Bluesharp
    Participant

    @bluesharp

    @mercime – I just fix the issue with notification tab – and that seems to has effect on this too.

    Now logged in members can see other members full profile fields. I want to make the full profile fields including base fields and xProfile group fields public to everyone even not logged in, how can I do this?

    Avatar of Bluesharp
    Bluesharp
    Participant

    @bluesharp

    I still get this issue, now only User can see his xProfile – Even Admin can’t see other user xProfile. I have tried to switched to the Twenty Theme, but it still happens.

    I have traced to here:

    //I have two profile Groups, the Base group and one more I created.
    // I created a User with full profile fields data.

    <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    <?php if ( bp_profile_group_has_fields() ) : ?>

    If the user view his own profile the bp_profile_group_has_fields() will return True two times. But if another user view this user profile it will only return True 1 time and the 2nd time is false – that makes it display only Base group profile Fields and xProfile fields can’t display.

    I use WP 3.9 Latest BuddyPress and installed a lot of plugins.

    Avatar of Bluesharp
    Bluesharp
    Participant

    @bluesharp

    Luckily I found it from a thread:
    Here’s in the plugin in buddypress-xprofiles-acl
    Comment the below function!

    /* function filter_xprofile_groups_with_acl() {
        global $bp, $profile_template, $current_user;
        get_currentuserinfo();
        foreach($profile_template->groups as $key => $profile_group) {
          if( ! in_array($profile_group->id, $this->user_allowed_xprofile_groups) ) {
            unset($profile_template->groups[$key]);
          }
        }
      }
      */
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Resolved] How to show/public Profile Field Groups to everyone!’ is closed to new replies.