Colorbox slideshow with views from multiple images field by first image

This article about colorbox and views: how to display first thumb styled image of the multiple image field and after click on it display all images in colorbox.

First of all install views, libraries, colorbox и colorbox plugin.

$ drush en views libraries colorbox -y

Download colorbox plugin and unpack it in libraries folder.

https://github.com/jackmoore/colorbox/archive/1.x.zip

Views filter by int value in float field

Imagine, that you have float field with 2 symbols after dot.
At the views page with filter you need to filter values by all range of module of user's float input.
Ex: user input 2.45, we filter all values  X>=2 AND X<(2+1)

With the standard accessories of views you can filter with two filter “from” and “to”. But in FO we have only one field.
To solve this problem we can use hook_views_query_alter.

We already have a view. To make our hook work, we must set the unique tag to the view, to check it in out hook. mymodule_query in example code.

Update Drupal as fast as possible

Hey there, you happy users of free CMS/CMF Drupal! Be warned and don't forget to update your drupal sites!

Every day the the tons of net-spiders are searching holes in websites with help of the latest reports of vulnerability in cms.

They can exploit yours site in seconds if they found a hole in your website. And it's all about you forget or don't know how to update your cms. You've got a great shared hosting if it makes backups everyday. And a good news if there is no worm in backups.