[MODDB] Gravatar Integration

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

Re: [DEV] Gravatar Integration

Post by Sam » Thu Oct 22, 2009 4:33 pm

Erik Frèrejean wrote:Sam,
I don't know how far you are on this MOD but a couple of days ago I had to write a gravatar integration. If you want I can send you the class that I've written for this.
They would be great! I've had to neglect this a bit and I'm having trouble starting it up. I'll catch you on IRC then.

User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

Re: [BETA] Gravatar Integration

Post by Sam » Fri Oct 23, 2009 6:24 am

Beta is out, and we have a download link on the original post.

Enjoy :)

Please report bugs here.
Any translations would be greatly appreciated, the lang file is very tiny; only 4 entries.

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [BETA] Gravatar Integration

Post by Erik Frèrejean » Fri Oct 23, 2009 9:24 am

Nice :), small suggestion though. I'd change:

Code: Select all

function make_gravatar($email)
{
    return "http://www.gravatar.com/avatar/" . md5(strtolower(trim($email)));
} 
into:

Code: Select all

function make_gravatar($email)
{
    global $config;
    
    return "http://www.gravatar.com/avatar/" . md5(strtolower(trim($email))) . (($config['avatar_max_width'] > 1 && $config['avatar_max_width'] < 512) ? "&size=" . $config['avatar_max_width'] : '');
} 
This will force the gravatar into the same size as the boards avatars, otherwise they'll be limited to a with of 80px.

As well the dutch translation:

Code: Select all

$lang = array_merge($lang, array(
    'ALLOW_GRAVATAR'            => 'Gravatar toestaan',
    'ALLOW_GRAVATAR_EXPLAIN'    => 'Avatars gehost bij Gravatar.com',
    'USE_GRAVATAR'            => 'Gebruik Gravatar',
    'USE_GRAVATAR_EXPLAIN'    => 'Gebruik de Gravatar die geassocieerd is met het e-mail adres van dit account.',
)); 

Code: Select all

<title lang="nl">Gravatar intergratie</title>
<description lang="nl">Voegt een optie toe aan het UCP en ACP om de Gravatar te gebuiken die geassocieerd is met het email adres van de gebruiker</description>
<author-notes lang="nl">Dit is een officiële phpBBmodders.net MOD</author-notes>

<changelog lang="nl">
   <change>Eerste beta release</change>
</changelog>

<diy-instructions lang="nl">Leeg de buffer na installatie.</diy-instructions>
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] Gravatar Integration

Post by darkonia » Fri Oct 23, 2009 9:59 am

runs 1a, thx synthax and eric!

heres german translation:

Code: Select all

$lang = array_merge($lang, array(
	'ALLOW_GRAVATAR'			=> 'Erlaube Gravatar',
	'ALLOW_GRAVATAR_EXPLAIN'	=> 'Avatare werden gehosted von Gravatar.com',
	'USE_GRAVATAR'			=> 'Benütze Gravatar',
	'USE_GRAVATAR_EXPLAIN'	=> 'Benütze den Gravatar der verbunden ist mit der Email Addresse bei diesem Forum Account.',
));
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

Re: [BETA] Gravatar Integration

Post by Sam » Fri Oct 23, 2009 5:55 pm

Erik Frèrejean wrote:Nice :), small suggestion though. I'd change:

Code: Select all

function make_gravatar($email)
{
    return "http://www.gravatar.com/avatar/" . md5(strtolower(trim($email)));
} 
into:

Code: Select all

function make_gravatar($email)
{
    global $config;
    
    return "http://www.gravatar.com/avatar/" . md5(strtolower(trim($email))) . (($config['avatar_max_width'] > 1 && $config['avatar_max_width'] < 512) ? "&size=" . $config['avatar_max_width'] : '');
} 
This will force the gravatar into the same size as the boards avatars, otherwise they'll be limited to a with of 80px.
Ah, interesting idea, I'll give that a shot.

Thanks for the translations, Erik Frèrejean and darkonia!

User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

Re: [BETA] Gravatar Integration

Post by Sam » Fri Oct 23, 2009 8:28 pm

Next beta is released, we are at 0.9.1

Fixed:
-Added config installer
-Added Dutch and German language files
-Fixed incorrect file specified in MODx
-Fixed bug in the first edit in "includes/functions_user.php"

User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

Re: [BETA] Gravatar Integration

Post by Sam » Sat Oct 24, 2009 10:11 pm

Minor Fixes, updated first post; Looking for some feedback from testers. :)

User avatar
Ahri89
Registered User
Posts: 516
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: [BETA] Gravatar Integration

Post by Ahri89 » Sun Oct 25, 2009 9:02 pm

Thanks, i will test :)
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD

User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

Re: [BETA] Gravatar Integration

Post by Sam » Tue Oct 27, 2009 7:34 am

I need some more people willing to test and leave some feedback. :D
I am trying to work on other mods now, but I want to get this one in the Mod DB ASAP.

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] Gravatar Integration

Post by darkonia » Tue Oct 27, 2009 8:56 am

the mod runs very good on my board, ive found no bugs or errors, it was easy to install.
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

Re: [BETA] Gravatar Integration

Post by Sam » Tue Oct 27, 2009 3:17 pm

darkonia wrote:the mod runs very good on my board, ive found no bugs or errors, it was easy to install.
Thanks for some feedback. :D

User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

Re: [RC1] Gravatar Integration

Post by Sam » Wed Nov 11, 2009 3:47 am

RC phase, no changes from 0.9.1 to RC1.

Scofield112
Registered User
Posts: 87
Joined: Sat Feb 02, 2008 11:39 am

Re: [RC1] Gravatar Integration

Post by Scofield112 » Sat Dec 26, 2009 10:11 pm

Nice mod, good job ;) waiting for release :ugeek:
Sorry for my bad English :)
Image
Image

C_Seehofer
Registered User
Posts: 1
Joined: Sun Jan 03, 2010 5:36 pm

Re: [RC1] Gravatar Integration

Post by C_Seehofer » Sun Jan 03, 2010 5:42 pm

Nice Mod, Thanks a lot!

Works fine unless the user has no avatar set an does not specify an avatar-size. Maybe it's just my boardsettings.

What I get from having no avatar set and no size specified:

SQL ERROR [ mysql4 ]

Column was set to data type implicit default; NULL supplied for NOT NULL column 'user_avatar_height' at row 1 [1263]

SQL

UPDATE phpbb_users SET user_avatar_height = NULL, user_avatar_width = NULL, user_avatar = NULL, user_avatar_type = NULL WHERE user_id = 53

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/functions_user.php
LINE: 2437
CALL: dbal_mysql->sql_query()

FILE: includes/acp/acp_users.php
LINE: 1679
CALL: avatar_process_user()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_users->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()

hope that helps

andreaplanet
Registered User
Posts: 8
Joined: Mon Apr 15, 2002 4:42 pm
Contact:

Re: [BETA] Gravatar Integration

Post by andreaplanet » Tue Jan 05, 2010 12:01 pm

here is the italian translation:

Code: Select all

$lang = array_merge($lang, array(
	'ALLOW_GRAVATAR'			=> 'Permetti Gravatar',
	'ALLOW_GRAVATAR_EXPLAIN'	=> 'Avatar registrato su Gravatar.com',
	'USE_GRAVATAR'			=> 'Utilizza Gravatar',
	'USE_GRAVATAR_EXPLAIN'	=> 'Utilizza il Gravatar associato all'indirizzo di posta elettronica usato nella registrazione in questo forum.',
));

Locked

Return to “[3.0.x] MODs in Development”