Is it possible to find a friend/user through the GMAP location module then add them as a friend from there?

Thanks.

Comments

irakli’s picture

Status: Active » Fixed

Please elaborate - what do you mean by that? Do a proximity search, find all users within a radius and have the ability to add them as users?

No, this is not currently possible. The Gmap module provides very little to help with such functionality, too.

It's an interesting idea, but it's unlikely to be added in the near future, unless somebody provides a code that does something like that. We'd be happy to integrate something like this, though.

aleehatami’s picture

I was thinking more along the lines of clicking on the marker that represents their location on the gmap module and an INFO window would pop up and one of the options on their is "Add as friend"

Can this be done?

lashad’s picture

Let me pitch in.

The answer is "not currently". Where would this map be located? In the user profile? And show just single user's location?

irakli’s picture

Actually,

I was just looking into Gmap_location module's source and saw something interesting. They have this view, where they show all site users on a single map. And there seems a trace of a kind of integration that aleehatami seems to be talking about.

A commented-out code there, inside gmap_location_user_page() has:

  $buddies= buddylist_get_buddies($key) 

so I am assuming they were on their way of doing something like that for buddylist.

I guess if we ping them, they may be open to providing similar integration via a hook that FriendList or any other similar module could implement.

I only have one question: the goal of a social network website is to have many users :) At least in several thousands. Will you be able to see anything on a map that has thousands of flags for each user? Is GMap_location zooming into a location nearby current user's location when it shows that map?

aleehatami’s picture

You can zoom in manually and find the location you are looking for. I'm sure you can have 10,000 users on the GMAP and still be able to click on each one since you can zoom in basically to a street level. Even if you didn't have 10,000 users, this would be a nice feature for just 500 :)

irakli’s picture

OK.

aleehatami, you need to open an issue on the gmap_location issue queue and ask them to add a hook in the gmap_location_user_page() so we can implement it and then we will be able to proceed from there.

Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.