Support

Home Forums Event Espresso Premium EE4 Calendar script

EE4 Calendar script

Posted: November 15, 2017 at 7:51 am

Viewing 41 reply threads


Elizabeth

November 15, 2017 at 7:51 am

Do you guys use FullCalendar for the calendar? Trying to find a developer and want to let them know what is used.


Elizabeth

November 15, 2017 at 8:11 am

It sucks to have to pay a developer for a feature to begin with the current week. I would think that would be an easy feature to add. If it’s the 28th of the month, it sucks to have to scroll down to get to that date. We get many complaints all the time and our competitors all have that feature.


Elizabeth

November 15, 2017 at 8:12 am

If I knew what to change, I can do it. You guys rename a lot of stuff, so it’s hard to follow the FullCalendar script.

I just need to know where to change it.


Elizabeth

November 15, 2017 at 8:55 am

If you add cal_view=basicWeek to the short code, it starts with the current week, but just that week. Is there not a way to just show the rest of the month after that?


Elizabeth

November 15, 2017 at 9:37 am

I have someone editing the espresso_calendar.js and fullcalendar.min.js files and they are not doing anything. Changes have no effect on the calendar.


Tony

  • Support Staff

November 15, 2017 at 9:52 am

Do you guys use FullCalendar for the calendar?

Yes, the calendar uses FullCalendar.

It sucks to have to pay a developer for a feature to begin with the current week. I would think that would be an easy feature to add.

The calendar wasn’t designed to load on that page, whilst you may consider that an essential feature, it wasn’t included in the calendar so obviously you would need a developer to add that for you. Regardless of how ‘easy’ a feature may or may not be to add we can’t cover every feature for every use case, if you need something not included within the calendar you need custom development.

If it’s the 28th of the month, it sucks to have to scroll down to get to that date. We get many complaints all the time and our competitors all have that feature.

Are they using Event Espresso or another calendar? Likely another calendar.

If you add cal_view=basicWeek to the short code, it starts with the current week, but just that week. Is there not a way to just show the rest of the month after that?

No, the weekly views show single weeks of the calendar, the monthly view loads the full month.

I have someone editing the espresso_calendar.js and fullcalendar.min.js files and they are not doing anything. Changes have no effect on the calendar.

Without knowing what they have actually changed we can’t really say why that is happening, have you cleared your browser cache?

Also are you editing the files directly within the add-on?


Elizabeth

November 15, 2017 at 10:00 am

Are they using Event Espresso or another calendar? Likely another calendar.
A: They use another calendar but seems to be a standard feature with other calendars.

Just to see what effect the Scripts folder has, I removed the Scripts folder and the calendar still loads. Not sure why editing espresso_calendar.js doesn’t do anything.

What do you mean within the add-on? They are editing from the folder within Cpanel.


Elizabeth

November 15, 2017 at 10:11 am

Trying to do this: http://jsbin.com/siqituyawe/edit?js,output

Below events and currentdate are edit out.

$(function() { // document ready

$(‘#calendar’).fullCalendar({
header: {
left: ‘prev,next today’,
center: ‘title’,
right: ‘month,agendaWeek,agendaDay’
},
views: {
‘basicFourWeek’: {
type: ‘basic’,
duration: { weeks: 4 }
}
},

defaultView: ‘basicFourWeek’,
editable: true,
eventLimit: true, // allow “more” link when too many events
events: [

]
});

});


Tony

  • Support Staff

November 15, 2017 at 11:05 am

A: They use another calendar but seems to be a standard feature with other calendars.

That may be so, but do those calendars also do all of the other features Event Espresso does? Every plugin has features that another does not, it is always a trade off and if specific features are critical for you that aren’t available with our plugin you need custom development to add those.

I’ll happily log a feature request for this feature but it hasn’t been requested previously so isn’t a high demand feature and is unlikely to be added to the calendar ‘soon’.

Just to see what effect the Scripts folder has, I removed the Scripts folder and the calendar still loads. Not sure why editing espresso_calendar.js doesn’t do anything.

Most likely your browser has cached versions of those JS files, removing the scrips will prevent the calendar from loading (I’ve just confirmed this locally after clearing the browser cache).

What do you mean within the add-on? They are editing from the folder within Cpanel.

If they are editing the files you mentioned above directly, as in they are editing espresso_calendar.js or fullcalendar.min.js within the calendars directory then you can’t update the plugin as those modifications will be lost.

Is the only feature your adding is to scroll to today’s calendar element? If so the above is not the correct method to use imo, why not just use some JS to scroll to the .fc-today element when the page loads?

You can do that without modifying any core files at all using a little snippet like this:

https://gist.github.com/Pebblo/a9494e75cccfadba4304f30410a811c7

Note the above is not supported and should be considered untested, you’ll want to run through full testing to see if that works for you.


Elizabeth

November 15, 2017 at 11:20 am

Which site did you try when you cleared your cache?


Elizabeth

November 15, 2017 at 11:22 am

Yes, I just want it to where when you go to the calendar page, the first row is the current week, and then shows the rest of the month.

Is there a way to show the rest of the month as well as the next month?


Tony

  • Support Staff

November 15, 2017 at 11:23 am

A local test site, not one of yours.

As in I loaded the calendar page on my test site and it worked, then removed the /scripts/ directory from the calendar add-on and refresh the page, it continued to work, finally, I cleared the cache for that site and refresh… no more calendar.


Elizabeth

November 15, 2017 at 11:26 am

1: The Today button doesn’t seem to load the current week. Yet on the following example, it works: http://jsbin.com/qewunaliko/1/edit?js,output

2: I added the script you said to try into my function.php and it does not do anything.


Elizabeth

November 15, 2017 at 11:29 am

Why are the modifications lost if you do them within the folder? Where else are you supposed to add code to them?


Tony

  • Support Staff

November 15, 2017 at 11:31 am

1: The Today button doesn’t seem to load the current week. Yet on the following example, it works: http://jsbin.com/qewunaliko/1/edit?js,output

I’m not sure what that is trying to show me?

2: I added the script you said to try into my function.php and it does not do anything.

Can you post a link to the calendar you are viewing.


Elizabeth

November 15, 2017 at 11:35 am

This link: http://jsbin.com/qewunaliko/1/edit?js,output

1: Click Today on the right. You may have to click OUTPUT in the grey bar. It makes the calendar where this week and on shows.

2: On the left, remove defaultDate: ‘2014-11-12’, and you will see the calendar also begins with the current week.


Elizabeth

November 15, 2017 at 11:35 am

Here is the site I am testing: https://www.mmloganvillemobile.com/class-schedule/


Josh

  • Support Staff

November 15, 2017 at 11:41 am

Why are the modifications lost if you do them within the folder?

Because WordPress overwrites the files when the plugin is updated.

Where else are you supposed to add code to them?

We recommend a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Elizabeth

November 15, 2017 at 11:42 am

I understand they are lost with updates, but we are just trying to test the changes.


Tony

  • Support Staff

November 15, 2017 at 11:43 am

My code isn’t loading on that page, try adding the code to a Custom Functions Plugin rather than your themes functions.php file.


Elizabeth

November 15, 2017 at 11:44 am

So if I update those files, I should see something.


Josh

  • Support Staff

November 15, 2017 at 11:47 am

Contingent on you activating the plugin.


Elizabeth

November 15, 2017 at 11:49 am

ok, i added it as a plugin, and added that code. Not working


Elizabeth

November 15, 2017 at 11:51 am

After i activate: Parse error: syntax error, unexpected ‘<‘ in /home/mmlogmobile/public_html/wp-content/plugins/ee4-calendar-custom/ee-calendar-custom.php on line 7


Tony

  • Support Staff

November 15, 2017 at 11:52 am

Again, my code is not loading on that site.

Combine that with the fact that you removed the /scripts/ directory and nothing happened, are you 100% sure you are editing the correct files for that site?

Either that or there is some form of caching enabled which is being output rather than dynamically.


Elizabeth

November 15, 2017 at 11:52 am

Sorry, i fixed the error


Elizabeth

November 15, 2017 at 11:53 am

ok, the script works, but it still shows the previous weeks.

I really need it like this: http://jsbin.com/bimurucopa/edit?js,output

Sorry for being a pain.


Elizabeth

November 15, 2017 at 11:58 am

Are you able to see this example? http://jsbin.com/bimurucopa/edit?js,output


Josh

  • Support Staff

November 15, 2017 at 12:39 pm

Yes. Are you aware that your example is using the Custom Views feature that’s only available with FullCalendar 2.25+? The reason I ask is because the Event Espresso calendar add-on uses FullCalendar 1.6.4 so it’s not ready for using custom views like in your example.


Elizabeth

November 15, 2017 at 12:41 pm

Is there a reason for being so far behind on versions?


Elizabeth

November 15, 2017 at 12:43 pm

I always assumed we were using updated plugins when updates come out.

Now I have to pay $400 to get this option done per a quote I received. 🙁

Unless you have an easier way to get that done.


Josh

  • Support Staff

November 15, 2017 at 12:46 pm

Is there a reason for being so far behind on versions?

version 1.6.4 is a stable version of FullCalendar and the EE calendar plugin was built on top of 1.x. Version 2.x of FullCalendar is not compatible with the EE calendar plugin.


Elizabeth

November 15, 2017 at 1:03 pm

Any other ideas on getting this to work on this version without me spending $400?


Josh

  • Support Staff

November 15, 2017 at 1:13 pm

Tony gave you an idea, and you can take that idea a step further and set show_expired to false which will make it so the calendar doesn’t display past events.


Elizabeth

November 15, 2017 at 1:16 pm

I tried that, but then the next button does not show.

It also still shows the week above it: https://www.mmloganvillemobile.com/class-schedule/


Josh

  • Support Staff

November 15, 2017 at 1:22 pm

Another option would be to do a fork and refactor the calendar add-on to be compatible with Fullcalendar 2.4. If the fork is coded well to standards and is something that EE can support the fork could be merged into calendar add-on’s master branch. This is all possible because the calendar add-on is on Github:

https://github.com/eventespresso/ee4-events-calendar


Elizabeth

November 15, 2017 at 1:33 pm

I have no clue how to do that.


Elizabeth

November 15, 2017 at 1:42 pm

FullCalendar is on 3.7 now.


Josh

  • Support Staff

November 15, 2017 at 2:24 pm

Hi Dorian,

I mentioned this before but it bears repeating: Event Espresso 4’s calendar add-on is only compatible with FullCalendar 1.6.x. It is not compatible with FullCalendar 2 or 3.


Elizabeth

November 15, 2017 at 2:51 pm

I know, you mentioned 2.x..was just letting you know it was on 3.x now…thats all.


Josh

  • Support Staff

November 15, 2017 at 2:58 pm

I’m aware of those versions. The reason I mentioned version 2.4 is because that’s the version that was used in your example demo page on jsbin.


Elizabeth

November 15, 2017 at 3:01 pm

Gotcha.

Viewing 41 reply threads

The support post ‘EE4 Calendar script’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso