Posted: 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. |
|
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. |
|
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. |
|
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? |
|
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. |
|
Yes, the calendar uses FullCalendar.
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.
Are they using Event Espresso or another calendar? Likely another calendar.
No, the weekly views show single weeks of the calendar, the monthly view loads the full month.
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? |
|
Are they using Event Espresso or another calendar? Likely another calendar. 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. |
|
Trying to do this: http://jsbin.com/siqituyawe/edit?js,output Below events and currentdate are edit out. $(function() { // document ready $(‘#calendar’).fullCalendar({ defaultView: ‘basicFourWeek’, ] }); |
|
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’.
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).
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. |
|
Which site did you try when you cleared your cache? |
|
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? |
|
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. |
|
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. |
|
Why are the modifications lost if you do them within the folder? Where else are you supposed to add code to them? |
|
I’m not sure what that is trying to show me?
Can you post a link to the calendar you are viewing. |
|
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. |
|
Here is the site I am testing: https://www.mmloganvillemobile.com/class-schedule/ |
|
Because WordPress overwrites the files when the plugin is updated.
We recommend a site specific plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
I understand they are lost with updates, but we are just trying to test the changes. |
|
My code isn’t loading on that page, try adding the code to a Custom Functions Plugin rather than your themes functions.php file. |
|
So if I update those files, I should see something. |
|
Contingent on you activating the plugin. |
|
ok, i added it as a plugin, and added that code. Not working |
|
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 |
|
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. |
|
Sorry, i fixed the error |
|
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. |
|
Are you able to see this example? http://jsbin.com/bimurucopa/edit?js,output |
|
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. |
|
Is there a reason for being so far behind on versions? |
|
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. |
|
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. |
|
Any other ideas on getting this to work on this version without me spending $400? |
|
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. |
|
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/ |
|
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: |
|
I have no clue how to do that. |
|
FullCalendar is on 3.7 now. |
|
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. |
|
I know, you mentioned 2.x..was just letting you know it was on 3.x now…thats all. |
|
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. |
|
Gotcha. |
|
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.