WordPress.org

Ready to get started?Download WordPress

Forums

WP Calendar
"show all dates" filter option doesnt work in wp calendar plugin (10 posts)

  1. danielkun
    Member
    Posted 2 years ago #

    Unable to delete events in the past as they don't show up. I've tried the "show all dates" filtering option but it doesn't seem to work correct.

    http://wordpress.org/extend/plugins/wp-calendar/

  2. gwheeler
    Member
    Posted 2 years ago #

    I am having the same issue. (WP version 3.3.1, WP calendar Version 1.5.0 Beta 1) I setup the calendar on a new site and entered some fake event data for test purposes. The site goes live soon and I can't delete the fake dates from the calendar. They show up on the full calendar view of the site but I can't access them to delete them via "show all dates".

    I'm running the previous version of the calendar on another site and it works fine.

  3. danielkun
    Member
    Posted 2 years ago #

    You can delete them manually by accessing the DB. they're in a seperate table, you should be able to find them quickly. not a nice fix though.

  4. gwheeler
    Member
    Posted 2 years ago #

    Thanks for the advice. I decided to go back to the last stable version of the plugin for now. It seems to be working fine and hopefully the plugin author will fix the bug soon.

  5. eirikbacker
    Member
    Posted 2 years ago #

    This is a very simple typo in the code, just add
    &event_start=-1
    to the url when using the calendar-admin in wordpress, like this:

    http://yourdomain.com/wp-admin/admin.php?page=wp-calendar/fsCalendar.php&event_sort=from&event_start=-1

    hope that helps you :)

  6. egado
    Member
    Posted 2 years ago #

    Same here...

    Thx eirikbacker for your "workaround" – but that is still not a realy good solution for my clients...

    @faebu
    Is there another way for making the good old filters work? Editing the plugin core files or anything which might help until the next version?

    -------------------------------------------------------------

    Habe das selbe Problem...
    Danke eirikbacker für deinen "workaround" – aber das immer noch keine wirklich gute Lösung für meine Kunden...

    @faebu
    Gibt es denn keinen anderen Weg um die guten alten Filter wieder zu verwenden? Wegen mir auch, das Editiren der Plugin-Core Dateien oder irgendetwas was bis zur nächsten Version Abhilfe schaffen kann?

  7. mandalatv
    Member
    Posted 2 years ago #

    egado, a temporary solution is to add the following line of code around L1288 of fsCalendar.php:

    $filter['datefrom'] = date('Y-m-d H:i:s', $filter['datefrom']);

    This basically overrides the if...else testing of datefrom in getEvents() and forces a start date.

  8. egado
    Member
    Posted 2 years ago #

    THX mandalatv – nice temporary solution, works great :)

  9. egado
    Member
    Posted 2 years ago #

    Hm... i've tested the solution now in detail...

    It changes also the frontend output and not only the entry filter within the backend :( So there are all old events showing in the frontend instead of only showing the upcoming ones...

    Comment it out for the moment ;)

  10. mandalatv
    Member
    Posted 2 years ago #

    Ah, bummer. Suits my needs, since all my events need displayed. Hopefully there'll be an official update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic