Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter joefinnerty_123

    (@joefinnerty_123)

    used the large calendar, works great, but same problem. click on day number, no “agenda” for the day just 404.

    Plugin Author anmari

    (@anmari)

    Hi joe,
    you’re right something has got lost there.

    as a default in both it should pass a list type so that the day query will just shows in list form the events on that day.

    shortcode parameter:

    more_url=https://someurl allows one to control which url (in case one wants a dedicated day view page.) and interestingly enough you can do
    more_url=https://someurl?listtype=n where n is a suitable listtype for dayview (try 1,2,3 etc)

    so that gives a quick fix for now now till I get an update up.

    On my site it doesn’t 404, it just stays on same page, so there may be something else weird going on in your site.

    Aside:

    agenda=n should allow one to control which listtype (and default is it will go to same page) but that not working either.

    Thread Starter joefinnerty_123

    (@joefinnerty_123)

    fyi: made a couple changes … doesn’t seem to like days=n parameter

    next the footer links

    $daylink = ‘<a class=”daylink” href=”‘.
    htmlentities(amr_get_day_link($thisyear, $thismonth, $day, $link))
    . ‘&listtype=2” title=”‘ . ($daytitles[$day]) . ‘”>’.$day.”;

    function amr_get_day_link($thisyear, $thismonth, $thisday, &$link) { /* the start date object and the months to show */
    global $amr_limits,
    $amr_listtype;
    if (!empty ($amr_limits[‘agenda’])) // do not want listtype unless requested?
    $agenda = $amr_limits[‘agenda’];
    else
    $agenda = 1;
    //$link = add_query_arg( ‘listtype’, $agenda ,$link); // no ? – they must just do something sensible when they set up the page
    $link = add_query_arg( ‘hours’, ’24’ ,$link);
    $link = add_query_arg( ‘months’, ‘0’ ,$link); // else existing months will override days
    $link = add_query_arg( ‘start’,
    $thisyear.str_pad($thismonth,2,’0′,STR_PAD_LEFT).str_pad($thisday,2,’0′,STR_PAD_LEFT),
    $link );
    $link = amr_check_for_wpml_lang_parameter ($link);
    return ($link);

    Plugin Author anmari

    (@anmari)

    see updated versions

    Thread Starter joefinnerty_123

    (@joefinnerty_123)

    still get 404

    Plugin Author anmari

    (@anmari)

    sounds like something is messing with the query string then – you got custom permalinks or doing anything with the rewrite function etc?

    go back to a default theme, no plugins active, reset permalinks and check what happens, slowly switch back to your theme and add plugins.

    https://webdesign.anmari.com/2932/debugging-a-possible-clash-between-plugins-andor-a-theme/

    all works happily here
    https://test.icalevents.com/large-box-calendar/largecalendar/?listtype=1&days=1&months=0&start=20140801

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘404 clicking on day from small calendar’ is closed to new replies.