DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: PMK "I hate IE"

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed:2009-12-02T17:48:20.620000000
Classification:pmkihateie
Description:The keywords help with categorizing and tagging of the manuals. You can combine two or more keywords and add additional keywords yourself. Please use at least one keyword from both lists. If your manual is NOT in english, see next tab "language" ---- forEditors (use this for editors / german "Redakteure") forAdmins (use this for Administrators) forDevelopers (use this for Developers) forBeginners (manuals covering TYPO3 basics) forIntermediates (manuals going into more depth) forAdvanced (covering the most advanced TYPO3 topics) see more: http://wiki.typo3.org/doc_template#tags ----
Keywords:forAdmins, forBeginners, explorer, ie, javascript
Author:Peter Klein
Email:pmk@io.dk
Info 4:
Language:en

img-1 img-2 EXT: PMK "I hate IE" - pmkihateie

EXT: PMK "I hate IE"

img-3

Extension Key: pmkihateie

Language: en

Keywords: forAdmins, forBeginners, explorer, ie, javascript

Copyright 2000-2009, Peter Klein, <pmk@io.dk>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.org

Table of Contents

EXT: PMK "I hate IE" 1

`Introduction 3 <#1.1.Introduction|outline>`_

What does it do? 3

Screenshots 3

`Administration 4 <#1.2.Administration|outline>`_

`Configuration 5 <#1.3.Configuration|outline>`_

Differences between this and a real infobar 5

Reference 5

`Known problems 6 <#1.4.Known%20problems|outline>`_

`Updates 7 <#1.5.Updates|outline>`_

`Reporting bugs 8 <#1.6.Reporting%20bugs|outline>`_

`ChangeLog 9 <#1.7.ChangeLog|outline>`_

Introduction

What does it do?

  • Displays a fake IE "infobar" in Internet Explorer browsers (Similar to the annoying ActiveX infobar) with user defined text and link. Could be used to try persuading IE6 users to upgrade. Customizable "Hate level", so you can decide which IE versions should display the infobar.
  • This Extension/Script was made after spending 6 hours trying to get an AJAX script to work correctly and play nice in IE6.
  • Tested in IE5.5, IE6, IE7 & IE8 with both Strict and Quirks mode.

Screenshots

img-4

Administration

  • Once the extension is installed, you need to include the static TypoScript of the extension, in order for the script to be activated.
  • Add the “I hate IE (pmkihateie)” script to the list of active scripts.

img-5

Configuration

The extension can be configured using the Constants editor. For more advanced configurations such as multilanguage support, you'll have to edit the TypoScript template.

Differences between this and a real infobar

  • The real infobar attaches itself to a new viewport, making it appear at the top of the browser window until the user closes it.
  • The fake infobar is attached to the current viewport, so when you scroll the page, the infobar scrolls too.

Reference

(TypoScript constants)

hateLevel

Property

hateLevel

Data type

integer

Description

Versions of IE below or equal to this value, triggers the infobar.

Default

6

closetitle

Property

closetitle

Data type

string

Description

This is the text used as title attribute for the infobar closebutton.

Default

ie6text

Property

ie6text

Data type

string

Description

This is the text used as title attribute for the infobar link if the browser is IE6 or older.

Default

ie6title

Property

ie6title

Data type

string

Description

This is the text used as title attribute for the infobar link if the browser is IE6.

Default

ie6icon

Property

ie6icon

Data type

file

Description

Image used in the left corner of the infobar if the browser is IE6 or older.

Default

EXT:pmkihateie/res/warning.gif

ie7text

Property

ie7text

Data type

string

Description

This is the text shown in the infobar if the browser is IE7.

Default

ie7title

Property

ie7title

Data type

string

Description

This is the text used as title attribute for the infobar link if the browser is IE7.

Default

ie7icon

Property

ie7icon

Data type

file

Description

Image used in the left corner of the infobar if the browser is IE7.

Default

EXT:pmkihateie/res/warning.gif

ie8text

Property

ie8text

Data type

string

Description

This is the text shown in the infobar if the browser is IE8.

Default

ie8title

Property

ie8title

Data type

string

Description

This is the text used as title attribute for the infobar link if the browser is IE8.

Default

ie8icon

Property

ie8icon

Data type

file

Description

Image used in the left corner of the infobar if the browser is IE8.

Default

EXT:pmkihateie/res/warning.gif

[tsref:(cObject).N/A]

Example of using multi language texts
# Title text for close button
140 = TEXT
140.value = {$plugin.tx_pmkihateie.closetitle}

# Example of having additional language specific text (example uses Danish language)
140.lang.dk = Klik her for at lukke infobar

140.wrap = closetitle:"|"

Known problems

None that I am aware of.

Updates

Reporting bugs

  • If you discover a bug, please don't write the author(s) directly. Instead post a bug report at the Forge bugtracker: http://forge.typo3.org/projects/show/extension-pmkihateie
  • That way others can see your bug report and maybe add additional comment. It also makes it possible for all the extension authors to see what bugs are already been fixed by one of the other authors.

ChangeLog

  • 02.Dec.09
  • Added an extra condition which checks if the version is 4.3. If it is 4.3, then it uses "jsInline" instead of "inlineJS". (The inlineJS option was renamed to jsInline in 4.3.0)
  • 24.Nov.09
  • Improved the browser detection, so that IE8 in Compatibility mode doesn't show a IE7 bar. (Thanks to Paul Klimek for reporting this issue.)
  • 23.Nov.09
  • Fixed for problem with TYPO3's “inlineJS” sometimes adds the JavaScript on the same line as the JS comment code, resulting in code not being executed. (Special thanks to Paul Klimek for reporting and intensive testing.)
  • Changed state to “Stable”
  • 12.Sep.09
  • Fixed incompatibility with TYPO3 versions below v4.2. (Thanks to Mikkel Hastrup for reporting and testing)
  • 20.Aug.09
  • First version.

9