CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • multiple dates/times per event
Pages: [1]

Author Topic: multiple dates/times per event  (Read 2220 times)

micnap

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
multiple dates/times per event
July 08, 2007, 11:10:26 am
Is there a way to list multiples dates and times for each event?

Thanks,
Michelle

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: multiple dates/times per event
July 08, 2007, 06:05:19 pm

An event can have only one set of start and end dates. You can potentially add more dates and times in the description field, but that is not a very good solution either (IMO)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

micnap

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: multiple dates/times per event
July 09, 2007, 05:00:02 am
I have a course that meets Tues and Thur for two months.  I can just list the start and end dates of the course and then put the times in the description.  Is there a way to make the times not mandatory when filling out the form?  If I have to dive into the code to do it, will I be messing something else up - is there anything that requires the times be there?

Thanks,
Michelle

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: multiple dates/times per event
July 09, 2007, 09:50:37 am

We assume that the start date and end date are present (since they are required) and the registration page is displayed only between the start and end dates. However I suspect you can make them optional and the code will do fine without it :)

You will have to modify:

CRM/Event/Form/ManageEvent/EventInfo.php


line 138 and line 145 and change the true (5th parameter) in the add function call to false

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

micnap

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: multiple dates/times per event
July 13, 2007, 10:19:08 am
This date thing is becoming a real problem.  If I don't specify a time, it defaults to 12:00am.  Isn't there a way to change the display of the date to not include the time?

Thanks,
Michelle

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: multiple dates/times per event
July 13, 2007, 11:13:38 am

You'll have to hack the code to accomplish the below (for now). Please check the relevant pages/templates you want to change. Our date formatting routines give you fairly good control of what is displayed and how etc

If you need more specific help, IRC is your best option

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

micnap

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: multiple dates/times per event
July 17, 2007, 03:30:32 pm
Thanks Lobo.  I'll hop onto IRC later this week.

Thanks,
Michelle

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • multiple dates/times per event

This forum was archived on 2017-11-26.