News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Gravatar 4 SMF

Started by digger, September 21, 2012, 05:41:50 PM

Previous topic - Next topic

digger

Link to the mod

Gravatar 4 SMF
Languages: English, Russian, Spanish

History:
1.0 Initial release.
1.1 Add option for setup custom image added. Fixed "Undefined index: email_address" warning.
1.3 Add option for force Gravatars to be used instead of normal avatars.
1.4 Fix gravatar in the member profile summary.
1.4.1 HTTPS for gravatars is enabled for SMF version 2.0.14 and above.
1.4.2 Add support for robohash style.
1.4.3 Add Latin Spanish translation.
1.4.4 Add new robohash styles.

Your Gravatar is an image that follows you from site to site appearing beside your name when you do things like comment or post on a blog. Avatars help identify your posts on blogs and web forums, so why not on any site?
Gravatars are globally recognised avatars. Basically, you upload your avatar to the Gravatar site, and it will automatically appear on all blogs and forums that support Gravatar. Whenever you change your avatar, it will automatically change on all Gravatar-enabled sites. Gravatars associated with the users email addresses.

How this mod works:
If the "Enable gravatar" option is enabled, Gravatar will be used for all members who have not set an forum avatar. If a member have uploaded Gravatar at gravatar.com, it will be used. For any member who don't have own Gravatar, unique image will be generated a themed image that is unique to member's email address.

You can use this mod for setup custom default avatar.
Also you can force Gravatars to be used instead of regular avatars.

Supports Robohash avatar styles too.



This mod is licensed under MIT License https://opensource.org/licenses/MIT

GitHub repository: https://github.com/realdigger/SMF-Gravatar
                                                                                   

История:
1.0 Начальный релиз.
1.1 Добавлена возможность установки произвольного изображения по умолчанию. Исправлена ошибка "Undefined index: email_address".
1.3 Добавлена настройка для принудительной установки граватаров всем пользователям вместо аватаров.
1.4 Исправлено отображение граватара на странице профиля пользователя.
1.4.1 Для граватаров автоматически включается HTTPS, если установлена версия SMF 2.0.14 и выше.
1.4.2 Добавлена поддержка нового стиля с роботами.
1.4.3 Добавлен Испанский язык.
1.4.4 Добавлены новые стили от Robohash.

Ваш Граватар - это изображение, которое следует за вами от сайта к сайту и появляется рядом с вашим именем, когда вы делаете такие вещи, как оставляете комментарий или сообщение в блоге или на форуме. Аватары помогают идентифицировать свои сообщения в блогах и на форумах, так почему бы им не быть на каждом сайте?
Граватары - это глобально используемые аватары. Вы просто загружаете свой аватар на сайт Gravatar.com, и он будет автоматически появляться на всех блогах и форумах, которые поддерживают Граватары. Всякий раз, когда вы изменяете ваш Граватар, он автоматически изменяется на всех сайтах с поддержкой Граватаров. Граватары привязаны к пользователям посредством адресов электронной почты.

Как этот мод работает:
Если активирована опция "Включить граватары", Граватары будет использоваться для всех тех пользователей, кто не установил себе аватар на форуме. Если у пользователя есть загруженный на gravatar.com аватар, будет использоваться он. Для остальных пользователей, которые не имеют собственных Граватаров, будут сгенерированы уникальные изображения в соответствии с выбранным в настройках стилем.

Мод можно использовать для задания произвольного аватара по умолчанию.
Также, можно принудительно включить генерацию граватаров для всех пользователей, независимо от того, есть у них аватары или нет.

Так же, поддерживаются дополнительные стили аватаров Robohash.

Этот мод распространяется под лицензией MIT https://opensource.org/licenses/MIT   

GitHub репозиторий: https://github.com/realdigger/SMF-Gravatar

skoubah

Great mod.

Only complaint/request.

The gravatar should also show on the users profile page. Right now its only showing up i posts.

fiver

Any way for members to disable it? if they don't like the auto-generated Gravatar.

digger

Quote from: fiver on September 22, 2012, 10:07:33 AM
Any way for members to disable it? if they don't like the auto-generated Gravatar.
If they don't like the auto-generated Gravatar don't use this mod. Or set the "mystic man" as default.

fiver

Many thanks for the reply.


I thought it will be nice for individuals to be able to disable it if they want to.


Anyway, error log:



.........../index.php?action=register2
8: Undefined index: email_address
File: /.........../Sources/Mod-Gravatar.php
Line: 120




Adrek

you know, there is another gravatar mod that has this ability (Simple Gravatar)
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Gryzor

#6
Hm, am I missing something? I went into an existing user's profile, a user who has set no avatar, and I can't find a way to create a gravatar... does this work only for new users?

Thanks - this is the only gravatar mod that allows for those random avatars, and it's nice!

[EDIT] Oh, it just needed a refresh and the profile appeared with the Gravatar in place. Cool!

Just one question - can you make it so that a size limit can be set? At the moment I see it's a 100x100px image, but this is a bit big for my liking...

Gryzor

Quote from: digger on September 22, 2012, 04:29:37 PM
Quote from: fiver on September 22, 2012, 10:07:33 AM
Any way for members to disable it? if they don't like the auto-generated Gravatar.
If they don't like the auto-generated Gravatar don't use this mod. Or set the "mystic man" as default.

So, does this mean you'll implement no such option?

It's a shame, because there may be one or two who really don't want Gravatars, but the rest like it... And it's extra-nice for Guest accounts!

fiver

Quote from: Gryzor on September 25, 2012, 04:47:14 AM


Just one question - can you make it so that a size limit can be set? At the moment I see it's a 100x100px image, but this is a bit big for my liking...


Admin > Forum > Attachments and Avatars > Avatar Settings



Maximum width (in pixels) of external avatar
(0 for no limit)


Maximum height (in pixels) of external avatar
(0 for no limit)


If the avatar is too large...

Gryzor

Ahhh nice, you learn something new every day...

bigdy

Enjoying the mod..  However I am looking for a way to setup a default, local, avatar for users who do not have one set.  Is this possible? 

A modification which does this, however, with the gravatar setting it does not work. 

http://www.simplemachines.org/community/index.php?topic=323936.0


Thanks!

Zargero

Is the creator still around?
Any way to edit files to force a change of default avatar so instead of Mystery man we could use our own image?

Or can we get a small update where it adds another selection to set your own like in the smf gravatar mod in 1.0?

digger

Quote from: Zargero on August 21, 2013, 03:46:13 PM
Is the creator still around?
Any way to edit files to force a change of default avatar so instead of Mystery man we could use our own image?

Or can we get a small update where it adds another selection to set your own like in the smf gravatar mod in 1.0?
Mod updated.

Version 1.1
Option for setup custom image added. Fixed "Undefined index: email_address" warning.

SirLouen

I've installed the mod, but old users does not auto-update to their gravatar/default gravatar icon. Is there a way to solve this?

digger

Quote from: SirLouen on September 11, 2016, 11:01:45 AM
I've installed the mod, but old users does not auto-update to their gravatar/default gravatar icon. Is there a way to solve this?
Gravatars will be shown in posts, not profiles.

SirLouen

Quote from: digger on September 11, 2016, 11:40:34 AM
Quote from: SirLouen on September 11, 2016, 11:01:45 AM
I've installed the mod, but old users does not auto-update to their gravatar/default gravatar icon. Is there a way to solve this?
Gravatars will be shown in posts, not profiles.

Ok, no way to associate to profiles then?

ormuz

profile images need to be sync across different areas... for instance, user profiles, recent posts and so on. Any tutorial on how to do this?

bynw

I'd like to add my vote to have the gravatars show up in profile areas as well.

digger

Mod updated.

Version 1.4.2
Add robohash style.

-Rock Lee-

I thought I had left the translation into Latin Spanish some time ago :o but I'll leave it now 8).


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Advertisement: