68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Questions & Support
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.1 Questions & Support Help and support for 68 Classifieds v3.1.x

 
Thread Tools Display Modes
  #1  
Old 10-25-2007, 01:56 PM
objelland objelland is offline
Member
 
Join Date: Dec 2006
Posts: 35
Default Extra Fields - Date format

Hi

I have searched this forum for hours, but I still can't find a good solution for adding an extra field as a date field.

What I need to do is to be able to enter a date in the checkout process. This date tells when content of the the listing will be available. It also has to be searchable.

Does anyone know anything about how this can be done?

Thank you!

Regards,

Oyvind
__________________
objelland
V3.1.5b Developer
Reply With Quote
  #2  
Old 10-25-2007, 03:29 PM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,750
Default

I would probably just create an axtra text field and then implement the littl javascript calender that in use in admin for searching for ads. Then the member can select a date from the calendar and the input would always be consistant. You would then of course need to include the calendar on the search page as well and in the ad placement heckout.
__________________
Larry.
Reply With Quote
  #3  
Old 10-25-2007, 03:44 PM
objelland objelland is offline
Member
 
Join Date: Dec 2006
Posts: 35
Default

Hi, and thank you for your feedback.
That is exactly what I was thinking, but there is only one problem. I need the field to be searchable using " search value > extra field" or "search value < extra field" values.
Can this be done by doing it the way you suggest?

Thanks!

Oyvind
__________________
objelland
V3.1.5b Developer
Reply With Quote
  #4  
Old 10-25-2007, 03:49 PM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,750
Default

Quote:
Originally Posted by objelland View Post
Hi, and thank you for your feedback.
That is exactly what I was thinking, but there is only one problem. I need the field to be searchable using " search value > extra field" or "search value < extra field" values.
Can this be done by doing it the way you suggest?

Thanks!

Oyvind
Do you mean you want people to be able to seach by a date greater or less than? anything can be done but how much work it would be is the real question.

I would think you could add a field to the search where the user could select a greater or less than dropdown that could be passed along to the search script and used in the query.
__________________
Larry.
Reply With Quote
  #5  
Old 10-25-2007, 04:00 PM
objelland objelland is offline
Member
 
Join Date: Dec 2006
Posts: 35
Default

Yes, that is what I mean. Sorry for bad explanation.
So you suggest that I use a drop down list for this?
This is a good idea, but will such a search be useful for "dates" in text format?

Regards
Oyvind
__________________
objelland
V3.1.5b Developer
Reply With Quote
  #6  
Old 10-25-2007, 05:39 PM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,750
Default

Quote:
Originally Posted by objelland View Post
Yes, that is what I mean. Sorry for bad explanation.
So you suggest that I use a drop down list for this?
This is a good idea, but will such a search be useful for "dates" in text format?

Regards
Oyvind
Here is where I would star, dont know if it would be an idea choice or not without looking deeper into the code.

Create an extra text field and make it searchable.

On the ad checkout have the little calender widget so people can pick a date and it will automatically populate the extra text field.

On the search page add the calendar widget so people can select a date that auto populates the search firld for the date.

Now, create a hand made (not a defined extra field or anything) dropdown box that has something like "before date" and "after date".

alter the search script to gather the dropdown field you created and adjust the database query accordingly.
__________________
Larry.
Reply With Quote
  #7  
Old 10-25-2007, 05:55 PM
objelland objelland is offline
Member
 
Join Date: Dec 2006
Posts: 35
Default

Thank you very much for your help, I really appreciate it.
I will give this a try, and let you know how it goes!

Oyvind
__________________
objelland
V3.1.5b Developer
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra fields to be searchable on the first search page, before a category is chosen Greg H v3.1 Modifications 2 10-24-2007 08:56 PM
Date field in extra fields - How? eschulze v3.1 Modifications 9 03-18-2007 06:46 PM
Extra fields bug? Sinisa v3.1 Questions & Support 8 01-24-2007 03:20 PM


All times are GMT -4. The time now is 02:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.