Links in WordPress Comments not Linking

[fr]

Les URLs dans les commentaires de ce blog ne sont pas transformés en liens, alors qu'ils le devraient. Appel aux idées pour résoudre ce problème.

[en]

Lazyweb, hear my call!

When people type URLs in my comments, they aren’t converted into links. WordPress should do this, but it’s not doing it. I don’t know where to start troubleshooting.

Suggestions and solutions will be thankfully tried out :-)

18 Comments

  1. Posted 9/7/2006 at 2:55 pm | Permalink

    This change that went into 2.0.4 should fix this for you bunny:

    http://trac.wordpress.org/changeset/4012

    The function that does all the funcky stuff is make_clickable in wp-includes/formatting.php

  2. Posted 9/7/2006 at 3:52 pm | Permalink

    Right, I’ve upgraded, let’s see if it works:

    http://climbtothestars.org/archives/2006/09/07/java-and-freemind-on-my-macbook/

  3. Posted 9/7/2006 at 3:53 pm | Permalink

    Dammit. Any other suggestions, westi?

  4. Posted 9/7/2006 at 4:01 pm | Permalink

    Hmm.

    I guess a plugin you are using might be removing some of the default filters as it does other text processing.

    What plugins are you using espcially ones that do text processing?

  5. Posted 9/8/2006 at 10:10 am | Permalink

    Testing: http://swissblogs.com

  6. Posted 9/8/2006 at 10:12 am | Permalink

    Hit-and-miss, I’ll manage to narrow it down. Here’s another test: http://google.com

  7. Posted 9/8/2006 at 10:14 am | Permalink

    Found it! It’s coComment Enhancer’s fault:

    http://www.andare.ch/blog/wordpress-plugins/cocomment-enhancer/

  8. Posted 9/8/2006 at 10:15 am | Permalink

    Ouch. Not so sure. It’s still deactivated and the link above didn’t transform. Test http://pompage.net

  9. Posted 9/8/2006 at 10:16 am | Permalink

    Trying again with the link above. Hope Akismet doesn’t bite me.

    http://www.andare.ch/blog/wordpress-plugins/cocomment-enhancer/

  10. Posted 9/8/2006 at 10:17 am | Permalink

    This is weird:

    http://www.andare.ch/blog/wordpress-plugins/cocomment-enhancer/

    http://google.com

    http://climbtothestars.org/archives/2006/09/07/links-in-wordpress-comments-not-linking/

  11. Posted 9/8/2006 at 10:18 am | Permalink

    Oh! I think I have it. Inline link: http://climbtothestars.org/archives/2006/09/07/links-in-wordpress-comments-not-linking/

    New line link:

    http://google.com

  12. Posted 9/8/2006 at 10:20 am | Permalink

    Right, it now seems it is NOT coComment enhancer’s fault. Sorry.

    Re-activated coComment enhancer, and de-activated PHP Markdown Extra. Testing inline: http://climbtothestars.org/archives/2006/09/07/links-in-wordpress-comments-not-linking/

    Testing newline:

    http://google.com

  13. Posted 9/8/2006 at 10:21 am | Permalink

    Right. Going to re-activate PHP Markdown Extra so that my posts don’t look ugly, but now we know what’s going on. Make your links inline like this http://climbtothestars.org/archives/2006/09/07/links-in-wordpress-comments-not-linking/ if you want them to link.

  14. Posted 9/8/2006 at 10:28 am | Permalink

    Earlier on, westi made me add add_filter(’get_comment_text’, ‘make_clickable’, 10); in the PHP Markdown Extra plugin. Let’s just see what happens without that line: http://flickr.com

    http://flickr.com

  15. Posted 9/8/2006 at 10:31 am | Permalink

    Right. The links in these comments are all stored as URLs in the DB. De-activating PHP Markdown Extra allows some of them to be HTML-ized upon output. Is it a problem with WordPress’s make-clickable (or whatever) function? http://flickr.com

    http://flickr.com

  16. Posted 9/8/2006 at 10:32 am | Permalink

    For some weird reason, both links in the last comment were made clickable. PHP Markdown Extra de-activated upon comment submission. Try again: http://flickr.com/

    http://flickr.com/

  17. Posted 9/8/2006 at 10:36 am | Permalink

    Right. The line westi made me add helps make the inline links clickable upon display.

  18. Posted 9/9/2006 at 8:58 am | Permalink

    The plugin author tells me “not linking” is the desired behaviour of the plugin. In markdown, you need to surround a URL with < and > for it to be made clickable. Well, thanks to westi I’ve managed to make inline URLs clickable — I guess I’ll try to remove the removal of the make_clickable function in the plugin and see what happens then.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
Contact