Results 1 to 2 of 2

Thread: Ajax Availability Calendar

  1. #1
    Join Date
    Mar 2004
    Age
    98
    Posts
    207

    Default Ajax Availability Calendar & Availability Search

    *** Version 3 is available as download from post below - released with better customisation instructions, but mor importantly now uses new addon manager functions *******

    Here is an ajax based availability calendar for rental sites. Calendar can be modified by the listing owner or by admin. Hence useful for rental by owner sites.
    I have added an availability search function with a ref search that works, based on the quicksearch addon.
    There are several threads in the forum about modifying quicksearch to suit the desired search fields of any site.

    See the search on http://www.betterlets.com/ as an example.

    Also modified the addon so that the calendar display uses css and hence loads much faster.

    If you installed one of the previous versions, you can just upload over it.

    Please read the readme.txt file for configuration options etc.

    Enjoy,
    Rob
    Last edited by robsouthern; 09-18-2009 at 01:44 AM. Reason: Edited to for version 3 release with addon manager functions

  2. #2
    Join Date
    Mar 2004
    Age
    98
    Posts
    207

    Default Ajax Availabilty Calendar CSS Version 3

    Addon updated 11 September to include Addon Manager functions
    Also includes more detailed instructions on customisation.

    Please note updating will not change your stored property availability data. But if you have customised the css files. you will need to reupload your customised css files after uploading the new version of the addon.


    Template Tags
    CALENDAR PLUGIN : {addon_bookingcal_link}{addon_bookingcal_search} {addon_bookingcal_ortypesearch} -
    Open Realty Bookingcal Addon Version 3

    This addon is an adaptation of the calendar script written by Chris Bolson.

    *********** If you like it remember Chris who wrote the base calendar code ****************** /***** Disclaimer *****/ Free to use, adapt and change. Please retain all credits. The script is provided as is and no responsibility is taken for indidents caused by it's use. Any (paypal) donations will be greatfully accepted at chris@cbolsonc.com, thanks ************************************************** **********************************************
    If not many Open Realty users remember him, then future versions will become paying (about 20euros) because he deserves/needs some recompense

    There are three tags available
    {addon_bookingcal_link} Availability calendar and update function on listing page
    {addon_bookingcal_search} Quicksearch function with availability search integrated.
    {addon_bookingcal_ortypesearch} Availability search to incorporate in Open Realty standard search page.
    Instructions

    1. {addon_bookingcal_link}

    Place addon link on listing detail template. This will produce a 12 month 3 column calendar on the listing page starting with the current month.

    The no of cols can be altered at lines370 - 373 (look for //Select no of columns to show) of addon.inc.php

    The no of months displayed by default can be changed at lines 322 - 324 of addon.inc.php (look for // define number months to show), change the 12 to whatever

    There is a css file in addons/bookingcal/css that controls the style of the calendar shown on the listing page .

    2.{addon_bookingcal_search}

    This is a date search function based on the quicksearch addon. There are many threads in the Open Realty forum that explain how to configure this and it needs to be configured to match your database fields before using the .{addon_bookingcal_search} function. It is set up to be dropped into a tavle but this can be modified in the addon.inc.php file.

    It is set to class, state, city, price min, price, reference id as default

    The availability search shows all properties with full availability for a given period, and by default includes booked half days as available.
    There is a switch at line 564 of addon.inc.php(look for $ampm='1'; ////APM 1 sets Search to ignore half days booked, 0 it includes half days as non available) Change it if neccesary default is half days ignored for availability searches.

    The datepicker boxes look is controlled by addons/bookingcal/calendar.css

    3. {addon_bookingcal_ortypesearch}

    If you prefer to use the full standard OR search function, you can add an availability search by changing the following lines in your search template


    At top of search
    <form action="index.php" method="get"> to
    <form action="index.php?action=addon_bookingcal_searchre sults" method="get">
    At bottom of search
    <input type="hidden" name="action" value="searchresults" />
    to
    <input type="hidden" name="action" value="addon_bookingcal_searchresults" />
    and putting {addon_bookingcal_ortypesearch} inside the form. This generates two input boxes with datepicker calendars + text as shown from line 407 and forward.

    Availability

    This limits results to properties with full availability over the chosen period


    There is a switch at line 564 of addon.inc.php(look for $ampm='1'; ////APM 1 sets Search to ignore half days booked, 0 it includes half days as non available)
    Change it if neccesary default is half days ignored for availability searches.

    NB
    addon_bookingcal_searchresults is the full or search function + code to deal with availability. + searchRef added to give a listing reference search.

    Usage

    The availability calendar of each listing can be modified/updated on the public side by the listing agent who listed it or by anyone with admin privs. Obviously they have to be logged in..

    left click ...................marks a date as booked
    Ctrl + left click............. Morning booked
    Shift + left click............. Afternoon/evening/night booked
    A left click in a date that is booked clears the date


    Best, Rob Thorne rob@southernfrance.com


    If you have any problems there is a thread here http://support.open-realty.org/showthread.php?t=22016
    Attached Files Attached Files
    Last edited by robsouthern; 09-18-2009 at 01:48 AM. Reason: Addon updated to work with new Addon Manager functions

Similar Threads

  1. Availability Calendar?
    By vrwired in forum Addon help, ideas and discussion (CLOSED)
    Replies: 2
    Last Post: 07-09-2008, 02:32 AM
  2. Calendar/Availability
    By Burtie in forum Addon help, ideas and discussion (CLOSED)
    Replies: 3
    Last Post: 06-02-2008, 11:25 AM
  3. Availability Calendar
    By Burtie in forum Addon help, ideas and discussion (CLOSED)
    Replies: 3
    Last Post: 10-18-2006, 10:45 AM
  4. Availability calendar
    By Shile in forum Addon help, ideas and discussion (CLOSED)
    Replies: 16
    Last Post: 01-17-2006, 05:40 PM
  5. Rentals availability Calendar
    By Benjamin in forum Feature Request (CLOSED)
    Replies: 5
    Last Post: 04-18-2005, 05:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •