Home › Forums › Calendar Products › Events Calendar PRO › Make mini calendar widget dates clickable
- This topic has 17 replies, 5 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
July 2, 2012 at 3:38 pm #21410TonyParticipant
In an attempt to make the mini calendar’s dates clickable, I copied the following code from the main calendar (line 100 of table.php) to the mini-calendar widget (line 124 of table-mini.php) : http://pastebin.com/SxxX2ckA
The dates on the widget calendar are now clickable, but they all lead to ‘Jan 1, 1970’ i.e. ‘mysite.com/events/1970-01-01’.
What else do I need to insert into table-mini.php in order to get the correct dates?
Thanks.
July 2, 2012 at 5:07 pm #21426JonahParticipantJuly 3, 2012 at 4:54 am #21455TonyParticipantJonah, that’s perfect! Thanks!
July 3, 2012 at 7:13 am #21457TonyParticipantActually, I just noticed it is linking to the correct date and year but the month is ahead so July 6, 2012 when clicked leads to August 6, 2012…
July 3, 2012 at 11:24 am #21467JonahParticipantHi Tony,
I’m not sure why that would be, it works fine for me. Could be a conflict with another plugin or your theme or the code itself. Since this is a customization issue you’ll need to figure it out on your own. Good luck!
– Jonah
– Jonah
July 3, 2012 at 3:32 pm #21475TonyParticipantHi Jonah,
I deleted all recurring events and the calendar worked fine. I then put one recurring event back (one that occurs weekly every Monday). It worked fine for July, August, October and November, but for some weird reason September again went to October. http://bit.ly/NZKsmU
I’m stumped…. Any ideas?
July 3, 2012 at 11:35 pm #21484Joyce GraceMemberHi Tony, this is just my two cents, I’m not sure what it could be, but did you set up your time zone and display date in the WordPress General Settings? That might help.
Did you also rule out that it could be other plugins conflicting? Did you try deactivating all of them and reactivating one by one to see if any certain one changes it?
July 4, 2012 at 3:07 am #21497TonyParticipantHi Joyce, yes I have set date in General Settings and tried removing all plugins.
I’ve discovered that the issue only happens if a recurring event falls on 1st of the next month.
So for example, if you have a daily event that starts on August 31 and ends on September 1, the mini calendar will return the whole of August as September.
It must be something to do with one of the calls in the PHP confusing the month end/start. Unfortunately I’m not a PHP coder so struggling to figure it out.
July 5, 2012 at 12:31 am #21521Joyce GraceMemberHi Tony, I am going to ask about this, it makes sense, sort of, but on the other hand, I wonder if there is a way to fix it.
July 5, 2012 at 2:59 pm #21579TonyParticipantHi Joyce, great please do! My site has hundreds of events so really needs this. Thanks.
July 6, 2012 at 7:54 am #21632JonahParticipantHi Tony,
It seems to still work fine for me… I added a recurring event on the last day of the month that spans to the first day of the next month. That’s the setup correct?
– Jonah
July 7, 2012 at 8:36 am #21674TonyParticipantHi Jonah,
That’s strange. I created a fresh install of WordPress with ECP/EC to see if it might be my plugins, my theme or edits, but the problem still happens: http://bit.ly/MQU1ZGHave I maybe copied the code wrong? I just replace line 127 of calendar-mini.php with your custom code right?
July 8, 2012 at 8:38 am #21703JonahParticipantHi Tony,
You mean table-mini.php right? Yep, line 127 in that file as long as you didn’t have previous changes because then the line number would be different. Reference the core file in /wp-content/plugins/the-events-calendar/views/table-mini.php to find the right line number.
– Jonah
July 8, 2012 at 8:42 am #21704TonyParticipantHi Jonah,
Yes, I mean ‘table-mini.php’. It was a fresh install on a fresh install of WP so no changes made to anything at all.
What might the problem be?
July 8, 2012 at 8:56 am #21709JonahParticipantHi Tony,
Well I don’t know what the problem could be and unfortunately we don’t have the bandwidth to be able to help with figuring out customization issues like this. If you need this feature you’ll need to either figure it out on your own or hire someone to help you. Good luck!
– Jonah
-
AuthorPosts
- The topic ‘Make mini calendar widget dates clickable’ is closed to new replies.