A site that I help wanted to display property availability. The clearskys availablity plugin seemed the best but was not quite working on my local wp 2.7 installation with wordpress relocated and separate content directory.
I got a bit carried away fixing it up a bit. Changes made:
- fixed to allow for wordpress in own directory, and relocated content directory
- fix alternate logic of listing so shades will alternate
- moved admin links to one section in admin menu under Bookings for ease of user
- allowed for additional properties through rudimentary include file – hopefully clearskys will provide a version soon.
- changed to shortcode usage to upgrade and to avoid problems with validation (else wordpress insert a <p> before and </p> after – this breaks the validation.
- developed a css file for the page calendar – for some reason their widget code and page code is different and delivers different css styling – add this to your standard stylesheet.
Disclaimers
Please note this is only intended as a temporary solution until clearsksy release an update which hopefully will cover all these points and more.
Live
You can see it in work at http://bantrybayflat.co.za/. At time of posting, there were no bookings to show, but it should look like this:
More screenshots available in zip file.
Related posts:
- Holiday rental in Bantry bay The manager of11 Jocyn court wanted a simple holiday rental website for this self catering two bedroomed apartment in the...
- Subscribe2 Admin – manage subscribers I had remarked that I thought the Subscribe 2 admin subscriber could do with a few tweaks. I was asked...
- Subscribe2 Widget Form – an alternate The wordpress subscribe 2 plugin is great – however the form in the widget bothers me. I have raised this ...





31 Comments
April 1st, 2009 at 7:03 am
You saved my life!!!!
I’m publishing your modified clearsky here http://www.agriturismosaltara.it/wp/lang/en/freeroom
Thank you!
April 2nd, 2009 at 1:50 am
looks good! Whereabouts can I change the number of properties?
April 2nd, 2009 at 3:01 am
A couple of early things ive picked up.
When you delete a booking, the screen goes blank.
When you try to edit a booking you get the error message:
Cannot load amr-clearskys-bookings/clearskys-bookings.php.
April 2nd, 2009 at 9:00 am
I see that this works on your site, but when I install and test on my 2.7.1 WP, I get errors. It looks like the directory structure may be wrong? Also, when I book the css for the calendars in admin is not showing up. I changed the plug-in directory to amr-clearskys-bookings and it still is not fully functional. thanks for this.
April 2nd, 2009 at 9:20 am
Dear Jimmy,
just add another line in the amr_props.php (bit rudimentary but it works).
Dear Kevin Will look at the delete problem and css – probably related due to the fixes allowing for relocated wordpress.
April 2nd, 2009 at 11:00 am
Hi kevin,
I have (I think) fixed their file and folder refs fro basic functionality. See new version
April 2nd, 2009 at 12:50 pm
I tried 1.1b and still get this when I add a new booking. Cannot load amr-clearskys-bookings/clearskys-bookings.php The Booking management page also doesn’t look like the screenshot you have? It looks like the images are not found. Also, I do see the same thing that Jimmy reported. When you try to delete a booking it just goes to a blank screen. I will see if I can try on another WP installation too, I can see that the deactivation doesn’t remove the tables.
April 2nd, 2009 at 1:16 pm
After I delete the entire plugin and tables manually, i reinstalled the plugin and was able to create a booking, still a few blank pages like noted previously. I can see the booking dates in the page now, but the sidebar didn’t show anything in the calendar. I noticed that the class in CSS assigned here was confirmed vs. booked in the page. so I added “.cs_availabilitycalendar tbody td.confirmed
{
background-color:#006AD5;
}” to the widget CSS and it then worked. Hope this helps.
April 2nd, 2009 at 1:27 pm
anna-marie sorry for so many posts… I was able to fix many issues by editing clearsky-bookings.php. In many places the php file references amr-clearskys-booking instead of amr-clearskys-availability-modification-for-27. Maybe the file directory changed in this version? Maybe easiest to change defines to point to correct directory and then used the defined name elsewhere?
Hope this helps.
April 2nd, 2009 at 1:31 pm
Hah! now I see – it’s the wordpress.org setup. I wanted to be clear that I was redoing the whole clearskys plugin and hence the lengthy title. Will fix to pickup the plugin folder dynamically!
April 2nd, 2009 at 2:37 pm
Okay all,
widget path references fixed too. It should now dynamically pickup the plugin name (I renamed and it worked) to avoid these issues.
Also picked the widget references I had missed before.
Please note that any ical rss or css problems are clearskys and any queries should be directed to them.
And yes for some reason the widget css hooks are different to the page css, why? I don’t know. The widget css is actually in the widget options.
Note also renamed amr_props.php to a sample (ala wp-config) to avoid overwriting any one’s setup on upgrade. If it does not find the file, will default to 1 property.
April 3rd, 2009 at 4:13 am
hullo again
have ou uploaded a new version since ur comment number 10?
amr_props – do i have to move that somewhere for it to function? ive renamed the sample file but it appears to have no effect on the number of properties.
selecting ‘edit’ brings up the Cannot load amr-clearskys-bookings/clearskys-bookings.php error. as does ‘view bookings’
April 3rd, 2009 at 12:45 pm
Current version is now 1.1d
amr_props problem now fixed. Should pick up the amr_props.php file if it exists.
Edit and delete should also pick up the files now.
April 3rd, 2009 at 5:36 pm
brilliant, those fixes have kicked in – will let you know how it goes. Thanks!
April 13th, 2009 at 10:13 pm
I tried to activate but got this error: Fatal error: Call to undefined function: strripos() in /home/content/d/r/e/dreamwhisperer/html/wallingford/wp-content/plugins/amr-clearskys-availability-modification-for-27/clearskys-bookings.php on line 28
April 13th, 2009 at 10:27 pm
Ah, nevermind, the plugin requires php5 I’m running php4 – moderate the last comment out if you wish
April 14th, 2009 at 5:44 am
Hi Anna-Marie,
Thanks for all your work on this plugin. I ran it on my localhost but when uploaded I get the following error;
“Fatal error: Call to undefined function: strripos() in /usr/www/users/atlantxn/wp-content/plugins/amr-clearskys-availability-modification-for-27/clearskys-bookings.php on line 28″
Could you please assist as I’m not clued up to figure this out.
Thank You
Michael
April 14th, 2009 at 8:47 pm
Hi Anna-Marie,
I neglected to inform you in my previous comment, that I got the error when attempting to activate the plugin.
Thank You
Michael
April 16th, 2009 at 12:36 am
Hi Michael – see Jen’s comment above.
April 17th, 2009 at 10:05 am
@anna-marie: Thanks for putting this together. With the amount of development work on my shoulders, unfortunately the old (existing) plugins kept getting pushed further and further down my todo list.
@Michael and @Jen:
Replace the strripos on line 28 with: strrpos for PHP4 compatibility.
April 17th, 2009 at 12:11 pm
Thanks – I fixed it easily with adding a php 5 handler to my .htaccess file – my host will run both at the same time.
April 21st, 2009 at 9:46 pm
Any chance to see the reservation pluggin for wordpress 2.7 too (I can help if i get the source of the previous version that disepear from internet)
April 22nd, 2009 at 12:12 am
Unless I misunderstand you, it does run on 2.7. Mine is on 2.7.1
April 22nd, 2009 at 9:07 pm
Neuneu, i have not had a go at that plugin, and am flat out at the moment, so no, no chance..
Jen – there is actually another plugin that takes bookings online, which is I think what he is getting at
April 23rd, 2009 at 7:38 pm
Excellent Plug-in. Just one thing I would like to fix. Right now the calendar date reads unavailable when the last customer checks out at 11:00am, but we would like to make it available on the same day for the next customer when they arrive after 2:00pm. Is there a way to change the setting?
April 23rd, 2009 at 7:42 pm
Hi there – try the original designers “clear skys” – I did not tinker with that portion. Unfortunately I am flat out with other work right now, can’t even look at it ….
July 8th, 2009 at 12:27 am
Please, can anyone post the code of this plugin????????
The developer has removed all trace online
and its the only booking plugin avaliable for WP!!!!
angurio (at) gmail (point) com
thanks in advance..
July 8th, 2009 at 7:23 am
Don’t you love people who don’t read the page they are commenting on before commenting on it?
July 9th, 2009 at 7:14 am
fair enough, i didnt read it. id just been looking all day… sorry!
maybe someone can answer this:
i added the css, and have tried several themes, but none of the css shows up in the final calendar. did i miss something?
a.
May 18th, 2010 at 2:36 pm
Hi,
I test this plugin on WP 2.9.2 and it seems to work. But I wonder what i have to modify to obtain the months in french. Is it possible for you to help me ?
Thanx
May 19th, 2010 at 12:01 am
Hi I had a quick look at the code again and it seems that the original authors did not allow for it to translated in the usual wordpres style, so it would require
a plugin writer to work through it and convert any visible text to the appropriate wordpress __() or _e() calls
a english/french translator to provide the translations (assuming one translates more than just the months! Needs to know how to work with the .pot files, to produce a french .po and .mo file. See http://codex.wordpress.org/Translating_WordPress for general info
re than just the months)