Events - Adding Multiple Dates

AndyF
AndyF
@andyf
9 years ago
92 posts
The Profile Events module doesn't allow more than 1 day at a time to be added to the event. It would be great to be able to add a DATE RANGE. Many of the events that I've posted before in other networks had more than just one day (multiple days in a row).
updated by @andyf: 02/16/15 06:43:48PM
gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
You'll need to enable the recurring events function I believe, see here https://www.jamroom.net/the-jamroom-network/documentation/modules/276/profile-events
AndyF
AndyF
@andyf
9 years ago
92 posts
No. It would be enabling the 'end date' field. BUT THERE IS A PROBLEM WITH IT (unless I'm wrong). After enabling the 'end date' field, it does show up fine while creating the Event but I can never see the end of the event again). End of event doesn't show on calender, doesn't show on event and doesn't show back up at all when I go to edit it again.
brian
@brian
9 years ago
10,148 posts
AndyF:
No. It would be enabling the 'end date' field. BUT THERE IS A PROBLEM WITH IT (unless I'm wrong). After enabling the 'end date' field, it does show up fine while creating the Event but I can never see the end of the event again). End of event doesn't show on calender, doesn't show on event and doesn't show back up at all when I go to edit it again.

This sounds like it might be a bug - I will check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
AndyF
AndyF
@andyf
9 years ago
92 posts
@brian Awesome! Let me know if you can fix it - I would really like to use this module!
brian
@brian
9 years ago
10,148 posts
AndyF:
@brian Awesome! Let me know if you can fix it - I would really like to use this module!

I'm not seeing any issues with it here - I think there might be a misunderstanding on how recurring events work. Right now if you make an event a recurring event, the module actually creates individual events for EACH repeat of the event - i.e. if you set an event to happen every month, with an end date a year from now, you'll get 12 events created. This lets you customize each one individually if you need to.

But that's why you don't see the "end event" any longer, since each event is stand alone.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
AndyF
AndyF
@andyf
9 years ago
92 posts
@brian What I'm wanting to do with my events is to not have just an event that happens on just one day (or recurring every so often). We advertise training classes that are multiple days & I'm wanting to have one event that happens across 2 or 3 days in a row (ie: Jan 6 - Jan 8th). I'm I missing something to make this happen?
gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
Surely your training class aren't 24 hour days, so set recurring to daily and select jan 8th as the end date, and there will be three events created.
updated by @garymoncrieff: 01/06/15 07:47:46AM
brian
@brian
9 years ago
10,148 posts
AndyF:
@brian What I'm wanting to do with my events is to not have just an event that happens on just one day (or recurring every so often). We advertise training classes that are multiple days & I'm wanting to have one event that happens across 2 or 3 days in a row (ie: Jan 6 - Jan 8th). I'm I missing something to make this happen?

Ahh - I see. Not a recurring event, but an event that is longer than 1 day.

This can be done using the Form Designer:

- go into Create Event as the master admin and click on "Form Designer"
- create a new field called "event_end_day" - make sure the "add to update form" is checked
- in the Modify Form field form:

1) enter "Event End Day" as the Title, and whatever you want for the Help.
2) Select "datetime" as the field type
3) in "Display Groups" select Master Admins, Profile Admins and Normal Users
4) check the "Active" field and save

- back on the form list now, press the left most "move up" button until the new Event End Day is right under the Event Date field.

Then press "cancel" and you'll go back to the Create Event form and you'll see a new field for "Event End Day" which you can now enter a value for.


Next, in your ACP -> Profiles -> Profile Events -> Template tab, click on Modify next to "item_detail.tpl" and add the new field in - i.e. find and change this:

{$item.event_date|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}

To something like this:
{$item.event_date|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}<br>
{$item.event_end_day|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}

Just tweak the HTML to suit your needs. You can do the same to the item_list.tpl file to have the end day also be present in the listing (and not just the details).

Hopefully that helps you see how the Form Designer can be used to fully customize your module to suit your needs.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
AndyF
AndyF
@andyf
9 years ago
92 posts
@brian Thanks! Worked fine for me in the item_detail.tpl but couldn't get it to work correctly in the item_list.tpl. Don't know if I'm putting the code in the correct spot.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I'm on Ninja skin and bundle....should I go through the above steps to do this as well?
Seems to me there are tons of events that typically include a date range...festivals, music camps, programs or exhibits....
Why limit Events to one day by default?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,148 posts
Strumelia:
I'm on Ninja skin and bundle....should I go through the above steps to do this as well?
Seems to me there are tons of events that typically include a date range...festivals, music camps, programs or exhibits....
Why limit Events to one day by default?

I think you'll find that unless your site specializes in multi day events, that 99% of your events will be single day (or less), and the users can always add an END DATE to the description.

My recommendation would be to WAIT until you have users asking you for it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
9 years ago
10,148 posts
AndyF:
@brian Thanks! Worked fine for me in the item_detail.tpl but couldn't get it to work correctly in the item_list.tpl. Don't know if I'm putting the code in the correct spot.

paste what you changed between [ code ] tags here - i.e.

[ code ]
your changes
[ /code ]

but don't put spaces before/after code and /code


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
brian:
I think you'll find that unless your site specializes in multi day events, that 99% of your events will be single day (or less), and the users can always add an END DATE to the description.
My recommendation would be to WAIT until you have users asking you for it.
Brian, I'm afraid not. ;) on my 5 yr old 4000 site, I'd say about 90% of all my Events consist of weekend or multi-day mountain dulcimer festivals, music camps, and gatherings all across the US and in other countries. Almost all of those run for more than one day.
I KNOW my members will be asking for this option, bigtime.
Check it out:
Events.jpg
Events.jpg  •  876KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 01/06/15 12:50:07PM
brian
@brian
9 years ago
10,148 posts
Yeah - if you see your list there, the date on the LEFT is the start date, and the start and end dates are show on the right of the image, where the event details are.

This is exactly how Jamroom's would work right now if your users just add the event details into the event details section (which I would assume they would do).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I see. On my JR Events page, I only see the one single start date. But are you saying that's only because these events were imported from the ning archive, and that future events would have start and end dates SHOWING if user puts them in when creating an event?
Guess I need to create a new sample test event to see. :)



--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 01/06/15 12:57:30PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
So again, being on Ninja skin, will I need to follow the steps you outlined for Andy above in order to make multi-day events show their start and end dates? Hope I can put the code in the right location for both templates. =8-o


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,148 posts
Strumelia:
I see. On my JR Events page, I only see the one single start date. But are you saying that's only because these events were imported from the ning archive, and that future events would have start and end dates SHOWING if user puts them in when creating an event?
Guess I need to create a new sample test event to see. :)

No - what I'm saying is that for a multi-day event, I don't think you really need to have the "end date" be a form field. Since when an event is created the "details" of that event are going to be entered - i.e.

"this years festival runs from Friday the 1st through Sunday the 3rd" ...

So there's no specific field for "end date", but since there's details being entered about it anyway I just don't believe it is going to matter. Something that is really important is that the more form elements you have in a form, the more confusing it is for someone to use the form, which is why I recommended waiting until your users actually asked for it before adding.

But it's up you - that's just my 2 cents.

Yes - you would follow the guide I outlined above if you want to do it on your site.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 01/06/15 01:07:59PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Ok thanks I get it now. :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
AndyF
AndyF
@andyf
9 years ago
92 posts
Can't get end date to appear in the list of events (or on calender . . . which would be great). Yes, I could put the date range in the title of the event but it is nice to have the end date show BELOW the start date as well.

I really don't think it's confusing for people with the extra end day box . . . in fact it seems more confusing without it if they know that it is a multiple day event. (Everytime you book a hotel stay, you have a calendar with a start & end date with the results showing afterwards).
brian
@brian
9 years ago
10,148 posts
AndyF:
Can't get end date to appear in the list of events (or on calender . . . which would be great). Yes, I could put the date range in the title of the event but it is nice to have the end date show BELOW the start date as well.

I really don't think it's confusing for people with the extra end day box . . . in fact it seems more confusing without it if they know that it is a multiple day event. (Everytime you book a hotel stay, you have a calendar with a start & end date with the results showing afterwards).

It will appear in the list, but you need to show me what you have tried (like I outlined above)

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
AndyF
AndyF
@andyf
9 years ago
92 posts
Went to Profile Events -> Templates -> item_list.tpl and modified:
jpg
 •  95KB


updated by @andyf: 01/06/15 02:45:35PM
brian
@brian
9 years ago
10,148 posts
That looks correct, and should work - did you activate the template and reset caches?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
AndyF
AndyF
@andyf
9 years ago
92 posts
Thanks - missed the check-box again to activate the template. Shows-up on the profile events now but not the main site events page.

Guessing that I'll have to modify the calendar.tpl, profile_calendar.tpl, site_calendar.tpl or small_calendar.tpl to get the end dates to show up under the main site event listing?
michael
@michael
9 years ago
7,748 posts
AndyF:
...Guessing that I'll have to modify the calendar.tpl, profile_calendar.tpl, site_calendar.tpl or small_calendar.tpl to get the end dates to show up under the main site event listing?....
You got it. Need to locate which one is being used, then update that template. What I like to do is put some identifier in to know.

so put THIS IS CALENDAR into calendar.tpl and activate it, put THIS IS PROFILE CALENDAR into profile_calendar.tpl etc.... then activate them all.

Clear the caches if necessary and you will soon know which is the template you need to fiddle with.

--edit--
Alternatively you can over-ride the template at skin level.

There are instructions for that method here:

"altering a module's template"
https://www.jamroom.net/the-jamroom-network/documentation/development/1051/altering-a-modules-template
updated by @michael: 01/06/15 09:42:46PM
Clay Gordon
Clay Gordon
@claygordon
9 years ago
740 posts
brian:

{snip}

Next, in your ACP -> Profiles -> Profile Events -> Template tab, click on Modify next to "item_detail.tpl" and add the new field in - i.e. find and change this:

{$item.event_date|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}

To something like this:
{$item.event_date|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}<br>
{$item.event_end_day|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}


Brian - my guess is that this needs to be more sophisticated. An if to test if a date has been selected at the very least.
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Brian - my guess is that this needs to be more sophisticated. An if to test if a date has been selected at the very least.

Sure - you can expand on this pretty easily to suit your needs.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
IMHO... if there's a 3 day weekend festival, and a member clicks to see the calendar view...it just kinda is expected that Fri-Sun will be highlighted on the calendar...not just Friday? I'm thinking this shouldn't have to require code tweaking- that 90% of people would want and expect it on a calender events feature. (ok i duck and run for cover now...)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
paul
@paul
9 years ago
4,332 posts
Strumelia:
IMHO... if there's a 3 day weekend festival, and a member clicks to see the calendar view...it just kinda is expected that Fri-Sun will be highlighted on the calendar...not just Friday? I'm thinking this shouldn't have to require code tweaking- that 90% of people would want and expect it on a calender events feature. (ok i duck and run for cover now...)

Everything on this thread is (easily) doable by using the form designer and tweaking templates.
When JR5 was being developed it was our intention to keep modules as simple as possible but allow users to take them wherever they wanted via the Form Designer, templates and the ACP editors. We didn't want any module to be too specific out-of-the-box. What works for some users doesn't necessarily work for others.

What I'll do here is put together a "How To" that shows how to do these things. There is already one about exposing the recurring event features of this module so I'll probably add to that. This will also hopefully introduce new users to the delights of the Form Designer, ACP Editors and Templates :-)


--
Paul Asher - JR Developer and System Import Specialist
brian
@brian
9 years ago
10,148 posts
Looking at this a bit further, there is actually already a number of custom form fields that are created by the events module on INSTALL (to handle the recurring stuff).

Paul - I think we could support this fairly easily by adding the "end date" field(s) into the install.php as well, so Ning users could just "enable" the fields and have it work.

I agree however on the "delights of the Form Designer, ACP Editors and Templates" - to really get the most out of Jamroom you need to understand the form designer and templates. Invest a couple hours NOW learning about them and you will be able to do anything you want with your site.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
brian:
Paul - I think we could support this fairly easily by adding the "end date" field(s) into the install.php as well, so Ning users could just "enable" the fields and have it work.

I agree however on the "delights of the Form Designer, ACP Editors and Templates" - to really get the most out of Jamroom you need to understand the form designer and templates. Invest a couple hours NOW learning about them and you will be able to do anything you want with your site.

I'm all for BOTH points! (and i've spent over 100 hours already reading/learning...and have done over 100 tweaks to my templates, and some initial form-design changes...I'm learning as fast as I can, believe me!) ;)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
paul
@paul
9 years ago
4,332 posts
Quote: Paul - I think we could support this fairly easily by adding the "end date" field(s) into the install.php as well, so Ning users could just "enable" the fields and have it work.
I've put it on my list :-)


--
Paul Asher - JR Developer and System Import Specialist

Tags