latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Geo-location member search?

Home Forums Community Forum Unofficial Extensions/Hacks Geo-location member search?

Tagged: ,

This topic contains 1 reply, has 2 voices. Last updated by  Mike (Volunteer Moderator) 3 years, 5 months ago.

Topic Author Topic
Posted: Tuesday Jul 30th, 2013 at 3:03 pm #54407
Danny Kim
Username: dannyk1m

My client wants to be able to search specifically just level 3 members, ordered by geo-location.
Is there a plugin for this..or does anybody know how to implement this?

I’d like to know asap. Thanks!

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Jul 31st, 2013 at 9:02 am #54493
Moderator

You can get a list of all users at that Level like this.

foreach(get_users('role=s2member_level3') as $user)
	{
		echo $user-ID;
	}

See also: http://codex.wordpress.org/Function_Reference/get_users

As for geolocation, you might try something like this.
https://www.maxmind.com/en/javascript

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.