Stupid Social Bookmarking
After seeing the numerous bloggers who had integrated “Digg this” and other links directly into their blog posts, I became a bit jealous and pissed off, as you could expect. I need all the help I can get, so I set off in a search for how to put these infamous little icons on my blog…
And luckily I found a site telling me how. It gave me the code and everything. Turns out you just put some code in your single.php or comments.php file and then it does everything automatically after that!
The post is from a while ago at exploding-boy.
So I opened up my files and pasted the code in there. And guess what - it didn’t work! So I tweaked the code a bit to no avail…
Luckily though, some other bloggers were there to save the day - people had posted comments like “thanks for the tip, I’ve used it on my blog.” Great! I can check out how they did it and I’ll be all set!
To my surprise, these bloggers tricked me - none of them actually had the code on their blogs! At least not on the ones they linked to, so it did me no good. So much for the friendly blogosphere!
I had had it, and decided to draw on my very own php coding skills to figure it out. (By the way, I have no php coding skills…)
But luckily I do have some mental reasoning ability and figured out how to tweak my links so they work! Well, it looks like they work…
Want to know how I did it?
- I used the proper html linking tags, with proper quotation placement. (The very basics.)
- I changed the & to its html equivalent in the links themselves. (More basic html.)
- I added a question mark to any > in the php code that didn’t already have one. (This was the key step.)
I think that was it.
Oh yes, one last tip: Add this code near the bottom of your theme’s single.php file or the top of your comments.php file, depending which file is present in your theme. (Sorry if you aren’t using Wordpress!)



Posted September 24, 2006
Comments(3)



