Erik’s Blog: Board Shorts and Business Suits

Building Bussiness Systems from the Shores of Waikiki

Entries Comments



Category: Wordpress Tips

These are some tricks and tips I’ve learned along the way using wordpress. Hope they help you all out…

Wordpress User Video Upload Script as a PHP Consultant

22 July, 2008 (21:40) | Wordpress Tips | By: Erik

As some of you may know or have read, I’ve dabbled in custom php coding for wordpress. I’ve created scripts to populate tables, and custom code to help save your YPN account from being banned. That got reviews on problogger and entrepreneurs journey.

I’ve written a few ways to customize your adsense code for wordpress posts like adding adsense between multiple wordpress paragraphs and wrapping text around adsense or chitika ads in your wordpress posts. Although these were pretty simple coding tasks, they seemed to help a lot of people based on their comments and the amount of emails I received asking about better implementation. I also received a lot of people wondering if I could prepare a plugin to do some of these tasks easier for those who don’t want to hack up their templates. Should have been checking my comments these last few months.

I was finally able to put all that php hacking to good use by consulting for my brother in a project he’s working on for his company Paper Tree Design. The project was simple, write some code to allow user uploads of videos and integrate those videos into an easy to use wordpress plugin. OK, maybe that simple, but definitely a lot of fun!

The script integrates into a Wordpress blog that has a front end user administration panel and vPIP, a great video script with ever growing functionality. It was great to work with my brother and learn a few things about interacting with various plugins and their databases.

I’m sure I’ll elaborate on the functionality of the upload script but I thought I would give a little insight into where I ditched off to so quickly after getting back into things…

Surrounded by Freelance Entrepreneurs

10 July, 2008 (22:24) | Entrepreneurship, General Information, Wordpress Tips | By: Erik

Since I started blogging I’ve gotten to know some great people involved with the online money making world. It all started when a co-worker pointed me towards Steve Pavlina’s Blog and all the money he makes from his pesonal development blog. This was shortly after I had started to play around with some web publishing of my own so the timing was great.

This co-worker then stopped working for the same company and became a freelance webdesigner along with creating other sites that employ writers, photographers, and bring him passive income. At least thats my guess since I haven’t been able to get a hold of him to find out how things are going ever since he decided to bike across America.

I also met some other great people around the blogosphere and had some great conversations and a dinner with a little more known internet entrepreneur, Yaro Starak. He was in Hawaii on his way back to Australia from Canada and I was able to have dinner at a local hot spot on the beach and discuss all things internet. He gave me some great advice, that, although he may not see me following it yet, I’m definitely working towards ideas raised in that conversation. Besides, who am I to go against a proven method that’s working for him.

Also in the mix is my brother. He’s started a clothing line, ASONE Clothing which has been doing well for small startup company. Also while doing that, he’s become somewhat of a wordpress guru. Couple that with his design abilities and he’s perfect for those wanting design work done. Right now his client list is pretty full and his ability to both code, not just CSS, full-on custom PHP and plugin integration as wel, is going to continue to bring him a lot of work. You can check out his budding portfolio over at PaperTree Design.

He also runs a few blogs on the side related to web design and creating buzz for product launches.

All in all, this online crowd is a great crowd to get into. I hope to develop my network more and more as I try and bring more information to the table. Some things I’m helping colleagues with are…

  • Wordpress and PHP consulting, focused on custom wordpress applications and design
  • SEO
  • Starting and building blog networks
  • Idea generation

Multiple Adsense Between Paragraphs in Wordpress Blog Posts

5 September, 2007 (22:56) | Wordpress Tips | By: Erik

I’ve been a way for a while, trying to regain some focus in my life and thought I would return to this blog by providing some tips while using Wordpress. My most recent jump into playing with php and Wordpress is how to add Adsense code within blog posts in between paragraphs on every post.

I searched around and only found some plugins here and there that limit where the Adsense code can go. So I decided to build my own little php code. This should allow you to deal with the “” tag as well.

For this I’ve just dealt with the single.php file but you can put this wherever you’d like. Just remember the limits you have on the number of adsense blocks you can put in.

OK, so it’s really simple. Where you see <?php the_content(); ?>. Just replace that with:

<?php
$content = apply_filters(’the_content’, $post->post_content);
$save = explode(”</p>”, $content);
$count = 1;
foreach ($save as $a){
if ($count == 3){
echo’
<div style=”margin: 5px 0px 5px 0px; text-align: center;”>

YOUR ADSENSE CODE HERE

</div>’;
}
echo $a.”</p>”;
$count = $count + 1;
}
?>

It’s that simple! You can play around with the foreach and the if statements to insert your adsense between different paragraphs, multiple if statements allow for multiple inserts between multiple paragraphs. You can use if in_category to display ads a certain way if they’re in a certain wordpress category. The list is endless.

Now, for those of you who actually want to know how this works here goes:

The first line

$content = apply_filters(’the_content’, $post->post_content);

pulls your content into a string into the variable $content. This includes all code, html or otherwise. Don’t ask me why the apply_filters was needed. All I can tell you is that I wasn’t able to do it any other way.

Next we chop up the string into an array split up by </p> using the explode function.

$save = explode(”</p>”, $content);

As long as you are using paragraph tags in your posts (some people choose to take them out) then this will work. Each array value will be a separate paragraph.

Then we initialize a counter to keep track of how many paragraphs we echo (to come later),

$count = 1;

We then start our foreach loop to loop through each value in the array $save.

foreach ($save as $a){

Then we check to see what paragraph we’re on. Here is where you can play with it to echo your adsense code wherever you’d like. I have it displaying adsense after the third paragraph but you can display it wherever. Such as, if ( $count == 1 || $count == 3) would display before and after. You can use elseif to display different adsense layouts at different points in the post. Be creative. Notice that I’ve also decided to center my code using an inline style.


if ($count == 3){
echo’
<div style=”margin: 5px 0px 5px 0px; text-align: center;”>

YOUR ADSENSE CODE HERE

</div>’;
}

We then print our array value $a remembering to add a </p> at the end because php explode, explodes the array but removes the value we told php to explode from.

echo $a.”</p>”;

Finish that off with an increment of the $count variable and you’re done!

$count = $count + 1;
}
?>

This should give you the bare bones to insert adsense code into anywhere you’d like that you are displaying content. I use it only in single.php on my wordpress blog. You can see an example at my Hawaii Blog in this popular article about Dog the Bounty Hunter headed to Jail in Mexico.

Hope it helps some people out. Spread the word if you know anyone who can benefit from this.

Aloha Update Blog Design is Automatic

7 April, 2007 (19:09) | HTML Tips, Starting a Blog Network, Wordpress Tips | By: Erik

OK, the actual design of Aloha Update wasn’t automatic, but the way it’s setup creates quite a few automatic adjustments to the blog.

Wordpress Static Front Page
First off, I’ve decided to use Wordpress’ built in static front page to create a more news like, content in your face. It was tough at first because the addition is rather new to Wordpress and there isn’t much documentation out there.

Aloha Update Screen Shot

If you are trying to add a static front page with a working inner page that shows all posts you need to remember that the page you setup as the “all posts” page needs to be run off the index.php file. If you don’t do this, wordpress pagination, ie /page/2/, will not work. At least it didn’t work for me. The other page, the static front page, can be created from a template page. Check out Aloha Update and our All Posts Page.

Adding a Drop-Down Horizontal Menu to Show Categories
The next sweet thing I did was add a drop-down menu using some javascript and a css/.js method I found over a A List Apart.

Auto Update on Categories Javascript Wordpress Menus

The menu drops down and reveals the sites categories which are organized based on the different islands of Hawaii. The cool thing is, the drop down menu is smart. It is able to recoginze which category you are in, be a single post or a category, or a sub category, of one of the main categories. This way, you don’t have to setup separate headers and nav bars for each category.

It took me a while to get it right and I’ll surely write a little wordpress tutorial for you all soon as in my searching I found a lot of people wanting to have this happen.

Added Tabbed Interactive Boxes
Next I added some tabbed interactive boxes as you can see on the front page where I list the images as well as on the inner pages where I list top things about Aloha Update.

Example of Using tabber.js in wordpress

I found everything I needed over at BarelyFitz Designs. This was probably the easiest to implement out of everything. All you have to do is cut and paste and FTP some files over and you’re done.

UPDATE:
Automatic Picture Formating
The last thing I did which is probably the most automatic thing and took a while is utilize the “read more” tag in wordpress, along with The Excerpt Reloaded plugin.

Basically what I do is within a post I first put a thumbnail image, then I put the more tag, then the noteaser tag, then the large image, and finish it off by adding an excerpt. This allows me to control what image shows up where.

On the front page I have the latest image show up as a sized version of the large image using the php “the_content(’ ‘, ‘TRUE’)”. Next within each sub tab of that same area I show the thumbnail image as a link to the page, then the title (also a link) and finally the excerpt as I wrote it in the post.

Next, in the image category I have it show the thumbnail image, and then when you go to individual pages you will have the full image and that full image will be link to the large image.

I’ll try and do tutorials of all these because I know from searching around that there are others out there that would like this help as well.

Saving Your Yahoo Publisher Network (YPN) Account from being BANNED

5 October, 2006 (12:59) | Advertising & Affiliates, Wordpress Tips | By: Erik

OK, so digging around it seems like this is still a problem for some people. About 8 months ago there was a bit of buzz surrounding the BETA release of the Yahoo Publisher Network (YPN). Darren Rowse over at problogger.net posted a quote from an email some of the publishers being banned were recieving. It basically stated that publishers who had “too much” non-US traffic using their site and clicking through on their ads were kicked out from the YPN program.

I almost didn’t sign up when I got my invite because of this post. Why would I want to waste my time on something that people were saying was inferior to AdSense. However, I followed through with it, got my account, then got “the call” from a YPN rep asking me how I liked the program. I said hadn’t used it yet but was wondering if I could create some coding to display ads YPN ads to just US users while other ads would be displayed if the user wasn’t from the US.

I then contacted Google and asked them if this was ok and they said, “that doesn’t appear to violate the terms and conditions” blah blah blah. Great, so if you are still worried or having a problem here’s what I did!

PS this uses a wordpress plugin and some PHP, but you get the ID, you can also use some server commands that check the IP of the page viewer but I don’t think that works as well and frankly was making me mad when I first tried it out.

Anyway, the idea is this:

if (visitorIP = us){
  display YPN;
  }
else{
  display AdSense
  }

Outline

1. Get your Google AdSense and YPN account if you don’t have one.
2. Populate your database with the IP to Country data
3. Download the IP2Country Wordpress plugin
4. Update your code on your index.php, page.php, single.php, etc with an IF statement.

That’s it, really simple. I had a few problems here and there that I will try and address solutions to but hopefully you will go through the process problem free.

1. Get your Google AdSense and YPN account

Chances are if you are reading this you already have both an AdSense account and a YPN account. If you don’t though visit Google AdSense and Yahoo Publisher to sign-up and get your accounts today.

Those who have the accounts should be familiar with ads and ad code so you can easily insert the code into the files mentioned below.

2. Populate your databasse with the IP to Country data

This was my most problematic part. You need to get the data from the IPtoCountry .csv file into your MySQL database. You can find the Database here and the plugin that I use for this ip2_country has a nice little tutorial about how to create the proper tables.

Create them first then upload your data search the web for how to do this or your mySQL database help file, or you can…

WARNING: I HAVEN’T HAD OTHERS TEST THIS UPLOAD SCRIPT SO PLEASE CHECK TO MAKE SURE THIS IS RIGHT, IT WORKED FOR ME BUT I DON’T WANT TO SCREW UP PEOPLE’S mySQL DATABASE. CHECK IT FIRST

If you need a .php script to do this for you, you can try out the one I used, just copy and past this into an editor, change the appropriate fields where it has

$hostname=yourhost;
$username=yourusername;
$password=”yourpassword”;
$dbid=databaseID;

save it as something.php, upload it and the .csv country list to the same folder at your site, and navigate to it via your browser and presto. You should be getting a long list of what it’s doing, it’s adding the proper info to the ip2country table you made.

3. Download and activate the IP2Country Plugin

Now download and activate the IP to Country Plugin. Should explain itself.

4. Now add code that looks like this

if (wp_ip2c_getCountryCode2(0) == us)
{
print’
Yahoo Publisher Code
‘;
}

else{
print ‘
Google AdSense Code
‘;
}
?>

Put that wherever you want your ads to appear.

As a test below you should see yahoo ads if your from the US and if you’re not you should see Google ads.

Sweet.

Let me know if anyone has any troubles and I can try and help you out or point you in the right direction.

Plugins I Use

21 June, 2006 (20:25) | Wordpress Tips | By: Erik

Plugins are great! For those of you who don’t use Wordpress or another blog software that allows you to solve problems easily and quickly with plugins then I suggest switching to wordpress. If you don’t and want to switch to Wordpress check out Darren’s post about how to install wordpress. For those that want some new plugins here are the Wordpress plugins that I use.

Adesnse Deluxe - A great way to easily insert Google AdSense into your blog posts. You can use it for AdSense, Chitika, YPN, or any other code snippet type ads. I don’t use it as much now that I’ve gotten the hang of php but it’s still a great add in.

Do Follow - Help your commentors gain page rank by eliminating the wordpress no follow for comments code.

Feedburner Feed Replacement - Tough Plugin at times to get going but helps direct all of your feed traffic to your feedburner account. If you don’t have a feedburner account and want to learn more about it check out my using feedburner as a blog tool post.

Related Posts - Keep your readers on at your blog by giving them more pages to visit. Increase pageviews and increase earnings

Recent Comments - Promote commenting by promoting your commentors.

Image Browser - Came with the old Wordpress install and much better than the newest image browser available on Wordpress 2.0+.

I am working on ad rotator and Google Sitemaps plugins but I’m unable to really get the sitemaps plugin to work. I’d really like to get it going but am having some difficulties. If you have any hints let me know.

Top 5 List of Wordpress Plug-ins

14 April, 2006 (08:29) | Increasing Website Traffic, Starting a Blog Network, Wordpress Tips | By: Erik

During the past week I have been working on developing the Wordpress template for my blog network and have tried to locate and install a few valuable Wordpress plug-ins. (Plug-ins are addons for Wordpress that perform some function valuable to the publisher) Below I have listed and linked the top 5 Wordpress plug-ins that I am using and a little bit about why I feel they are so useful.

1. E-Mail to a friend wp-email - word of mouth, in my opinion the best online advertisement method. This plug-in allows you to easily install an email this post link and form to any page. A very well developed plug-in, although I still had to figure a few things out, I think this is a must for everyone.

2. Related Posts or Entries - Don’t let your viewers leave your page, give them something else to click. This wordpress plug in uploads quick, and inserts quick, with basic and easy formatting options. Keep your visitors where you want them, surfing your blog.

3. Recent Comments - Another great Wordpress plug-in from semilogic, recent comments is useful for your front page to encourage viewers to read others comments and post responses. A great way to increase commentors on your site.

4. Contact Form - Could a form be easier than just posting your email address? I guess for those not wanting to post their email to the world this is a good plug-in. Also most of the big name sites use a contact form so there must be something to it. This Wordpress plug-in will quickly insert a form wherever you ask it to.

5. Feedburner Redirect Plug-in - Although I have been unable to get this plug-in to work on any site other than my root Wordpress blog install (no doubt issues with Netfirms, my structure, or both), this plug-in or Feedburner is a must for stat crazed bloggers. Feedburner allows you to track subscribers and have yet another traffic stat for yourself or published to your viewers. This plug-in redirects all of you feed traffic using a randomly generated feed.

Enjoy these plug-ins and let me know if you have any questions on them. There is pretty good support out there for all of them and as I said I have had my difficulties with them as well and worked through most all of the problems.

Increase Search Engine Ranking with YesFollow.org

30 March, 2006 (14:01) | Increasing Website Traffic, Wordpress Tips | By: Erik

Are you trying to get more commentors on your blog? Sick of seeing all those other blogs with multiple comments on every post? You’re in luck. Cesar over a fleethecube.com has started a new site trying to promote the disabling of the nofollow tag.

The site is called yesfollow.org and explains how you can help the blogosphere and your own search engine ranking by disabling the nofollow tag associated with your comments. In both movabletype and wordpress blogs the default is to put a rel=”nofollow” tag on every comment. What this tells the search engine spiders is to not follow the links associated with the tag.

The blogosphere knows this and looks at comments on less established blogs as too much work for no reward. They would rather leave comments on blogs with a lot of traffic in the hopes that people would click-through. Now I’m not saying this is always the case, sure people leave comments to be helpful and to promote open discussion on a topic that may be dear to them. But a lot of comments are meant to attract people to click through to your blog.

In comes the dofollow plugin promoted by the yesfollow.org campaign. The idea is to make the standard in the blogosphere be dofollow and incentivise everyone to leave comments on others blogs, newbies and oldies alike. Bloggers will of course have to watch closely for spam but if you have control of your spam (and there are plugins that do this) you should want to use the dofollow plugin and help your fellow bloggers out.

So go join Cesar over at and download the plugin, activate it, and leave your feedback. It took me all of 5 minutes to do the whole thing, including leaving some length feedback at yesfollow.

Don’t forget to spread the word, it’ll help you SEO process.

Happy Commenting!

Add a Field to Your Wordpress Comments

15 February, 2006 (20:13) | Wordpress Tips | By: Erik

I recently embarked on some PHP and MySQL programming this past week to create part of my site SprintRants.com. I am using Wordpress’s comments template to allow people to leave rants on a single page set up to do just that. The only trouble was that I wanted to enable my users of the page to title their posts to allow visitors to the site an easier time navigating what each rant was about.

To do this I need to figure out a way to add a field to my comments form (easy) and also to my MySQL database (hard). I have no experience up to this point with MySQL and very little with php so I knew it wasn’t going to be easy. I searched around the Wordpress forums as well as Googled the heck out of it. After searching and searching I found a thread over at the Wordpress Support page that pointed me in the right direction to add a field to MySQl and my comments template. Coldforged over there had a great post which started me going. It wasn’t super detailed but let me know which php files to mess with. From there I spent a few long hours reading through the existing code in the files and trying to determine what I needed to add.

After about 5 hours I finally figured it out and was able to add a title to not only my add comments template but also to the plugin that I am using provided by Raoul called Simple Recent Comments.

Within this post I tried to detail what I did within each PHP file as best I could. I hope it helps you out and I hope this is really easy for someone who hasn’t had any php or MySQL programming in their past.

WARNING: Just remember to save backups to all the files you have been messing with.

Adding your field to MySQL database

This is probably going to be different for everyone’s hosting company. I personally use NetFirms and when I go to my database manager in site tools, choose the correct database (the number of which can be found in the wp-config.php file in the root folder (by root folder I mean the first folder of your blog that has other files and folders, like wp-admin in it) of the wordpress blog folder you are adjusting the comments for), I have an option called phpMy Admin. Clicking on this takes me to the MySQL administration page where I can make adjustments to the database. I get to the administration portion for wp_comments and find where it will allow me to add a new field. Add your field and add the correct labels and data type, just remember that you need to write down the name with the capitalization correct to use in the php files we are going to adjust.

I added the field comment_title to the database and that will be used as an example for the rest of this tutorial.

Add code to wp-comments-post.php

wp-comments-post.php is in the root folder of your Wordpress blog folder. I believe this is the file that is called to post comments on your blog retrieving the info from your MySQL database. What you need to do is add some code to the following lines where I have added the code in italics. I also noted what the line was but it might be different for you.

Starts on line 19:

$comment_author = trim($_POST['author']);
$comment_author_email = trim($_POST['email']);
$comment_author_url = trim($_POST['url']);
$comment_content = trim($_POST['comment']);
$comment_title = trim($_POST['title']);

Starts on line 48:

$commentdata = compact(’comment_post_ID’, ‘comment_author’, ‘comment_author_email’, ‘comment_author_url’, ‘comment_title’, ‘comment_content’, ‘comment_type’, ‘user_ID’);

Next add code to functions-post.php

I next, following coldforged suggestion path added some code to functions-post.php which was in the wp-includes folder. Again I’m not too sure what this function does but I’m guessing it posts things to the MySQL database? Whatever it does, additions are noted the same as above.

Starts on line 455:

function wp_new_comment( $commentdata, $spam = false ) {
global $wpdb;

$commentdata = apply_filters(’preprocess_comment’, $commentdata);
extract($commentdata);

$comment_post_ID = (int) $comment_post_ID;

$user_id = apply_filters(’pre_user_id’, $user_ID);
$author = apply_filters(’pre_comment_author_name’, $comment_author);
$email = apply_filters(’pre_comment_author_email’, $comment_author_email);
$url = apply_filters(’pre_comment_author_url’, $comment_author_url);
$comment = apply_filters(’pre_comment_content’, $comment_content);
$comment = apply_filters(’post_comment_text’, $comment); // Deprecated
$comment = apply_filters(’comment_content_presave’, $comment); // Deprecated
$title = apply_filters(’pre_comment_title’, $comment_title);

Starts on line 514:
Note that the location of these two additions must be the same in the two lists. I put mine second. The value has to match the place holder in the database or else you’ll have some jumpled information. Notice it inserts the value from $title into the MySQL database spot your created at comment_title in the first step.

$result = $wpdb->query(”INSERT INTO $wpdb->comments
(comment_post_ID, comment_title, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent, comment_type, user_id)
VALUES
(’$comment_post_ID’, ‘$title’, ‘$author’, ‘$email’, ‘$url’, ‘$user_ip’, ‘$now’, ‘$now_gmt’, ‘$comment’, ‘$approved’, ‘$user_agent’, ‘$comment_type’, ‘$user_id’) “);

Now mess with comment-functions.php

This was the one that took me the most time to figure our where to add the code. I finally had a gadunken and figured out that I needed to add a function. Cool:) The comment-functions.php is in the wp-includes file as well. This file I believe is where you draw the comments from when you post the comments?

Starts on line, well I think you can add this anywhere past line 133, just add them in the middle of the already there “get_comment” functions. I am not sure if this function format will work for every field you want to add to the comments section as some of the “get” functions are different. Play around with the format until you get one that works for you if this format doesn’t.

function get_comment_title() {
global $comment;
$title= $comment->comment_title;
return apply_filters(’get_comment_title’, $title);
}

function comment_title() {
$title = apply_filters(’comment_title’, get_comment_title() );
echo $title;
}

Now add the appropriate code to your Comments.php file in your themes templates

Now I can get to my templates through my regular wordpress login and not have to deal with an ftp client. I assume you can as well. The final things you have to add are this.

If you want the new field to post within the comments display after the comment has been written and within wherever you post comments, be it a page or post you have to add code to the foreach comments loop. I added it as the title but just through in the code wherever to get the effect you want.

< ?php foreach ($comments as $comment) : ?>
<li id=”comment-< ?php comment_ID() ?>“>
<h3>< ?php comment_title() ?></h3>
< ?php comment_text() ?>
<cite>< ?php comment_type(__(’Comment’), __(’Trackback’), __(’Pingback’)); ?> < ?php _e(’by’); ?> < ?php comment_author_link() ?> — < ?php comment_date() ?> @ <a href=”#comment-<?php comment_ID() ?>”>< ?php comment_time() ?></a> < ?php edit_comment_link(__(”Edit This”), ‘ |’); ?></cite>
</li>

You need to get the input from the user which is done in the form section like this. You’ll see code that looks just like this at the bottom of the comments.php option, it’s the code to display the form for comments on all of your pages.

<p><input type=”text” name=”title” id=”title” value=”<?php echo $comment_title; ?/>” size=”22″ tabindex=”3″ />
<label for=”title”><small>Title or Subject for your Rant (appreciated)</small></label></p>

You’re DONE!

There you have it. You’re done with adding a field to your comments section for later display. Just remember that you are taking the variable (example) $title and placing it in comment_title in the MySQL database. You should be able to apply this to many other things and use it as a primer to get you started really messing with your wordpress files.

WARNING: Just remember to save backups to all the files you have been messing with.

Add post to de.licio.us link to your blog

29 January, 2006 (08:49) | HTML Tips, Wordpress Tips | By: Erik

Do you want to add a post to del.icio.us link to your post’s without using the WordPress plugin that is available from Arne Brachhold? Or maybe you want to just add it to you blog that’s not php based. Then you can use this simple html link.

<a href=”http://del.icio.us/post?url=< ?php the_permalink() ?>title=< ?php the_title(); ?>” target=”blank”>post to del.icio.us</a>

All it is is a link to del.icio.us using their post link and adding some of your php code. If you look at your main or index.php template from your presentation-theme editor tab you should find the if posts loop. Follow this loop down to the bottom just before you begin to see the php code for the comments section. Right above that is the end of your posts. Copy and past the above code below the php the_content code. This will insert a post to del.icio.us link on every one of your posts.

You can play around with the code and add it elsewhere if you’d like. If you don’t have a php blog figure out what you use to insert the permalink and title, or you can just insert real html http:// links after the “url=” portion and different titles in the “title=” section. Mess around with it but this is the easy way to add the post to del.icio.us link at the end of your posts.

Aloha,
Erik