Upgrade your browser!

jReject for Drupal 7

What is jReject?

Often times, either through lack of manpower or will, we'll create a web page that looks great in modern browsers but falls apart in old ones. Rather than fielding comments like "Your page is broken!!", wouldn't it be nice to let your visitors know that their browser is out of date?

jReject is a jQuery plugin that determines the browser type and version a visitor is using, and conditionally presents the user with a modal message prompting them to upgrade their browser.

The jReject jQuery plugin was created by Steven Bower (http://turnwheel.com), and based on the "IE6 Upgrade Warning" script by mihai.ile@gmail.com. It is released under a dual MIT/GPL license. The jReject for Drupal 7 module was created by Domenic Santangelo (entendu) http://drupal.org/user/173461.

What is jReject for Drupal 7?

jReject for Drupal 7 is a module that lets you plug-and-play jReject with a minimum amount of effort. It includes a comprehensive set of administrative screens that enables you to tweak jReject's many options without touching a single line of code.

How do I get started?

Module version 1.x

1. First, install the jReject for Drupal 7 module in Drupal. The module comes with a sensible set of default settings.

2. Get the jReject plugin and install it in a directory called "jReject" under this module's directory. The easiest way to do this is to clone the code with Git while inside this module's directory:

[/sites/all/modules/jreject$] git clone https://github.com/TurnWheel/jReject.git

This module will automatically check to see if you've done this step correctly. Simply visit any of this module's configuration pages and look for a warning.

3. Customize the module's behavior by visiting /admin/config/system/jreject. At minimum, you must check the "Enable jReject" box.

Module version 2.x

2.x uses the Libraries module and includes a Drush command to download the jReject library files.

1. First, install the jReject for Drupal 7 module in Drupal. The Libraries module is a dependency. jReject module comes with a sensible set of default settings.

2. Get the jReject plugin and install it in a your Libraries directory, usually /sites/all/libraries/jreject. If you are using Drush, run the drush command jrdl to do this for you.

This module will automatically check to see if you've done this step correctly. Simply visit any of this module's configuration pages and look for a warning.

3. Customize the module's behavior by visiting /admin/config/system/jreject. At minimum, you must check the "Enable jReject" box.

References and acknowledgements

-jReject by Steven Bower
https://github.com/TurnWheel/jReject
http://jreject.turnwheel.com/

-Development of jReject for Drupal 7 sponsored by X.com.

A preemptive note, or "how is this any different from X?"

This is the only module I'm aware of that targets browsers other than Internet Explorer, and has extremely fine-grained control over which browser+version you'll send a notice to. For example, you can configure this module to pop up a notice to IE7+FF9+Safari4 if you want, whereas the projects on this page for example are specifically targeted to IE6.

Project information

Downloads