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 (page 1 of 17)

  1. John (author) :

    Jan 27, 2006 1:36 am

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

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

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

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

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

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

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

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

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

  10. 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");

Leave a comment


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

Home | Software | Terms & Conditions | Sitemap | John Godley © 2008
Close
E-mail It