jkeiser
Forum Replies Created
-
It’s still likely a copy/paste replace will work, but you’ll have to check and see if it does. If it doesn’t work, change it back ??
I’ve only been using this for 2 days, and I only have 2 events. But this is the only issue I’ve had so far. Not a glowing endorsement, but it does at least seem to be doing things. ??
You should be able to copy/paste as long as you have the same version of The Events Calendar that I do (1.6.5). If I were you I would keep a copy of the old file in Notepad or something just in case you mess up the copy/paste.
I came up with a better fix this morning, just the one line. Change this:
$link .= '&eventDisplay=month&eventDate=';
To this:
$link = add_query_arg( array( 'eventDisplay' => 'month' ), $link ) . '&eventDate=';
Don’t make any other changes to the file.
Oops, left out a second change. I added the second change to the post. Hope it helps.
I ran into this as well. After setting Use Pretty URLs to No, I ran into Pixelologist’s latest issue. I fixed it by editing datepicker.php, which you can do in WordPress by going to admin -> Plugins -> Editor, selecting The Events Calendar in the dropdown on top, then selecting the file “the-events-calendar/views/datepicker.php”. I changed this:
$link .= '&eventDisplay=month&eventDate=';
To this:
$link = add_query_arg( array( 'eventDisplay' => 'month', 'eventDate' => '' ), $link );
Then I changed this:
location.href = '<?php echo $link; ?>' + jQuery('#<?php echo $prefix; ?>events-year').val() + '-' + jQuery('#<?php echo $prefix; ?>events-month').val();
To this:
location.href = '<?php echo $link; ?>=' + jQuery('#<?php echo $prefix; ?>events-year').val() + '-' + jQuery('#<?php echo $prefix; ?>events-month').val();
(i.e. I added an “=” after where it printed the $link)
Please let me know if there are any other spots where you see issues, and I’ll try to fix them. It seems like it’s working now.