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 :-)

Similar Posts:

This entry was posted in Wordpress and tagged comments, lazyweb, Links, problem, troubleshooting, URLs, Weblog Technology, Wordpress. Bookmark the permalink.

36 Responses to Links in WordPress Comments not Linking

  1. westi says:

    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. Stephanie says:

    Dammit. Any other suggestions, westi?

  3. westi says:

    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?

  4. westi says:

    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

  5. Stephanie says:

    Dammit. Any other suggestions, westi?

  6. westi says:

    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?

  7. Stephanie says:

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

  8. Stephanie says:

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

  9. Stephanie says:

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

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

  10. Stephanie says:

    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

  11. Stephanie says:

    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.

  12. Stephanie says:

    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

  13. Stephanie says:

    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

  14. Stephanie says:

    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/

  15. Stephanie says:

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

  16. Stephanie says:

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

  17. Stephanie says:

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

  18. Stephanie says:

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


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

  19. Stephanie says:

    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/…

    Testing newline:

    http://google.com

  20. Stephanie says:

    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/… if you want them to link.

  21. Stephanie says:

    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</p>

    http://flickr.com

  22. Stephanie says:

    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

  23. Stephanie says:

    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/

  24. Stephanie says:

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

  25. Stephanie says:

    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.

  26. Stephanie says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>