|
Quotes |
" ... I want to tell you that your thyme product is functional and valuable beyond
words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."
" ... Thanks for such a complete project, its making my job much easier. ..."
" ... I have now deployed 4 different calendars and our users love them ... "
" ... Easy to install and use and a great look/design. ..."
" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."
|
|
| View previous topic :: View next topic |
| Author |
Message |
hanskind
Joined: 04 May 2007 Posts: 8
|
Posted: Tue Nov 27, 2007 2:25 pm Post subject: Location Module |
|
|
Hi,
I'm looking for the location module, but can't find the download location.
Also, does the location module support a country field, next to state and zip code?
If not is there a "hack"or is it easy to add a country field.
rgds
Hans Kind |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
|
| Back to top |
|
 |
hanskind
Joined: 04 May 2007 Posts: 8
|
Posted: Tue Nov 27, 2007 3:27 pm Post subject: |
|
|
ths, got it.
Is there a "hack" for the locations module, that does include a country field, and does have a longer field max for the zip field?
Trying to get this module working for a International oriented web site. Need the country field, and more flexibility on the zip field. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Tue Nov 27, 2007 3:39 pm Post subject: |
|
|
Hi,
You can edit modules/locations/location_fields.php
You can add a country field to the thyme_Locations table and add a field for it in that file. The file uses Thyme's $_cal_form and $_cal_tmpl objects. Adding fields using these is described here:
http://www.extrosoft.com/Documentation/Customization/Adding_a_custom_field_%28by_example%29/
So to add a text box for the country, you can do something like:
*) Add a field named "country" to the thyme_Locations table.
*) Edit that file and add this line:
| Code: |
| $_cal_tmpl->section_row("Country",$_cal_form->textbox('country', 50)); |
Let me know if you have any questions / trouble at all. |
|
| Back to top |
|
 |
hanskind
Joined: 04 May 2007 Posts: 8
|
Posted: Wed Nov 28, 2007 6:42 am Post subject: |
|
|
Hi,
Thanks, this has been a great help.
rgds
Hans Kind |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|