StevenStark.com
Technical Blog for Joomla, LAMP and Flash Development. ALSO includes Application, interactives and game development.

...... Navigation

  • Home
  • Flash
  • Open Source
  • The Team
  • Background
  • Services
  • Portfolio
  • Projects
  • Contact

  • ...... Technical Blog

  • CMS (13)
  • Experiments (1)
  • Flash (9)
  • LAMP (1)
  • Misc (8)
  • Tutorials (5)


  • ...... Archives

  • April 2009
  • October 2008
  • March 2008
  • February 2008
  • January 2008
  • November 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • December 2006
  • August 2006
  •  

     

     

     

     

     

     

     

     

     

    < Hosting Companies, Large vs Small Joomla - Users can Customize Profile’s CSS >

    Distance user searching, without a postal code, in Joomla!

    I wanted to be able to search my users by x Km without the need to process postal / zip codes. I achieved this in one day by incorporating some new components for mapping and searching.

    My site, Smart-Love.ca, is running on Joomla and Community Builder, but the user searching was very weak. First I installed Joogle, which uses both Google Maps and Yahoo Maps to generate a longitude and latitude for any user with simple address information in CB, automaticly with a ‘geocoder’ CB plugin. Joogle then populates a Google map with that information.

    I then installed ‘advanced search’, however it was too complicated for my userbase to use. So I added a couple fields into Community Builder for ‘Search Distance’, ‘Search Sex’ and ‘Online Only’. Since I now have a longitude and latitude number for every user, I quickly found a function online to calculate the distance between two pairs of decimal longitude and latitude number and result in Km. From this point if was fairly simple to run checks on my search results and on my top Avarar scroller based on the current user’s settings.

    This method is better than a Postal Code method for two reasons. One, people often forget postal codes. Two, a postal code area search is very tedious and problematic to program.

    This method is weak because it relies on both Google and Yahoo to work properly.


    This entry was posted on Monday, February 12th, 2007 at 12:49 am and is filed under CMS.
    You can follow any responses to this entry through the RSS 2.0 feed.

    © 2000 - 2008, Steven Stark of StevenStark.com
    This site is built using: | Wordpress | Flex | Wrapper | JSON | APACHE | MySQL | PHP |
    Tech Note: Content is being parsed from XHTML and rendered inside FLEX. Hosting provided by: BlueFur