1.4.3releasedBlock user agent

XSL template and Regular Expression combined to help fight old browsers.

Clone URLhttps://github.com/DeuxHuitHuit/block_user_agent.git

Add as a submodulegit submodule add https://github.com/DeuxHuitHuit/block_user_agent.git extensions/block_user_agent --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNo1.11.11.4.31.4.31.4.31.4.31.4.31.4.31.4.31.4.31.4.31.4.31.4.31.4.31.4.31.4.3

Readme

Block User Agent

XSL template and Regular Expression combined to help fight old browsers.

REQUIREMENTS

  • Symphony CMS version 2.4 and up (as of the day of the last release of this extension)

INSTALLATION

  • Unzip the blockuseragent.zip file
  • (re)Name the folder blockuseragent
  • Put into the extension directory
  • Enable/install just like any other extension
  • Go to the Preferences page to customize the regular expression
  • Include the xsl file located in extensions/blockuseragent/utilities
    • <xsl:import href="../../extensions/block_user_agent/utilities/block_user_agent.xsl" />
  • You must call the block-user-agent template directly under the <body> tag. Parameters are optional
    • <xsl:call-template name="block-user-agent" />
    • Default parameters are: xslt <xsl:param name="title" select="'This website uses technologies your browser does not support.'" />` <xsl:param name="subtitle" select="'Please upgrade now usign the links below.'" />` <xsl:param name="close" select="'Click here if you still want to access the site.'" />` <xsl:param name="firefox" select="true()" />` <xsl:param name="chrome" select="true()" />` <xsl:param name="opera" select="true()" />` <xsl:param name="ie" select="true()" />` <xsl:param name="client-side-detection" select="false()" />
  • You can also call the light template
    • <xsl:call-template name="block-user-agent-light" />
    • Default parameters are: xslt <xsl:param name="text" select="'This website uses technologies your browser does not support.'" /> <xsl:param name="client-side-detection" select="false()" />

Voila !

http://www.deuxhuithuit.com

Version history

Symphony 2.4 to 2.x.x

  • Fixes for PHP 7

Symphony 2.4 to 2.x.x

  • Center the text of the light template

Symphony 2.4 to 2.x.x

  • Added a max-width on the text for the lighter template

Symphony 2.4 to 2.x.x

  • Added lighter less invasive template

Symphony 2.4 to 2.x

  • Make the javascript more cross-browser
  • Compatibility for Symphony 2.6

Symphony 2.4 to 2.5

  • Fix a bug while uninstalling.

Symphony 2.4 to 2.5

  • Marked as compatible with 2.5.
  • Make sure we do not output the client side detection if not regexp is found.

Requires Symphony 2.4

  • Make sure assets are not downloaded for nothing

Requires Symphony 2.4

  • Compatibility for Symphony 2.4

Symphony 2.2 to 2.3.x

  • Added the client-side-detection parameter in the xsl template. This allows client- side detection.
  • Scoped the css

Symphony 2.2 to 2.3.x

  • First release