Skip to content

Avatar4eg/flarum-ext-geotags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geotags by Avatar4eg

A Flarum extension that adds places for your posts (with editor button, list of places on each post and markdown string with name of place in text). Uses Logicify JQuery Location Picker plugin.

Screenshots

Editor button:
Imgur
Creation modal:
Imgur
Result of creation in text editor:
Imgur
...and in post:
Imgur
...and after clicking on it:
Imgur

Goals

  • Allow users mention places and show them on map.

Installation

composer require avatar4eg/flarum-ext-geotags

Configuration

  • Create Google Maps API-key.
  • Enable Google Maps JavaScript API, Google Places API Web Service and Google Maps Geocoding API for full functionality.
  • Add your domain to accepted list.
  • Open settings modal of the extension in your admin panel and save Google API-key.

End-user usage

During post creation (or post editing or discussion creating) click the "Edit places" button. In creation modal drag marker (or search in "Address" field or enter coordinates) and save new location.

Links