User profile friends listing map issue
-
A small? bug slipped through identified by @bjkitchin over at:
http://wordpress.org/support/topic/plugin-bp-user-profile-map-map-is-showing-location-wrong-location-data-in-friends-tab?replies=3#post-2747357There are issues with one screen in a users account – if one is displaying a profile map for user and viewing the profile page sub screen listing their friends all maps receive the main users location.
This, I now realise, was actually an induced error brought about while trying to correct another.
I have a fix for this issue but there are updates in the pipeline preventing me uploading a new version right at this minute until they are all completed and tested.
For now users experiencing this issue will need to add the fix manually thus:
Locate line 120 ( or thereabouts) in upm.php
`if( bp_is_members_component() ) {`
And replace it with:
`if( bp_is_members_component() || bp_is_user_friends() ) {`
You should now have something like this:
`
// Set our member id’s.
if( bp_is_members_component() || bp_is_user_friends() ) {
$mem_id = $members_template->member->id;`
This should now correctly show each members location.There is a further issue in the size of maps on this one screen ‘friends’ becomes dictated by the members loop map dimensions so if you set a larger map for the users account on this screen it will be the same size as the members below, at present I can’t see a fix for this.
You must be logged in to reply to this topic.