• In calendar grid view, some are experiencing a failure of the date picker. Please give links and descriptions if this is you.

    This might cause only the current month to be viewed. Switching to other months will do nothing.

    Justin

Viewing 13 replies - 16 through 28 (of 28 total)
  • by the way – what version of the plugin and wordpress are you using?

    Plugin Version 1.5.6
    Wordpress 3.0 beta nightly builds.

    I installed the plugin on another test install with a different theme.
    It works except for item 3 from the list in my previous post.
    This theme has left and right sidebars and it eliminates both I think.
    It does so in calendar and list modes

    https://gasolicious.com/flashgas/2010/05/23/veterans-park-field-trip/

    I made an events folder and copied the 4 files as suggested in the text file in the download. single.php, list.php, gridview.php and events-list-load-widget-display.php.

    I tried adding <?php get_sidebar(); ?> to those files as suggested in other posts, although I am not sure I did it in the right place. I got no errors but it did not fix anything.
    The theme is “Green Apples” and can be found in WordPress.

    Thread Starter justinendler

    (@justinendler)

    @mgason

    It seems there are multiple issues going on here. In your second example link I noticed that the sidebar div is nested in the #tec-content div, which I imagine would mess with the layout. You mentioned that you’re calling get_sidebar() manually. Try calling that outside of #tec-content, somewhere on the same level as the call for get_footer() or get_header().

    For the original datepicker issue, when I use your datepicker on the calendar view, gridview.php, the dates switch correctly.

    Justin

    Hi all,

    This issue was bugging me a lot. I think I had some loop issues somehow competing with the datepicker, causing it to not work at all. The dropdowns worked fine, but when they were selected, nothing happened. There were javascript errors.

    For my purposes, I didn’t really need the ajax form so I created a simple javascript function to process the form and bypass the old datepicker form. Simple stuff, but maybe it will help someone having the same issue I was with the datepicker not working. Simply replace the code in datepicker.php with the following:

    <?php
    $cat_id = get_query_var( 'cat' );
    if( !$cat_id ) {
    	$cat_id = $spEvents->eventCategory();
    }
    $link = get_category_link( $cat_id );
    if( '' == get_option('permalink_structure') || 'off' == eventsGetOptionValue('useRewriteRules','on') ) {
    	$link .= '&eventDisplay=month&eventDate=';
    }
    ?>
    <script type="text/javascript" charset="utf-8">
    function combineFields() {
    document.datePickForm.eventDate.value = document.datePickForm.EventJumpToYear.value+"-"+document.datePickForm.EventJumpToMonth.value;
    return true;
    }
    </script>
    <form method="post" action="#" name="datePickForm" onSubmit="combineFields();">
    <select id='events-month' name='EventJumpToMonth' class='events-dropdown'>
    	<?php echo $monthOptions; ?>
    </select>
    <select id='events-year' name='EventJumpToYear' class='events-dropdown'>
    	<?php echo $yearOptions; ?>
    </select>
    <input type="hidden" name='eventDate' value='None'>
    <input type="submit" name="submit" value="Go!">
    </form>

    and it will work, provided your permalinks are set up right.

    to clarify that further…this solution creates a simple html form with a “Go” button instead of the ajax form. A bit archaic but gets the job done for me.

    I also had this problem, the next month, previous month links work, but date picker would give me “page not found error”.

    It was due to the $link in the datepicker.php file.

    Change $link .= '&eventDisplay=month&eventDate=';
    to $link .= '?eventDisplay=month&eventDate=';

    Worked for me XDDD.

    Thank you liuxihon! I was having the exact same issue and your solution fixed it. Thank you so much for sharing!

    liuxihon, you are brilliant! Your clean, simple fix worked like a charm.

    I just found this bug also and fixed it with adding a ? in datepicker.php. Then I visited the forum here to file the bug report….and looks like many others have experienced this for months now.

    Surely this is a major bug, no? Why hasn’t it been fixed in so long?

    Hay justinendler,

    I have another problem with the datepicker. I have it installed but it displays the calender box all the way in the lower left corner…

    I have theme “display”.

    Can you help me?

    Greetz Mark.

    I fixed mine. I removed the sidebar from the events catagory and it works now.

    Dudes… where the hack is the events category and te events calender?

    I have wordpress theme “Display” and i cannot find it..

    HEEELP

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘[Plugin: The Events Calendar] Date picker failure’ is closed to new replies.