Advertisement:

Author Topic: Location Mod provide access to restricted forum boards  (Read 4134 times)

Offline DAB Empire

  • Jr. Member
  • **
  • Posts: 240
  • Gender: Male
  • EliteRides.com
    • Night Clubs
Location Mod provide access to restricted forum boards
« on: April 19, 2005, 09:38:52 PM »
I would like to have specific sections on my forum.  For example... If a user were to live in California and placed their pin within the California region on the map that would then grant them access to a board I make on my forums called "California". 

Offline SkyFlyer

  • Jr. Member
  • **
  • Posts: 122
  • Gender: Male
    • *CF* Clanless Fraggers *CF*
Re: Location Mod provide access to restricted forum boards
« Reply #1 on: April 20, 2005, 02:47:17 AM »
That would be rather difficult, since the location mod just uses an image for a map. I mean you could get a picture of [unknown] or someone and use that as your "map." the mod doesnt really know where on earth you place the pin, just where you placed the pin on the picture.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,893
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Location Mod provide access to restricted forum boards
« Reply #2 on: April 26, 2005, 02:36:13 PM »
SkyFlyer - your state is stored along with data indicating where to place the pin, so it wouldn't be that hard. However, it's probably not the best idea, because it could be abused easily (someone could say they live in California just so they can post there, even though they really live in New York (for example)).
Michael Eshom
Cincy Space - now open!

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,335
  • Gender: Male
    • Kindred-999 on GitHub
Re: Location Mod provide access to restricted forum boards
« Reply #3 on: April 26, 2005, 03:46:02 PM »
it shouldn't be too hard... but you'd have to change both the board access function (to check for permission) and the location mod to make it specifically ask for and store the value for a state rather than just a location (which could be a country, a city. etc)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,893
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Location Mod provide access to restricted forum boards
« Reply #4 on: April 26, 2005, 04:17:49 PM »
I thought that the mod stored your state as well, but it doesn't. You can enter a location value and also select the country though, so it could be modified a bit to ask for state if the map was set to the US.
Michael Eshom
Cincy Space - now open!

Offline DAB Empire

  • Jr. Member
  • **
  • Posts: 240
  • Gender: Male
  • EliteRides.com
    • Night Clubs
Re: Location Mod provide access to restricted forum boards
« Reply #5 on: May 02, 2005, 06:41:39 PM »
In thinking about it, it really wouldn't have to be based on the Location Mod.  Maybe if there was a section in the Admin that you can add a drop down menu to user's profile to select from a list of locations/regions that you provide.  That way people can still add their own location in the default box, but can also select Midwest, East Coat, etc. that the Admin listed.  Based on that provided list the Admin could also have restricted boards read users that have the appropriate location specified to allow them access to that section.