Extension:EmailAddressImage

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
Email Address Image

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Generates an image of input text for obfuscating email addresses.
Author(s)Template:Extension#username Maarten van Dantzich (Thinklingtalk)
Latest versionTemplate:Extension#version 1.1 (2008-02-25)
MediaWikiTemplate:Extension#mediawiki 1.11+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license No license specified
Download Template:WikimediaDownload/svn
LOG
TagsTemplate:Extension#tags
<email>
Hooks usedTemplate:Extension#hook
ParserAfterStrip

Translate the EmailAddressImage extension if it is available at translatewiki.net

Check usage and version matrix.

What can this extension do?[edit]

This extension turns text between <email> and </email> tags into an image of the text, so you can embed email addresses in your wiki without having them harvested by spammers. The address will not be clickable or copy/pastable; users will have to copy it by hand into a mail.

Usage[edit]

The email address must be specified in this tag format: <email>user@domain.com</email>. The code verifies that the text between the tags looks like an email address to prevent HTML/XSS injection.

Installation[edit]

Copy the files from SVN into $IP/extensions/EmailAddressImage/, then add the include to your LocalSettings.php.

Note that the code assumes you're placing the code files into $IP/extensions/EmailAddressImage/. If you place them elsewhere, you must modify the URL generated in the code to match.

Changes to LocalSettings.php[edit]

require_once("$IP/extensions/EmailAddressImage/EmailAddressImage.php");

See also[edit]