AJAX Calendar

Nov 25, 2005 | Tags: , , , | Written by Administrator

download

Download: ajax-calendar2.zip
Version: 2.4.9
Updated: September 15, 2008
Size: 30.94 KB

Support This Plugin!

While this software is being provided free to use, it takes considerable time to develop and support. If you do find it particularly useful or want to request a feature then consider donating money as an incentive for me to carry on developing it.

Thanks!

I have other plugins too!

AJAX Calendar is a plugin that will display an AJAXified WordPress calendar. This enhances the functionality of the standard calendar by:

  • Allowing the asynchronous navigation of months, without updating the page
  • Adding a drop-down list of post titles in each month (through the «-» button)
  • Widget support

Version History

  • 2.4.9 - Fix DB prefix bug
  • 2.4.8 - Category selection
  • 2.4.7 - WP 2.6
  • 2.4.6 - WP 2.5 compatability
  • 2.4.5 - Update widget class for 2.1 support

Installation

No sniplet called advert

To install the plugin:

  1. Download ajax-calendar2.zip
  2. Unpack the zip. You should have a directory called ajax_calendar, containing several PHP files
  3. Upload the ajax_calendar directory to the wp-content/plugins directory on your WordPress installation.
  4. Enable the calendar in your theme from the Widget page
  5. Make any modifications to your theme, as required
  6. Activate plugin

You can find full details of installing a plugin on the plugin installation page.

Template tag

If you are not using WordPress Widgets you can display the calendar with the following template tag:

ajax_calendar ();

This should be inserted into your sidebar where you want the calendar to appear.

Example

No sniplet called ajax calendar

Support

Please direct all support questions to the AJAX Calendar support forum. Any support questions left on this page may not be answered.

Bugs & New Features

A full list of all bugs can be found in the AJAX Calendar issue tracker.

A full list of all requested features can be found in the AJAX Calendar feature tracker.

Share This

Comments

  1. author
    Victor Chudnovsky :

    Nov 27, 2005 12:48 pm

    Great plugin, but there's one caveat: When displaying the split list, you are only comparing the month and not the year, so I was getting entries from November of last year mixed with entries from this month. Here's what I think the line should read like in common.php:

    $res = $wpdb->get_results ("SELECT ID,post_title FROM $wpdb->posts WHERE month(post_date) = '$monthnum' AND year(post_date) = '$year' AND post_status = 'publish' ORDER BY post_date");

  2. John (author) :

    Nov 27, 2005 3:55 pm

    You are absolutley correct. My blog doesn't go that far back and so I never noticed. Version 1.1 uploaded with your correction. Thanks!

  3. author
    cristian :

    Dec 1, 2005 4:57 am

    I installed the ajax calendar both in a local web site and in an internet site.

    In the local site it works while in the web site http://www.sentina.it/blog doesn't.

    When I load the blog's homepage in the error log apache report the following error:

    "Premature end of script headers: /home/web/sentina/www.sentina.it/public_html/blog/wp-content/plugins/ajaxcalendar/server.php"

    and when I click on the calendar next/prev month I get a javascript error that say:

    "Error: xajax_giraffe_ajax_calendar is not defined"

    I think that the server apache doesn't send the generated js to the browser.

    Any idea?

  4. Michael B :

    Dec 2, 2005 4:21 pm

    Is it possible this doesn't work with WP 2.0? I'm testing it out with Beta 1 (I know, RC1 is out), and there seems to be an error with wp-includes/capabilities.php.
    First is "The second argument, 'Array', should be a valid callback", and second is "Invalid argument supplied for foreach()". It gives line # of 142 and 146 respectively. This happens when trying to list posts from a month using the >. Otherwise, I got the plugin to work.

  5. author
    Chander :

    Dec 10, 2005 5:36 am

    There seems to be a bug, if I go back to november I cant get back to december. And if im viewing september it will say the next month is november.

  6. Jeannette :

    Dec 20, 2005 4:39 pm

    Hello!

    The calendar looks great, but it's not completely working for me. When I click on a date, it goes to that entry just fine. However, when I click on a month or on the drop down link, all it does is show the hourglass and there isn't any other activity.

    This is what the customizable code from common.php looks like:

    // Configuration options - modify if needed
    $giraffe_ajax_cache = true;
    $giraffe_ajax_split = true;
    $giraffe_ajax_split_open = "«-»";
    $giraffe_ajax_split_close = "»-«";
    $giraffe_ajax_url = "/wp-content/plugins/ajaxcalendar/server.php"; // Change the URL path, if necessary

    Otherwise, I have not touched anything else. Cache folder is set to 766. I did not put the #show-it or #wp-calendar-split options into my style.css file because I am not too versed in code yet and didn't want to mess anything up. Am I missing anything? I am using Firefox and WordPress 1.5.2. Thanks!

  7. John (author) :

    Jan 4, 2006 2:46 am

    There are some incompatibilities with 2.0 currently, which I've been working on, and will soon release a newer version. Also, the problem of blank months is one caused by the way the calendar works in WordPress - if a month has no entries it skips displaying that month. This will also be 'fixed' in the next version.

  8. warf :

    Jan 16, 2006 4:42 am

    It doesn't work with my permalinks 'cause i use following schema
    /%year%/%monthnum%/%day%/%postname%/
    so i had to change common.php

    --------- diff ---------

    --- common.php.org Mon Jan 16 12:40:17 2006
    +++ common.php Mon Jan 16 12:34:12 2006
    @@ -25,7 +25,7 @@
    $year_num = date ('Y');

    if ($month_num 12)
    - $month_num = date ('n');
    + $month_num = date ('m');

    $monthnum = $month_num;
    $year = $year_num;
    @@ -64,7 +64,7 @@
    ob_end_clean ();

    // Add javascript
    - $text = str_replace ('', '<a href="'.get_month_link (date ('n'), date ('Y')).'" rel="nofollow">', $text);
    + $text = str_replace ('', '</a><a href="'.get_month_link (date ('Y'),date ('m')).'" rel="nofollow">', $text);
    $text = str_replace ('', '</a>', $text);

    $text = str_replace ('id="next"></a><a href="'.get_month_link (date ('n'), date ('Y')).'" rel="nofollow"></a><a href="'.get_month_link (date ('Y'), date ('m')).'" rel="nofollow">$giraffe_ajax_split_open</a>";
    else

  9. warf :

    Jan 16, 2006 7:13 am

    It doesn’t work with my permalinks ’cause i use following schema
    /%year%/%monthnum%/%day%/%postname%/
    so i had to change common.php

    diff here http://remont.warf.eu.org/wp-content/ajaxcalendar.diff

  10. John (author) :

    Jan 27, 2006 1:36 am

    Thanks Warf, I'll include those changes in the next version!

  11. Ulysses Ronquillo :

    Mar 7, 2006 12:20 am

    Thanks so much. I installed it on my website without a hitch. It worked from the gitgo. Thanks again. It's awesome.

  12. Ulysses Ronquillo :

    Mar 7, 2006 10:45 am

    Question. How often does the cache gets updated? I just recently posted, but it doesn't show up on the drop down list of split view. Thanks.

  13. John (author) :

    Mar 17, 2006 12:53 am

    The cache should be updated dynamically, as needed - the first time a request is made to display the information it will generated the cache. If this isnt working you could maybe check that the cache directory has the appropriate permissions for files to be created

  14. Ulysses Ronquillo :

    Mar 20, 2006 2:07 pm

    Hi John, I checked the permissions of the cache directory and it was set to 777. I'm not sure why the split-view list was not being updated. But, I got it to work finally. I ended up adding a line of code to common.php. Here's the code (highlighted) if you are curious.

    if ($giraffe_ajax_cache && file_exists ($cachename))
    if (!$year_num = date ('Y') && $month_num = date ('n'))
    $text = @file_get_contents ($cachename);

    The code is checking if it's NOT the current month. If it is NOT, then get the contents from the cache. If it's the current month, then get it from the database.

    Anyways, thanks for your work. Awesome.

  15. Steve :

    Apr 8, 2006 7:34 am

    John,

    Any feeling on a 2.0 update?

    Steve

  16. author
    Dave :

    Apr 24, 2006 9:38 pm

    I got everything to work and I absolutely love it, but I have a small problem. It works fine in IE, but in all mozilla browsers like netscape and firefox corrupt the calendar. I end up having the other boxes on the sidebar overlapping the calendar. Is there something I am doing wrong?

  17. author
    Shawna :

    May 4, 2006 3:25 pm

    I'm running Wordpress 2.0.2 and the calendar doesn't work properly.Will this be updated? It's really a great plugin.

  18. John (author) :

    May 10, 2006 2:30 am

    Yep, it doesn't work with WP2 at all. I have got it working but haven't had time to package it all up and make it decent enough for release. Should be out the door in a couple of days.

  19. author
    Shawna :

    May 13, 2006 2:17 pm

    Thank you John :)

  20. John (author) :

    May 16, 2006 12:52 am

    Updated. You may well experience bugs.

  21. author
    Shawna :

    May 16, 2006 10:06 am

    It still doesn't work as yours does here.Perhaps because I am using WP 2.0.2...?

  22. author
    Shawna :

    May 16, 2006 5:37 pm

    For me the ajax calendar doesn's ajax.The page does indeed refresh and takes a long time to do so and clicking that dropdown menu thingy doesn't work.It keeps my page in limbo while attempting to refresh.Can't imagine what I am doing wrong...?

  23. John (author) :

    May 16, 2006 8:08 pm

    2.0.2 should be fine (I'm using it here). Do you have it running on a website I can look at? I've probably done something stupid.

  24. author
    Shawna :

    May 16, 2006 8:37 pm

    Yes, you can see it here : http://blackhoney.us
    :)

  25. Jay :

    May 26, 2006 5:22 pm

    My calendar doesn't link to any new posts I create. It has links to posts created prior to the installation, but any new posts are left off. Did I mess something up in style.php that could have caused this? I didn't touch any other code. Or is this something caused by the caching option? I noticed the live calendar at the top of this page also doesn't link to any posts.

  26. Jay :

    May 27, 2006 11:45 am

    Well its definitely a caching issue. I deleted the html file in the calendar cache and that didn't work initially. Then I realized my entire site is being cached by another plugin (wp-cache), so when I cleared that cache it genereated a new cache with a new calendar cache as well.

  27. Draky :

    Jun 2, 2006 3:23 pm

    As seen on my blog (WP 2.0.3), I get an error : Fatal error: Call to undefined function: ajax_calendar() in /xxxxxxxxxxx/biblio-manga/wp-content/themes/default/sidebar.php on line 3

    And i put this line in "sidebar.php" :

    Any idea ? :(

  28. willy henostroza :

    Jun 5, 2006 11:53 pm

    Very Good Ajax Calendar used in my site my space blog.

    Thanks

  29. author
    Raul :

    Jun 10, 2006 7:23 pm

    Good idea but does not work right in 2.* wordpress, I know your running it here but after inspecting the javascript in the head of your html I can see that it is different than what is being written in my html. Also I followed the links to other sites in this thread that claim it works but after using the calendar on those sites for just a few clicks the ajax errors kept popping up. I guess this is still very beta. Good Luck

  30. DG :

    Jul 9, 2006 2:06 pm

    Hi,

    I have implemented this Calendar on my Blog and also made a review post.

    It is working fine, but there is one problem or bug. When I click `«-»` button, instead of displaying drop-down list. It opens a page of posts of that month.

    Can you advice.

    DG...

  31. John (author) :

    Jul 13, 2006 12:55 am

    There seems to be have been some differences between the zip available here and the one I was actually running. I've re-zipped everything up and put it here for download. Hopefully that may solve some problems

  32. David :

    Jul 13, 2006 7:38 am

    So, I wanted to use this, but I wanted to implement it into my sidebar via a widget. However, I have no real coding experience. So, it took me a while, and a bunch of troubleshooting, but I have an AJAX Calendar widget working on my site. One issue, however, still remains. I encounter a strange error when I click on a month link if Subscribe2 is activated. If you click on my name a download of the zipped widget file should open. I place it in /plugins/widgets/.

  33. David :

    Jul 13, 2006 8:30 am

    I'm sorry, I spoke to soon. The problem is just odd because it only occurs when I reach particular months, and if I press the center link to drop down the list of post titles, then the months that give me trouble change entirely.
    Here's the error that pops-up every time:

    Error: the XML response that was returned from the server is invalid.
    Received:

    Fatal error: Call to a member function on a non-object in
    /homepages/6/*private*/htdocs/public_html/not/wp-content/plugins/subscribe2/buttonsnap.php
    on line 420

    You have whitespace in your response.

  34. John (author) :

    Jul 14, 2006 12:54 am

    Thanks David, thats great.

    I've updated the plugin to use the prototype library to do all the AJAX instead of Xajax. This should hopefully make it work better.

  35. author
    David :

    Jul 14, 2006 8:26 am

    Alright, the problem is apparently with my themes. It works with Classic, but not with my other themes. Any ideas?

  36. author
    David :

    Jul 14, 2006 8:30 am

    Ok, I'm sorry, but it is working now. All I did was change from Dusk 1.2 to Classic and back to Dusk. I am lost as to why that worked, but it did. Also, the error that I had before because of a conflict between this and Subscribe2 is now gone. Thank you very much.

  37. DG :

    Jul 15, 2006 3:18 pm

    David -Thanks for your reply. I have downloaded the new ZIP file and it display the list instead of Archive page.

    However, I need your help, I want the "Calendar" to have a same look, feel and Color as yours. Can you give me the CSS. As I have tried but could make it to only 10%.

    you can check on the sidebar of my sitehere

    Waiting for your reply.

    Regards,
    DG...

  38. author
    David :

    Aug 2, 2006 10:37 pm

    I'm sorry, I have been back here in a while, DG. I'm not sure what you mean, because I didn't do anything to style my calendar. Its appearance is determined by my themes.

  39. DG :

    Aug 9, 2006 4:38 pm

    Hi David,

    What I wanted was, the CSS coding for Calendar. I have tried, and I could make the Backgruond, and TopBar of the Calendar, like yours. But it fails, in the Date Box's(Date which have post), month and > settings. And doesn't display's the background color and hover effects, like in your site, the dates "which has the post, has a background color, and at hover the background color changes to Black etc.

    DG...

  40. author
    Sarananan :

    Oct 12, 2006 8:19 am

    hi

    thank you very much

    it working cool ya and looks great

  41. moieu :

    Oct 19, 2006 2:10 pm

    Hi,

    I am using Kubrick theme and would like to view my Archive in a Calendar style but afetr downloading the plugin, activating it, and adding ‘ajax_calendar‘ into my sidebar.php, nothing seem to chnage. Have I done the right thing or not?

    Await your help.

  42. moieu :

    Oct 20, 2006 11:58 am

    Hi,

    I have installed the plugin and included ‘ajax_calendar‘ into my sidebar. It did not show up! I thought it might because I am using Kubrick theme which does not have a calendar. If you can help me I am thankful.

  43. scott :

    Feb 4, 2007 10:13 am

    Great plugin. Thanks! I have it on two websites, and noticed something odd about the current month. It turns into a link if there is a entry for the first of the month, not if there are entries for the month. Odd.

    I fixed it by changing line 27 of common.php (adding two variables as well). Here is the new code:
    $this_month = date("Y-m-01");
    $next_month = date("Y-m-01",strtotime("next month"));
    $current = $wpdb->get_row ("SELECT count(post_date) as count FROM $wpdb->posts WHERE post_date > '$this_month' AND post_date

  44. M :

    Feb 7, 2007 5:16 am

    Love the look.
    Does this work with the widgets in K2?
    When I activate the plugin, it doesn't appear in the widgets list for the sidebar.
    Unless I'm missing something, that would be really cool.

    M

  45. author
    Nicoel :

    Feb 9, 2007 4:12 pm

    Can you use this calendar format with other types of fields ...
    I want a calendar that lists all the people that have put that they are available that month.
    Once clicking on the drop down list of people,(where you have the ">" in the demo) it will take you to their individual page with their informaton- times, name, address (not a blog posting) etc.
    Is this possible or is the database table configured to always look for new posts to the blog?
    Thanks,
    Nicole

  46. xiaojun :

    Feb 16, 2007 6:00 am

    There is a compatibility issue when you upgraded to WordPress v2.1, which list out pages as posts. To fix it, I have made some changes in the common.php file:

    wherever there is: post_status = 'publish'
    replace it with: post_type = 'post' AND post_status = 'publish'

    I am not sure if people all have this issue, but just want to share this.

    cheers!

  47. Flavio :

    Feb 20, 2007 5:44 am

    When I'm browsing the archives, the ajax calendar always returns to the last month :( I had to disable it beacause this is too annoying... any fix?

  48. Turk :

    Mar 1, 2007 7:41 am

    Is there a way to get the year to show with the month above the days of the week? So it would be March 2007 instead of just March. That make sense?

    Great plugin!

  49. bittercold :

    Mar 2, 2007 5:57 am

    Hi! This is a great plugin, also the widget by David but I'm a spanish blogger, so I use accents. The problem is that I can't see it from this plugin and a text like that: Actualización a Wordpress 2.1 “Elle” shows as: Actualización a Wordpress 2.1 "Elle" . How can I fix that? Thanks

  50. Turk :

    Mar 27, 2007 6:34 am

    Thanks for adding the year like I requested. It just feels right now.

  51. bittercold :

    Mar 27, 2007 3:35 pm

    Anything? Nobody knows how can I solve my accent problem?

  52. DG :

    Apr 7, 2007 7:51 am

    john,

    I'm using this nice plugin for a long time, however, recently, I've started facing problem, as detailed under:

    The problem that I'm facing is with plugin path. I've WordPress in a sub-directory, the structure is as follows:

    WP URL: http://www.ditii.com/blog
    Site URL: http://www.ditii.com

    Problem:
    a. With the above structure, if I set site url as:
    http://www.ditii.com/, the plugin stops functioning, that's none of the functions work.

    b.If I set site url as:
    http://www.ditii.com/blog, it works.

    Can you tell me, what could be the reason of this error, as I've tried all means myself, but couldn't fix it.

    DG...
    http://www.ditii.com

  53. John (author) :

    Apr 11, 2007 5:31 am

    If you are using UTF-8 then accents should work perfectly fine.

  54. author
    Sascha :

    Apr 13, 2007 10:38 am

    Is it also possible to usw this ajax function/plugin on a normal page/website? :)

  55. John (author) :

    Apr 18, 2007 6:49 am

    Sascha, no, the code is specifically for WordPress.

    DG, are you using the latest version? This should be solved

  56. 411 :

    Apr 21, 2007 12:42 pm

    I have WP 2.0.6.. but I use permalink schema /archives/postnumber, not year/month/date/name-of-post

    What changes do I need to make in order for this to work?

    Thanks!

  57. 411 :

    Apr 21, 2007 12:57 pm

    Correction.. I used the 1.5 version instead of the 2.1 version now, and it "almost works"... except the navigation and the drop-down... the current month works just fine, but cannot go to the previous month nor can I see the drop-down...

    Any suggestions?

  58. Daniel :

    May 3, 2007 11:18 am

    Awesome Plugin. Love it. Using it on my comic site, which is great in place for the monthly archive or recent posts.

    Two quick questions:

    1. Is it possible to set it so the drop down show initially, and then collapses, instead of vice versa?

    2. Can I exclude certain categories from the calendar? I have a 'sideblog' for news etc, and I'd like the calendar to ignore it.

  59. John (author) :

    May 22, 2007 2:03 am

    Daniel, I've added a parameter which allows you to enable full details. If you want to enable this edit the common.php file and set:

    $giraffe_ajax_always = true;

    Ignoring categories will require quite a major rework to the plugin so I'm afraid I've not done that for the moment.

  60. author
    Jon Spooner :

    Jun 13, 2007 12:30 pm

    is there any way of having this calendar work with future events as well?

    So users could navigate around the calendar going fwd and any future events/posts would be highlighted on the calendar and clickable to the page.

  61. author
    Mosey :

    Jun 15, 2007 11:24 pm

    Great plugin! :D I'd also love to have future events support as well!

  62. DG :

    Jul 1, 2007 7:24 am

    John,

    Nice plugin, I've few query's, I hope to hear this time from you:

    1. My Blog is located under su-dir e.g. http://www.xyz.com/blog

    and, I've placed index.php in the root dir of my domain. Now, my blog URI should be as: http://www.xyz.com. Here is the problem, if I change my blog URI(as it should be) to http://www.xyz.com, the calendar stops functioning.

    If I change it back to http://www.xyz.com/blog, it runs.

    Can you advice me, what changes should I make to let the calendar funtion from http://www.xyz.com URI.

    2. With WordPress 2.2 onwards prototype and scriptaculous scritps are bundled with the core files. How do we avoid loading prototype from the ajax calendar? as it's already loaded by WordPress software.

    DG...
    http://www.ditii.com

  63. John (author) :

    Jul 6, 2007 2:32 am

    Mosey & Jon: Future events shouldn't be difficult to add but I'm not entirely sure why you'd want it? Usually future posts are private and not accessible to visitors. Putting support in the plugin for them would effectively be a way for people to see posts before they are ready

    DG: Are there any JavaScript errors? I have this site running in a setup similar to what you describe and experienced no problems. Prototype/scriptaculous are only loaded by WordPress in the administration interface, they are not loaded on the front-end unless your theme chooses to do so.

  64. author
    Serkan :

    Aug 17, 2007 4:50 am

    Hello there,

    Your plugin looks great, but it didn't work with my website (here) and I don't know why.

    I work with Wordpress 2.2.1, so I downloaded the ajax calendar version 2.3.1. I activated the plugin, and I added the tag in my sidebar.

    Yes, a calendar shows up, but that's nothing to do with your ajax calendar. Actually it's the default Wordpress calendar. You can see it on my website.

    I really need help. Thanks a lot for the plugin once again.

    Hope to hear from you soon.

  65. author
    Serkan :

    Aug 17, 2007 5:57 pm

    And also, same thing happened with my friend's wordpress website.

  66. aleph :

    Aug 18, 2007 4:43 pm

    Why would you want future events? To announce an upcoming meeting, conference, or concert. It's an essential calendar feature, and has little or nothing to do with seeing or not seeing blog posts.

  67. John (author) :

    Aug 21, 2007 1:36 am

    Aleph, I'm still not sure I get it. If you need to announce something you can announce it in advance of it actually happening using a normal post. The WordPress calendar is simply a method to show your history of postings, it's not meant to be a system for future scheduling. If a post is set for the future then I suspect that WordPress marks it as unpublished, meaning that normal users will not be able to read it anyway.

    Serkan, did you insert ajax_calendar into your sidebar, and not just get_calendar?

  68. author
    Serkan :

    Aug 22, 2007 7:11 am

    I inserted "ajax_calendar". I'm quite sure :)

  69. John (author) :

    Aug 28, 2007 2:44 am

    Serkan, the AJAX calendar is definitely appearing on your site, but the JavaScript library 'prototype' is not being used, so an error occurs whenever the calendar is used. You will need:

    <script type="text/javascript" src="/pathtowordpress/wp-content/plugins/ajax-calendar/prototype.js"></script>

  70. [BLT]FQX :

    Aug 29, 2007 5:32 am

    Why not build it as a sidebar widget?

  71. author
    Serkan :

    Aug 30, 2007 5:12 am

    John,

    I inserted the code in my section, but nothing's changed.

  72. author
    Serkan :

    Aug 30, 2007 9:22 am

    Actually, something changed. When I press the « button, now it gets me the 404 page. So, we can tell that the ajax code is working well. But;

    - Why does it show me 404 error?
    - Why can't I change anything visually? You can see that the calendar is pretty ugly and I don't know how to change it.

    Thanks very much for your help.

  73. Brian J King :

    Sep 2, 2007 8:36 pm

    Please contact me!!!

    I don't get how to use this when using the Widgets sidebar in Wordpress? It doesn't show up then. . .

  74. John (author) :

    Sep 3, 2007 3:32 am

    Serkan, the 404 occurs because one of the required files is not where it should be. It really sounds like something went wrong with the installation of the plugin. You can change the style of the calendar by using CSS. The new version includes some default style.

    Brian, the plugin was not widget enabled, but it is now.

  75. author
    Alfons :

    Sep 5, 2007 6:18 am

    How can I use the AJAX Calendar without using a widget?

  76. author
    Shantall Erdy :

    Sep 7, 2007 9:34 am

    Is there any widget for your plugin?

    It don't work without with Wordpress 2.2.2. I activated it, but there is still the normal Wordpress calendar. No AJAX. Do I need to place somewhere a special code? I thought it simply replace the standard calendar.

    I need some help please!

  77. author
    Alfons :

    Sep 7, 2007 1:52 pm

    It seems your plugin won't work with the lightbox2 plugin.

  78. author
    Alfons :

    Sep 8, 2007 6:34 pm

    Is there any support for problems with your plugin?

  79. John (author) :

    Sep 9, 2007 9:43 pm

    Alfons, yes there is support, but as the software is developed in my personal time a response is not going to be immediate.

    Shantall, yes there is a widget, and it does work with WP 2.2.2. It won't replace the standard calendar, you have to add the AJAX calendar either through a widget or by inserting the ajax_calendar () function in place of the standard wp_calendar

  80. author
    Shantall Erdy :

    Sep 10, 2007 2:56 am

    Thanks John for your help, but there is definitely NO ajax calendar widget in my wordpress widget menu if I activate your plugin.

    I found this webpage http://www.unfocus.com/projects/2007/08/31/ajax-calendar-widgetized/ And if I use the first code your widget show up, but don't work either.

  81. Brian :

    Sep 11, 2007 12:44 am

    Hi UG - this plugin looks cool but have you noticed that in Firefox (I haven't checked it in any other browsers) when you mouseover the center link between the months at the bottom of the calendar that the margins are squeezed so the insides of the calendar 'move' (are squeezed? I'm not sure how best to describe it) - if you aren't aware of this behavior I can take screenshots to show you the difference between the the look of the calendar normally and then when mousedover - if you are aware, do you have plans to fix this or is it just a quirk of css that can't be helped?

  82. John (author) :

    Sep 15, 2007 6:10 am

    Hi Brain,

    The incorrect hover style is just a side-effect of my site theme and isn't included in the plugin.

  83. Adi R :

    Sep 16, 2007 9:28 pm

    Hi,

    I spent like an hour researching it now. I have 2.2.2 wordpress running on adir1.com and lost of active widgets.

    However, even once the Ajax Calendar plugin is Activated, widget doesn't show up. It appears that nothing calls template_redirect from the administrative console, where under Presentation I am trying to see/add the Ajax calendar.

    I did verify that widget gets properly registered on the Blog itself, but I can't add it via Dashboard if it does not show up there.

    I tried fixing it, but the class redirection that you are using with &$this is not something I am familiar with.

    I think a lot of people are having this issue, as can be seen in the comments.

    Any suggestions or help is greatly appreciated.

  84. John (author) :

    Sep 16, 2007 11:33 pm

    A new version has been released with better widget support.

  85. Adi R :

    Sep 17, 2007 8:43 pm

    Works now!
    Many thanks -- now I just need to figure out how to fix the colors.

  86. p m :

    Sep 18, 2007 12:28 am

    hi,

    this is a great plugin, but it doesn't work with the lightbox plugin. with lightbox activated, the calendar loads normally but the function of switching months doesn't work: clicking august reloads the page to the august archive but the calendar still says september.

    with lightbox turned off, the calendar works perfectly.

    lightbox calls prototype and scriptalicious; ajax-calendar uses mootools.js .

    is there a way to reconcile the two? i'm not going to give up lightbox.

    sorry, i don't know much of anything about javascript...

  87. author
    Alfons :

    Sep 18, 2007 6:49 am

    Now finally the widget also appears at my Widget-Dashboard. But as "p m" already wrote it don't work together with the popular lightbox plugin!!

  88. John (author) :

    Sep 18, 2007 9:07 pm

    Alfons, p.m, I've changed the plugin to use a different AJAX library that doesnt clash with prototype. It's also a lot smaller so it loads faster!

  89. author
    Alfons :

    Sep 19, 2007 12:24 am

    John, Thank you very much! After all your plugin works great!

  90. p m :

    Sep 20, 2007 3:50 pm

    thanks so much for updating! works perfectly now -- big improvement over the usual wp get_calendar.

  91. Raoul C. Brian :

    Oct 2, 2007 11:35 pm

    Thanks for this plugin...
    Is it better to apply filters to the titles? (in order, for example, for jLanguage to work with it)
    In that case, it's an easy change:

    calendar.php line 244:
    $text .= "<li><a href=\"".get_permalink ($pres->ID)."\">".$title = apply_filters('wp_title', $pres->post_title, $sep)."</a></li>";

    Salud!

  92. Jhack :

    Oct 7, 2007 11:43 am

    Can you replace the characters "&" with the entity "&amp;" in order to create XHTML compliant code?

  93. John (author) :

    Oct 7, 2007 9:44 pm

    Jhack, which characters? As far as I can tell, the plugin should already be XHTML compliant.

    Raoul, a good idea and I've included it in the latest version (although I went with 'the_title', as 'wp_title' is for the page title, not the post title)

  94. Jhack :

    Oct 8, 2007 4:54 am

    The previous version (2.4.3) had that problem, but in the latest one (2.4.4) the problem has been fixed. When I wrote the comment the latest version hasn't been released yet :P.

  95. Kalian :

    Oct 12, 2007 10:26 am

    Hi John

    I'm struggling to get this plugin working with WP 2.1.3, using version 2.4.4 of the ajax-calendar plugin, on an Ubuntu Feisty box running Apache 2. I can activate the plugin on the Plugins page, and I've renamed the directory in wp-content/plugins from ajax-calendar2 to ajax-calendar. However, it doesn't appear in Presentation->Widgets (I'm using the Widgets plugin for 2.1). Is it a WP 2.2+ only plugin if I want to use it as a widget?

    Many thanks.

  96. Kalian :

    Oct 12, 2007 12:04 pm

    OK, I've managed to get the ajax calender to appear as a widget, but I had to create a wrapper widget to do it:

    <?php
    /*
    Plugin Name: AJAX Calendar Widget
    Description: Calls the ajax_calendar() function
    */

    function widget_ajax_calendar_init() {

    if (!function_exists('register_sidebar_widget'))
    return;

    function widget_ajax_calendar($args) {
    extract($args);

    ?>
    <?php echo $before_widget; ?>
    <?php echo $before_title . "" . $after_title; ?>
    <?php ajax_calendar(); ?>
    <?php echo $after_widget; ?>
    <?php
    }

    register_sidebar_widget(array('AJAX Calendar','widgets'), 'widget_ajax_calendar');

    }

    add_action('widgets_init','widget_ajax_calendar_init');

    ?>

    However, although the individual date links work, and the link to expand the widget to include the article's in the current month also works, the link to go back one month doesn't work! Almost there I guess!

  97. Kalian :

    Oct 12, 2007 3:10 pm

    <sigh&gt>

    I've taken the plunge and upgraded to WP 2.3 - now I no longer need the widget wrapper, and obviously I don't need the widgets plugin. The AJAX Calendar appears in my sidebar config, however, as before, when I click on the link for viewing September, nothing appears to happen - clicking on the link to show a list of the current month's posts still works fine.

    Am I missing something obvious?

  98. Jhack :

    Oct 14, 2007 7:02 pm

    I've the same problem as Kalian.

  99. John (author) :

    Oct 15, 2007 12:58 am

    I've updated to the plugin so that the widget works with WP 2.1, as well as 2.2-2.3

  100. DG :

    Oct 16, 2007 6:25 pm

    Hi John,

    I'm still using older version of Ajax Calendar on blog v2.2.3. Recently, on my test machine, which has WordPress 2.3, I downloaded and uploaded latest version and it stopped functioning, and the click on button takes to archive page.

    There after, I checked my page source, here's what's happening:

    1. When I activate plugin, by simply extracting to plugins folder, this is what come in the header"
    /wp3wp-content/plugins/ajax-calendar/js/microajax.js
    microAjax ('http://127.0.0.1/wp3wp-content/plugins/ajax-calendar/ajax.php?full')

    Note: There's missing forward slash in between wp3 & wp-content

    2. Then, I edited Plugins.php and added a slash . '/' . $url

    After the above edit, the slash problem is over, but still calendar isn't functioning, and click on button doesn't do anything. Even they don't goes to archive page, as before editing.

    Can you guess, what could be the problem of this non-functioning?

  101. John (author) :

    Oct 23, 2007 9:07 pm

    DG, are you using Windows? Can you tell me what happens if you add the following lines where you made the edit:

    echo $this->plugin_base;
    echo realpath (ABSPATH);

  102. author
    Animesh :

    Oct 25, 2007 4:06 am

    Hey, could you please point out the current date in the calender too? It will save the place of a date time line. Thanx and a very good plugin. I really liked it and am using in one of my projects.

  103. John (author) :

    Oct 25, 2007 9:49 pm

    What do you mean by point out the current date?

  104. author
    logan :

    Oct 26, 2007 8:48 am

    I just wanna say thanks, this is a greate plugin.

  105. Kalian :

    Oct 30, 2007 4:19 pm

    Hi John

    Just wanted to let you know that I've just updated to v2.4.5, on WP 2.3.1, and I can now access the previous months without problems (I'd previously reported that the link to show the previous month wasn't functioning for me).

    Many thanks!

    Kalian

  106. Leland :

    Nov 8, 2007 3:34 pm

    I'm struggling to get this calendar to work. I think it should be installed correctly. Can you take a look to see if I'm crazy.

  107. Tom Reider :

    Nov 14, 2007 6:21 pm

    This calendar is a great idea, but I find it not very user friendly - yet. If you click back to a former month and choose a date from the calendar to see the entry for that day, two things happen that make the calendar painful to use.

    First when the entry loads, the calendar reverts back to the current month. So if the user has scrolled back 2 or 3 months to read those entries, they have to start all over again clicking the calendar 2 or 3 months back to see another entry for that time period. Second, the Next and Previous links disappear, so there is no way to move back or forth from the selected entry. To me that makes this calendar useless.

  108. Raoul C. Brian :

    Nov 20, 2007 2:33 pm

    Nice to hear of the new version. Salud!

  109. John (author) :

    Nov 27, 2007 1:01 am

    What's the problem Leland?

  110. Hige :

    Dec 1, 2007 10:50 pm