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.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No | No | 1.1 | 1.1 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.4.3 | 1.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 !
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