get_header(); ?> <div id="content" class="narrowcolumn"> <!-- This sets the $curauth & $authid variables --> <?php if (get_query_var('author_name')) { $curauth = get_userdatabylogin(get_query_var('author_name')); } else { $curauth = get_userdata(get_query_var('author')); } $authid = $curauth->ID; ?> <div id="profilebox" style="min-height: <?php author_image_dimensions(author_image_path($authid, false, 'absolute'), 'height', true); ?> px;"> <!-- old school method <?php author_image_tag($authid, 'align=right'); ?> <h2><?php _e($curauth->first_name); ?> <?php _e($curauth->last_name); ?> </h2>
function author_image_tag($authorID, $tags = '', $display = true) { $path = author_image_path($authorID, false, 'absolute'); $width = author_image_dimensions($path, 'width'); //$height = author_image_dimensions($path, 'height');//again not needed $tag = '<img src="' . author_image_path($authorID, false, 'url') . '" width=' . $width . ' ' . $tags . ' ' . ' id="authorpic" />'; if ($display) { echo $tag; } else { return $tag; } }