WPListCal

WPListCal

Current Stable Version: 1.0.8.2
Current Development Version: 1.1b1
Requires WP Version: 2.5
Tested up to WP Version: 2.6.3

Download Stable Release
Get Development Release
       

Installation | Usage | FAQ | Changelog | Comments | Download

WPListCal allows you to list upcoming events on your Wordpress blog in a list or table format. It plugs straight into the Wordpress admin pages to let you keep track of events just like posts and pages. You can then list events on a page or post using a special tag, or incorporate events into your theme files using a PHP function call.

Version Guide

WordPress 2.7 or later → Use WPListCal 1.1b1 (development release, not yet stable)
WordPress 2.5-2.6.3 → Use WPListCal 1.0.8.2 (current stable release)
WordPress 2.0.3-2.3.3 → Use WPListCal 1.0.2

The Future

Through the comments below, I’ve gotten lots of feature requests and bug reports and I appreciate them. I’ll continue development on WPListCal whenever I have time.

On many occasions, I’ve said that version 1.1 will bring support for categories and some other interesting features. I’ve decided to push those features off to 2.0 since the switch to WordPress 2.7 is becoming more than just a sub-point release. Don’t worry though, you don’t have to wait for 1.2-1.9 before I do 2.0…I’ll probably just skip a bunch. This versioning scheme just made more sense than rev’ing the 1.0 tree over and over

Feature Requests

Here is a list of current feature requests that I’ve gotten (and that I remember). Post comments if you have more.

Installation

  1. Upload wplistcal.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Upgrade

  1. DO NOT DEACTIVATE THE PREVIOUS VERSION OF THE PLUGIN! Doing so could remove all your events.
  2. Upload wplistcal.php to the /wp-content/plugins/ directory or any subdirectory
  3. Deactivate and then activate the plugin in the ‘Plugins’ menu in WordPress

Usage

  1. Change the default settings on the WPListCal options page
  2. If you want to list your events on a page or post, insert the tag <!--wplistcal--> in the body of the page/post
  3. If you want to list your events somewhere in your theme files, insert <?php echo wplc_show_events(); ?>. You can set special parameters to overwrite the default options if you use the PHP function call. All parameters are optional, but you must preserve the ordering by passing in `null` for options that you want to use defaults for.
    • Display Mode (string): 'list' or 'table'
    • Event Format (string): The format of the list entries if Display Mode is set to 'list'. You can use the following variables: %NAME%, %LINK%, %LINKEDNAME%, %START%, %END%, %DESCRIPTION%.
    • Date Format (string): The format to display the start and end date and time. Uses the same date formatting that Wordpress uses.
    • Max. Events (int): The maximum number of events to display, -1 for unlimited.
    • Show Past Events (boolean): true to show all events, false to show only current and future events
    • Maximum Advanced Notice (int): How many days in advance to display events, -1 for unlimited.
    • Event Order (string): ‘asc’ to show the closest event first or ‘desc’ to show the furthest event first.
    • Hide Same Date (boolean): Format the end date with the format string defined in the next parameter if it is on the same day as the start date.
    • Date 2 Time Format (string): If Hide Same Date is enabled, use this format string for the end date.
    • No Events Message (string): If there are no events, show this string instead, leave blank for none.
    • Example: <?php echo wplc_show_events('list', '%LINKEDNAME%: %START% - %END%<br />%DESCRIPTION%', 'M j, Y g:ia', -1, false, 30, 'asc', true, 'g:ia', 'Sorry, no events'); ?>

Frequently Asked Questions

Where does WPListCal store events?
On activation time, the plugin adds a table called <prefix>_wplistcal that stores all your events.
What happens to my events when I deactivate the plugin?
On deactivation, the events table is dropped, so if you want to save your event data, back up the table before deactivating the plugin.
As of version 1.0.6, deactivation does nothing to your settings and events.
Why is WPListCal different from other Wordpress calendar plugins?
WPListCal is specialized to provide clean list or table based output for you to style or reparse any way you’d like. Other calendar plugins force you to use a gregorian calendar view which may be inappropriate for many applications.
Does WPListCal work on WordPress 2.7?
WPListCal 1.1b1 (development release) and later work on WordPress 2.7
Does WPListCal work on WordPress 2.5?
WPListCal 1.0.3 and later works on 2.5
When I try to edit my options, I get an error: “Your attempt to edit your settings has failed.”
Download WPListCal 1.0.3 or later.
When I click edit on the manage page, I get the error: “Cannot find wplistcal.php”
Download WPListCal 1.0.4 or later.
I love WPListCal, but I’d like it to do _______.
Great, I’m glad to hear feature requests. Just post a comment below.
I love WPListCal and I’d like to buy you a beer to thank you.
Awesome, thanks. Just click the big orange Donate button above

Changelog

1.1b1 (development release)

1.0.8.2 (stable)

1.0.8.1

1.0.8

1.0.7

1.0.6

1.0.5

1.0.4

1.0.3

1.0.2

1.0.1

1.0

  1. markus 1.14.08 / 6pm

    try try try …
    2.3.2…
    2.3.2DE…
    2.3.2 and so on…

    i can’t work it out…

    always that same error,
    when activating your plug in my wordPress…:

    Fatal error: Call to undefined function: str_ireplace() in /home/.sites/132/site21/web/_wp/wp-content/plugins/wplistcal.php on line 202

    http://www.cleanscenecuts.net/_wp

    what’s wrong,
    pleeeaaassseee… HELP us!

    cheerz

    !

  2. Jonathan 1.14.08 / 6pm

    str_ireplace() is not defined in PHP4. I’ve added a replacement function definition that will fix this error.

    You can download version 1.0.1 of the plugin on the Wordpress.org plugin page

    Thanks for catching that!

  3. Robin 1.15.08 / 11am

    Hi, i get the following fatal error:

    Call to undefined function wp_nonce_field() in /home/dbmforum/html/dbmforum.nl/wp-content/plugins/wplistcal.php on line 658

    Am i doing something wrong here?

    Kind regards,

  4. Jonathan 1.15.08 / 1pm

    Robin: What version of wordpress are you running? I believe that wp_nonce_field was added in version 2.0.3, so you may need to upgrade (and I may need to update my readme.txt file)

  5. Robin 1.16.08 / 6am

    Hi Jonathan, I have version 2.0.1.

  6. Steven 1.16.08 / 10am

    Markus, have you entered the code into the post by using the code edit option? If not, give it a try ;-)

  7. Jonathan 1.16.08 / 1pm

    Yup, that’s your problem. You need to upgrade to 2.0.3 or later to use this plugin (I’ll update this page and the plugin directory shortly). Sorry for the inconvinience.

  8. Jonathan 1.16.08 / 1pm

    Steven: Markus’s problem was due to str_ireplace being a PHP5-only function. He was likely running PHP4.

  9. Dommy 1.16.08 / 2pm

    I like the list view, great job :)
    Can I import an iCal file to batch-add all events in that calendar? That would be sweet. Otherwise, I need to add a lot events manually, but hey, what’s better than spending an evening of adding some events to have them show up on my blog? :D
    Regards,
    Tom

  10. Jonathan 1.16.08 / 2pm

    Dommy: Thanks for the compliments. That sounds like a cool feature idea, I’ll keep it in mind as I work on the next version.

  11. Dommy 1.16.08 / 3pm

    Jonathan, I’ve just added your plugin to my website (on the right side of the blog’s footer) and there’s one thing I’d like to know.
    Is there a way of changing how the start and the end date of an event are being displayed? I use your great plugin to display my workouts and also upcoming races I’m going to participate in and these events never last longer than a day, usually just a couple of hours. For that I’d like to have it displayed like an agenda, here’s what I mean:
    http://img211.imageshack.us/img211/6040/agendaau4.png
    Is that possible without rewriting the code?

  12. Jonathan 1.16.08 / 3pm

    Dommy: Yes, you can get close to your image with the existing code. Just exclude the %END% variable from the Display Format box on the options page. Your display format would probably look like:

    %START% - %TITLE%<br />
    %DESCRIPTION%

    Hope that works out for you.

  13. JT 1.18.08 / 6am

    Hi Jonathan. Thanks for this plugin. I’m just wondering why you chose to use a separate table for the events rather than the built in categories. I like the extra Events form in Write/Manage, but would like to add separate categories to my calendar. I’d be interested in your views on this. I shall be having a go at hacking that in myself (the outcome of which I will gladly share with you if you are interested). I wonder if you have considered / started on this yourself for a future version.

  14. Jonathan 1.18.08 / 11am

    JT: Thanks for using the plugin…I’m glad people like it.

    I use a separate table to allow future expansion and customization of the script without worrying about the changing Wordpress table structure. It makes things safer and easier.

    I did consider doing categories for events. That will most likely be a version 1.1 feature. So, if I understand you correctly, you want to have a separate list of categories for your events?

  15. Dommy 1.19.08 / 4am

    I was wondering why the description of the event is wraped in a paragraph.
    I took a quick look at the plugin’s code but couldn’t identify the line that causes this. Would you assist me on that PLS?

  16. Jonathan 1.19.08 / 12pm

    Dommy: The Wordpress text editor adds the <p> automatically. You can probably just use the non-visual editor to avoid that.

  17. Dave 1.20.08 / 7am

    I’ve just installed WPListCal on my test server (actually localhost on my laptop) but can’t edit entries already present - instead I get the following error message: Cannot load wplistcal.php..

    I have WinXP Pro SP2 running xampp 1.6.5 (which gives me Apache, PHP 5, and MySQL). I’m trying to get this to work with a WP-United integration of phpBB3 and WordPress 2.3.2 but no joy (I have also tried it with a vanilla version of WordPress 2.3.2 (default theme, no other plugins) but get the same problem.

    I don’t suppose you could help please? Thanks.

  18. JT 1.20.08 / 9am

    Jonathan: Yes I need to have different categories for the calendar, so I can display views with only events from a certain category. Allowing only certain users to edit specific categories would be a useful advanced feature too. Also, I’d hoped the table view would have the option to show year/month/week/day type views like a desktop calendar app. Any chance of this type of feature?

  19. Timm 1.21.08 / 4am

    I´m having the same problem as Dave, so if we could get som ehelp it would be perfect. Thanx!

  20. Hazel 1.21.08 / 8am

    I’m having the same problem as Dave with when I try to edit events I have created I get the error “Cannot load wplistcal.php”

    Also, when I have tried to use “” to make a page it just shows up as that code instead of a list of events.

Have your say

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>





Navigation