Could you use this autolinking plugin?

jlknauff

New member
Aug 25, 2008
237
1
0
I know there are a few auto linking plugins out there but the ones I've used had weaknesses.

The biggest problem I've found is that they just link all instances of the selected word, so you can end up w/ multiple links from within a post which looks spammy.

Long story short, I've created a way to accomplish the auto linking, but only do it once per post. Currently, I'm just dropping my custom code into functions.php, but I was thinking if some of you guys could use this, I would turn it into a WP plugin.

If you all could use it, I'll try to get it up and running for you before Christmas.

Let me know :D
 


I'll have to dig it up...can't remember the name and it's not in the WP repository.

On second thought though, the existing one still has a weakness...no way to make the links target="_blank" so maybe I will turn mine into a plugin afterall.
 
I'll have to dig it up...can't remember the name and it's not in the WP repository.

On second thought though, the existing one still has a weakness...no way to make the links target="_blank" so maybe I will turn mine into a plugin afterall.

I'd be interested. If the one you're using is open source, you can just submit patches or fork it yourself. No point in re-inventing the wheel.
 
I'd be interested. If the one you're using is open source, you can just submit patches or fork it yourself. No point in re-inventing the wheel.
I've taken a look at the source of the other one, and while I'm no PHP expert yet, it seems that there is far more code than there needs to be. Mine currently accomplishes in less than 20 lines what the other takes several hundred to do. Obviously, mine will fatten up a bit when I convert it from a function to a plugin, but it should still be much smaller than the other.

Nope, not reinventing the wheel, since mine already works - I just need to make it work as a plugin. Besides, it will be my second plugin, so it will be a good learning experience.