KB Plugins

The best Wordpress plugins are free

Print this post

KB Linker v1.10

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 »

1
Milorad opines
at 12:19 am on September 25, 2007 #

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.

2
Thus saith Adam
at 8:36 am on September 25, 2007 #

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.

3
Milorad says
at 2:51 pm on September 25, 2007 #

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.

4
Ruth remarks
at 5:54 pm on September 25, 2007 #

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

5
Dan comments
at 7:00 pm on September 28, 2007 #

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!

6
Jeff writes
at 12:48 am on October 11, 2007 #

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

7
Thus saith Adam
at 10:20 am on October 12, 2007 #

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.

8
Darrin comments
at 12:01 am on October 19, 2007 #

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.

9
Thus saith Adam
at 7:44 am on October 19, 2007 #

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.

10
Darrin contributes
at 9:13 am on October 21, 2007 #

Thanks Adam, that is exactly the case. Thanks for clarifying.

11
James thinks
at 9:25 am on December 21, 2007 #

Hello, how does this plug ins compare to link-a-dink? Thank you.

12
Thus saith Adam
at 10:03 am on December 21, 2007 #

I don’t use link-a-dink, so I have no idea. Try and see.

13
Gabriel proclaims
at 7:09 am on December 24, 2007 #

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

14
Thus saith Adam
at 9:05 am on December 31, 2007 #

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?

15
Vladimir opines
at 6:30 pm on January 4, 2008 #

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

16
Vladimir contributes
at 6:37 pm on January 4, 2008 #

Here follows the server data if it’s of any help to you :)
WordPress: 2.3.2
PHP: 5.2.3

17
Thus saith Adam
at 10:12 am on January 11, 2008 #

It might be awhile until I can look at these. I’m unable to replicate the second problem.

18
Victor adds
at 7:43 am on January 16, 2008 #

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)

19
Thus saith Adam
at 8:17 am on January 16, 2008 #

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.

20
Victor exclaims
at 6:50 pm on January 17, 2008 #

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

21
Shanta writes
at 10:32 am on January 20, 2008 #

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.

22
Ralf contributes
at 1:23 am on February 22, 2008 #

Hey, super, dass ist doch mal ein hilfreiches Plugin, vielen Dank.

23
Tim Carver contributes
at 10:46 am on February 22, 2008 #

Hi

Is it possible to have the KB Linker to link all links on a page? Now it makes one link per one keyword.

24
Thus saith Adam
at 9:08 am on February 25, 2008 #

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.

25
at 9:40 pm on April 28, 2008 #

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.

26
John Culver exclaims
at 9:51 pm on April 28, 2008 #

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.

27
Rob contributes
at 10:05 am on May 6, 2008 #

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.

28
Rob opines
at 11:42 am on May 6, 2008 #

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

Comment Guidelines
  • Yes, your comments will be visible to everybody. (Unless you use the private contact form.)
  • Allowed HTML: <a> <b> <blockquote> <cite> <code> <em> <i> <strong>
  • Code: Put code in `backticks` (above your "Tab" key) or it won't display well
  • Gravatars: To override the default image by your comment, use a gravatar
  • Links: If you include more than one link, your comment will go into the spam queue

Please read before commenting: Because my real job has me swamped at the moment, I am not supporting my plugins at this time. Sorry. This may last several weeks.

If you have a bug report, feature request, or other general feedback about a plugin, please leave a comment—but do not expect an immediate response. If you are requesting help, though, please check the plugin's documentation thoroughly rather than ask your question as a comment.

Thank you for your understanding.