Skip to:
Content
Pages
Categories
Search
Top
Bottom

Upgrade issue


  • Nirok
    Participant

    @nirok

    I just upgraded my buddypress to the latest version from the previous released version. My issue is within a members profile. I am using buddypress as a way to look after a shopping centre – the shops being used as “members” . I previously had a button on each shop profile which shows all the other shops when you roll over them. So essentially i’m calling all members within someones profile. I also had a category image being called on the profile that changed according to a custom profile field category selected by the shop, for example you have an option of being a “cafe” “fashion shop” “lifestyle shop”, etc etc. When they select one then an image on there profile changes which called a picture of clothing or food etc etc…. The issue was this also broke. I think its my coding which is wrong or something has changed in the coding. I was previously using this:

    `
    <?php $fashion= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
    if ($fashion== ‘Fashion’) echo’

    ‘ ;?>
    <?php $cuisine= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
    if ($cuisine== ‘Cuisine’) echo’

    ‘ ;?>
    <?php $professionals= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
    if ($professionals== ‘Professional’) echo’

    ‘ ;?>
    <?php $lifestyle= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
    if ($lifestyle== ‘Lifestyle’) echo’

    ‘ ;?>
    <?php else echo'

    ‘;?>

    `

    The above code was calling the div tags to show the different category images and was placed in member-header.php. It didn’t work untill I removed “

    So that’s working fine now.

    My next issue was with calling all the members from within the members profile, the roll over shop button mentioned first above. This code works anywhere around my website, just not inside the profiles and this code was working previous to my upgrade to the latest buddypress… it’s almost like its not looping:

    `

      • Fashion Shops

        <?php $fashions= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
        if ($fashions== ‘Fashion’) : ?>

      • <a href="”>
      • Cafes and Dining

        <?php $cuisines= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
        if ($cuisines== ‘Cuisine’) : ?>

      • <a href="”>
      • Lifestyle

        <?php $lifestyles= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
        if ($lifestyles== ‘Lifestyle’) : ?>

      • <a href="”>
      • Professional

        <?php $professionals= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
        if ($professionals== ‘Professional’) : ?>

      • <a href="”>

    `

    I have even dropped this in the header yet in a members profile it isn’t working… is any of the code depreciated ??

    Thanks

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

  • Nirok
    Participant

    @nirok

    actually just worked it out… i disabled bbforum, friends, groups, private messenging and it works…. i don’t need any of these for the website


    Nirok
    Participant

    @nirok

    more specifically its the “friends” option which causes it not to work… which is all good as i’m not using that option anyway… seems with the upgrade all these options got re enabled

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upgrade issue’ is closed to new replies.
Skip to toolbar