Event Start and End Time

More
13 years 6 months ago #12112 by LMKweb
Replied by LMKweb on topic Re: Event Start and End Time
Hi - I'm also interested in this!

Until it's included in a new release - is there a way to modify the code to achieve the intended result? The events I'm listing will never be more than 1 day, so if possible I'd love to edit the PHP for the event properties table to always show just the single date and start & end time.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #12141 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Event Start and End Time
Can you send me the link to the page you want to change so that I can tell you the file need to be changed ?

Tuan

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #12401 by marcodeluca
Replied by marcodeluca on topic Re: Event Start and End Time
This is the page that needs to be edited: components/com_eventbooking/views/event/tmpl/default.php

I've tried to take the variables used in the calendar to produce the event start and end times, but I havent been able to get it to work. The times that were published when I used this var:
Code:
$timeFormat = $this->config->event_time_format ? $this->config->event_time_format : 'g:i a' ;

and tried to print the event time in the item view with this code:
Code:
<?php echo $val->title.' ('.JHTML::_('date', $val->event_date, $timeFormat, $param).')' ; ?>

didnt work. Should be a really simple thing to do - and very important to for situation as described, events that only span a few hours in one day.

Please Log in or Create an account to join the conversation.

  • MyWorld
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 5 months ago #12440 by MyWorld
Replied by MyWorld on topic Re: Event Start and End Time
I'm not a programmer, so please excuse my ignorance, but why can this not be added asap to the component as so many of us are requesting it?

Thanks!!

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #12445 by marcodeluca
Replied by marcodeluca on topic Re: Event Start and End Time
New features often require more "systems-wide" thinking than users realize, so it's usually not as simple as users think. In this case, it does seem fairly simple to publish the date there... and yah, I was so sure that the ability already existed that I spent about 20 minutes going back and forth through the settings.

I can get one of our developers to figure this out fairly quickly, so if we don't here from anyone here in the next day or two I'll try to post a solution. I always prefer when the developer publishes answers though, makes it easier to deal with future releases.

Please Log in or Create an account to join the conversation.

  • MyWorld
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 5 months ago #12447 by MyWorld
Replied by MyWorld on topic Re: Event Start and End Time
Hi marcodeluca,

Thanks for the reply. Just to clarify, my post was directed to the developer as the request was posted some time ago - but thanks for the clarification :)

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #12453 by marcodeluca
Replied by marcodeluca on topic Re: Event Start and End Time
Oh I understand who you were asking:) I just know from experience that I think something sounds simple... without realizing the 18 other things that had to change in order to make the "simple" change fit in with the rest of the app.

Regardless, I need this feature yesterday... so we'll see a solution on this board soon!

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc