XF2 Add-on AndyB - Members map 2.1 - Xenforo Add-Ons

virgilio183

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
May 16, 2021
Messages
25,956
Reaction score
35,579
Points
113
NullCash
628,142
pic001.jpg
Description:
Shows members on a Google map.

Live example here: Members map

Setup step 1:
Get your Google Maps JavaScript API key using this link:

https://developers.google.com/maps/documentation/javascript/get-api-key

Additional Google Maps JavaScript API settings information here:

Google Maps JavaScript API

Setup step 2:
The Ipapi allows 1000 IP lookups per day, which is fine for most forums. If your map will show more than 1000 members, you can subscribe to Ipapi and get an Ipapi key to bypass this limit.

Get your Ipapi key using this link:

ipapi - IP Address Lookup and Geolocation API | No SignUp

Setup step 3:
Update the Options page with your Google maps and Ipapi keys.

Setup step 4:
Give User group permissions to view the map.

Setup step 5:
Run the Cron entries for the Members map manually. This is only required upon initial setup. The Cron entries will automatically run once a month.

Database changes:
This add-on will create two tables in your database:

andy_members_map
andy_members_map_data

Questions and Answers:
Q: How much does the Google maps API cost?
A: It's free unless you have an extremely large forum.

Q: How much does the Ipapi API cost?
A: It's $15.00 USD a month.

Q: Can I cancel my Ipapi subscription after a few days in order to be billed for just one month?
A: Yes. Make sure to disable the Members map cron entry after running it, that will prevent losing the map data.

Q: Can members manually set their location?
A: No.

Q: Can members opt out from the map?
A: No.

Compatible XF Versions 2.0 , 2.1 , 2.2
 

Attachments

  • AndyB Members Map 2.1.zip
    46.7 KB · Views: 0

ursus100

Member
XNullUser
Joined
Jun 26, 2019
Messages
90
Reaction score
0
Points
6
NullCash
6
thank you for sharing, very good module, was looking for it.
 
Top