<!-- /user.3rdPartyAuth -->
<!-- user.avatar -->
+ <option name="gravatar_default_type">
+ <categoryname>user.avatar</categoryname>
+ <optiontype>select</optiontype>
+ <defaultvalue><![CDATA[404]]></defaultvalue>
+ <selectoptions><![CDATA[404:wcf.acp.option.gravatar_default_type.404
+identicon:wcf.acp.option.gravatar_default_type.identicon
+wavatar:wcf.acp.option.gravatar_default_type.wavatar
+monsterid:wcf.acp.option.gravatar_default_type.monsterid
+retro:wcf.acp.option.gravatar_default_type.retro]]></selectoptions>
+ <options>module_gravatar</options>
+ </option>
<option name="max_avatar_width">
<categoryname>user.avatar</categoryname>
<optiontype>integer</optiontype>
{if MODULE_GRAVATAR}
<dl{if $errorField == 'gravatar'} class="formError"{/if}>
- <dt class="framed"><img src="https://secure.gravatar.com/avatar/{@$__wcf->user->email|strtolower|md5}?s=96" alt="" class="icon96" /></dt>
+ <dt class="framed"><img src="https://secure.gravatar.com/avatar/{@$__wcf->user->email|strtolower|md5}?s=96{if GRAVATAR_DEFAULT_TYPE != '404'}&d={@GRAVATAR_DEFAULT_TYPE}{/if}" alt="" class="icon96" /></dt>
<dd>
<label><input type="radio" name="avatarType" value="gravatar" {if $avatarType == 'gravatar'}checked="checked" {/if}/> {lang}wcf.user.avatar.type.gravatar{/lang}</label>
{if $errorField == 'gravatar'}
{if MODULE_GRAVATAR}
<dl{if $errorType[gravatar]|isset} class="formError"{/if}>
- <dt class="framed"><img src="https://secure.gravatar.com/avatar/{@$user->email|strtolower|md5}?s=96" alt="" class="icon96" /></dt>
+ <dt class="framed"><img src="https://secure.gravatar.com/avatar/{@$user->email|strtolower|md5}?s=96{if GRAVATAR_DEFAULT_TYPE != '404'}&d={@GRAVATAR_DEFAULT_TYPE}{/if}" alt="" class="icon96" /></dt>
<dd>
<label><input type="radio" name="avatarType" value="gravatar" {if $avatarType == 'gravatar'}checked="checked" {/if}/> {lang}wcf.user.avatar.type.gravatar{/lang}</label>
}
// try to download new version
- $gravatarURL = sprintf(Gravatar::GRAVATAR_BASE, md5(mb_strtolower($this->user->email)), $this->size, '404');
+ $gravatarURL = sprintf(Gravatar::GRAVATAR_BASE, md5(mb_strtolower($this->user->email)), $this->size, GRAVATAR_DEFAULT_TYPE);
try {
$tmpFile = FileUtil::downloadFileFromHttp($gravatarURL, 'gravatar');
copy($tmpFile, WCF_DIR.$cachedFilename);
* @return boolean
*/
public static function test($email) {
- $gravatarURL = sprintf(self::GRAVATAR_BASE, md5(mb_strtolower($email)), 80, '404');
+ $gravatarURL = sprintf(self::GRAVATAR_BASE, md5(mb_strtolower($email)), 80, GRAVATAR_DEFAULT_TYPE);
try {
$tmpFile = FileUtil::downloadFileFromHttp($gravatarURL, 'gravatar');
@unlink($tmpFile);
<item name="wcf.acp.option.user_authentication_failure_user_captcha.description"><![CDATA[TODO]]></item>
<item name="wcf.acp.option.user_authentication_failure_expiration"><![CDATA[Löschung von alten Protokolleinträgen]]></item>
<item name="wcf.acp.option.user_authentication_failure_expiration.description"><![CDATA[TODO]]></item>
+ <item name="wcf.acp.option.gravatar_default_type"><![CDATA[Standard Gravatar-Typ]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.description"><![CDATA[Der <a class="externalURL" href="{@$__wcf->getPath()}acp/dereferrer.php?url=https://de.gravatar.com/site/implement/images/#default-image">Standard-Gravatar-Typ</a>, wenn einer E-Mail kein Gravatar zugeordnet werden kann.]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.404"><![CDATA[Kein Standard-Gravatar]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.identicon"><![CDATA[Identicon]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.wavatar"><![CDATA[Wavatar]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.monsterid"><![CDATA[Monster-ID]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.retro"><![CDATA[Retro]]></item>
</category>
<category name="wcf.acp.package">
<item name="wcf.acp.option.user_authentication_failure_user_captcha.description"><![CDATA[TODO]]></item>
<item name="wcf.acp.option.user_authentication_failure_expiration"><![CDATA[TODO: Löschung von alten Protokolleinträgen]]></item>
<item name="wcf.acp.option.user_authentication_failure_expiration.description"><![CDATA[TODO]]></item>
+ <item name="wcf.acp.option.gravatar_default_type"><![CDATA[Default Gravatar Type]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.description"><![CDATA[The <a class="externalURL" href="{@$__wcf->getPath()}acp/dereferrer.php?url=https://de.gravatar.com/site/implement/images/#default-image">default Gravatar type</a> used if no matching Gravatar was found.]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.404"><![CDATA[No default Gravatar]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.identicon"><![CDATA[Identicon]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.wavatar"><![CDATA[Wavatar]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.monsterid"><![CDATA[Monster id]]></item>
+ <item name="wcf.acp.option.gravatar_default_type.retro"><![CDATA[Retro]]></item>
</category>
<category name="wcf.acp.package">