Mar
31

Rental Property Availability

WordPress   ,

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:

Multi  Month Calendar showing availability and booked dates

Multi Month Calendar showing availability and booked dates

More screenshots available in zip file.

Download at WordPress

Be Sociable, Share!

Related posts:

  1. 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...
  2. Subscribe2 Admin – manage subscribers I had remarked that I thought the Subscribe 2 admin subscriber could do with a few tweaks.  I was asked...
  3. Subscribe2 Widget Form – an alternate The wordpress subscribe 2 plugin is great – however the form in the widget bothers me. I have raised this ...
Categories : WordPress

31 Comments

1
Daniele Carotenuto
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!
;)

2

looks good! Whereabouts can I change the number of properties?

3

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.

4

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.

5

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.

6

Hi kevin,
I have (I think) fixed their file and folder refs fro basic functionality. See new version

7

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.

8

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.

9

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.

10

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!

11

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.

12

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’

13

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.

14

brilliant, those fixes have kicked in – will let you know how it goes. Thanks!

15

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

16

Ah, nevermind, the plugin requires php5 I’m running php4 – moderate the last comment out if you wish :-)

17

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

18

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

19

Hi Michael – see Jen’s comment above.

20

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

21

Thanks – I fixed it easily with adding a php 5 handler to my .htaccess file – my host will run both at the same time.

22

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)

23

Unless I misunderstand you, it does run on 2.7. Mine is on 2.7.1

24

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

25

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?

26

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

27

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

28

Don’t you love people who don’t read the page they are commenting on before commenting on it?

29

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.

30

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

31

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)

WP Questions

Preferred Web Host

Web hosting by ICDSoft Icdsoft - Why? They are good and reasonable, used them since 2001. Read more