Skip to:
Content
Pages
Categories
Search
Top
Bottom

problem displaying bp_profile_field_data on pages since Version 1.2.2.1 install

  • Avatar of gaysurfers
    gaysurfers
    Participant

    @gaysurfers

    Hi

    I referred to the below to set up members-loop.php so that fields from db table wp_bp_xprofile_data would show up in front of each member.

    <div class=”item-meta”><?php bp_profile_field_data( ‘field=Country’ ) ?> – <?php bp_profile_field_data( ‘field=Surf Spot’ ) ?></div>

    It did work but since I installed the new version of buddypress (Version 1.2.2.1) it seems to have stopped working.

    Anyone have any ideas what to change in the code for it to work again???

    Thanks

    * If you want to show specific profile fields here you can,

    * but it’ll add an extra query for each member in the loop

    * (only one regadless of the number of fields you show):

    *

    * bp_member_profile_data( ‘field=the field name’ );

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of gaysurfers
    gaysurfers
    Participant

    @gaysurfers

    1. Which version of WP/MU are you running? version 2.9.2

    2. Did you install WP/MU as a directory or subdomain install? directory

    3. If a directory install, is it in root or in a subdirectory? root

    4. Did you upgraded from a previous version of WP/MU? If so, from which version?2.9.1

    5. Was WP/MU functioning properly before installing/upgrading BuddyPress (BP)? Yes. register do not wok since i installed BuddyPress

    6. Which version of BP are you running? Version 1.2.2.1

    7. Did you upgraded from a previous version of BP? YEs from 1.2.1

    8. Do you have any plugins other than BuddyPress installed and activated? Yes, but I have deactivated them all and the problem persists.

    9. Are you using the standard BuddyPress themes or customized themes? customized theme = furry-family

    10. Have you modified the core files in any way? no

    11. Do you have any custom functions in bp-custom.php? no

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? Must be built in, i dont know what bbpress is.

    13. Please provide a list of any errors in your server’s log files.

    14. Which company provides your hosting? OVH

    It looks like it should still work OK. Anything in your error logs?

    Avatar of gaysurfers
    gaysurfers
    Participant

    @gaysurfers

    Hi

    Where do I check my error logs?

    I have tried different things with no success.

    I have tried the following:

    <div class=”item-meta”><?php bp_profile_field_data( ‘field=Country’ ) ?> – <?php bp_profile_field_data( ‘field=Surf Spot’ ) ?></div>

    and also

    <div class=”item-meta”><?php bp_member_profile_data( ‘field=Country’ ) ?> – <?php bp_member_profile_data( ‘field=Surf Spot’ ) ?></div>

    I don’t know which one to use, but anyway none of them works. Is there some more code I need to add for it to work?

    Thanks

    Avatar of gaysurfers
    gaysurfers
    Participant

    @gaysurfers

    if you want to have a look at the site, I am talking about this page:

    http://www.gaysurfers.net/members/

    The fields should be displayed next to each members, but it does not happen :(

    Avatar of gaysurfers
    gaysurfers
    Participant

    @gaysurfers

    Ok I found the solution:

    Need to use :

    <?php bp_profile_field_data( ‘field=Country&user_id=’ . bp_get_member_user_id() ) ?>

    Avatar of Marc P Gangmei
    Marc P Gangmei
    Participant

    @weblogian

    Is there is a way to check whether data is available in the field else return blank

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.