Minor release : V1.8.1 is out

Dear plugin users,

This new release brings you 2 nice additions :

  1. Czech is finally available thanks to Martin Dvořák.
  2. I made it easier to create a searchbox that points to a SINGLE hotel. As I figured this would still require some longer explanations, I also posted this simple walkthrough to document a bit better. This isn’t a totally new capability even though I added a clearer menu option pulling some tweaks in the booking.com code.

Greg

Restrict results to a single hotel

Dear plugin user,

A common use case that is repeteadly brought to me is how to create a search box returning results for a single / unique hotel. Typically you would have a post about how great the place is, or simply have a very neat UI and you want to integrate more seamlessly. No problem, this plugin got you covered.

First step : Find the hotel ID

Go to the booking.com extranet (https://admin.booking.com/partner/?lang=en) and then click on (1) “Implementation”, (2) “URL Constructor”, select (3) your country & city, (4) click on “hotels” and “show”. Finally pick the hotel ID in the list that shows up.how to find your booking.com hotel IDFor the sake of the example we’ll say the Hotel ID I want is “176270”.

Second step : Creating a searchbox

I’d rather assume you’re already familiar with the UI of the plugin but as this is a walkthrough let’s go step by step.

How to setup your affiliate searchbox

 

First, go to the left panel and (1) click on “Add new”, then (2) enter a title for your searchbox, (3) your Booking.com affiliate ID, (4) the hotel ID we just found, (5) restrict results to SINGLE hotel and, finally, I recommend you (6) hide the destination field in your searchbox. The last one is purely a cosmetic recommendation, do what you’re more comfortable with.

Last step : add it to your site

Final step, you’ll need to add this searchbox to your site. We’ll take the example of a blog post but the same methodology would apply to widgets or template areas.

Go to new post, click on that blue “B” icon next to the “Add media” button and select the box you want from the dropdown. If, for some reason, you’d rather work with the shortcode, you can simply copy / paste that code from the plugin menu on your site. Simple really.

Happy posts !

Greg

 

Minor release : V1.8 is out

Dear plugin users,

Only a couple of weeks after the last update, please welcome this “maintenance” release.

Performance and overall WP best practices are always high on my list. The legacy searchbox storage function was doing a little too much for its purpose. Instead of creating entries in your “wp_postmeta” table ONLY in the context of a new searchbox, it created un-necessary entries for every post you created. Definitely not the intended purpose.

While this isn’t something I’m proud of, let’s be clear, the extra volume of information (or the weight in your WP database) is absolutely marginal and in no case this would have had an impact on your site speed or table integrity.

After a proper backup of your database (as you should), feel free to try the most popular WP database clean up plugins and you’ll notice very little difference before / after (shaved 4Kb off on this site).

Again, sincere apologies for not having it right on the first try. This flaw is fixed and you can resume creating searchboxes !

Greg

NB : Thanks to Pawel for his feedback !

Minor release : V1.7 is out

Ho Ho Ho

As Santa shares love in happiness, I had a few spare hours to make a plugin update. The changes are literally based on your comments for the last few months so keep them coming !

Changelog

  • Updated jQuery library versions
    Now pointing to Google’s CDN for version 1.11.2 instead of 1.10.
  • Default Searchbox title
    After a little bit of rootcausing, I realized a number of users got confused because their searchbox all had the same name : “(no title)”… And in fairness, you don’t really HAVE to add one to get the plugin to do its thing. So I’ve changed the default title text to something a bit more helpful. Of course you can still edit the title, and of course it only applies to this custom type.Also, that also led me to realize there are no mandatory fields in wordpress ! Crazy !
  • Calendar CSS Isolation aka “Careful mode”
    With the increasing use of jQuery UI in WP themes, more and more plugin users have been complaining about the way the plugin blends into their theme. I’ve added a theme option that will better respect your theme AND the native jQueryUI look & feel.
  • Bug fixes
    • jQuery calendar url was sometime acting up when using WPML. This is now fixed.
    • Insert menu is no longer limited to the 5 latest searchboxes. It’ll go down to the last 25. That should be more than enough for the vast majority of users.
    • Edited out some of the CSS. Will be depricated in the future.
    • Readjusted the code to align the calendar icons.

See what the demo looks like now on this site.

And that’s it for now. What will come in the future is a more ‘WYSIWYG’ way of building the searchbox. You’ll choose your template (horizontal, vertical, mixed) for each searchbox. That’ll really help you doing nicer integrations and make my life easier too ! Also, this’ll allow for a proper mobile (“touch”) support.

Thanks to Agus, Nicolas, bikingviking and Constantinos for their help beta-testing this release.

If you like the update, feel free to post a review on wordpress.org !

Happy 2015!
Greg

Testers needed : V1.7 is about to be released

Ho Ho Ho

As Santa shares love in happiness, I had a few spare hours to make another plugin update. The changes are literally based on your comments for the last few months. Keep them coming !

Changelog

  • Updated jQuery library versions
    Now pointing to Google’s CDN for version 1.11.2 instead of 1.10.
  • Default Searchbox title
    After a little bit of rootcausing, I realized a number of users got confused because their searchbox all had the same name : “(no title)”… And in fairness, you don’t really HAVE to add one to get the plugin to do its thing. So I’ve changed the default title text to something a bit more helpful. Of course you can still edit the title, and of course it only applies to this custom type.Also, that also led me to realize there are no mandatory fields in wordpress ! Crazy !
  • Calendar CSS Isolation
    With the increasing use of jQuery UI in WP themes, more and more plugin users have been complaining about the way the plugin blends into their theme. I’ve added a “Forced compatibility mode” that will better respect your theme AND the native jQueryUI look & feel.
  • Bug fixes
    • jQuery calendar url was sometime acting up when using WPML. This is now fixed.
    • Insert menu is no longer limited to the 5 latest searchboxes. It’ll go down to the last 25. That should be more than enough for the vast majority of users.
    • Edited out some of the CSS. Will be depricated in the future.
    • Readjusted the code to align the calendar icons.

See what the demo looks like now on this site.

If you want to test this future release, have 30 mins in front of you and know what you’re doing, please get the ZIP file here and send me your feedback !

And that’s it for now. What will come in the future is a more ‘WYSIWYG’ way of building the searchbox. You’ll choose your template (horizontal, vertical, mixed) for each searchbox. That’ll really help you doing nicer integrations and make my life easier too ! Also, this’ll allow for a proper mobile (“touch”) support.

I’m starting to look at it now and will post an update later on.

Thanks to Agus & Nicolas for their help beta-testing this release.

Happy holidays
Greg