Improvements:
- Inserts the keyword into the link’s title tag
- Won’t link a page to itself
- Won’t use the same URL more than once in a post. (It’s always checked for re-linking the same keyword multiple times, but now it checks URLs too).
As always, download it here
.
28 comments »
Hi Adam, I’m just setting up a new WP2.3 blog and I’ve found that your plugin works quite well except under the one circumstance.
If a keyword is found within a manually created link, your plugin still works its magic, which unfortunately breaks the manually created link. I’m sure this is unintended, so I’m writing in the hope that you’ll consider patching this up in time for all the upgraders who will no doubt come chasing your plugin thanks to WP’s new plugin update system.
Cheers.
And that’s where I’m stumped. I cannot replicate this on any of my blogs. I put the keyword in the link text, in the link target, in the link title, in all three, and it doesn’t get touched by the plugin (nor should it). And the difference in blog versions shouldn’t make a difference–regexes are regexes, regardless of what version of WP you’re running.
So if there’s somebody who knows regexes, take a look at the plugin code and make a suggestion… Anybody interested in helping squash the bug should read the more detailed discussion of the problem starting here.
See initially I thought it was an oversight on this version because I was using an older version of this plugin on another wordpress install prior to upgrading… and the problem was nowhere to be found!
In fact chances are that if people persist the problem will go away, though I don’t propose to explain it.
I don’t know if its possible for you to try a fresh WP testbed install, but it seems like that would be the only way of accurately reflecting people’s experiences of installing the plugin for the first time. Reading those other posts seems to suggest that the more you use it, the less likely it is to display this behaviour.
Anyway, cheers for your effort on this Adam, I’m sure it’ll come to light eventually.
Hey Adam!
Not to add to the confusion, but… I’ve checked every way I can think of, and v. 1.101 is working great on both my site (Wordpress 2.3-RC1) and my husband’s (WP 2.2.2). No time to upgrade to WP 2.3 right now for any further testing, though — too many papers to write this week.
Yay! :)
The v1.101 plugin seems to be working great for me with WP 2.3 installed. I ran into some issues before, which have all been tackled by Adam. Thanks for your quick response to my email Adam!
Works fine ! Thank you for this plugin !
It will be great if we can automatically add all the tags to the KBLinker list ! So each time a word corresponds to a tag in a post, it will link to [link] !
(Sorry for my languages mistakes, I don’t speak well english…)
Jeff, I use WPMU, not standard WP, which means I don’t get the new tagging features yet. Maybe when they introduce this feature into WPMU I’ll take a look at that, though.
Im using 2.2.1 and for some strange reason it’s not working properly. One instance only the 1st entry in the keyword-URL pair worked. Now nothing.
Darrin,
If what you mean is that the keyword gets linked only once per post, that’s what’s supposed to happen. If you mean that only the first keyword-URL pair gets linked while the other pairs get ignored, that’s a bug. Not sure which you mean, though.
Thanks Adam, that is exactly the case. Thanks for clarifying.
Hello, how does this plug ins compare to link-a-dink? Thank you.
I don’t use link-a-dink, so I have no idea. Try and see.
hi!
first of all really tanks for this script, I’m using it in a personal project. when lunch the site I will know you about the credits.
Now a trying to do link for not single word, for example i have in my $pairs array :
$pairs = array('ipsum dolor' => 'http://example.com');
but the problem is that doesn’t works, do you know how modify the regular expression in order to catch this kind of phases.
tanks
Sorry about the delay, Gabriel–I’ve been on vacation.
“ipsum dolor” should work fine. Perhaps the problem is that you’ve written the array in the plugin file itself instead of using the WP admin interface?
That’s a great plugin, but I’ve ran into a couple of seemingly related problems:
1. It doesn’t link the keywords if the post is truncated to the “more” tag.
2. It doesn’t link the keywords if there is a link _anywhere_ in the text of a post.
All the best,
Vladimir
Here follows the server data if it’s of any help to you :)
WordPress: 2.3.2
PHP: 5.2.3
It might be awhile until I can look at these. I’m unable to replicate the second problem.
Hello Adam. I’ve encountered a little problem. I host a blog on a free domain and yesterday i entered quite some keywords (around 30) into kb_linker. Since then a lot of parts of my blog stopped working giving an error that it has run out of memory. I disbled the plugin, deleted it from the directory and it still gives me the errors.
I thought to check phpmyadmin to see if any strings were left in the sql so the blog keeps loading and reading them. I couldn’t find any. Could you please tell me where exactly on the server kb_linker stores the data and strings? Thank you! (please send me an e-mail respond if possible)
Victor: That’s weird. This is a very simple piece of code. You didn’t install any other plugins at the same time?
It uses WP’s
get_option()and related functions to save to the DB. That means it will be in WP’s “options” table in mysql. The option’s name is, appropriately, “kb_linker.” Find the option in that table and delete it and see if that makes a difference.I’m guessing your host limits PHP scripts to the default amount of memory, 8 MB. Without any plugins, WP will use up most of that by itself. So I guess it makes sense that saving a lot of information to the database could cause you to run out of memory.
If you want to be able to run plugins, even small ones, you’ll need to find a host that allows more memory. Most decent hosts do.
Wow thank you for your fast reply. Yes its an 8 MB limit. I installed a couple other plugins, but I was able to keep the memory under the limit. I did an update to those plugins though so they could use more memory now but still it uses quite some. I was thinking about using a host but this blog was mostly for sharing music info and thoughts so its not that personal. I’ll try and use as few features as possible until ill decide to go to a payed host.
Thank you very much for your reply. And best of luck with this wonderful plugin ;)
This is a great auto-linking plugin. Just one tiny problem, which may be similar to what others have reported, especially in the KB-linker v1.03 thread. KB linker breaks links created by Dagon Design’s Site Map plugin, but only when the target link is one word. So, “XML” link breaks; “eXtensible markup language” does not break. This sounds weird I’m sure, except that it is completely reproducible. This is using WP2.3 and PHP5. Hope this adds another piece to the puzzle.
Hey, super, dass ist doch mal ein hilfreiches Plugin, vielen Dank.
Hi
Is it possible to have the KB Linker to link all links on a page? Now it makes one link per one keyword.
Shanta: Yes, others have reported the sitemap plugin problem, although I haven’t had time to look at it.
Ralf: Bitte schoen.
Tim: Comment #5 on this post.
I have found a problem with the latest version (at least on my blogs)
It will only post a link to a single URL, thats good. however it also wont post links to multiple URLs that have the same domain name.
so if I have 3 keywords that link to [link] [link] and [link] only one of them will get linked.
I found the problem (well not in the code)
If in the config I have:
contact us->http://www.tomandsean.com/contact.html
Maui real estate->http://www.tomandsean.com/
It will work fine
if they are in reverse order, only the contact us will get linked.
Thanks for the plugin but I have a problem with it. Its currently linking my posts but not pages. In the page.php template file, I am using the_content() to display the page contents so it should work. I cannot figure out why its not.
Well it seems to be working on pages but only for some links and not others. I guess I will get into the source code and figure out what is going on.
Leave a comment