Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

radius searching

11 years 3 months ago #230765 by michaelgreen252
radius searching was created by michaelgreen252
Hello, i was looking through the forums and saw a mention by cb developers to accomedate radius searching for coungry,state, city and zip....was just wondering if you guys ever got around to if becuase i have a serious needfor that feature...if so can you please direct me ....
But if not ..i was wondering if you guys knew of maybe a creative way using cb and its plugins to allow users to locate other users in there area....thanks for any help

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #230777 by krileon
Replied by krileon on topic radius searching
We have no such feature or any such plugin. You could always use an integer field for zipcode though and use Advanced or Simple Any search mode for your userlist then users can search between two values and perhaps that can help as nearby areas often have incremented zipcodes.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

11 years 3 months ago #230979 by michaelgreen252
Replied by michaelgreen252 on topic radius searching
Hey thanks....that was not really what i needed but was still helpful information.....but maybe you can instruct me as to how i can show list results to members based on their location..... I have city and state fields present but not sure really how to filter the results...i did however look at the list filter....and i can choose the state field....and then choose equal to as the command....but im not sure what i should add as the condition...it that is what im supposed to be looking at in the first place...thanks for the help

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #231002 by krileon
Replied by krileon on topic radius searching
You should be able to use a Simple filter to filter your list down so it only shows users relevant to the view users location. Example as follows (using Simple filter) using a substitution as the viewing users value.

Filter 1: State Equal To [cb_state]
Filter 2: City Equal To [cb_city]

Assuming both of those are dropdown fields it should work pretty well. If they're text fields then it may not do so well as that's user defined values and you could have users put the state or city in 3 or 4 different ways.

Please see the below tutorial for further information on substitute usage.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

11 years 3 months ago #231046 by michaelgreen252
Replied by michaelgreen252 on topic radius searching
Thanks for that.....that makes sense...do i need to add the braces with that condition....[cb_state]....or just cb_state ...
Also ...to show viewer ....opposite gender.....i should put (Not equal to).....?
.....
And lastly...is there a simple procedure to assign a new registered user to a group in this scenario....i have a group assigned to all 50 states...i read in a cb tut that i can assign a user to a group by using auto actions....by using the condition onafter registration....but that method seems like i would have to add 50 auto actions....is that the only option or is there another way?....if so that will be fine but wanted to know if there was another way.....
Also in the joomolopolis article the condition mentioned was onafter user registration....which i did not see...i only see after registration...is that the same thing?.....and should it be in the frontend area or frontend and backend area.....
Thanks...

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #231075 by krileon
Replied by krileon on topic radius searching

Thanks for that.....that makes sense...do i need to add the braces with that condition....[cb_state]....or just cb_state ...

Yes, the brackets are needed. Please see the substitution tutorial link in my previous reply.

Also ...to show viewer ....opposite gender.....i should put (Not equal to).....?

I have no idea. It's your field so only you know its values. If it's using _UE_MALE and _UE_FEMALE then you can use whatever operator you like (probably equal to or not equal to) and match against 1 of those values (ensure to turn off translations by checking the checkbox in the conditional).

And lastly...is there a simple procedure to assign a new registered user to a group in this scenario....i have a group assigned to all 50 states...i read in a cb tut that i can assign a user to a group by using auto actions....by using the condition onafter registration

Correct, please see the below tutorial regarding this.

www.joomlapolis.com/support/tutorials/107-use-cases/18237-assigning-usergroup-based-on-cb-field-value

but that method seems like i would have to add 50 auto actions

Correct.

is that the only option or is there another way?

It is the only way unless you develop a new CB fieldtype integration to assign usergroups based off their selection.

Also in the joomolopolis article the condition mentioned was onafter user registration....which i did not see...i only see after registration...is that the same thing?

Yes, for readability sake the "on" isn't present in the dropdown as every trigger would basically have it.

and should it be in the frontend area or frontend and backend area.....

Entirely up to you. If you want it frontend then user the frontend after registration trigger, if you want it backend then use the backend after registration trigger, if you want it frontend and backend then add both.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum