Skip to content

expressionengine-add-ons/Auto-Linker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto-Linker

Automatically creates links from URLs and/or email addresses contained within the given text.

Requirements

  • ExpressionEngine 3+
  • PHP 5.4+

Installation

  1. Download the latest release.
  2. Copy the auto_linker folder to your system/user/addons folder (you can ignore the rest of this repository's files).
  3. In your ExpressionEngine control panel, visit the Add-On Manager and click Install next to "Auto Linker".

Usage

{exp:auto_linker}

Example Usage

Wrap the text to be formatted within the plugin tags, like so:

{exp:auto_linker}

    text you want processed

{/exp:auto_linker}

or...

{exp:auto_linker}

    {custom_field}

{/exp:auto_linker}

Note: Mailto links created for email addresses use an obfuscated version of the mailto tag containing ordinal numbers written with JavaScript to help prevent the email address from being harvested by spam bots.

Parameters

  • target - (blank) Links will open in a new window.
  • convert - (url/email) Set to "url" to only convert URLs. Set to "email" to only convert email addresses.

Change Log

3.0.1

  • Improved and cleaned up instructions

3.0.0

  • Updated plugin to be 3.0 compatible

2.0.0

  • Simplified plugin to use the auto_link() function from CodeIgniter's URL helper.
  • New optional parameter to choose to auto-link only URLs or email addresses.

1.1.0

  • Updated plugin to be 2.0 compatible

Additional Files

You may be wondering what the rest of the files in this package are for. They are solely for development, so if you are forking the GitHub repo, they can be helpful. If you are just using the add-on in your ExpressionEngine installation, you can ignore all of these files.

  • .editorconfig: EditorConfig helps developers maintain consistent coding styles across files and text editors.
  • .gitignore: .gitignore lets you specify files in your working environment that you do not want under source control.
  • .travis.yml: A Travis CI configuration file for continuous integration (automated testing, releases, etc.).
  • .composer.json: A Composer project setup file that manages development dependencies.
  • .composer.lock: A list of dependency versions that Composer has locked to this project.

License

Copyright (C) 2004 - 2016 EllisLab, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ELLISLAB, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of EllisLab, Inc. shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from EllisLab, Inc.

Packages

No packages published

Languages

  • PHP 100.0%