WPListCal

WPListCal

Current Version: 1.0.6
Requires WP Version: 2.5
Tested up to WP Version: 2.5.1

Download

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.

Important: If you are running WordPress 2.5, you must use WPListCal 1.0.3 or later. If you are running a pre-2.5 version of WordPress, you should use WPListCal 1.0.2 or upgrade your WordPress installation. 1.0.2 will be the last release for pre-2.5 versions of WordPress.

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 WPListCal before upgrading.
  2. Upload wplistcal.php to the /wp-content/plugins/ directory
  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.
    • Example: <?php echo wplc_show_events('list', '%LINKEDNAME%: %START% - %END%<br />%DESCRIPTION%', 'M j, Y g:ia', -1, false, 30); ?>

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.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.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.

  21. Hazel 1.21.08 / 8am

    Opps… the code didn’t show, I was talking about the

  22. Jonathan 1.21.08 / 4pm

    Dave & Timm: That error is usually caused by Wordpress being unable to locate the plugin file. Did you put wplistcal.php directly into /wp-content/plugins? If it is in a subfolder, it will not work.

    Hazel: Are you sure that the brackets aren’t being encoded by a formatting plugin? If they are, then the code in the page actually appears to be &lt;!–wplistcal–&gt; which is ignored by WPListCal when it filters your posts. You might need to enter the code using the Code section of the Visual Editor.

  23. Dave 1.21.08 / 11pm

    That was it exactly. For some reason I’d put it into /wp-content/plugins/wplistcal/wplistcal.php (which, spookily enough, was enough to allow me to activate the plugin and add/delete events, but not edit them :))

    Thanks for the pointer :D

  24. JT 1.22.08 / 3am

    Jonathan: regarding the problems with where the plugin file is put, I have changed the links in the manage section to use basename(__FILE__) instead of wplistcal.php then you can put it anywhere in plugins. I have successfully added categories and will send you my version to review when I’ve ironed out a few hacks

  25. Hazel 1.22.08 / 4am

    Both problems fixed. Thanks for your quick help!

  26. Stephan 1.23.08 / 11am

    I’m getting a “Cannot load wplistcal.php.” error, when trying to “Edit” or “Add” an event from the Manage Events page

  27. Jonathan 1.23.08 / 11am

    Stephan: You need to put wplistcal.php DIRECTLY into /wp-content/plugins. Not in a subdirectory.

    I guess I should make that more clear in the installation instructions.

  28. Jordan 1.24.08 / 4am

    Thanks for the great plugin! I’m a pretty new user to customizing themes and that sort of thing, so this may seem like a basic question. But what do I add to the CSS stylesheet to format the output when using this on a theme? I basically want to get rid of the bullets. Thanks!

  29. Jordan 1.24.08 / 5am

    Also, I don’t know if it is the theme I’m using or some other problem, but when I add a hyperlink in the description, it tries to link to URLOFSITE doublequotes whateverURL was in the link in the description doublequotes.

  30. Jonathan 1.24.08 / 10am

    Jordan: The UL tag has the class, “wplistcal”. So, if you want to remove the bullets, you can put the following into your CSS:

    .wplistcal {
    margin: 0;
    padding: 0;
    }
    .wplistcal li {
    list-style-type: none;
    }

    The link issue is probably caused by using double-quotes. The script encodes the quotes into &quot; entities. If you use single quotes in your HTML, it should work.

  31. Jonathan 1.24.08 / 10am

    JT: Regarding the month view, I see that as a low-priority since there are lots of other gregorian calendar plugins for wordpress. I created WPListCal because I wanted a simple listing of events as opposed to a big clunky calender. However, I may consider it in a future release.

  32. Phil 1.24.08 / 4pm

    Do you think it would be possible to make a recurring event that could happen every year like birthdays without having to enter them every year?

    Love the plugin!

    Thanks,
    Phil

  33. Jonathan 1.24.08 / 5pm

    Phil: Thanks, glad you like it. That’s a good idea. I’ll look into it when I work on the next version.

  34. Phil 1.24.08 / 6pm

    Just found a problem where the start date is set to the time and date of the post no matter what I enter. I tried entering Jun 4, 2008 but it set todays date even after I edited the entry. Anyone else have this problem?

  35. Phil 1.25.08 / 7am

    Ok, I figured it out…

    You cannot use 00:00 as a time, the code thinks that it is not a real time and sets it to the current time().

    Can we add an all day event checkbox?

    Thanks,
    Phil

  36. Phil 1.25.08 / 8am

    Ok, another update… I really need to start thinking in am/pm and not 24 hour time…

    Anyway I found that if you are using am/pm you CANNOT use 0 for hours. That is why I am getting the error, should be 12:00am not 00:00am. Anyway maybe we can add some error checking to see if 00 was entered and convert it to 12am or something…

    Here is what PHP.net says:
    “If the time is followed by ‘am’ or ‘pm’ (or ‘a.m.’ or ‘p.m.’), hour is restricted to run from 1 to 12, and ‘:minute’ may be omitted (taken to be zero). ‘am’ indicates the first half of the day, ‘pm’ indicates the second half of the day. In this notation, 12 is the predecessor of 1: midnight is ‘12am’ while noon is ‘12pm’. (This is the zero-oriented interpretation of ‘12am’ and ‘12pm’, as opposed to the old tradition derived from Latin which uses ‘12m’ for noon and ‘12pm’ for midnight.)”

  37. Jordan 1.25.08 / 8am

    The single quote thing solved it! Thank you very much!

  38. Mark 1.27.08 / 9am

    Whenever I click “Edit” on the default event, I get a 404 error…The file is directly in the plugins folder as instructed…

  39. Rik 1.27.08 / 2pm

    Hey Jonathan,

    Maybe I’m misinterpreting, but “Maximum Displayed Events” doesn’t seem to be working.

    If I have 4 upcoming events and only want 2 to show up on the list, I set it to “2″, but still all 4 show up.

    Do you know what’s going on?

  40. Jonathan 1.27.08 / 2pm

    Mark: I haven’t seen that issue before. Do you have an odd URL for your site? Perhaps a conflict with another plugin?

    Rik: Hmm, you’re right…that is a bug. I’ll look into it today and get back to you.

  41. Rik 1.27.08 / 3pm

    Johnathan, thanks, I thought it was just me.

    Totally unrelated, but you’re from Cal Pomona? It’s a small world.

  42. Jonathan 1.27.08 / 6pm

    Rik: I’ve updated the release. Please download 1.0.2 for the fix. Thanks for catching it.

    Ya, I went to Cal Poly Pomona…graduated last year.

  43. Mark 1.27.08 / 6pm

    Nope - nothing…the URL it is apparently trying to find is: http://bernadetteconnors.com/wp-admin/post-new.php?id=1&page=wplistcal.php
    Does that look odd?

  44. Rik 1.27.08 / 6pm

    Thank you, Jon, it’s working perfectly now. Great plugin.

  45. Kent 1.28.08 / 9am

    Ive hacked the “wplc_show_events” function so it can group events by Y m d
    if($max_events > -1)
    {
    $sql .= ” LIMIT “.$wpdb->escape($max_events);
    }

    $date_shown_x = “0″;

    $ret = “”;

    $events = $wpdb->get_results($sql, ARRAY_A);

    // Print events

    for($i = 0; $i $date_shown_x))
    {
    if($display_mode == “list”)
    {
    $ret .= “\n\n”;
    }
    elseif($display_mode == “table”)
    {
    $ret .= “\n\n\n”;
    }
    }

    if ($date_shown_x != $date_group_x)
    {
    $ret .= “” . $date_group_x . “\n\n”;

    if($display_mode == “list”)
    {
    $ret .= “\n”;
    }
    elseif($display_mode == “table”)
    {
    $ret .= “\n\n”;
    }
    }

    $date_shown_x = $date_group_x;

    // Prepare event string
    $start = date($date_format, $events[$i]['event_start_time']);
    $end = date($date_format, $events[$i]['event_end_time']);
    $cleaned_name = str_replace(” & “, ” & “, str_replace(’”‘, “"”, stripslashes($events[$i]['event_name'])));
    $cleaned_desc = nl2br(str_replace(” & “, ” & “, str_replace(’”‘, “"”, stripslashes(stripslashes($events[$i]['event_desc'])))));

    if($display_mode == “list”)
    {
    $evt = str_replace(”%NAME%”, $cleaned_name, $event_format);
    $evt = str_replace(”%DESCRIPTION%”, $cleaned_desc, $evt);
    $evt = str_replace(”%START%”, $start, $evt);
    $evt = str_replace(”%END%”, $end, $evt);
    $evt = str_replace(”%ID%”, $events[$i]['id'], $evt);
    $ret .= “\n”.$evt.”\n\n”;
    }
    elseif($display_mode == “table”)
    {
    $ret .= “\n\t”
    .”".stripslashes($events[$i]['event_name']).”\n\t”
    .”".$start.”\n\t”
    .”".$end.”\n”
    .”\n”
    .”\n\t”
    .”".nl2br(stripslashes(stripslashes($events[$i]['event_desc']))).”\n”
    .”";
    }

    }

    if($display_mode == “list”)
    {
    $ret .= “\n\n”;
    }
    elseif($display_mode == “table”)
    {
    $ret .= “\n\n\n”;
    }

    return $ret;

  46. Jonathan 1.28.08 / 1pm

    Mark: That is the URL for the Add Event page, not the edit page. Are you sure that you’re browser is properly navigating? I’ve never seen this sort of issue.

  47. Jonathan 1.28.08 / 1pm

    Kent: Ok, glad you have it working. Just a note, I cannot support 3rd party hacks like that, so if anyone else is planning on using that hack, please go directly to Kent for help.

  48. Kent 1.28.08 / 3pm

    Think none can use it :) the <code> tag doesnt work .. its incomplete

    Anyway .. keep up the good work .. great plugin!

  49. Kent 1.28.08 / 4pm

    This is how my hack c o u l d have worked..

    http://hcdn.myftp.org/kent/kent_events.png

  50. Mark 1.28.08 / 7pm

    it’s a similar one for edit….my browser (FireFox) is fine for everything else….

  51. zack 1.29.08 / 2am

    The event plugin of my dreams! It’s wonderfully simple — thanks for developing this.

    Now, how do we set up multiple calendars or designate categories for certain events?

  52. Nora 1.29.08 / 7am

    Great stuff… do you have any idea if and when will you be publishing the version with the recurring event option? That would save my life…

  53. Jonathan 1.29.08 / 10am

    Zack: Glad you like the plugin. Categories/Calendars are on the list for a future release.

  54. Carolyn 1.30.08 / 8am

    I apologize if this is a stupid question, but is there a way to display the events list on a php page that does not exist within the wordpress installation? I have a site that is not all wordpress, and I want to show the upcoming events on the home page.

    Any advice is greatly appreciated!

  55. Jonathan 1.30.08 / 11am

    Nora: I don’t know when I’ll have time to work on the next version. For now, you can just add the events one at a time.

    Carolyn: Unfortunately, you cannot do that. The plugin depends on functionality built into WordPress; even to display events. Perhaps you can use the WordPress page system to accomplish your goal. I am considering adding RSS capabilities to a future version, so that might work too.

  56. Carolyn 1.30.08 / 1pm

    RSS would definitely work. I already have carp installed and use it to display the 10 most recent headlines from the wordpress installation on the non-wordpress homepage.

  57. Hufovi 1.31.08 / 7am

    Fantastic plugin! Thanks a lot Jonathan for this masterpiece :)

    I only have one suggestion: the ability to show events depending on the category. On my sport category page, only show sport events, and so on.

    Again, thank you!

  58. Jonathan 1.31.08 / 12pm

    Hufovi: Glad you like the plugin. Categories seem to be a popular feature request, so they will almost certainly be included in the next major release.

  59. Dommy 2.1.08 / 4am

    That’s great news Jonathan. Categories will be a great new feature.
    Do you plan to add the feature of grouping events that take place on the same day? I like Kent’s idea and think that this would be a very useful addition to your plugin.

  60. Daniel Richard 2.1.08 / 9am

    Nice! I’m using it. Need some CSS styling before it would look nice in the site. :D

    One issue: the title of the event will display a ” \ ” when i use a single quote in it.

  61. Tread 2.4.08 / 3pm

    Hi Jonathan,

    Is there a way to tie an event to a post? I use that format on my site (using Rob Sargant’s now defunct RS Events). The Category feature sounds awesome!

  62. Jonathan 2.4.08 / 3pm

    Daniel: Ya, I tried to make it as clean as possible so site owners can put whatever styling they wanted on the output. I’ll look into the quote issue.

    Tread: Right now, there is no such feature. For now, you can just add a new post and link to it in the description. I am considering this for a future release.

  63. Daniel Richard 2.4.08 / 10pm

    Cool Jonathan! Can’t wait for the next update. :)

  64. Matthew 2.5.08 / 7pm

    Great plugin, thanks. For what I need it’s so much better than the other event calendars available for WP.

  65. Matt 2.9.08 / 2pm

    Hi Jonathan, thanks for the plugin, does just what I need.

    One issue though. The band I’m making the site for (I’m using WPListCal to show their upcoming gigs) want the latest show in the sidebar as text, but a dedicated page with a table listing the events. After some code experimenting I see that one function generates the output, so I can’t make the two different. I tried appending some if statements (to the tune of “if the calendar is called by then use $display_mode = “table”) but this didn’t work due to the code logic. Can you think of any way I can achieve this?

    Matt

  66. Jonathan 2.9.08 / 4pm

    Matt: Thanks, I’m glad that you like the plugin.

    The comment tag (<!–wplistcal–>) uses the settings from the options page. You can use that to make the page with the table…just make the appropriate settings changes on the options page.

    For the sidebar, you can just call the display function directly and pass in whatever parameters you want. For example, max_events=1, display_mode=list, etc. The documentation for the parameters is in the plugin file above the function (wplc_show_events).

    Let me know if you have any more questions.

  67. the surg3on 2.15.08 / 9am

    Hello,

    Where do I customize the style for how the calendar looks? Is this in the plugin? If so, what line should I look for to start adding Bold, underline, and other tags?

    Thank you very much for your help.

  68. Jonathan 2.15.08 / 10am

    the surg3on: The list is wrapped with the CSS class ‘.wplistcal’ so you can add a definition for that class to the stylesheet for your theme. You can view source on the page you have the list on to see the structure of the list and the other CSS classes in it.

  69. Joe holsfuss 2.18.08 / 7am

    Hi,

    the event input insists on having am/pm though we use
    24h scheme. Can that be changed somehow?
    thanks
    j.

  70. Jonathan 2.18.08 / 9am

    Joe: 24-hr time support will be available in the next release.

  71. Michiel van der Blonk 2.20.08 / 4am

    requests:
    1. screenshots
    2. examples

  72. David Jacques-Louis 2.20.08 / 8pm

    Is there a demo here? Screenshot?

  73. John 2.20.08 / 8pm

    Just a note that the download button/link are broken. The wordpress plugins site has changed their URL’s.

  74. Jonathan 2.20.08 / 9pm

    David, Michiel: You can see the plugin in action on the right side of my blog. The admin UI looks pretty much like the post management UI, but it works with events instead of posts. The calendar events are outputted as either a list (like on my blog) or a table. The list is wrapped in a CSS class so you can format it any way you choose.

    Michiel: If you look at some of the commenter’s URLs above, you can see some example sites. If anyone has specific suggestions for example URLs to list, let me know.

    John: Thank you, fixed.

  75. Rik 2.21.08 / 1pm

    Hi Jonathan, is there anyway to show even occuring today in the list as well? One of the things that I used this plugin for is seminar. So if a seminar is occurring ‘today’, I still want it to show up on the list instead of being already filed as past events.

  76. Jonathan 2.21.08 / 2pm

    Rik: Events are displayed until their end time has passed. If you set the end time for an event to 11:59pm, it will stay listed until the end of the day.

  77. Rik 2.21.08 / 2pm

    Oh, you know what, it DOES show up IF the event has not yet occurred. OMG, that’s awesome! I’m sorry, nevermind. :thumbsup

  78. Matt 2.23.08 / 10am

    Hey Jonathan,

    I asked you above about using WPListCal for a band’s gigs listing and displaying a table on one page and a list on the other.

    I have a slight issue: This worked fine, except for the number of items. In my options I set the number to -1 to display all upcoming items on the ‘Shows’ table, but this makes all items display on the sidebar list as well despite using the “max_events=1″ parameter in the function call. It seems like the -1 value in the options is overriding this - any ideas?

  79. V1ktor 2.23.08 / 10pm

    Great plugin. I’m using it to display my future trips.
    I got 3 suggestions.

    1. Be able to create different lists for different pages.
    For example, my travel page shows all my trips, while another page would show all events happening while at home.

    2. Implement TravBuddy.com account =)

    3. Events would alternate in colors, so it would be easier to see them separately.

    Thanks,
    v1ktor

  80. Sudrien 2.25.08 / 12pm

    Bug on 1.0.2:

    Wordpress will detect the plugin at /wp-content/plugins/wplistcal/wplistcal.php - however, the resulting /wp-admin/edit.php?page=wplistcal/wplistcal.php will have broken edit links.

    The quick hack is to use $_GET['page']. I’m not sure if there is is a ‘proper’ way to do it.

    The subfolder installation, I have noticed, is discouraged in the FAQ; however, as as much as I am impressed by the code you have so far, you should plan for support files at some point.

    -Sud.

  81. michael 2.26.08 / 7am

    Hi Jonathan.
    Thanks for the Plugin. I don’t understand anything about PHP and I am new to Wordpress.

    I just can’t manage to insert the Calender-list in the sidebar. It works in a post, but how can i insert it in the sidebar?
    do i have to put it in the sidebar-theme-file? or into a widget? thanks a lot.

  82. Kevin 2.26.08 / 7am

    I’m getting spaces in the listing of the events and it’s driving me nuts..any ideas.

  83. Dustin Ross 2.29.08 / 1pm

    Jonathan, Great Plugin!
    This is a very simple question. When I add a link to an event description it inserts my URL before the link. So when I add http://www.yahoo.com in the event description on the actual calendar list if you click on the link it takes you to http://www.contactpressimages.com/http://www.yahoo.com

    Any ideas? Here’s the calendar in play on a page:
    http://contactpressimages.com/news/?page_id=105

  84. Dustin Ross 2.29.08 / 1pm

    by the way, i tried using single quotes around the link in the description and it did not help.

  85. Dustin Ross 3.6.08 / 10am

    Hey Jon, any word on this one? Would like to use your calendar, but can’t as of now.

  86. Tread 3.6.08 / 10am

    Hi Jonathan,

    I have a specific feature request that seems to be somewhat reasonable. Can you implement variables such as %DATE%, %STIME%, and %ETIME% so that we’ll be able to split the actual date from the time? This would be hugely beneficial to a lot of us and allow for greater flexibility in putting the list in the sidebar.

  87. Jonathan 3.6.08 / 10am

    Dustin: I’m heading out the door right now, but I’ll try to address your issues tonight or tomorrow. Sorry for the delay

    Tread: Ya, that sounds reasonable. I’ll add a todo into the code to remind me. Thanks.

  88. Dustin Ross 3.6.08 / 3pm

    Thank you Jonathan! (as you can see I’ll be checkin’ back)

  89. Jonathan 3.7.08 / 12am

    Dustin: I can’t reproduce the issue you are seeing. Do you have some sort of linkifying plugin installed? Are you using the WYSIWYG editor or the plaintext one? Are you typing in the URL by itself, or actually clicking the link button on the editor (or typing the <a> tag by hand)?

  90. Jonathan 3.7.08 / 1am

    Matt: Verified that this is broken. I’m (slowly) working on a fix. Sorry, just been busy lately.

    V1ktor: (1) This can be done with categories which is a feature in version 1.1 (to be released in the somewhat near future) (2) I have no clue what travbuddy.com is (3) Fair enough, I’ll try to add alternating css classes to the table view for the next release

    Sudrien: That’s not really a bug…just an implementation detail of how the WordPress plugin engine works.

    Michael: You need to put it in the Sidebar theme file by using the wplc_show_events function. If you look at the wplistcal.php file, there is a big comment block right on top of that function that describes all the possible parameters to it. If you leave it blank (i.e. no parameters) it uses the defaults that you set on the settings page.

    Kevin: I’m not sure what you mean. Can you elaborate?

  91. Dustin Ross 3.7.08 / 1pm

    Hi Jonathan, I am typing in the url by hand. Using Firefox. In Wordpress 2.3. When I get to the WYSIWYG editor I click CODE to edit the HTML. Then hand code the tags. The only plugin I have is a Google Analytics one.

  92. Melissa 3.10.08 / 5am

    Hi Dustin,
    I was having the same problem. Remove the quotes entirely from the URL and it will work. Eg.url.com

  93. Bart Cabanier 3.12.08 / 8am

    Hello,

    your events calendar seems the right thing for me, but I can’t set the date in the ‘add event’ section
    Each time I set a date (in the future) and click on save, the date is reset to the current date & time
    the Event name & description are saved, only the date gives a problem
    What could I be doing wrong?

    kind regards
    Bart

  94. Bart Cabanier 3.12.08 / 8am

    Me again: I figured out what went wrong, I used an incorrect time. I had put 13:00 where it should be 1:00
    sorry for disturbing!
    Keep up the good work!

    and yes: I’ll read the rest of the comments first, next time ;-)

  95. Thiemo Gillissen 3.17.08 / 2am

    hi there.
    First of all, thanks for the great plugin. I have it in use, but I miss a feature: Would it be anyhow possible to post an event without a specific time. e.g. if I want to an event that’s valid for a whole day. Would be great. Thanks a lot.
    Thiemo Gillissen

  96. Jonathan 3.18.08 / 12pm

    Thiemo: I like that feature request and I’ll probably add it in a future release. For now, just make the event go from 12:00am to 11:59pm

  97. thomas 3.21.08 / 2pm

    Hi there, kudos on this awesome plugin - i use it to display concerts on a clients page as i find gigs calendar too bloated. however i’m missing the option of what to output once no gigs are scheduled… is there any way to accomplish this for me? any help would be highly appreciated!

    thanks in advance

  98. Jonathan 3.21.08 / 2pm

    Thomas: There is no setting in the plugin to do that (though it might be in a future release). For now, you can use this workaround:

    You’ll need to do this within the theme file, so you can’t use the <!–wplistcal–> tag.

    Instead of putting just the function call like this:

    <? echo wplc_show_events(……); ?>

    You’ll check the output of that function and decide to show text instead lke this:

    <? $output = wplc_show_events(……);
    if($output = ”)
    echo ‘your no items message’;
    else
    echo $output; ?>

    Let me know if you have any questions.

  99. thesurg3on 3.24.08 / 9pm

    hello,

    i am not sure what you meant by:

    “the surg3on: The list is wrapped with the CSS class ‘.wplistcal’ so you can add a definition for that class to the stylesheet for your theme. You can view source on the page you have the list on to see the structure of the list and the other CSS classes in it.”

    where is the class located in the WP control panel? Is it in the Edit Plugin area?

  100. thomas 3.25.08 / 10am

    hey, unfortunately the code you pasted didn’t work for some reason :x

  101. Jonathan 3.25.08 / 11am

    thesurg3on: The css class is not located anywhere in a default install. You need to add it to your theme’s stylesheet file. If you go to Themes -> Theme Editor, and click Stylesheet, you can add it. If you don’t know CSS, I suggest that you ask one of your friends that does to do this for you.

  102. fre 3.27.08 / 10am

    Ho Jonathan,

    great plugin! It works really smoothly for me. The only thing i would love to have is a widget which can show the next 3 (4 - 5, ..) upcoming events, only by title. Would that be difficult to do?

    Greetings,

    Fré

  103. Jonathan 3.27.08 / 11am

    Fre: actually, that is already possible. If you open your theme file, you can use the function call wplc_show_events() described in the documentation to put a list there. The parameters for the function are listed in the plugin file (wplistcal.php) right above the definition of the function itself. Basically, you would set max_events to 3, 4, 5, or whatever limit you want and then set event_format to %NAME%. Sorry, I’m not in front of the code right now, so I can’t give you an exact code listing.

  104. fre 3.28.08 / 8am

    thanks Jonathan,
    but i don’t get it to be working. I’m not that goo din php i’m afraid..

  105. fre 3.29.08 / 5am

    it works! Great,
    sir thanksalot

  106. Karl Bedingfield 3.30.08 / 9am

    Hi there,
    I am usung WP2.5 but when I try to add an event I get ‘Cannot load wplistcal.php.’

    Any ideas what might be wrong?

    Thanks

  107. Karl Bedingfield 3.30.08 / 9am

    Sorry, should have read FAQ :)

  108. Karl Bedingfield 3.30.08 / 9am

    Hi there,

    I just added an event in a WP Page and noticed that WP puts a around the list:

    Is there a way to stop this?

    Thanks again
    Karl

  109. Karl Bedingfield 3.30.08 / 9am

    that’s a paragraph tag around the list. sorry

  110. Grant 3.30.08 / 3pm

    I am unable to change the way WPListCal displays. Under admin in wp-admin/options-general.php?page=wplistcal.php

    I also tried to change display mode by editing wplistcal.php directly with no success.

    I want this:
    %START% — - %NAME%
    %DESCRIPTION%

    Any suggestions?

  111. Jonathan 3.30.08 / 3pm

    Grant: You’ll need to give me more information than that. What exactly are you doing? Do you get an error? What version of WordPress? What is the path to the wplistcal.php file? I have not seen this problem before.

  112. Grant 3.30.08 / 5pm

    I didnt include additional information because everything is default and worked fine prior to updating to WP2.5

    /wp-content/plugins/wplistcal.php

    Happens under admin/settings/WPListCal

    WPListCal Options:

    I click “Update Options”

    and it displays

    Your attempt to edit your settings has failed.

    Please try again.

    If you want screen shots let me know and I will email you.

  113. Jonathan 3.30.08 / 5pm

    Grant: I see what you mean. Definitely a bug. I’ll look into it as soon as I can.

  114. Karl Bedingfield 3.30.08 / 9pm

    I wasn’t clear earlier, what I meant was that when I add WP encloses the output with paragraph tags. See my code here: http://paste-it.net/7717

    Any suggestions to remove the paragraph tags greatly appreciated.

    I too was about to post about updating options.

    Keep up the good work.

    Thanks
    Karl

  115. Paul 3.31.08 / 6pm

    Just verifying what Grant said on 3-30-2008: Won’t update options on WP 2.5.

    Thanks!

  116. Sophia 4.2.08 / 10am

    Hi Jonathan, great simple event tool. Two things:
    1) i can’t seem to update my events, it just brings up a blank page within wordpress admin tool.
    2) is it possible to have an event field that takes in a URL? that way I can make my event titles as URL links.

    Thanks,
    Sophia
    http://sophiaperl.com

  117. Alex Leonard 4.3.08 / 7am

    Hi Jonathan,

    Just starting to play around with the plugin now (on 2.5). Just wondering, before I spend too much time trying to configure it, do you have an idea when you might be releasing the next version to bring it in line with 2.5?

    I’m definitely liking the sounds of what you’ve done.

    Cheers,

    Alex

  118. Alex Leonard 4.3.08 / 8am

    Also, some thoughts on functionality that might be nice (of course you may well already be planning these things…)

    1. Add Event editor - to work as the new tinymce in 2.5 (big plus would be being able to use the built in media uploader)

    2. Option have events also display as single posts? Eg, would allow you to add an excerpt and display a link to read the full details of the event.

    3. Add a location field (would add a custom meta field?)

    4. Option to make an event “all day”

    5. A calendar date selection tool would be a nice little plus :)

  119. Sophia 4.3.08 / 9am

    If you go to my webpage http://sophiaperl.com, you’ll see that the event description has URLs that are messed up. When I added the urls via wordpress, I put the correct http://…, but then the plug-in prefixed it with my webpage url. Also, I tried to edit the event and the webpage in wordpress is blank in th e middle. Nothing came up.

  120. Alex Leonard 4.3.08 / 9am

    I hope it doesn’t seem like I’m harassing you! I just keep noticing little things that would be legend functionality to have.

    Some more ideas:

    1. Add class=”wplc_alt” to every other li or tr for alt row styling.
    2. Minor issue with inverted comma in Event Title. It seems to render out as, for example, “John\’s Day”
    3. Paged option when limiting displayed event items?
    4. Widget :)

    To be honest - I’m really liking the functionality you’ve built up here and would love to offer any help that I can. I’m not hugely strong on the php front (but I know a man who is). My primary strength is semantic HTML, CSS, and a bit of common sense.

    Are you open to collaboration at all?

    Cheers,
    Alex

  121. Jonathan 4.3.08 / 9am

    Karl: You are probably using the advanced text editor. I think that it automatically adds that paragraph tag. You can either remove it in the code view or turn off the advanced editor all together

    Sophia: 1) Are you using 2.5? If so, then that is the issue. See the comments above.
    2) See this post for someone who had the same problem and this post for the solution

    Alex: I might be able to spend some time this weekend getting the plugin working right in 2.5. (1) The plugin currently calls the WP method to get the default editor, so perhaps that changed in 2.5. (2) So you mean a link to a post, or actually add the same functionality of posts to events? (3) Yes, I want this too. (4) Yes (5) Yes. And the second list of requests: (1) Ok (2) I’ll try to fix that with the 2.5 update (3) Maybe someday. (4) Perhaps.

  122. Alex Leonard 4.3.08 / 10am

    Hey Jonathan,

    Thanks for your response. Hope I didn’t go off on one too much, but glad to see we’re thinking along the same lines.

    Re: point 2 in my first comment.

    I suppose the key would be to consider the most extensible and useful options for people.

    I know personally I’m a big fan of lists with titles and excerpts, followed by a link to the full description.

    By actually saving each event as a full featured post in it’s own right, you might be easily able to link into a standard single.php template file, therefore allowing comments and a very detailed event description. I guess this would necessitate each Add Event being placed in a default category as well, in order to aid templating.

    I can imagine a number of situations where it would be helpful to list a lot of details about an event (say you were hosting a conference or something). In this case your event’s overview page would show the short description of the event and the single.php page could have everything from photos, to embedded maps, to well, whatever you want.

    I don’t know the complexity involved with such a thing, but I can only assume that the more work you can offload on WP the better, instead of working out a whole separate set of functionality.

    I guess, if you think it is possible, one really nice feature might be to offer a separate template hierarchy for single events. So that the templating hierarchy looked for:

    1. event-single.php
    2. single.php
    3. index.php

    I have no idea if you can adjust things like that though…

    I really must take a course in php so I can actualise some of my ideas!

    Again, if you need any assistance I’d be happy to help out, whether beta testing or anything - I’m good for routing out issues with (X)HTML structure and so on. Feel free to mail me.

    Cheers,

    Alex

  123. Sophia 4.3.08 / 5pm

    Thanks for the response. In regards to bringing up the edit events webpage and it being blank inside the WordPress admin webpage, I’m using WordPress 2.3.3 and 1.0.2 version of your plug-in.

  124. Graham Sykes 4.6.08 / 8pm

    Hmmmm, updated to WP2.5 and now can no longer update this plugin’s options? Is there a fix?

    Thanks

  125. Jonathan 4.7.08 / 12am

    Graham: See above, fix coming sometime in the near future.

  126. Mel 4.8.08 / 9pm

    Hi,
    I’m setting this up on a new install of WP2.5. For some reason it wont allow an end time of less than one hour after midnight (11.59pm actually). If I enter either 12 am or pm it gives an end time the same as the start time. It does the same if I enter any end time less than an hour after midnight the next morning – for example – 00.30 (I made sure I changed the date). Is it supposed to be like this or have I done something wrong?

    Also is it possible to just have just the start time and no end time?

    Thanks for a great plug in..

  127. Alex Leonard 4.9.08 / 7am