Skip to:
Content
Pages
Categories
Search
Top
Bottom
  • GooseNL posted a new activity comment 14 years ago

    Ok, I figured it out… So in case someone else has the same problem, here is the fix:
    function get_user_type() {
    $isMember = xprofile_get_field_data( 'Type', bp_loggedin_user_id() );
    return $isMember;
    }

    bp_loggedin_user_id works in a site wide scope.

    Cheers, GooseNL

  • Hi Guys, I am pretty new to php so perhaps one of you can help me out? I’m trying to display custom profile fields site-wide. I have added the following code to functions.php: function get_user_type( $user_id ) { global $bp; $user_id = $bp->loggedin_user->user_id; $isMember = xprofile_get_field_data( 'Type', $user_id ); return $isMember; } and…

    • Ok, I figured it out… So in case someone else has the same problem, here is the fix:

      `function get_user_type() {
      $isMember = xprofile_get_field_data( ‘Type’, bp_loggedin_user_id() );
      return $isMember;
      } `

      bp_loggedin_user_id works in a site wide scope.

      Cheers, GooseNL

  • GooseNL started the forum topic Request: Tags in the group BuddyPress Links: 14 years ago

    Hi MrMaz, I am greatly enjoying the links plugin 🙂 Is there a possiblity to add tags to the links plugin, maybe as a future release or as something I can easily code myself? So users can define multiple values themselves instead of being restricted to choose a single category. IMO this would enhance the […]

Skip to toolbar