{"id":7504,"date":"2009-12-14T22:57:22","date_gmt":"2009-12-14T22:57:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/avatar-preview\/"},"modified":"2010-03-26T05:39:06","modified_gmt":"2010-03-26T05:39:06","slug":"avatar-preview","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/avatar-preview\/","author":5616193,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.3","stable_tag":"1.1.3","tested":"2.9.2","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Avatar Preview","header_author":"Xaquseg","header_description":"","assets_banners_color":"","last_updated":"2010-03-26 05:39:06","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/xaquseg.dswebhost.net","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2546,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.1.3":"<p>Fix broken check that caused the preview to fail to load.<\/p>","1.1.2":"<p>Don&#039;t serve the javascript to logged in users.<\/p>","1.1.1":"<p>Fix Javascript errors if the email field or preview box aren&#039;t found, embed avatarpreview.js in the footer instead of the header, and update compatable version to 2.9.2<\/p>","1.1":"<p>Correctly support rating settings other than &quot;g&quot; and default avatars other than &quot;identicon&quot;, size of avatar in preview is now configurable.<\/p>","1.0.1":"<p>Add additional documentation, and update compatable version to 2.9<\/p>","1.0":"<p>First public release.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","1.1.1","1.1.2","1.1.3"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[129,107,127],"plugin_category":[44],"plugin_contributors":[94355],"plugin_business_model":[],"class_list":["post-7504","plugin","type-plugin","status-closed","hentry","plugin_tags-avatar","plugin_tags-comments","plugin_tags-gravatar","plugin_category-discussion-and-community","plugin_contributors-xaquseg","plugin_committers-xaquseg"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/avatar-preview.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Shows an avatar preview on the comment form based on the email address entered.<\/p>\n\n<p>Uses the <a href=\"http:\/\/pajhome.org.uk\/crypt\/md5\/\">Javascript MD5 library by Paul Johnston<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;div id=\"avatarPreviewBox\"&gt;&lt;\/div&gt;<\/code> in your comments template where you want the preview to appear. Make sure your email input field has <code>id=\"email\"<\/code>. You may optionally add <code>class=\"previewsize-64\"<\/code> to change the size of the preview, where 64 is the size in pixels.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What do I need to know to style it to match my theme?<\/dt>\n<dd><p>The following IDs are used:<\/p>\n\n<ul>\n<li><code>avatarPreviewImage<\/code> for the avatar itself<\/li>\n<li><code>avatarPreviewDesc<\/code> for the description\/status (\"Enter your email to see an avatar preview.\" for example)<\/li>\n<li><code>avatarChangeLink<\/code> for the link to http:\/\/www.gravatar.com\/<\/li>\n<\/ul>\n\n<p>Example generated HTML:<\/p>\n\n<pre><code>&lt;div id=\"avatarPreviewBox\"&gt;\n    &lt;img id=\"avatarPreviewImage\" src=\"http:\/\/www.gravatar.com\/avatar\/23463b99b62a72f26ed677cc556c44e8?r=pg&amp;amp;d=identicon&amp;amp;s=32\" height=\"32\" width=\"32\" \/&gt;\n    &lt;p id=\"avatarPreviewDesc\"&gt;Gravatar for 'example@example.com'&lt;\/p&gt;\n    &lt;p&gt;&lt;a id=\"avatarChangeLink\" target=\"_blank\" href=\"http:\/\/www.gravatar.com\/\"&gt;Change at Gravatar.com&lt;\/a&gt;&lt;\/p&gt;\n&lt;\/div&gt;\n<\/code><\/pre>\n\n<p>Example CSS:<\/p><\/dd>\n<dt>avatarPreviewBox {<\/dt>\n<dd><p>padding: 0;\n        margin: 0;\n        background: transparent;\n    }<\/p><\/dd>\n<dt>avatarPreviewBox #avatarPreviewImage {<\/dt>\n<dd><p>float: left;\n        padding-right: 3px;\n    }<\/p><\/dd>\n<dt>avatarPreviewBox p {<\/dt>\n<dd><p>margin: 0;\n        padding: 0;\n    }<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Fix broken check that caused the preview to fail to load.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Don't serve the javascript to logged in users.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fix Javascript errors if the email field or preview box aren't found.<\/li>\n<li>Embed avatarpreview.js in the footer instead of the header.<\/li>\n<li>Update compatable version to 2.9.2<\/li>\n<li>Document format of generated code better, for easier styling.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Correctly support rating settings other than \"g\" and default avatars other than \"identicon\".<\/li>\n<li>Support configuring the size of the preview image via a \"previewsize-NUMBER\" class.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Add additional documentation<\/li>\n<li>Update compatable version to 2.9<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First public release<\/li>\n<\/ul>","raw_excerpt":"Shows an avatar preview on the comment form.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7504"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/xaquseg"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7504"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7504"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7504"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7504"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7504"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}