Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Event time start - end

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 8 months ago - 11 years 8 months ago #220288 by mjplowcha
[SOLVED] Event time start - end was created by mjplowcha
I am trying to format the Event time start and stop settings for new Groupjive event creation and am having some difficulty figuring out which variable I need to change.

Looking at the jquery-timepicker.js file, the JS stuff is just a bit beyond what I have learned. My best guess would be to change:
// Plugin defaults.
$.fn.timePicker.defaults = {
step:15,
startTime: new Date(0, 0, 0, 08, 0, 0),
endTime: new Date(0, 0, 0, 18, 30, 0),
separator: ':',
show24Hours: false
};

I was assuming my times would be displayed starting at 08:00AM - 6:30PM in 15 minute increments, however this didn't seem to change anything on my site. I even cleared the browser cache. Can you please let me know what steps I may have missed?

Also suggested for future updates, please add these settings into the plugin back-end.

Thanks!
Last edit: 11 years 8 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48456
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago - 11 years 8 months ago #220315 by krileon
Replied by krileon on topic Event time start - end
GJ Events has no end date or time. The jQuery is prepared in the getCalendar function, you do not alter the jQuery it self; you just call it with whatever parameters you'd need. We do not support core edits though so I can not help you with this, sorry. The usage documentation for the timepicker is as follows.

labs.perifer.se/timedatepicker/

There is no functionality to save the end time so even if you display it it won't do anything.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 8 months ago by krileon.

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

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 8 months ago - 11 years 8 months ago #220452 by mjplowcha
Replied by mjplowcha on topic Event time start - end
Thank you. I will check into it. Technically it's not a core edit as much as it would be a CB Plugin edit, but I understand as it isn't a standard feature currently.

I'm not sure it's a requirement for a lot of people, but it would be nice if you could consider adding in at least the time step configuration into the groupjive back-end management section at some point. This way site admins could easily adjust settings for all groups. In my situation I am also looking to set the user event start and end range as I have no need for groups to create midnight events, but I should be able to figure it out from the link.

Edit: already figured it out. Thanks! :cheer:

To limit the range of time listed for the create event selection:
components/com_comprofiler/plugin/user/plug_cbgroupjive/plugin/cbgroupjiveevents/js/jquery-timepicker.min.js

Changing the values in Bold will limit your time range -
fn.timePicker.defaults={step:15,startTime:new Date(0,0,0,8,0,0),endTime:new Date(0,0,0,18,30,0)

Times to be selected are now only 8:00am - 6:30pm in 15 minute increments.
Last edit: 11 years 8 months ago by mjplowcha.

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

Moderators: beatnantkrileon
Powered by Kunena Forum