Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Wordpress Plugin - Tell IE users to change browser? Or is your site for Chrome only? Now you choose what browsers should trigger a warning popup or not on your site.

Notifications You must be signed in to change notification settings

darkwhispering/Advanced-Browser-Check

Repository files navigation

!!!! Not maintained !!!!

=== Advanced Browser Check ===
Contributors: darkwhispering
Donate link: http://darkwhispering.com/buy-me-a-beer
Tags: firefox, chrome, opera, safari, internet explorer, egde, ie6, ie7, ie8, ie, ff, microsoft edge, microsoft, google chrome, mozilla firefox, google, mozilla, plugin, browser, block browser, block ie6, browser check, check, popup, warning, old, old browser, stop, stop ie, block, block internet explorer
Requires at least: 3.0.0
Tested up to: 4.6.0
Stable tag: 4.4.1

Tell IE users to change browser? Or is your site for Chrome only? Now you can choose what browsers should trigger a warning popup or not on your site.

== Description ==

This plugin gives you the option to display a warning popup to your visitors if they use a browser that you don't support. For example, Internet Explorer 10 or lower.

It supports the 6 largest and most popular browser on the market.

* Firefox
* Chrome
* Safari
* Opera
* Internet Explorer
* Edge

You can customize the warning message, choose what browsers download pages you want to display a link to, select what browsers and browser versions that should trigger the popup and if the user can or can't hide the popup.

If you allow users to hide the popup, a cookie is set that expires after 24h. After 24h, the user will see the popup again with the option to hide it for another 24h.

This plugin is tested and works with the WP Super Cache and W3 Total Cache plugins. It is also tested and working on WordPress Networks.

Supported languages (Only English language are guaranteed to be up to date!)

* English
* Hebrew
* French
* German
* Danish
* Russian

Missing a language? Want to add it? Fork the plugin from my [Github](https://github.com/darkwhispering/Advanced-Browser-Check), do the translation, do a pull request and I will happily add it.

**If you run into problems, please check the [FAQ](http://wordpress.org/plugins/advanced-browser-check/faq/). If you don't find and answer there, look in the [support section](http://wordpress.org/support/plugin/advanced-browser-check) if anyone else have/had the same issue and if it has been resolved. Creating a new support ticket should always be your last resort for help. Thanks.**

*There is versions added of browsers that is not yet released as stable versions. This is to minimize the need of an plugin update in the future when new browsers are released and to let users try the plugin with beta and alpha version of the browsers. I will do my best to keep this plugin updated with the latest versions of available browsers.*

== Installation ==

1. Recommended is to install the plugin via your Wordpress Admin dashboard **OR** you can download the plugin here and upload the zipped file to /wp-content/plugins
2. Activate the plugin through the 'Plugins' menu in WordPress

== Frequently Asked Questions ==

= I get "Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING..."  =

If you see a PHP error similar to this, that means you have a PHP version below 5.3. The plugin uses PHP Namespaces and PHP 5.3 is required as minimum. Please contact your hosting company and let then know you need PHP upgraded.

= I see a 404 error in the console =

For some users, that have a very secure setup of WordPress can get this issue if they block direct access to plugin files. See [this support thread](http://wordpress.org/support/topic/failed-to-load-resource-404-advanced-browser-checkphp) for information and direction of what might be the cause of your issue.

= There is nothing! No overlay, no popup =
The plugin requires that your theme have the wp_footer() function added. Without this, the plugin can't create the code it needs to place the overlay and popup on your site.

You also need to have wp_head() function added in your theme header for the script and stylesheet files.

= I only get a black overlay, no popup =
You can get this for many reasons. It can be any of the plugins you have installed that is not compatible with my plugin. It can also be your theme.

I test the plugin before every update on a clean WordPress installation with no other plugins activated or custom theme installed. Due to the large amount of 3rd party themes and plugins for Wordpress, it is impossible to guarantee that the plugin will work with them all.

Before posting a support thread, please try to inactivate all your plugins except Advanced Browser Check and try again. If you still have the issue, try with another theme, or install a clean WordPress is a subfolder so you can test the plugin on your server with a clean WordPress installation.

= I have selected not to block Chrome (or any other browser), but I still get the overlay =
Please read the above answer and perform the same tests before you start a new support thread. You should also turn on debugging so you see what browser the plugin detects.

= I have performed all test above, still not working =
Okay, might be time to start a support thread, but first, please see if someone else have had your issue and see if they might found a solution before you start a new thread.

If you create a new support post, please provide as much info as possible. Like what WordPress version you have, version of the plugin, browser you tested and versions on those browser. And of course, any error messages you see if you have that.

== Screenshots ==

1. Frontend screenshot
2. Backend screenshot

== Changelog ==

= 4.4.1 =
* Fixed Parse error on plugin activation.
* Reverted code requiring PHP 5.4, was not intended. 5.4 code used in a force of habit working in latest versions of PHP. I'm truly sry for the issues this might have caused you!

= 4.4.0 =
* Added support for Microsoft new browser, Edge.
* Fixed issues with detecting the latest versions of the Opera browser correctly.
* Updated browser versions list.
* Code cleanup.
* Added Russian translation, thanks [SnakeU2](https://github.com/SnakeU2)
* Tested on Wordpress 4.6

= 4.3.0 =
* Tested on Wordpress 4.4
* Added German translation, thanks [panic175](https://github.com/panic175)
* Added Danish translation, thanks [kennethknudsen](https://github.com/kennethknudsen)
* Updated browser versions list.

= 4.2.1 =
* Fixed faulty closing tag for the title.

= 4.2.0 =
* Updated all browser icons.
* Updated source code to better follow the Wordpress coding guidelines.
* Added french translation. Translated by [koudjdj](https://github.com/koudjdj).
* Updated browser version list.
* Added spacing around the overlay modal.
* Added description to message field on settings page about use of HTML code.

= 4.1.0 =
* Some spellings corrections of default message and admin settings panel. - [Thanks chrisscottuk](https://wordpress.org/support/topic/spelling-correction?replies=2)
* Small layout changes to settings panel.
* RTL support - [thanks barzik](https://wordpress.org/support/topic/works-for-ie-thanks?replies=4#post-)
* Added translation support, i18n - [thanks barzik](https://wordpress.org/support/topic/works-for-ie-thanks?replies=4#post-)
* Added Hebrew translation - [thanks barzik](https://wordpress.org/support/topic/works-for-ie-thanks?replies=4#post-)
* Updated browser versions.

= 4.0.2 =
* Fixed issue where some Chrome and Safari browsers got detected as Internet Explorer on Windows platforms.

= 4.0.1 =
* Added missing jquery dependency to wp_enqueue_script

= 4.0.0 =
* Reverted back from Browscap, it gave more problems and issues then it solved.
* Fixed issue reported with Google Chrome 38. Thanks for all the feedback.
* The move away from Browscap will solve the memory issue some users are experience.
* Updated the list of browsers that can be blocked.
* Plugin is now also much faster, Browscap were really heavy to load.

= 3.1.0 =
* Updated browscap to utilize less memory.
* Added local default broscap.ini.
* Added local pre-cached cache file to minimize memory usage more.
* Moved cache folder into the plugin folder
* Updated browscap.php to 2.0 from 2.0b
* Tested on WordPress 4

= 3.0.3 =
* The plugin are now doing AJAX calls "correctly" using the wp_ajax action hook. Hoping this will solve the issue with plugin_dir_path() not working for some users.

= 3.0.2 =
* Replaced the use of WP_PLUGIN_DIR with plugin_dir_path() function.

= 3.0.1 =
* Prefixed core files to minimize risks of conflicts with other plugins.

= 3.0.0 =
* Rewritten and now using [PHP Browscap library](https://github.com/GaretJax/phpbrowscap) for browser detection.
* Updated browser versions. Includes current versions plus 5 future and 10 past versions.
* Plugin now REQUIRES a cache folder located in /wp-content/cache with full read and write permissions.
* Added a debug option for easier debuging.
* New cleaner design of the overlay.
* Better responsivness of the overlay, should not be a problem to close it on mobile devices.
* Smaller browser icons.
* General bug fixes and tweaks

= 2.2.0 =
* Added fix for problems with enqueue loading of scripts and css styles. Thanks @sireneweb for the fix.
* Moved hide link to top right corner.
* Minor style changes to the overlay box.
* Added browser names below browser icons.
* updated screenshots

= 2.1.3 =
* Updated list of browser versions
* Tested on WordPress 3.6

= 2.1.2 =
* Fixed small error with the post ajax variable triggering error when empty or not existing.

= 2.1.1 =
* Hotfix: bug in the check for iOS devices

= 2.1.0 =
* Browser icon links now open in new tab/window
* Popup will no longer show up when the browser is unknown or not one of the supported
* Popup will NOT show up on iOS devices (iPhone & iPad) or Android devices
* Updated and removed browser version numbers on settings page

= 2.0.2 =
* Plugin tested and now working on WordPress Networks

= 2.0.1 =
* Fixed problem with default values not beeing loaded on a fresh plugin installwith no records in the wp option table

= 2.0.0 =
* Large part of the plugin is re-written
* the .json file ir removed and replaced with a php function in the init.php
* Better commenting in the code
* Removed screenshots from the plugin folder, no need for them to be dl with the plugin
* New layout of the settings page, now more streamlined with the WordPress admin
* Popup now looking good in IE 6 to 9
* Added option to not block a browser at all.

= 1.0.2 =
* Fixed problem with popup not beeing displayed properly in IE6

= 1.0.1 =
* Fixed problem with browser select boxes not shownig up.

= 1.0.0 =
* Initial release

About

Wordpress Plugin - Tell IE users to change browser? Or is your site for Chrome only? Now you choose what browsers should trigger a warning popup or not on your site.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •