Recent Topics

Modify Auto links plugin to not include trailing dot and comma

Started by on Jun 06, 2013 – Contents updated: Jun 06, 2013

Jun 06, 2013 17:55    

Version: b2evolution 5.0.3

I noticed that the function make_clickable_callback() in _misc.functions.php do not includes trailing dot and comma when converting a link, which I think is correct. So, when you write "www.gmail.com,", the function makes this url clickable. But when I use Custom autolink definitions, the Auto links plugin does not work when the text is followed by a dot or comma.

I need to konw how should I modify the plugin to take account of trailing dots and commas. I guess I should modify the regexp in line 409 of _autolinks.plugin.php (// Find word with 3 characters at least:), but I donĀ“t know how or if this guess is correct.

Otherwise, if would be nice if the plugin included this as a default behavior, or at least a Configuration option asking to include trailing dot and comma...

Jun 06, 2013 18:24

Thank you for your feedback. We will fix the autolinks plugin and include it in the next release.


Form is loading...

Build your own site! – This forum is powered by b2evolution CMS, a complete engine for your website.