Download: WP-Cal

Information

An event calendar plugin for WordPress.

Installation

Upload the content of the zip filt to your plugin folder. Go and activate the plugin. Create a new WordPress page and add
[php]<!–cal–>[/php]
to it. Open wp-content/plugins/wp-cal/js/cal.js and change line on to reflect you WordPress installation.
Example: If you have WordPress installed in www.site.com/blog then line 2 should look like this:
var baseurl = “>

161 Comments

  1. Hey… nice work here but I get this error dunno what to do:

    Fatal error: Call to undefined function: cal_days_in_month() in /hsphere/local/home/mladen/vanished-sky.net/webwalk/wordpress/wp-content/plugins/wp-cal/functions/cal.php on line 59

    I’ve followed all the steps and wanted to check the calendar out and this happens… had such a good day hunting plugins for wordpress and then this happens haha…

    Hope someone knows the answer to this problem

  2. While I’m on it, 2 more questions.

    Does it support AJAX (in other words does it need to load the whole page or just the calendar?).

    Is there any way to put it in the sidebar rather then inside a new page?

  3. hi there,

    this looks really great, I was using the wordpress event calendar plugin before but that plugin only offered to make calendar entries tied to a certain post… so your plugins looks better suited for my needs.

    can I see an implementation somewhere before trying it out?

  4. hello… very nice… any chance of getting widget support for sidebar to display the next “x” coming events?

    If no plans, I will go hack it out myself… just dont want to duplicate…

    Mr Papa

  5. no problems installing and getting it running, but the calendar is displayed over the top of other stuff on the page. Namely, a graphic background image that I have my theme displaying at the bottom of the page. Any thoughts? I will play with the CSS or maybe even try new template page too…

    Mr Papa

  6. Okay, I solved the issue… I had to add

    after the

    in order to get the ajax to properly resize based on the calendar displayed and not overwrite the page elements.

    Not an ajax expert, but maybe some css/tags not being closed properly?

    Thanks…

    Mr Papa

  7. Amazing work here! I was dreading implementing a calendar in my latest client site, then I stumbled upon your new calendar solution. Totally blown away over here! It’s the simplest and best looking calendar plugin for WordPress, by far.

  8. This looks really kool, I wish i can get it to work.

    I installed it exactly as stated above and I get this message on the calendar page: No input file specified.

    Any help would be greatly appreciated.

  9. Hi! You’ve made an absolutely awesome plugin. Thanks heaps for that.

    I have one question: is there any way to make the calendar publicly visible, but not editable? (In other words, for readers to see the calendar but not change the events)

    Cheers and keep up the good work!

  10. Just curious as to if the fix for the following error had been resolved, or at least the reason it appear?

    Fatal error: Call to undefined function: cal_days_in_month() in /mnt/w0507/d30/s30/a000qbdf/www/missionm25/net/improved/wp-content/plugins/wp-cal/functions/cal.php on line 59

  11. I am still having a problem saving the description. Title and time all save OK but the description comes back as “Undefined”
    I checked the SQL database and the description is there but it won’t populate.

  12. Absolutely fantastic! A calendar with “events” independent from “posts” is exactly what I’ve been looking for.

    Thanks very much and keep up the good work!

    Grant

  13. i don’t entirely know if this is a solvable problem, but is there a way to post events that start on one night (before midnite), and end the next morning?

    (i.e. start at 9pm, end at 1am?)

    your calendar is exactly what im looking for, but it wont let me post an event that runs for more than 1day …

  14. Great work. This is just what I was looking for. Just one question: I’m running a blog with more than one author and no admin. Is there some way to add events not being the admin but a logged-in user with some privileges (author)?
    Thanks!

  15. To Whom It May Concern,

    I found the following typo in your installation instructions – its minor, but it made things confusing:

    Upload the content of the zip filt to your plugin folder. Go and activate the plugin. Create a new WordPress page and add

    1.

    to it. Open wp-content/plugins/wp-cal/js/cal.js and change line onE to reflect you WordPress installation.
    Example: If you have WordPress installed in http://www.site.com/blog then line 2 should look like this:
    var baseurl = “/blog/wp-content/plugins/wp-cal”;
    If WordPress is installed in the root this line does not need editing. Default is:
    var baseurl = “/wp-content/plugins/wp-cal”;

  16. I have a problem. Anyone visiting my site, regardless of whether they’re logged-in, can edit my calendar. Is there any way to fix it so that the add event button only appears for logged in users?

  17. i love everything about this calendar…except that i can’t get it to work. i add events and nothing appears. i checked mysql and no data ever get’s into the wp_calevents db.

    any help?

  18. FF– Looks great! Thanks for all your hard work. I’m having a technical problem. I’ve installed a new calendar page. The calendar plugin looks terrific, but I can’t get the Options Panel to appear, and I’m logged in. Can you help? Thanks!

  19. Hello,

    Will this display a mini calendar on the sidebar? Haven’t been able to figure out how to do so. Added to my sidebar and it still does not display anything.

  20. Wonderful calendar!

    I created a new page template so it wasn’t so squished, and added some css so the widths would stay fixed.

    Thanks again!!

    The only suggestion I have is to tie in the WordPress roles to have the ability to view/modify the Calendar or not.

  21. Sorry, one more suggestion. I would love it if this could display the next X days events (upcoming events) in the sidebar (as a widget would be even better).

    Thanks again, and fantastic job!

  22. Wonderful plugin!

    I’ve installed correctly, and it is running just great! Except, I can’t add any events!

    I am certain I am logged in…but still can not click to add an event, even after clicking the date.

    Am I missing a step here?

  23. Great works!

    One suggestion:
    Show title of articles in the calendar.
    For example, I have two posts on 1/20, named “1” & “2”. In the calendar, there will be two links named “1” and “2” on 1/20.

  24. Euh why is my comment of the 23 still in moderation? Anyway we tweaked the plugin to make it editable for everyone who is a member. I will post the zip file this week after we fixed the last bugs.

  25. I think there might be an issue with one of the js files needed for this in the zip file.

    I was getting an error cal_init() undefined.

    I followed Shan’s link to his page:

    http://shannondonahoo.com/

    and grabbed the prototype, sriptaculous and cal.js files and overwrote the files from the zip file. It all works now.

    the daily side list was working fine but the main calendar wasn’t showing up.

  26. Oops,

    another odd issue that I notice form the way I have to do it compared to some of the above posters, is that I’m hardcoding the links in the head to the 3 js files and the cal.css.

    Is that nessecary?

    Looking at Shan’s site, it looks as if it’s just another page in his wp, not a static page. It lokos as if thats the only page in which the src’s needed are in.

    odd or am I missing something painfully obvious?

  27. I get this message on my calender, can the creator of calender help me?

    Fatal error: Call to undefined function: cal_days_in_month() in /hsphere/local/home/hikma/iman.nu/wp-content/plugins/wp-cal/functions/cal.php on line 59

  28. Can anyone help me customize this plugin so that it doesn’t have to be in military time and so that there is a location field?

    I have looked at all the PHP files, but cant find the one that checks the inputs and returns an error.

  29. Great work. This is just what I was looking for. Just one question: I’m running a blog with more than one author and no admin. Is there some way to add events not being the admin but a logged-in user with some privileges (author)? I desperately need this funcionality. I assume it is in event.php:

    get_currentuserinfo();
    if(user_can_edit_page($user_ID, $post->ID)){
    $canedit = true;

    Thanks!

  30. I’m using WP 2.1. I installed the plugin successfully, however, I am unable to add an event. I click on any date, and the page just refreshes. I don’t get a popup like the instructions say. How can I fix this please?

    Thanks!

  31. Hi, I came across your site looking for a WordPress plugin to make a large “page-calendar.”

    I was wondering, do you have a function that allows the calendar to output another list of latest events onto a sidebar along with the page-calendar?

  32. What a great plug-in — just what I was looking for!

    One question: Is there a way to get “Today’s Events” or an “Upcoming Events” listing to show up in the sidebar on the home page? Thanks!

  33. I installed it according to the instructions. I am able to add/delete/update events. I created a page with the code “” to view the cal. I don’t see the calendar. I see a box with the info. How do I view the entires month’s cal (main calendar). Like in the pic above. Please email with instructions. Thanx

  34. I have installed the calendar, tweaked the css, but even when logged in as admin, the “Add and Event” link doesn’t show up.

    I have no way of adding the events. Do you know what it could be?

  35. Hi there!

    This plugin is excellent, however, I am not seeing an add event form when I click on a date despite being logged in to WP using an admin account.

    Any suggestions?

    Thanks!

  36. Just as a follow up, I tried to track something down in the forums and through the posts here and I see that there is a database table that doesn’t appear to have been created in MySql for me. I noted that others created these manually, but being somewhat new in the MySql front, I thought I’d ask for more details as I can’t find more extensive documentation on this.

    How many fields, names? etc…

    Thanks so much!

  37. i love this calender and its perfect for what i need…but it isnt displaying the edit option….it says Todays Events then underneath it says No events on this day….but no edit option!?
    There are no error messages.
    Any ideas on hows i can make it work?

    Many thanks
    Michelle

  38. It is a great plugin, but it only works properly in Firefox. In both IE and Opera the description isn’t saved into the database, in fact it saves the string “undefined” into the database. Anyone have a clue how to get this to work?

  39. Another thing, for setting up the time zone, I’m guessing it is using the Universal time, however in Eastern Standard, so it’s always a day ahead when I am adding events in the evening. Also just noticed now that the calender is even a little big on the 19′. Im guessing it is just my theme but any help would be great for either issue.

  40. hello, my installation of wp-cal looks great and appears to work fine, but when i click on a date on the calendar, nothing happens. the calendar refreshes but nothing happens for me to add an event. any ideas where to start looking?

  41. i can’t add an event to the calendar. when i click on a date, it refreshes the date at the top right, but nothing comes up so i can add an event. can someone advise? yes i am logged in as admin

  42. it doesn’t seem to work anymore under the latest version… when i’m logged in and i click on the date, it doesn’t give any form anymore to add/edit dates…

  43. I just installed WP-Cal and it looked like everything worked just fine. The problem I am having is that though I enter a title for a new event, it appears that when I save the entry the Title is changed to the name of my site: The GhostRider’s Zone. I don’t understand this behavior.

  44. Hey great plugin!

    I’m working on a site where I would like people who are not Administrators to be able to add/edit the calendar.

    Would it be possible to allow Editors and Authors to edit the calendar?

  45. Hey great plugin! This is exactly what I was looking for!

    Would it be possible to extend calendar add/edit priviledges to Editors and Authors? I manage a site and want to turn over a lot of functions to other people, but I don’t want to hand out Admin rights.

    Thanks!

  46. It appears as though there is a function definition missing from functions.php.
    The error produced is
    /Users/chris/Sites/wordpress/wp-content/plugins/wp-cal/functions/cal.php on line 59

  47. I’ve just installed this, and it’s looking nice. However, i am logged in and do not get the edit box at all? I do get the edit the page link as per normal on a normal page when you are logged in however?!

    Please help!

  48. Right, got that to work by creating a user with Admin privalidges as opposed to just using the admin account, however, i now have another problem. I’ve added an event, but it said it was successfully added, but it’s not showing up…

  49. Thanks for a great plugin! Probelm: Cannot seem to see where events are going…says event added successfuly, but I see nothing on any date. I am using WP MU and have the plugin activated on each site, in the plugins dir. Any thoughts where the events are going? Thanks.

  50. Adding events doesn’t seem to do anything. Enter details, save, click add event, nada. No errors anywhere re:installation or activation.

    I am not to sure why it is so hard to do event calendars in WP. I have downloaded 5 now and none of them have worked :(

  51. I had a few problems with this, so I’ll share it with the group.

    1) I couldn’t install it to blog in a directory, so I installed it to a blog which resided at a base url.

    2) The calendar would come up, but there was no link to add an event. I searched the php for the phrase ‘Add event’ and saw that it was wrapped in a condition, so I removed it for me.

    3) This left me able to fill in the fields to add events, but even though it said “event added successfully” none were added. I looked into addevent.php and noticed a) maybe a typo $tabl should be $table in the fourth line. I searched for $table in the entire source and noticed that in wp-cal.php it tries to create a table in the database called calevents. Since it hadn’t done this for me, I went into PHPMyAdmin and created the database as specified in wp-cal.php.

    And then it started working – yippee!

    The cool thing about this is that I don’t know a scrap about php.

  52. Hi,

    The cal_days_in_month() errors is due to fact that php was probably compiled without calendar support (–enable-calendar).

    If you encounter this error, just add the following lines to the end of functions/functions.php:

    function cal_days_in_month($month, $year) {
    return date('t', mktime(0, 0, 0, $month+1, 0, $year));
    }

  53. Hi,

    I am attempting to use this plug in; I am new to wordpress. I have followed the instructions above and the calendar is not appearing.

    I think the confusion is from the instruction to create a new page and then insert . I did that but I think I am not in the correct location. My new page simply says edit this entry, rather than displaying a calendar.

    Can you clarify the instruction regarding the way to insert into the code to activate the calendar.

    Thanks,

    PH

  54. The plugin appeared to install fine, however it didnt create the database table. Also when I click on a day Nothing pops up for me to edit a new event.. I am logged in as the admin. any ideas?

  55. Hmmmm….I added to my page, but nothing shows up at all. (no errors – just a blank WordPress page).

    Any ideas?

    The site is being run on a Windows Server (not by my choice)

  56. I am having trouble installing this awesome looking plug-in. Everything appears to be installed correctly but when I browse to the “testing” WordPress page that has the in it all I see is the page title and the ‘Edit this entry’ link. No calendar. What am I missing? Thanks!

  57. I followed the instructions above, but the page I created, the one to which the directions say to add the line

    is blank. The Options panel showed up, but that’s it.

    What else is there?

    Thanks,
    Thomas

  58. I’m getting the following error and also see that some other user have also had the same error, though do not see a solution? help?

    Fatal error: Call to undefined function cal_days_in_month() in /usr/local/www/vhosts/domain.co.nz/httpdocs/wp01/wp-content/plugins/wp-cal/functions/cal.php on line 59

  59. Hi, first of all thank you for all your work on the plugins, i find them very helpful. At the moment im having a little problem with your calender plugin..

    When you login there is no option to “add an event”, BUT when you log out there is an option! Not sure whats going no here. Im pretty sure there could be a quick fix like changing an if or else somewhere.. i haven’t modified anything that i can think of either. Can anyone help me?

    Many thanks, Tim Olthof

  60. I like your plugin.

    I would like to add a URL field to it so an event could easily link to a post or other page. I’ll hack it on in there myself, but would be happy to hear any guidance on what files I’d need to touch to do so.

    Thanks!

  61. I have been looking through your code but I can’t find a way to allow anyone, not just admin, add/edit dates on the calendar. Is there an easy way to do this? By the way, great plugin!!

  62. I have installed the calendar but am getting the following error: Fatal error: Call to undefined function cal_days_in_month() in /z/www4/revival/www/rca/wp-content/plugins/wp-cal/functions/cal.php on line 59

    How do I fix it?

    Thanks,

  63. Really, you helped me a lot with this plugin.

    Thanks a lot!

    Question: It’s posible to make it for a ‘company’ to use it the same calendar but with different users?
    Or the only way is to give a different calendar to each user on the site?

  64. Hi, I got 2 problems. The user admin can’t see the add events link at all but if i create another user with administrator role. I will be able to see. But the big problem is when I add the events. It seems like it did not add at all although it says events added successfully. But none of the events are reflected? Do you need to a db for this plugin?

  65. First, I love your stuff! Some of the best I (and apparently everyone else) has seen. One problem with the calendar that I’m having though, is that I can’t create events. It comes up on the web page fine, but than when I click on an event, it just says that thereare none coming up. Any ideas on this?

  66. Hi,
    i just installed everthing correct. changed in the cal.js and in wp-cal.php from root to my wp-install … but the i see nothing?? on my page. i inserted it in the page with as discribed (between the two text-lines) … but nothing apears. when i take a look at the source-code, i see the calender written in? pretty strange, isn´t it? same happens with standard kubrick-theme. have a look. page is named deadlines: http://planland.at/intranet/?page_id=3

  67. Ok. won´t find support here or in the forum…

    for everybody who got the same problems with calendars or event-plugins. there are 3 sollutions, but no one is working proper with wordpress 2.2. i made a suggestion-thread at wordpress dot org:

    wordpress . org / support / topic /
    133550?replies=1#post-613758

    you have to put the link together. just post your needs there, maybe someone will help us with a serious plugin…

  68. Just one question: I’m running a blog with more than one author and no admin. Is there some way to add events not being the admin but a logged-in user with some privileges (author)?

    I would also like to have something like implemented. This plugin, also the calendar plugin by Kieran O’Shea only seem to give editing capabilities to the admin. It would be nice to give editing capabilities to editors and authors as well.

    Or is it available and I missed it, maybe a simple line of code to add somewhere to enable that option?

  69. I’m logged in as the administrator and the calendar looks great. When I select a date, however, I do not get an “Add Event” link or and sort of form. Just a “No Events This Day” message.

    Thanks

  70. Hi. Great calendar. Just one thing – I cannot see how you are supposed to add events?

    When I click onto a date on the calendar, the Today’s events box just says ‘No events this day’ – there is no edit option.

  71. I am getting the

    Fatal error: Call to undefined function cal_days_in_month() in /home/ackwwal7/public_html/durr/wp/wp-content/plugins/wp-cal/functions/cal.php on line 59

    that people have asked about above. I am not seeing an answer. I have changed line 1 to reflect where the base URL is var baseurl = “/wp/wp-content/plugins/wp-cal”;

    Where next. This is exactly what I need if I can get it working.

  72. Hello there, I can use the your Calendar in almost every browser except IE 7. I get the message – undefined – written into my database when I am using the Internet Explorer. Is there anyone who can give me a hotfix? I am not at all familiar with JS. However, PHP code seems to be all right.

  73. I’m running WP 2.3.1 and 0.3 of this plugin, and it’s working great everywhere except IE6, which gives me a Javascript error:

    Line: 1320
    Error: ‘HTMLFormElement’ is undefined

    Any suggestions?

  74. Hello,

    all works fine, but I cant add an event. I see the “add event” in your description, but not on my calendar-frontend-site. I think that the plugin dont know that I am the admin. Is it possible, that the reason is the wordpress version 2.3.1?

    kindly regards, Nicolas

  75. Hi, I really appreciate this calendar, thanks.

    I have 1 question…

    The calendar displays great,however, when I click on a date to add an event, the add event form does not appear.

    The only thing that displays is a box with the date and No Events this Day message.

    Please see it here.

    http://energybloggers.com/calendar/

    Thank you in advance for your support and a great plugin!

    -David

  76. This looks really neat but I’m wondering if there any thoughts on adding the following:

    1) make the admin from the calendar itself an option – in my case – I don’t want people adding events and would like to do it though the main WP admin interface
    2) add a sidebar widget for upcoming events

  77. Ok, I’m back, this time with a real issue. I have entered my first event. This event runs from 08:00AM to 09:00PM. I get the error “Error: End time is earlier then start time!”.

    If I put in anything earlier later than 12:00 using a start time of anything before 12:00, I get the same error. Can this be corrected? I know that accounting for time can be a tricky thing, but I will have events that run for a full business day 8-5, 9-8, etc.

    Is there any workaround for this?

    Any help would be greatly appreciated:)

  78. Sorry…me again. I can now add an event, but it doesn’t show up. I have not changed anything in the code except for the heading tags (switched the ‘s and ‘s. Any idea why the events wouldn’t show up?

  79. Your calendar is awesome. It is making things really easy for me. I only have one suggestions and that is to make the “time” optional. Welp thanks for making this it’s the best looking wp calendar out there and easiest to use.

  80. Is this plugin still maintained? There’s a patched version floating around for the SQL injection thing. Or is that fixed now?

    What’s the license? Is it ok to modify + distribute it? Do you welcome patches?

    Btw, there’s a spam comment on this page.

  81. Pingback: WP Calendar

Leave a Comment.