Upgrade issue
-
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:
`
-
- <a href="”>
- <a href="”>
- <a href="”>
- <a href="”>
Fashion Shops<?php $fashions= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
if ($fashions== ‘Fashion’) : ?>Cafes and Dining<?php $cuisines= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
if ($cuisines== ‘Cuisine’) : ?>Lifestyle<?php $lifestyles= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
if ($lifestyles== ‘Lifestyle’) : ?>Professional<?php $professionals= xprofile_get_field_data( "Shop Type" ,bp_get_member_user_id());
if ($professionals== ‘Professional’) : ?>
`
I have even dropped this in the header yet in a members profile it isn’t working… is any of the code depreciated ??
Thanks
-
- The topic ‘Upgrade issue’ is closed to new replies.