Drupal 7

Drupal 7 Fix: SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'.

June 05, 2020
I was migrating Drupal 7 website to a newer infrastructure (PHP 7.4) and during the migration process when tried to connect to the MySQL database  I faced following error - SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'. Here...

How To No-Follow External Links, But Still Do-Follow Internal Links - Drupal 7

August 18, 2014
In this Drupal development tutorial - I will explain how you can nofollow external links, but still dofollow internal links on your Drupal website. For a starter - let me explain the reasons when and why you should need such an option.You might already heard of Google Panda's and Google Penguin's right?Those two are...

How to add Pin It button to Drupal 7

May 03, 2014
In this Drupal tutorial I will show you how to add Pinterest Pin It Button to Drupal 7 site using views and html.tpl.php file. I like it keep it simple, and I have created a separate view for all social share plugins (Facebook, Twitter, G+ and Pinterest). Each of the social sites came with his own JavaScript...

Adding CAPTCHA to Drupal 7 Webform

April 29, 2014
In this tutorial I will show you how to add CAPTCHA module to Drupal 7 webform. Why? I was sick and tired to manually block spammers IP address.  In order to work with this tutorial, you will have to install CAPTCHA and Webform modules. I will assume, you have already configured your webform, now lets add...

Inject Block In Drupal 7 Node With Block Inject module

April 26, 2014
I was looking for options to inject Google Adsense ads into my Drupal blog. There are few modules and tactics available. But today I found an excellent module - Block Inject. The Block Inject module allows for regions to be created and injected in the middle of chosen node types. You can create any number of...

Add Menu Classes In Drupal 7

April 10, 2014
In this Drupal tutorial I'll show how to add menu classes to your Drupal 7 website using template.php file. Original of this tutorial has been found here. Add this function to your template.php file: <?php /** * theme_menu_link() */ function THEMENAME_menu_link(array $variables) { //add...

Add Viewport in the <head> in Drupal 7

April 10, 2014
In this Drupal Tutorial I will show how to add a new HTML in Drupal 7 head section. I'm using responsive design to enable my blog work pretty ok on mobile devices, but yesterday looking through Google PageSpeed Insights suggestions I found that there is no viewport defined, so it might not render CSS as I...

Drupal 8 Release

March 24, 2014
Update: The first official Drupal 8 release was launched on November 19, 2015 When will Drupal 8 be ready? We are working hard on Drupal 8 and making progress every day. The first beta release was announced at Drupalcon Amsterdam in October 2014. Additional beta releases will follow, and then release...