e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
321 stars 213 forks source link

Event Calendar Plugin #132

Closed STR82U closed 11 years ago

STR82U commented 11 years ago

Text links for months and next/previous are one month off. Clicking on a year previous or ahead shows the previous month in that year. Clicking on the previous month goes back two months. Clicking on the next month is the page you're on.

e107steved commented 11 years ago

Seems to work OK for me on a quick check of a freshly configured installation. Can you give any more information on how to recreate the problem? [Code is pretty much that running on 1.x, so should be OK]

STR82U commented 11 years ago

Nothing more to tell you. I installed the plugin on two sites and both have the same issues, all files were new before that post. I'm assuming the plugin installs and uses it's own dbase tables.

STR82U commented 11 years ago

Fresh install is fine as bootstrap theme, once you change the theme from bootstrap it starts causing the problem I described above and going back to the Bootstrap theme won't correct the problem.

STR82U commented 11 years ago

ALSO: Clicking the dates on the menu itself links to the previous day, not the date clicked.

STR82U commented 11 years ago

ALSO: Can't uninstall the thing

Fatal error: Call to undefined function removepath() in /home/mysite/public_html/e107_handlers/plugin_class.php on line 450

If you don't delete the icons during uninstall it will go through.

STR82U commented 11 years ago

Got it:

/e107_plugins/calendar_menu/calendar.php links are fine, it's these: /e107_plugins/calendar_menu/event.php that are off by days and months

ALSO, the "Month/Year" link on the top of the calendar_menu is broken.

STR82U commented 11 years ago

@e107steved if you go to /e107_plugins/calendar_menu/event.php - the current month is March, click the link "April", does yours go to April? mine don't, they appear to stay put (actual link is event.php?1364774400).

That didn't do it for the date difference but I've looked at them more. Admin section shows the server times are correct on two servers.

To start, looking at the calendar dates, they are off one numeric day, today being Monday it shows the number "5". Clicking the "5" link goes to the proper page for Monday the 4th.

Once inside this version of the calendar the months and year links are off.

After double checking the events scheduled, those show the correct event information and the corresponding month is listed.

e107steved commented 11 years ago

I've tried these various suggestions, and all works as I would expect. I am testing on localhost, Windows, UTC+0, so it could be a timezone problem, possibly. I'll see if I can set up a separate server that I can mess around with (will take a little while) - or do you happen to have a site I can play around with? (Would probably need FTP access as well as e107).

STR82U commented 11 years ago

I'll PM you with the details you'll need.

e107steved commented 11 years ago

Got them thanks - it's a lot easier to fix when you can see the problem! Looks better to me now.

STR82U commented 11 years ago

The only problem I see left is that the current calendar in the menu is off by a day. March 1st 2013 was a Friday. If you're still in there working, disregard this.

STR82U commented 11 years ago

Friday the 1st thanks you.