Giter VIP home page Giter VIP logo

linkify-text's Introduction

Linkify Text

A plugin for WordPress that automatically adds links to words or phrases in your posts.

This plugin is available in the WordPress Plugin Directory: https://wordpress.org/plugins/linkify-text/

Installation

  1. Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically /wp-content/plugins/).
  2. Activate the plugin through the 'Plugins' admin menu in WordPress.
  3. Optional: Go to the Settings -> Linkify Text admin options page and define text and the URLs they should point to.

Additional Documentation

See readme.txt for additional usage information.

Support

Commercial support and custom development are not presently available. You can raise an issue on GitHub or post in the plugin's support forum on WordPress.org. If the plugin has been of benefit to you, how about submitting a review for it in the WordPress Plugin Directory or considering a donation?

License

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

linkify-text's People

Contributors

4n70w4 avatar coffee2code avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

linkify-text's Issues

Report of all link inserts

Create report page for display all post in which replacements were made.
And show text fragments with replacements.
For control the quality of the replacement.
May be need pagination if too many posts.

Do not insert links inside specified tags

Allow setup list of html tags for which do not insert links.
Example: I do not need links in pre and code tags.
Perhaps it is not worth doing replacement is in any tags.

Problem with special characters and limit links to one selected

If the matched string contains a special character (such as ' or " ) and the "linkify once" flag is selected the link is applied in the wrong position within the text.

This seems to be caused by a problem with multibyte string handling.

Relevant code seems to be here:

// Only do the replacement if the search string was found.
						if ( false !== $pos ) {
							$match = mb_ereg_search_getregs();
							$text  = mb_substr( $text, 0, $pos[0] )
								. sprintf( str_replace( "\\1", '%s', $new_text ), $match[0] )
								. mb_substr( $text, $pos[0] + $pos[1]-1 );

// Only do the replacement if the search string was found.

Any ideas?

Thanks!

Insert only one link in referenced terms case

Example text: ggl Google google ggl

google => https://google.com/
ggl => :google 

Replace only Google (because «root» term) and skip replaces for ggl and gl.

Example text: gl Google google ggl

google => https://google.com/
ggl => :google 
gl => :google 

Replace only ggl (because declared above) and skip replaces for gl.

May be add checkbox for this function.

List of similar plugins?

You probably know more plugins that perform a similar function?
Could you share links to their repositories or pages?
I want to see them and maybe some of the problems I’m reporting in another issues are solved there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.