im in a giving mood today.
[sharelink] in your post or page will create the share link(s) like on lolcats, and it will take use the attached image, so no need for custom fields.
Code:
<?php
function sharelink_shortcode($content)
{
$attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order'));
$img = array_shift($attachments);
$imagelink = wp_get_attachment_image_src($img->ID,'full');
$image = $imagelink[0];
$permalink = get_permalink();
$home = get_bloginfo('home');
$content = 'Link: <input type="text" value="'.$permalink.'" size="30"><br/><br/>';
$content .= 'Image Code: <input type="text" size="45" value="<a href="'.$home.'"><img src="'.$image.'" border="0" alt="funny pics"></a>">';
return $content;
}
add_shortcode('sharelink','sharelink_shortcode');
?>