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 
starttime AND endtime instead of starttime and duration ?

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



Joined: 06 Oct 2006
Posts: 38
Location: The Hague - Holland - Netherlands

PostPosted: Thu Dec 07, 2006 2:13 pm    Post subject: starttime AND endtime instead of starttime and duration ? Reply with quote

Hello,

Does anyone happen to know how to code in event_edit

starttime AND endtime

instead of

starttime AND duration ?

My clients have a hard time to calculate the duration as to arrive at the right endtime

I tried to replace
Quote:

". $_cal_form->timeselect("starttime") ."



". _DURATION_ .":
". $_cal_form->timeselect("duration") ."

with
Quote:

". $_cal_form->timeselect("starttime") ."



will end at:
". $_cal_form->timeselect("endtime") ."


(it seems the table code disappears in this posting)

but that seems not sufficient

The field endtime is already in the db structure, though

Thanks in advance for the solution

_________________
George Philip
(somehow i misspelled my userid ;-)
http://www.sitegevonden.nl
Back to top
View user's profile Send private message Visit poster's website
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Thu Dec 07, 2006 2:23 pm    Post subject: Reply with quote

Right; since endtime is already in the db structure you can not use it. You can not change the way Thyme repeats or looks at starttime, endtime, and duration. What you would have to do is change the way you enter this. So in event_edit do something like ..

$_cal_form->timeselect('eventendtime')

.. then in include/events.php under _SAVE_ you'll have to subtract what they've entered for eventendtime from starttime and populate $_cal_event->duration appropriately. Does this make sense?
Back to top
View user's profile Send private message Visit poster's website
dutchmarktets



Joined: 06 Oct 2006
Posts: 38
Location: The Hague - Holland - Netherlands

PostPosted: Sat Dec 09, 2006 5:49 am    Post subject: Reply with quote

I have no need to display any duration, just startt-time and end-time.

The problem is that the calendar has already been populated with loads of events, if I want to add a separate field for new-end-time now. The current end-time values are displayed in the calendars.

I need to figure out how I can have the new-start-time inherit the current end-time values.

_________________
George Philip
(somehow i misspelled my userid ;-)
http://www.sitegevonden.nl
Back to top
View user's profile Send private message Visit poster's website
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Sun Dec 10, 2006 12:11 am    Post subject: Reply with quote

Thyme relies on this duration field. If it is incorrect, Thyme may not work correctly.

If you really want to do it your way I'll help I suppose. What format would you like this end-time field in? HH:MM?
Back to top
View user's profile Send private message Visit poster's website
dutchmarktets



Joined: 06 Oct 2006
Posts: 38
Location: The Hague - Holland - Netherlands

PostPosted: Sun Dec 10, 2006 8:30 am    Post subject: Reply with quote

I guess the duration influences the way it would display events in the DAY-view only. As I am not using DAY-view, it would be okay for me not to use the duration.

I get quite some feedbacks from visitors who want to register their events and they are complaining about not being able to state both start-time and end-time. Hence my request.

The format of both start-time and end-time that I am using is HH:MM (24 hour format).

But I am rather stuck right now in how to tackle this challenge.

Thanks for help.

_________________
George Philip
(somehow i misspelled my userid ;-)
http://www.sitegevonden.nl
Back to top
View user's profile Send private message Visit poster's website
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Sun Dec 10, 2006 3:22 pm    Post subject: Reply with quote

Hi,

Which part are you stuck at exactly?
Back to top
View user's profile Send private message Visit poster's website
smeallum



Joined: 17 May 2006
Posts: 177

PostPosted: Wed Dec 20, 2006 6:01 pm    Post subject: Reply with quote

i am interested in this as well.

i am sure it´s going to be very awkward for people in my site having to calculate the duration. Imagine it in the context of concerts....venues...discotheques, etc... they normally know the official closing time, but having to calculate the duration for inserting the event?

ian wrote:

.. then in include/events.php under _SAVE_ you'll have to subtract what they've entered for eventendtime from starttime and populate $_cal_event->duration appropriately. Does this make sense?


could you tell me what i would need to put there?

i also use 24hrs format HH:MM

Thanks a lot,
NiCo
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Sat Dec 23, 2006 4:49 pm    Post subject: Reply with quote

Help me understand what is unclear about the posts above. This change will require writing code to calculate the duration of an event based on what was entered for the event end time. $_cal_event->duration should then be populated in HH:MM:00 format. .. or are you looking for me to write it for you?
Back to top
View user's profile Send private message Visit poster's website
smeallum



Joined: 17 May 2006
Posts: 177

PostPosted: Sat Dec 23, 2006 5:05 pm    Post subject: Reply with quote

Sorry, i had misunderstood, i think i get what needs to be done now

Thanks,
NiCo
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.