<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged gravatar</title>
<link>https://www.question2answer.org/qa/tag/gravatar</link>
<description>Powered by Question2Answer</description>
<item>
<title>resizing users avatar to square</title>
<link>https://www.question2answer.org/qa/90487/resizing-users-avatar-to-square</link>
<description>Q2A allows users to add a profile picture of their own dimensions.&lt;br /&gt;
&lt;br /&gt;
But, I want the users avatar to be resized to square though they have uploaded images with any other dimensions in their profiles.&lt;br /&gt;
&lt;br /&gt;
What changes should I make to the source code?&lt;br /&gt;
&lt;br /&gt;
I can provide any information if required?</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/90487/resizing-users-avatar-to-square</guid>
<pubDate>Wed, 20 Jan 2021 12:47:33 +0000</pubDate>
</item>
<item>
<title>Where is the option to switch on/off gravatar profile images?</title>
<link>https://www.question2answer.org/qa/59865/where-is-the-option-to-switch-on-off-gravatar-profile-images</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have installed Q2A with WordPress integration. I don't like the gravatar profile images, so how can user upload their own images?&lt;br /&gt;
&lt;br /&gt;
Is it possible?&lt;br /&gt;
&lt;br /&gt;
Thanks Fabian</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/59865/where-is-the-option-to-switch-on-off-gravatar-profile-images</guid>
<pubDate>Tue, 26 Sep 2017 11:26:03 +0000</pubDate>
</item>
<item>
<title>Why is user avatar square box blank when wordpress integration SSO is used</title>
<link>https://www.question2answer.org/qa/55686/why-user-avatar-square-blank-when-wordpress-integration-used</link>
<description>I integrated SSO with wordpress using the q2a instructions. &amp;nbsp;On most pages, the user avatar image is blank. &amp;nbsp;Is this related to Q2A or the wordpress profile? &amp;nbsp;It's an eyesore with just a blank empty box front and center. Also on user profile, the left box is missing? Anyone know how to fix? Thanks.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/55686/why-user-avatar-square-blank-when-wordpress-integration-used</guid>
<pubDate>Sat, 07 Jan 2017 03:04:49 +0000</pubDate>
</item>
<item>
<title>How can I enforce the use of unique gravatars by everyone?</title>
<link>https://www.question2answer.org/qa/49844/how-can-i-enforce-the-use-of-unique-gravatars-by-everyone</link>
<description>How can I enforce the use of gravatars for everyone? When I enable gravatars, it seems like it will show only for users who have enabled them in their profile. Additionally, q2a's gravatar urls apparently do not pass in a variable like d=identicon (from their guide at &lt;a href=&quot;http://en.gravatar.com/site/implement/images/&quot; rel=&quot;nofollow&quot;&gt;http://en.gravatar.com/site/implement/images/&lt;/a&gt;) so the default gravatar is not unique.&lt;br /&gt;
&lt;br /&gt;
I want to force all users to use a gravatar, and if they do not have their own, then for it to be generated from a unique hash. Any help to achieve this is appreciated.&lt;br /&gt;
&lt;br /&gt;
I can look at editing the theme or create a custom plugin. I just don't know where to start. Thanks!</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/49844/how-can-i-enforce-the-use-of-unique-gravatars-by-everyone</guid>
<pubDate>Wed, 13 Jan 2016 20:21:55 +0000</pubDate>
</item>
<item>
<title>Is gravatar user profile function correctly working?</title>
<link>https://www.question2answer.org/qa/43741/is-gravatar-user-profile-function-correctly-working</link>
<description>

&lt;p&gt;I am trying to include my avatar in my profile...&lt;/p&gt;

&lt;p&gt;I was expecting something like a space to insert my url gravatar address or that the gravatar arose automatically based on my email address. One of the two things happens here... Either , when I press the button it goes to gravatar.com: &lt;a rel=&quot;nofollow&quot; href=&quot;http://pt.gravatar.com/&quot;&gt;http://pt.gravatar.com/&lt;/a&gt; or If I only check the radio button, it presents the default avatar.&lt;/p&gt;

&lt;p&gt;Furthermore, I tried to find a function similar to&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;qa_set_user_avatar($userId, file_get_contents($selectedAvatarFilePath), null);&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;to deal with gravatars and I was not able to find it. The only thing that I found was&lt;/p&gt;

&lt;p&gt;qa_get_gravatar_html($email, $size) that generates gravatars and as far as I know it is used here (account.php):&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (qa_opt('avatar_allow_gravatar')) {
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$avataroptions['gravatar']='&amp;lt;span style=&quot;margin:2px 0; display:inline-block;&quot;&amp;gt;'.
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;qa_get_gravatar_html($useraccount['email'], 32).' '.strtr(qa_lang_html('users/avatar_gravatar'), array(
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'^1' =&amp;gt; '&amp;lt;a href=&quot;&lt;a href=&quot;http://www.gravatar.com/&quot;&quot; rel=&quot;nofollow&quot;&gt;http://www.gravatar.com/&quot;&lt;/a&gt; target=&quot;_blank&quot;&amp;gt;',
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'^2' =&amp;gt; '&amp;lt;/a&amp;gt;',
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;)).'&amp;lt;/span&amp;gt;';&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($useraccount['flags'] &amp;amp; QA_USER_FLAGS_SHOW_GRAVATAR)
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$avatarvalue=$avataroptions['gravatar'];
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;However, I am not sure if it is working as expected.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43741/is-gravatar-user-profile-function-correctly-working</guid>
<pubDate>Thu, 12 Feb 2015 08:33:46 +0000</pubDate>
</item>
<item>
<title>Tips: Method to change default avatar type of new registered user</title>
<link>https://www.question2answer.org/qa/39730/tips-method-change-default-avatar-type-new-registered-user</link>
<description>

&lt;p&gt;
	This tips is conversation in &lt;a rel=&quot;nofollow&quot; href=&quot;http://askive.cmsbox.jp/&quot;&gt;ASKIVE&lt;/a&gt;. Because I think that there are many users in hope of the same (like) things, I will share it here.&lt;/p&gt;


&lt;p&gt;
	Original question:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-size:16px;&quot;&gt;How to make default avatar on Gravatar at registration?&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	My (selected) answer:&lt;/p&gt;


&lt;p&gt;
	Try tiny plugin below.&lt;/p&gt;


&lt;p&gt;
	1. Create new plugin (e.g.&amp;nbsp;qa-plugin/default-gravatar)&lt;/p&gt;


&lt;p&gt;
	2. Upload&amp;nbsp;qa-plugin.php&amp;nbsp;under&amp;nbsp;qa-plugin/default-gravatar/&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;p&gt;
		&amp;lt;?php
&lt;br&gt;
		if (!defined('QA_VERSION')) {
&lt;br&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;header('Location: ../../');
&lt;br&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;exit;
&lt;br&gt;
		}
&lt;br&gt;
		qa_register_plugin_overrides('qa-default-gravatar.php')&lt;/p&gt;
&lt;/blockquote&gt;


&lt;p&gt;
	3. Upload&amp;nbsp;qa-default-gravatar.php&amp;nbsp;under&amp;nbsp;qa-plugin/default-gravatar/&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;p&gt;
		&amp;lt;?php
&lt;br&gt;
		if (!defined('QA_VERSION')) {
&lt;br&gt;
		&amp;nbsp; header('Location: ../../');
&lt;br&gt;
		&amp;nbsp; exit;
&lt;br&gt;
		}
&lt;br&gt;
		function qa_create_new_user($email, $password, $handle, $level=QA_USER_LEVEL_BASIC, $confirmed=false) {
&lt;br&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;$userid = qa_create_new_user_base($email, $password, $handle, $level, $confirmed);
&lt;br&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;if (qa_opt('avatar_allow_gravatar'))
&lt;br&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;qa_db_user_set_flag($userid, QA_USER_FLAGS_SHOW_GRAVATAR, true);
&lt;br&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;return $userid;
&lt;br&gt;
		}&lt;/p&gt;
&lt;/blockquote&gt;


&lt;p&gt;
	&lt;strong&gt;This code is very simple, but you may be able to change default specifications to be related to user registeration without core hack.&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	Thanks Lucas.&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/39730/tips-method-change-default-avatar-type-new-registered-user</guid>
<pubDate>Fri, 17 Oct 2014 05:55:20 +0000</pubDate>
</item>
<item>
<title>Gravatar identicons as default avatars?</title>
<link>https://www.question2answer.org/qa/32940/gravatar-identicons-as-default-avatars</link>
<description>

&lt;p&gt;
	Hi,&lt;/p&gt;


&lt;p&gt;
	I'm planning to use gravatar identicons (see: &lt;a href=&quot;https://en.gravatar.com/site/implement/images/&quot; rel=&quot;nofollow&quot;&gt;https://en.gravatar.com/site/implement/images/&lt;/a&gt;, and &amp;nbsp;&lt;a href=&quot;http://www.gravatar.com/avatar/123?f=y&amp;amp;d=identicon&quot; rel=&quot;nofollow&quot;&gt;http://www.gravatar.com/avatar/123?f=y&amp;amp;d=identicon&lt;/a&gt;) as default avatars.&lt;/p&gt;


&lt;p&gt;
	Does anyone have experience on this? Is it supported by any existing plugins?&lt;/p&gt;


&lt;p&gt;
	Thanks!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/32940/gravatar-identicons-as-default-avatars</guid>
<pubDate>Thu, 20 Mar 2014 14:22:03 +0000</pubDate>
</item>
<item>
<title>New Avatar plugin(UNICORNIFY)</title>
<link>https://www.question2answer.org/qa/23089/new-avatar-plugin-unicornify</link>
<description>

&lt;p&gt;
	This plugin basically overrides&amp;nbsp; the gravatar plugin that's already in the system.&lt;/p&gt;


&lt;p&gt;
	Unicornified is a cool system just like Gravatar, but instead it uses unicorns picture. And each member has its unique avatar. It give the theme a nice look.&lt;/p&gt;


&lt;p&gt;
	Installation:&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;https://github.com/chejug/unicornify-avatar&quot; rel=&quot;nofollow&quot;&gt;https://github.com/chejug/unicornify-avatar&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	@IamRobin already setup this plugin, you can check out the demo on his site:&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;http://www.askoverflow.com/users&quot; rel=&quot;nofollow&quot;&gt;http://www.askoverflow.com/users&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/23089/new-avatar-plugin-unicornify</guid>
<pubDate>Sat, 13 Apr 2013 16:58:10 +0000</pubDate>
</item>
<item>
<title>Should gravatars be used by default for new users if they're available?</title>
<link>https://www.question2answer.org/qa/18285/should-gravatars-used-default-for-new-users-theyre-available</link>
<description>That is their very purpose, after all... not having to set up the profile picture on every new site we register.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18285/should-gravatars-used-default-for-new-users-theyre-available</guid>
<pubDate>Mon, 08 Oct 2012 15:06:28 +0000</pubDate>
</item>
<item>
<title>Can i use gravatar avatar system, if i set QA_EXTERNAL_USERS to true?</title>
<link>https://www.question2answer.org/qa/3487/can-use-gravatar-avatar-system-set-qa_external_users-true</link>
<description>

&lt;p&gt;
	My site is: &lt;a href=&quot;http://nanrenwa.com/qa/&quot; rel=&quot;nofollow&quot;&gt;http://nanrenwa.com/qa/&lt;/a&gt;
&lt;br&gt;
	
&lt;br&gt;
	I set QA_EXTERNAL_USERS to true, because i used my owner site user system.
&lt;br&gt;
	
&lt;br&gt;
	And now i want to use avatar.
&lt;br&gt;
	
&lt;br&gt;
	How can i do it?
&lt;br&gt;
	
&lt;br&gt;
	My owner user db have an email field each, i think can use gravatar if i can.
&lt;br&gt;
	
&lt;br&gt;
	Please help, thank.&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	i used qa_get_users_html function now. but can't control the size different from answer and comment.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/3487/can-use-gravatar-avatar-system-set-qa_external_users-true</guid>
<pubDate>Tue, 16 Nov 2010 01:16:26 +0000</pubDate>
</item>
<item>
<title>Where should avatars be displayed?</title>
<link>https://www.question2answer.org/qa/2846/where-should-avatars-be-displayed</link>
<description>

&lt;p&gt;
	Hi there. I'm implementing avatars now and was wondering where people thought they should be displayed on a question or list of questions. Options include:&lt;/p&gt;


&lt;ul&gt;
	

&lt;li&gt;
		To the left of the Q/A/C text (just after vote/answer counts)&lt;/li&gt;
	

&lt;li&gt;
		On the far right hand side of the Q/A/C text&lt;/li&gt;
	

&lt;li&gt;
		Just before the username (e.g. gidgreen) on the same line&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
	Obviously this will be customizable via themes, and it's also possible that more than one of these will be offered via the options, but I want to get a sense of what people want.&lt;/p&gt;


&lt;p&gt;
	Thanks!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/2846/where-should-avatars-be-displayed</guid>
<pubDate>Sun, 10 Oct 2010 05:32:39 +0000</pubDate>
</item>
<item>
<title>How do I get the userid of the author of a post?</title>
<link>https://www.question2answer.org/qa/1990/how-do-i-get-the-userid-of-the-author-of-a-post</link>
<description>Basically I am adding Gravatar support to my the question and answer view and I need to be able to extract the userid of the author of the post (be it a question, answer or comment) so I can call the following function to get their email address:&lt;br /&gt;
&lt;br /&gt;
qa_db_single_select($qa_db, qa_db_user_account_selectspec($userid, true));&lt;br /&gt;
&lt;br /&gt;
Does anyone know a simple way of doing this?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/1990/how-do-i-get-the-userid-of-the-author-of-a-post</guid>
<pubDate>Wed, 21 Jul 2010 08:43:52 +0000</pubDate>
</item>
</channel>
</rss>