Time picker list options when creating event

  • Livius Chebeleu
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 11 months ago #133700 by Livius Chebeleu
Time picker list options when creating event was created by Livius Chebeleu
Hi,

Where can I change the time and minute list options when editing an event in Event Manager. I only need certain hours and minutes to pick from and want to make the lists shorter. Is this possible to do?

Thanks/Livius

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

More
5 years 11 months ago #133706 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Time picker list options when creating event
Hi Livius

It's not possible to change it without editing the code. If you know PHP/Joomla programming and want to make the change, you can look at the file components/com_eventbooking/view/event.php , and change the code from line 158 to 173 to have it works as you want

Tuan

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

  • Livius Chebeleu
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 11 months ago #133725 by Livius Chebeleu
Replied by Livius Chebeleu on topic Time picker list options when creating event
While, I don't know PHP/Joomla coding, I am familiar with general coding syntax. Looks like 'select.integerlist', 0, 55, 5, should be changed to 'select.integerlist', 0, 45, 15, to generate a list of 15min increments. Correct?

Where do I copy the event.php file in the template as an override?

Thanks for your help.

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

More
5 years 11 months ago #133741 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Time picker list options when creating event
Hello

It's not just copy file, you need some programming skill to be able to implement the change as an override, see eventbookingdoc.joomservices.com/develop...thod-in-a-view-class

For now, please get this file, unzip, upload to administrator/components/com_eventbooking/view/override/event folder on your site, it should work as expected

Tuan
The following user(s) said Thank You: Livius Chebeleu

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

  • Livius Chebeleu
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 11 months ago - 5 years 11 months ago #133786 by Livius Chebeleu
Replied by Livius Chebeleu on topic Time picker list options when creating event
Wonderful. Works like a charm. I added Cut off and Reg end dates to it. I only have low level hacking skills...:)

Thanks!
Last edit: 5 years 11 months ago by Livius Chebeleu.

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

More
5 years 11 months ago #133788 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Time picker list options when creating event
It's not a hack :D, it's customization and the best thing is it could be implemented using override, so it won't be lost when you update to future releases of the extension

This is one of the best thing about my extension :)

Tuan

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

  • Livius Chebeleu
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 11 months ago #133789 by Livius Chebeleu
Replied by Livius Chebeleu on topic Time picker list options when creating event
Ha! Your extension is awesome. I was just referring to my skills as copy/pasting code...those are my hacks. :D

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

More
5 years 11 months ago #133790 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Time picker list options when creating event
No problem :)

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

Moderators: Tuan Pham Ngoc