Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
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. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
Location Module

 
Post new topic   Reply to topic     Forum Index -> Hacking Thyme
View previous topic :: View next topic  
Author Message
hanskind



Joined: 04 May 2007
Posts: 8

PostPosted: Tue Nov 27, 2007 2:25 pm    Post subject: Location Module Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Tue Nov 27, 2007 2:41 pm    Post subject: Reply with quote

Hi Hans,

The locations module can be found here: http://www.extrosoft.com/option,com_forum/Itemid,47/page,viewtopic/t,537/

It does not have a country field, but I don't see why this could not be easily added.
Back to top
View user's profile Send private message Visit poster's website
hanskind



Joined: 04 May 2007
Posts: 8

PostPosted: Tue Nov 27, 2007 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Tue Nov 27, 2007 3:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
hanskind



Joined: 04 May 2007
Posts: 8

PostPosted: Wed Nov 28, 2007 6:42 am    Post subject: Reply with quote

Hi,

Thanks, this has been a great help.

rgds

Hans Kind
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Hacking Thyme All times are GMT
Page 1 of 1

 
Jump to:  
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
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.