Hello dear developers and users. I want to make discourse location based like craigslist. But not with gps. just users chose their country manually. How can I do it simply ?. I want to add a country choosing page after sign up page but routes.rb is very confusing.
There have been requests of this in the past, but not much developer will to make it.
Probably easiest to implement this with tags. Assumes users will tag their posts with the correct locations, though.
A plugin to pre-fill the tags with location stuff based on browser IP detection would probably not be too hard.
Remember that you can also ask the browser for its location. This works on all mobile devices, and Chrome on computers with Wi-Fi.
If your users will choose the country manually, I would use categories for each country, and change the landing page for the categories page. It can be done with Discourse as it is today.
Once you have “hundreds” of categories this becomes unsustainable though. For say… a few dozen locations… that might work OK.
You might find it best to start out with wide geographical areas, and combine areas with low activity & split areas with high activity. Otherwise you get the problem where nobody posts in the North Dakota category.
Thank you to all of you my friends But I think I will try to change routing system