{"id":2950,"date":"2008-12-04T20:21:12","date_gmt":"2008-12-04T20:21:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sem-author-image\/"},"modified":"2015-09-07T20:10:18","modified_gmt":"2015-09-07T20:10:18","slug":"sem-author-image","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/sem-author-image\/","author":15215,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"4.9.3","stable_tag":"trunk","tested":"4.3.34","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Author Image","header_author":"Denis de Bernardy & Mike Koepke","header_description":"","assets_banners_color":"","last_updated":"2017-11-28 16:09:51","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.semiologic.com\/donate\/","header_plugin_uri":"https:\/\/www.semiologic.com\/software\/author-image\/","header_author_uri":"https:\/\/www.semiologic.com","rating":3,"author_block_rating":0,"active_installs":1000,"downloads":142965,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":"2","3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["4.2","4.3","4.4","4.5","4.5.1","4.6","4.7","4.8","4.8.1","4.9","4.9.1","4.9.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1777064","resolution":"1","location":"plugin"}},"screenshots":{"1":"Screenshot of Author Image in action"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[132,9325,8357],"plugin_category":[],"plugin_contributors":[78680,78681],"plugin_business_model":[],"class_list":["post-2950","plugin","type-plugin","status-publish","hentry","plugin_tags-author","plugin_tags-author-image","plugin_tags-semiologic","plugin_contributors-denis-de-bernardy","plugin_contributors-mike_koepke","plugin_committers-denis-de-bernardy","plugin_committers-mike_koepke"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/sem-author-image.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/sem-author-image\/trunk\/screenshot-1.png?rev=1777064","caption":"Screenshot of Author Image in action"}],"raw_content":"<!--section=description-->\n<p>The Author Image plugin for WordPress lets you easily add author images on your site.<\/p>\n\n<p>It creates a widget that you can insert in a sidebar or any other widget area allowed by your theme.\nThe plugin now supports a short code [author-image] you cna use to directly add the image to the page or post content.<\/p>\n\n<p>Alternatively, you can place the following call in the loop where you want the author image to appear:<\/p>\n\n<pre><code>&lt;?php the_author_image($author_id = null); ?&gt;\n\nThis $author_id parameter is optional.  If it is not passed in, the code will attempt to get the current author of the page\/post.\n<\/code><\/pre>\n\n<p>A second version of this function exists whereby you can pass in width and height to display the image.<\/p>\n\n<pre><code>&lt;?php the_author_image_size($width, $height, $author_id = null); ?&gt;\n\nThis $author_id parameter is optional.  If it is not passed in, the code will attempt to get the current author of the page\/post.\n<\/code><\/pre>\n\n<p>To configure your author image, browse Users \/ Your Profile in the admin area.<\/p>\n\n<h4>Setting Author Image Size<\/h4>\n\n<p>You can adjust the actual display size in the Author Image widget or by using the_author_image_size function call.<\/p>\n\n<p>If you do not specify a size the width and height of the actual image will be used.<\/p>\n\n<h4>Shortcode<\/h4>\n\n<p>You can use [author-image] to display the uploaded author image in your page\/post content.<\/p>\n\n<h4>Author's Bio<\/h4>\n\n<p>You can configure the widget so it outputs the author's description in addition to his image.<\/p>\n\n<p>This fits well on a site where the author's image is placed in a sidebar, or the <a href=\"http:\/\/www.semiologic.com\/software\/sem-reloaded\/\">Semiologic theme<\/a> when the widget is placed immediately after the posts' content -- i.e. \"About The Author.\"<\/p>\n\n<h4>Gravatar Support<\/h4>\n\n<p>The uploaded image will be used as your gravatar by themes that call the get_avatar() function.  This will override an image set on gravatar.com<\/p>\n\n<h4>Multi-Author Sites<\/h4>\n\n<p>For sites with multitudes of authors, the widget offers the ability to insert a link to the author's posts -- his archives.<\/p>\n\n<h4>Single Author Sites<\/h4>\n\n<p>Normally the widget will only display an author image when it can clearly identify who the content's author actually is. In other words, on singular pages or in the loop.<\/p>\n\n<p>If you run a single author site, or a site with multiple ghost writers, be sure to check the \"This site has a single author\" option. The widget will then output your image at all times.<\/p>\n\n<h4>Alternate About Page Link<\/h4>\n\n<p>Normally the widget will use the author's posts page (\/author\/authorname\/) is the image is clicked on.   If your site has a dedicated page for the author, such as an 'About Me' page,<\/p>\n\n<p>there is a new field in 'Your Profile' called 'About Me Page'.  Entering a url in this field (\/about-me\/) will cause the widget to use this link as opposed to \/author\/authorname.<\/p>\n\n<h4>Retrieving Author Url<\/h4>\n\n<p>You can retrieve the url to the respective author image by calling the function<\/p>\n\n<pre><code>&lt;?php the_author_image_url($author_id = null); ?&gt;\n<\/code><\/pre>\n\n<p>If $author_id is blank the plugin will attempt to determine the current author and retrieve his\/her image.<\/p>\n\n<h4>Help Me!<\/h4>\n\n<p>The <a href=\"https:\/\/wordpress.org\/support\/plugin\/sem-author-image\">Plugin's Forum<\/a> is the best place to report issues.<\/p>\n\n<h3>Credits<\/h3>\n\n<p>Props to By Daniel J. Schneider for author_image_url functionality<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Make the <code>wp-content<\/code> folder writable by your server (chmod 777)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Make the <code>wp-content<\/code> folder writable by your server (chmod 777)<\/li>\n<\/ol><\/dd>\n<dt>Image Style<\/dt>\n<dd><p>You can use the <code>.entry_author_image<\/code> CSS class to customize where and how the image appears.<\/p>\n\n<p>For instance:<\/p>\n\n<pre><code>.entry_author_image {\n  float: left;\n  border: solid 1px outset;\n  margin: 1.2em 1.2em 0px .1em;\n}\n<\/code><\/pre><\/dd>\n<dt>Overriding CSS Floats<\/dt>\n<dd><p>When displaying wide videos, images or tabular data, it becomes desirable to bump the content below the author's image. To achieve this, insert the following code in your post:<\/p>\n\n<pre><code>&lt;div style=\"clear:both;\"&gt;&lt;\/div&gt;\n<\/code><\/pre><\/dd>\n<dt>Set Uploaded Image Max Width and Height<\/dt>\n<dd><p>Two constants can be set in your <code>wp-config.php<\/code> file to set the max size of the uploaded image.  These values are in pixels.<\/p>\n\n<pre><code>define('SEM_AUTHOR_IMAGE_WIDTH', 100);\ndefine('SEM_AUTHOR_IMAGE_HEIGHT', 120);\n<\/code><\/pre>\n\n<p>The default values for these settings are 250 x 250.<\/p><\/dd>\n<dt>Can I Make changes to the Author's Bio Before it is Displayed<\/dt>\n<dd><p>There is a filter called author_image_bio that can be used to modify the bio text.<\/p><\/dd>\n<dt>Nothing is Displaying<\/dt>\n<dd><p>More than likely you have place the the_author_image function call outside of your template's posts loop so the author cannot be determined.  Trying passing in an author id directly.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>4.9.3<\/h4>\n\n<ul>\n<li>Back out the 4.9.2 change for now.<\/li>\n<\/ul>\n\n<h4>4.9.2<\/h4>\n\n<ul>\n<li>Make sure we actually found user before attempting to get its upload photo.  props maxfenton<\/li>\n<\/ul>\n\n<h4>4.9.1<\/h4>\n\n<ul>\n<li>Oh well.  Used 4.2 only gravatar code that broke non-WP 4.2 sites.   Put back old stuff<\/li>\n<\/ul>\n\n<h4>4.9<\/h4>\n\n<ul>\n<li>New author-image shortcode<\/li>\n<li>Added get_author_image() wrapper function<\/li>\n<li>Reworked gravatar support code.   Now applies the class of 'avatar photo' to the image for proper theme styling<\/li>\n<li>Updated to use PHP5 constructors as WP deprecated PHP4 constructor type in 4.3.<\/li>\n<li>WP 4.3 compat<\/li>\n<li>Tested against PHP 5.6<\/li>\n<\/ul>\n\n<h4>4.8.1<\/h4>\n\n<ul>\n<li>Security update: Escape URLs returned by add_query_arg and remove_query_arg<\/li>\n<li>Ensure Alternate About Page is being sanitized.<\/li>\n<\/ul>\n\n<h4>4.8<\/h4>\n\n<ul>\n<li>Fix &lt;a link incorrectly being generated for authors that have no image<\/li>\n<li>Author photo is now left-aligned when a bio output is selected<\/li>\n<li>New author_image_bio filter to override the output bio<\/li>\n<li>Fixed various non-static function call warnings with php 5.4+<\/li>\n<li>WP 4.0 compat<\/li>\n<\/ul>\n\n<p><h4>4.7.1<\/h4><\/p>\n\n<ul>\n<li>Fix localization<\/li>\n<\/ul>\n\n<h4>4.7<\/h4>\n\n<ul>\n<li>Code refactoring<\/li>\n<li>WP 3.9 compat<\/li>\n<\/ul>\n\n<h4>4.6<\/h4>\n\n<ul>\n<li>Added function to retrieve direct link to author's image - the_author_image_url<\/li>\n<li>Refactored some of the code around the get_author_.....  type functions<\/li>\n<\/ul>\n\n<h4>4.5.1<\/h4>\n\n<ul>\n<li>WP 3.8 compat<\/li>\n<\/ul>\n\n<h4>4.5<\/h4>\n\n<ul>\n<li>Fix bug where the author image was shown as the default avatar in the Settings-&gt;Discussions screen.<\/li>\n<li>WP 3.7 compat<\/li>\n<\/ul>\n\n<h4>4.4<\/h4>\n\n<ul>\n<li>Added ability to specify a width and height in the widget<\/li>\n<li>Added new the_author_image_size function<\/li>\n<\/ul>\n\n<h4>4.3<\/h4>\n\n<ul>\n<li>Added ability to set link to alternate page if image is clicked on.<\/li>\n<li>Your author's image will also be served as your gravatar\/avatar on the site for themes that call get_avatar for the post author or in comments.<\/li>\n<li>WP 3.6 compat<\/li>\n<li>PHP 5.4 Strict compat<\/li>\n<\/ul>\n\n<h4>4.2<\/h4>\n\n<ul>\n<li> alt field now set with author display name<\/li>\n<\/ul>\n\n<h4>4.1.1<\/h4>\n\n<ul>\n<li>Removed non-static function warning<\/li>\n<\/ul>\n\n<h4>4.1<\/h4>\n\n<ul>\n<li>Fix deprecated functions that caused the plugin to break with WP 3.5<\/li>\n<\/ul>\n\n<h4>4.0.4<\/h4>\n\n<ul>\n<li>Add two defines, <code>SEM_AUTHOR_IMAGE_WIDTH<\/code> and <code>SEM_AUTHOR_IMAGE_HEIGHT<\/code>, to control the max height\/width from the <code>wp-config.php<\/code> file.<\/li>\n<\/ul>\n\n<h4>4.0.3<\/h4>\n\n<ul>\n<li>WP 3.0.1 compat<\/li>\n<\/ul>\n\n<h4>4.0.2<\/h4>\n\n<ul>\n<li>WP 3.0 compat<\/li>\n<\/ul>\n\n<h4>4.0.1<\/h4>\n\n<ul>\n<li>Fix for authors with a space in their username<\/li>\n<li>Tweak the default Widget Contexts<\/li>\n<\/ul>\n\n<h4>4.0<\/h4>\n\n<ul>\n<li>WP_Widget class<\/li>\n<li>Allow to add the author's bio after the image<\/li>\n<li>Allow to add a link to the author's posts on the image<\/li>\n<li>Localization<\/li>\n<li>Code enhancements and optimizations<\/li>\n<\/ul>","raw_excerpt":"Lets you easily add author images on your site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2950"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/denis-de-bernardy"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2950"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2950"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2950"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2950"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2950"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}