KB Plugins

The best Wordpress plugins are free

Print this post

KB Linker

Please post your comments about this widget to the appropriate post in the KB Linker category. I’ve turned off commenting on this page because the page was getting too big.

KB Linker will link phrases you specify to sites you specify. For example, you could make it so that whenever “Wordpress” occurs in a post it is automatically linked to wordpress.org. All you do is enter keyword->URL pairs into the Options->KB Linker page in your admin screen. Enter pairs so that they look something like this:

wordpress->http://wordpress.org/
google->http://www.google.com/
knuckleheads->http://www.house.gov/

You’ll find more detailed instructions on the admin page. But really, it’s pretty easy. And KB Linker does the hard work of (a) making sure that words aren’t already linked and (b) making sure only words, not partial words, get linked.

The plugin is commented extensively, so if you want to tweak its behavior, give it a go.

Why might you want this plugin?

Well, that’s obviously up to you. Maybe you don’t. But if there is something that you’re always linking to, this plugin might help you. For example, I’ve got a travel blog (on a different URL). I have set it up so that every time I mention certain cities, the city’s name gets linked automatically to a map of that city.

This plugin could also serve SEO (search engine optimization) purposes if you’re into that sort of thing; you could use it to ensure plenty of internal cross-linking between your posts.

Download

Download KB Linker

Please post your comments about this widget to the appropriate post in the KB Linker category. I’ve turned off commenting on this page because the page was getting too big.

24 comments

1
Janfri opines
at 12:40 pm on June 1, 2007 #

Hi Adam,
first of all, thanks for your great widgets. I am really intrigued to know how kb linker works, the idea sounds great. But I can’t find any link for the download. So could you be so kind to tell me where? Thanks for advanced and good luck!
Janfri

2
Thus saith Adam
at 1:04 pm on June 1, 2007 #

It can take several days for the folks over at wordpress.org to add new plugins to their database, and I just made the request today. It might be a couple weeks before they add it. Until then, it won’t be available for download. I’ll add a link on this page once they’ve done their part.

This is really a very simple plugin. It just finds words in your posts and adds links to them. That’s about it.

3
Kim says
at 10:27 am on June 30, 2007 #

Its been a month now zzzzzzzzzzzzzzzz

Why not upload it to your own domain and post the direct link here :)

4
Thus saith Adam
at 8:53 am on July 3, 2007 #

Done.

5
Janfri comments
at 3:13 am on July 7, 2007 #

Hi again Adam,
thanks for the download link, but the file seems to be corrupt. At least I acant open it…
Best regards and thank you,
Janfri

6
Thus saith Adam
at 11:09 am on July 7, 2007 #

Janfri,

You’ll need to unzip it first. On Windows, that should happen automatically when you click twice on it. On other systems, I’m not sure.

7
suffi comments
at 10:37 pm on July 29, 2007 #

Download is not working.

Suffi

8
Roz thinks
at 6:44 am on August 7, 2007 #

I’m getting a “fatal error” message as well.

Thanks for all your good work.

9
Thus saith Adam
at 9:08 am on August 14, 2007 #

Sorry about the problem with the link. I finally got approval from wordpress.org to host this there. I just uploaded it. I should appear there within an hour or two. When it does, I’ll change the download link in the post here.

10
at 9:50 am on August 16, 2007 #

Hello,
I installed the plugin with no problem, but in the Options menu, I get this on the top of that page:
==============================================================
Warning: extract() [function.extract]: First argument should be an array in /…/plugins/kb-linker/kb_linker.php on line 105
==============================================================

Can I get some help?

Martin

11
Thus saith Adam
at 10:40 am on August 16, 2007 #

Hmm. My guess is that you’ve got something invalid saved in the linker’s text box. I’ll take a look at the code in a bit to be sure.

12
Leo proclaims
at 7:46 pm on August 22, 2007 #

If I want to make all with open a new window.Can I do this? Thanks!!

13
Thus saith Adam
at 7:41 am on August 23, 2007 #

Leo,

You certainly can, but I don’t do customizations–you’ll need to do this yourself. Open up the plugin file. It’s heavily commented, so you should be able to find the right place to edit on your own.

14
Leo proclaims
at 10:18 am on August 23, 2007 #

Hi Adam,
OK,I’ll try to do it.KB Linker is a great plugin.Work fine in my site.Thanks for your help!

15
sergiold exclaims
at 6:34 am on August 25, 2007 #

Hi Adam,

I’m using your plugin but I have a problem. When I insert an image whith title=”what you want” and “what you want” is expected to be linked the plugin breaks the image tag. Is there something to fix this?

Thank you.

16
Ruth comments
at 9:53 pm on August 27, 2007 #

I’m also getting the

Warning: extract() [function.extract]: First argument should be an array in /…/plugins/kb_linker.php on line 105

error. It’s nothing I saved in the linker’s text box, because I just installed the plugin and haven’t entered anything in the linker’s text box yet. Any updates on this yet?

17
Ruth opines
at 9:59 pm on August 27, 2007 #

Hmmm… I went ahead and entered a couple of links in the box, and the error has now vanished. Just for kicks I installed the plugin on another blog I manage, and had the same results — the error appears when the plugin is first installed, but vanishes when links are entered.

FWIW… :)

18
Thus saith Adam
at 7:46 am on August 28, 2007 #

sergiold: That means the regexes need to be tweaked. I don’t know when I’ll get to it, things are a bit busy. I’ll post an update when I can.

Ruth: Yeah, I had been thinking after my reply to Martin that the error probably resulted from having nothing in the text box. I never tried it that way, since when I was developing it, I always had something there. It’s a simple fix, I’ll see if I can fix that this morning.

19
Thus saith Adam
at 7:53 am on August 28, 2007 #

Ruth, it should be fixed now. I didn’t have time to test the fix, so somebody let me know if it causes problems.

20
at 4:24 pm on August 28, 2007 #

Thank you Adam. Another problema I’m having is that it only links when de word or words are finished whit a comma or a point or an HTML tag.

For example if the words to link are “ejem plo”, in:

“ejem plo and ejem plo.”

It only links de second one.

If I put a list and I put a blank like this ejem plo it doesn’t work, but if I quit the blank ejem plo it works.

I don’t really know if this is a problem of the plugin or if I’m doing something wrong.

Thank you.

21
sergiold exclaims
at 4:28 pm on August 28, 2007 #

My last comment doesn’t show the examples so here I copy the last one:

ejem plo
ejem plo

Thank you.

22
Thus saith Adam
at 4:32 pm on August 28, 2007 #

Sergiold, I’m not sure why it would do that. It will be a while until I can work on it, though, since I have a conference to attend this week. I’ll post an update if I find a fix.

23
at 10:11 am on August 30, 2007 #

Thank you for your attention. Don’t worry if you can’t fix in a while. I’m only informing you in case you want to improve the plugin.

24
Thus saith Adam
at 11:07 am on September 7, 2007 #

All:

I’ve just uploaded a new version of the plugin. If you’re still having trouble, try the new version, then post a comment about your error again.

The new version allows you to set link targets, fix some non-English problems, and so on.

I’ll be closing comments on this page shortly and creating a new post. Put your comment there.

Additional commenting has been turned off for this post. I probably explain why above. Maybe you should look at the post (or at the last comment by me) to see where you should post your comment since you cannot do it here.