25 responses to “AutoLinker (by request) for WordPress”

  1. Blogging Pro - Blog News, Tools and Hacks » WordPress Plugin: AutoLinker

    [...] [...]

  2. Not For Ambition or Bread » The Joy of Software

    [...] [...]

  3. Not For Ambition or Bread » AutoLinker

    [...] [...]

  4. morydd

    In viewing my site yesterday, I realized that the links were broken. A simple fix though. in this line
    $text = preg_replace("|\[$match\]|msU" , "<a href="$url">$match</a>" , $text);
    $url was still in as $description
    switch that and it works like a charm. This only applies to the safer option which requires the brackets.
    Thanks again for the help.

  5. Joel "Jaykul" Bennett

    Good catch morydd, thanks. I fixed my local copy, even though it’s commented out :-D

  6. donner

    hi, thanks for the script.
    But line 65 should be commented, or it cannot go. And it wonders me: To comment the line 65, one cannot use // but only /* */. Why??

  7. chuck

    So I was looking at this and I noticed that it would be nice to allow a title tag, now I think you can do something like this:
    $autolinker_array = array(
    “my site” => array(“http://www.HuddledMasses.org/&#8221; => “The site that made this plugin”),

    Then when you make the link do something like this:

    0“ title=”$aurl1“>$match

  8. Joel "Jaykul" Bennett

    donner: well, I’ve been running that on my site without problems as-is, and I can’t imagine how commenting out that preg_replace would help anything. In fact, that line is a fix for a problem that came up with the autolinker text showing up inside a link. (eg: nested &lt;a..&gt; tags).

    chuck:
    Yes, have a look at my current plugin project (heck, have a look at what it’s doing to “my site” in every comment y’all make [LOL] )

  9. andi

    I would to install your plugin, but become an bug as:
    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/plugins/autolinker.php:80) in …/wp-admin/post.php on line 342

    What is for a problem? Did the original file use for plugin?

  10. Joel "Jaykul" Bennett

    You left some whitespace in the bottom or top of the file when you copied it over. The line with the &lt;?php and ?&gt; tags have to be the last line in the file, because of where they get included from in WordPress.

  11. caffenero.net » archivi  » Magilinker 0.1

    ere il meglio da due plugin giA esistenti ed adatti allo scopo: TextLinker di B. Surkin e Autolinker di J.Bennet. Il tutto funziona piuttosto bene su WP 1.5, [...]

  12. What’s In A Name » autlinker plugin test

    [...] just testing this plugin see if it works XHTML works wonderful in Firefox Source: autolinker No Comments [...]

  13. blog://flatrabbit

    [...] n a yadda, yadda, yadda…yeah I know, bad joke. //EDIT// Let’s alost test the Autolinker Plugin too…. Firefox, Thunderbird, my site….. [...]

  14. Bill Rawlinson

    Joel,
    I was having a small problem with the autolinker when the target word ended up somewhere as a link parameter (specifically when linking to a firefox plugin).

    So I updated the “default” regex to this:
    $text = preg_replace(”’(?!]*?>)‘si” , “$1$match$2” , $text);

    and it seems to be working perfectly now no matter where the word pops up inside any html tag.

    Here is an example of a url that was breaking:
    https://addons.update.mozilla.org/extensions/moreinfo.php?application=firefox&category=Developer%20Tools&numpg=10&id=60

    it broke while doing an autolink on the word “firefox”

    thanks for the handy plugin.

  15. AutoLink

    [...] 6”> Oppdatert Det finnes allerede en glitrende god ting som gjor dette. Denne kalles AutoLinker og kan brukes i stedet. [...]

  16. Anders Kjellberg

    Great little plugin and just what I was looking for! I run it under WP 1.5 and it works just as advertised. I have one question though: what should I modify in autolinker.php so that the links always open in a new window? I’m sure there is an easy solution but I know absolutely nothing about php.

    /Anders

    PS. my site

  17. kapeka

    Hi,
    fine little plugin. But is there either a way to tell him, that he has only to link “standalone” words, that means no words with brackets or inside a longer word for example: the-google-mod. I am using textile and if there is for example a link with google somewhere in the URL he breaks the link because he makes a link of the word google. Is this easy to implement so that I could do this by my own? I saw the code but this is black magic for me. I see only brackets and signs but I dont understand whats is what there.
    Or is it possible to extend the plugin so that when I write posts in the admin area he shows me what links I have put in the autolinkers php. If this would be possible, the I could easily use the safer version with brackets. With a long list it is hard to remember what I have put it and what not.

  18. Purple Goddess in Frog Pyjamas  » Blog Archive   » I so love my friends in the computer

    [...] It works!!! Thanks to my friend in the computer, Carrie, for whatever voodoo she worked on Autolinker to make it work! I bow to her WP genius. [...]

  19. Lee

    Superb plugin, but I do wish you could “opt out” keywords by wrapping them in dollar signs — which I believe is possible with the acronym plugin. “Opting in” (using the square brackets) is a much more involved process requiring the user to make decisions in every single post. It’s very rare that I want to opt-out for example, but when I do, boy I do! ;)

  20. Lee

    Oh er, the acronym plugin provided a very useful code hint. I placed this before the loop closing brace in your code:

    $text = preg_replace(”|\[$match\]|imsU” , “$match” , $text);

    That unwraps the anchor element from matched text in brackets ([]).

  21. Lee

    Aaaah! I keep hitting problems. For some reason, about 3 out of 75 links “double wrap” (surrounded by two lots of tags). This screws up page validation. I’ve tried resolving it a trillion different ways, but to no avail. I always F*** up something else.

    Gotta reluctantly abandon it now. :( I just wish there was an alternative “autolinker” somewhere. I desperately need one.

  22. Drab as a fool, aloof as a bard » Minor alterations

    [...] All this blogging work has given me an idea of what would be useful features in blogging software. Fortunately, no sooner had I thought of the features I wanted, I had found them. Basically I wanted a quick way to mark up common abbreviations and links. The following two WordPress plugins do the trick: acronym plugin and autolinker plugin. [...]

  23. Help Desk Software

    Well, I fully agree with your comment. :)

    BTW: I visited your blog earlier today and I just wanted to congratulate you on a well presented, and informative resource .

    It’s not often that I come across a web site that offers a wealth of quality. ;-)