www.uburst.com www.uburst.com

"Search by City, State & Zip"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Modify uDirectory Scripts
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Search by City, State & Zip"
Posted by Denny on Jun-17-02 at 12:18 PM (EST)
Is it possible for the Business version to allow a user to search by city, state or ZIP? I see more search capabilities in the Duluxe version but we only need a simple address search.

I am trying to have a "Locate a Store near you" page.
We want the visitor to be able to find a store near them and be able to search by those three things. They wouldn't know the store name or contact information.
So we really don't need all the extras of the Deluxe version.

Is it also possible to have the pages be states or have categories be states instead?

We have all the listings, so it we really don't need to have the stores add or edit their listings. I have installed the free version and am looking at which version to buy to get the job done for this small company.

Thanks,
Denny Butts
dbutts@studiosix30.com

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Search by City, State & Zip, Bill Weiner, Jun-18-02, (1)
Search by City, State, Zip, Marie, Jul-16-03, (2)
RE: Search by City, State, Zip, Bill Weiner, Jul-25-03, (3)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Search by City, State & Zip"
Posted by Bill Weiner on Jun-18-02 at 05:17 AM (EST)
In regard to searching by city, state or zip code in the Business version... currently, there are two search options in the Business Edition of uDirectory:

1) A search by "business name".... which will perform the search based on the "business name" field.

and

2) A search by "keyword".... which will perform the search based on the "description" field.

If you want to search by something like "City", for example, that would require modifying the script.

Here are some instructions to change the "Keyword" search to a "City" search:

STEP 1: Make a backup of your current "udirectory_business.pl" script... just in case.

STEP 2: Open your "udirectory_business.pl" script with any text editor such as WordPad.

STEP 3: Do a search on the text "By Keyword" and replace the text with "By City".

NOTE: There will be TWO instances of "By Keyword" to change.

STEP 4: Do a search on the following line:

if ($line =~ " < description > ")

And change it to:

if ($line =~ " < city > ")

NOTE: In the above lines, this forum will probably display the less-than ( < ) and greater-than ( > ) signs with a space on each side of the symbol. When doing your search and replace, do NOT put spaces around those less-than and greater-than signs.

STEP 5: Save the script... as TEXT if your editor asks... and try it out!


In regard to the second part of your question, having the categories correspond to "States"... yes, you can do that. Just be sure that when adding your categories, give them each a name corresponding to a state.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Search by City, State, Zip"
Posted by Marie on Jul-16-03 at 02:34 PM (EST)
Following up on the question Denny asked. We don't need the ability to search by business but rather by city, state or zip also but we DO want to keep the ability to search by Keyword. All we would need to change is the "Keyword Business" to State is this correct?

Thanks - Marie

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: Search by City, State, Zip"
Posted by Bill Weiner on Jul-25-03 at 06:36 AM (EST)
In regard to changing the search "By Business" in the Business Edition of uDirectory to seach "By State", here are some instructions on how to modify the script:

STEP 1: Make a backup of your current "udirectory_business.pl" script... just in case.

STEP 2: Open your "udirectory_business.pl" script with any text editor such as WordPad.

STEP 3: Do a search on the text "By Business" and replace the text with "By State".

NOTE: There will be TWO instances of "By Business" to change.

STEP 4: Do a search on the following line:

if ($keyword_search == 1)

About 12 lines down from there you will see the following line:

if ($line =~ " < business > ")

STEP 5: Change the line:

if ($line =~ " < business > ")

to

if ($line =~ " < state > ")

STEP 6: Save the script... as TEXT if your editor asks... and try it out!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.