View Full Version : Some Queries


rthomson
10-03-2004, 01:50 AM
Hi,

I have just used the World Wide Classifieds demo and it looks great.

I have a few of questions though.

1. I used the search routine and found that it is case sensitive.
Would I be able to make it case insensitive?
In other words to make a search for car find results which include Car, CAR, car.

2. Does the date customisation feature also allow you to change time zones.
The server I use is in the USA but most of my users are in Australia.

3. In the user registration form, the address, city and phone fields don't record any information after the first space.
If the address: field has 12 Jones Street, it will only show up as 12 when you check your profile. If the City field has Windsor Heights, only Windsor will be shown in your profile. Has this been fixed?

Regards, Bob.

Jafo
10-03-2004, 11:46 PM
If you want to make it case insensitive, open the database_Flat.pl file and find the sub called Do_Search, and find these lines:

if (($title =~ /$item/) || ($name =~ /$item/) || ($dodes =~ /$item/) || ($file =~ /$item/)) {


Change it to:

if (($title =~ /$item/i) || ($name =~ /$item/i) || ($dodes =~ /$item/i) || ($file =~ /$item/i)) {

The classads does not come with a built in time adjustment.

Your third issue was addressed in another thread that I cannot find, but basically, on the form template in question which is change_reg.htm, just edit the HTML so the form field values are encapsulated in quotes, for example:

<TD WIDTH="512"><INPUT TYPE="text" SIZE="20" name=ADDRESS value=<!--ADDRESS-->></TD>

Change to:

<TD WIDTH="512"><INPUT TYPE="text" SIZE="20" name=ADDRESS value="<!--ADDRESS-->"></TD>