“Send 2 friend” function
-
Hi,
for a while i have been looking for a simple way to add a “send 2 friend” functionality to my posts.
I saw one that i liked at a friend’s blog (which is implemented in Movable Type, though: http://vowe.net).
After looking at the page source i thought i could do that myself and just hacked the index.php in my theme dir with this code for the loop (in the
<p class="postmetadata">section):<a title="Mail this to someone else" href="mailto:?subject=<?php bloginfo('name'); ?>: <?php the_title(); ?>&body=You might consider reading this: <?php the_permalink() ?>">Send 2 friend</a> <strong>|</strong>As you can see, this basically just adds a mailto: link which calls the blog and post title for the subject line and adds a little body – everything else is left to the default mail client on the system. I think that’s no bad idea at all. You can see it action on my site http://www.teezeh.info
Since i am all but a PHP or WP wizard, i just wonderes whether this could be done as a plug-in as well? After some browsing through he Codex i found that i neither have the time nor the skills to do this. Maybe someone else wants to try?
The topic ‘“Send 2 friend” function’ is closed to new replies.