I tend to see the world through WordPress eyes.1 When I find (or write) a clever bit of script that would be useful to a WordPress website, I tend to convert it into a WordPress plugin. I did this with my PieChart Plugin and a few other knick-knacky plugins.
I just noticed Cryozap Cyrozap‘s Amazon affiliate link converter PHP script.
It occurs to me that it would be relatively easy to build a WordPress plugin that searches through a post/page, finds Amazon links, and then turns them into affiliate links… I think this could be useful in several of my sites, actually.
Update: Cyrozap – sory fore mispellnig yoru mane.
- You see, the subject is WordPress double-I, as in WordPress I’s, as in WordPress eyes… [↩]
I tried making a sidebar widget of my script, but I didn’t have the patience to try to get it to work, so I just hosted the script in another folder and had an iframe point to it in a text box widget.
I would learn PHP, but Objective-C is quite at the top of my list of languages to learn at the moment.
Whoops, ignore the “quite” after “Objective-C is.”
@Cryozap: No worries! This is a very useful bit of script and I’m working on turning it into a plugin. Once done, I’ll make it available. If you are playing with PHP at all, I highly recommend diving into WordPress plugin development.