Bookings is a calendar and formular based plugin writen by Ricardo Serpell for CMSimple and meant to allow visitors to appoint or “book” a resource offered by the site.
It aims to provide all the functionality needed to adapt it to as many different uses and situations as posible, from room booking in public areas to on-line demo appointments. It can be used to book meetings or to offer scheduled on-site services. What ever you think of. As a work in progress sugestions and complaints are both welcome at the cmsimple forum.
Bookings is a rather ambitious plugin that already implements the following features:
#cmsimple $output.=rs_bookings('show=month, week=auto+1'); #
The plugin is called from within the content as in this example:
#cmsimple $output.=rs_bookings('show=month, day=auto+2'); #
show=month
Show is a required option and indicates how to render the calendar (by day, week or month). Currently the avaliable views are full month or single week (show=week
), other views should be implemented soon.
month=value
(default value is auto)
Value can be any number, preferable between 1 and 12 for predictable results, or the month name (in english). From version 1.0 beta 5 you can use also the auto value. Whit the auto option the plugin selects the current month based on the php date()
function. You can use the value auto+n or auto-n to indicate a relative month n months from or before current (example month=auto+1
shows the next month).
week=value
(default value is auto)
Value can be any number, preferable between 1 and 52 for predictable results. From version 1.0 beta 5 you can use the auto week value. With the auto option the plugin selects the month to show based on the current date. You can use the value auto+n or auto-n to indicate a relative week n weeks from or before current (example week=auto+2
shows the month to be in two weeks). IMPORTANT: avoid using month and week options at the same time with auto+-n values since results may be difficult to interpret
day=value
(default value is auto)
From version 1.0 beta 5 you can use the auto day value. With the auto option the plugin selects the month to show based on the current day number. You can use the value auto+n or auto-n to indicate a relative day n days after or before current day (example day=day+10
shows the month to be in 10 days). IMPORTANT: avoid using month and week and day options at the same time with auto+-n values since results may be difficult to interpret. ALSO: value for day option can be any number, preferable between 1 and 365 for predictable results.
It requieres any of the avaliable pluginloaders to include itself into CMSimple and work properly. Bookings is currently in its version 1.0 beta 6, and is provided as is.
From version 1.0 beta 4 Bookings plugin uses a single internal array for all it’s variables and configuration values called: $rs_bookings
. This was done to prevent clashes with other plugins. All plugins I write from now on will use this same nomeclature ($rs_pluginname).
IMPORTANT: as of version 1.0 beta 6 bookings has not been tested with Pluginloader 3. Pluginloader 2 is supported as well as the included pluginloader in CMSimple version 3.
After download of bookings.zip
file, unzip it inside CMSimple‘s “plugins” folder. A new folder named bookings
should now be visible inside “plugins” folder. Inside this folder there should be a file named index.php
. If you have already installed any of the pluginloaders then that’s it, you may start calling the plugin from your content area as described in section Usage.
Configuration files are edited through the admin area of the plugin (whithin admin area of CMSimple).
There is no provision to edit the relevant CSS files yet. The relevant CSS files are included in the installation package to allow the user to edit them.
Important Note: All relevant plugin folder and files should have full read/write permissions (0777) for bookings to work propperly.
To download the latest version of the Bookings Plugin please visit:
Bookings plugin version 1.0 beta 5
back to plugins
Discussion