How to Fix the Porto Chrome Scrolling Issue

Solution 1: use the patch file

If you know how to use patch files, place this file in your base Porto theme folder, then run the following command from the same location:

patch -p1 < fix-chrome-mouse-wheel-scroll-issue.patch

Solution 2: edit /sites/all/themes/porto/vendor/common/common.js file directly

Above the line

function wheel(event) {

(currently line 1258), add the following code:

Life after Death: Drupal 6 End of Life and What it Means to You

If you haven't heard by now, Drupal core version 6.X has reached the end of life status as of February 24, 2016. Here we'll provide information on what this means to your Drupal 6 site, and how to move forward.

What Exactly Does End of Life Mean to Me?

The end of life status has several implications, but the most important is, the Drupal security team will discontinue support and security advisories for Drupal 6 core. In addition, you should consider the following when deciding how to move forward:

How to lock a Drupal module or theme from being upgraded with Drush

If you use Drush for Drupal code updates, and find that the latest version of a module or theme is causing issues on your site, you can freeze that module from being upgraded until the issue is resolved with the following simple command:

drush up module_name --lock=module_name

Securing Your Drupal 6/7 Website Part I

Would you hand a stranger the keys to your car with an unlocked briefcase filled with money and personal information open in the back? Probably not. So why would you have an insecure website sit in parking lot with the windows open? Well you probably wouldn't knowingly do that either. Yet virtually every Drupal site we've reviewed has been at least somewhat insecure. One of the primary reasons for this is, Drupal is at least somewhat insecure out of box, especially if your site isn't using the latest version.

Drupal 7: "Instant Update" for a View Creates "Post to Wall" Feel

Recently I was working on the MECLUB website, and I had a requirement to recreate a Facebook-style "Post to Wall" feel for the site's home page view.

Turns out the overlay module can create this nice effect, but you probably don't want to have it in use for all your node add/edits on a busy site, so there's a simple way to disable the overlay module based on paths:

Drupal 7: Determine if a Path was Viewed by a User in a Given Timeframe

This code example allows you to determine if a user has visited a given page on your site in a given time frame.

You can accomplish exactly that by calling the following function from hook_login():

Simple One-Click Add/Edit Solution for Nodes and Regions (Blocks)

Drupal blocks are typically meant to store content to be displayed across several pages. For that use case it makes sense to have a separate admin interface for blocks. But often there's a desire to include additional single-use content in a region.

For example, you may wish to show a menu on every page in a section, but add a PDF download link that varies across pages. You certainly don't want to create a block for every link on every page. Furthermore, views, panels, and other modules may be overkill for what will amount to a couple lines of code.