Search and Passwords

jimmyk
jimmyk
@jimmy
10 years ago
514 posts
I have a question and an idea.

1. Is there an ability to search by zipcode? I had a client who wanted me to setup a social site for them (dating) and wanted to know if searching by zipcode was available. I believe this was discussed on the old JR4 forum. I realize that I can just add a field for the zipcode and search for a specific zipcode, but is there a radius search ability - 10, 20, 30 miles - in JR5?

2. I read a lot of articles online about people using passwords that are on the "top 10 list of most used passwords". I was wondering if it might be good to create a module for JR which prohibited new members from using common passwords. Honestly, I've never seen a feature like this is any script I've ever worked with. Thought it might be a great addition to JR. Maybe there is a resource online which you can pull an updated list of common passwords to keep the module current with the newest "most used" passwords. In the end, it would an extra layer of security especially for a site which has users which are prone to using "password1" or "p@ssword".

https://www.yahoo.com/tech/here-are-500-passwords-you-probably-shouldnt-be-using-96467697789.html
updated by @jimmy: 02/23/15 05:03:15PM
paul
@paul
10 years ago
4,335 posts
1) I bet google has an api that converts a zip code to latitude and longitude. If it has, a custom module could submit the zip code and then add the lat/lng to the user datastore. Range of any one user from another could then be calculated.

2) Not exactly what you suggest but the jrStrongPassword module would fit your needs -

https://www.jamroom.net/the-jamroom-network/networkmarket/158/strong-password

hth


--
Paul Asher - JR Developer and System Import Specialist
jimmyk
jimmyk
@jimmy
10 years ago
514 posts
1. I don't know if it's something you guys would consider creating for JR. I haven't had any time to develop anything - busy building sites for people. I though there was a long thread on the old forum about people wanting the zipcode radius search - it would be very useful for anyone who wanted to create a dating style site - like my client is requesting.

2. Just an ability to check the users entered password against a database of common passwords and reject the users ability to use that password. I bet some of those passwords on the list of common passwords would qualify as strong passwords (though I haven't checked them) depending on how someone setup the strong passwords module.
updated by @jimmy: 01/14/15 01:28:36PM
paul
@paul
10 years ago
4,335 posts
A quick google search brought up this -

http://maps.googleapis.com/maps/api/geocode/json?components=postal_code:695564&sensor=false

It would be dead easy to build a module to do what you using that call. I did try it with my UK postcode as well and that worked, so I bet it works with any worldwide zip/postcode.


--
Paul Asher - JR Developer and System Import Specialist
jimmyk
jimmyk
@jimmy
10 years ago
514 posts
Might be a great paid module for you guys at Jamroom. I know I would probably purchase it if my client decides to go forward with the project. Actually, I would also probably purchase it for my personal license because what user doesn't want to search for other users in their area... that's just being social (meet at the pub!). :)
paul
@paul
10 years ago
4,335 posts
jimmyk:
Might be a great paid module for you guys at Jamroom. I know I would probably purchase it if my client decides to go forward with the project. Actually, I would also probably purchase it for my personal license because what user doesn't want to search for other users in their area... that's just being social (meet at the pub!). :)

SteveX - Does your Google Maps module have this ability?



--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 01/14/15 02:09:44PM
brian
@brian
10 years ago
10,149 posts
For "checking" passwords I think the Banned Items module would be a good fit for this functionality (add a new "password" type).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
paul
@paul
10 years ago
4,335 posts
brian:
For "checking" passwords I think the Banned Items module would be a good fit for this functionality (add a new "password" type).

Good call - I'd forgot about that module.


--
Paul Asher - JR Developer and System Import Specialist
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
paul:SteveX - Does your Google Maps module have this ability?

No, it doesn't, but ujGoogleMaps would make a great start . More search (cowbell) would be a good addition to the module, a mapped radius search might be useful. Showing the results on a map would be what googlemaps does, and it will already do it if you pass in your array of markers (and a marker template for a popup within the map).

You'd need to get your users near the searched for zipcode, then pass their data into the ujGoogleMaps_map smarty function as items (or a custom array of markers) and a marker template. You should then be able to use that same items array to do a normal jrCore list - ujGoogleMaps just shows them on a map at the top of the page.

I probably won't be able think about it for at least a month or more, but I would like to expand on googlemaps, or (more likely) make some additional modules to take advantage of it. ujProximity might be a good additional module to make. The idea of ujGoogleMaps was to show anything on a map, and to have a really really simple interface for adding maps for users who can't read maps.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 01/14/15 03:19:25PM

Tags