Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[1e2] Gravatar as Default Avatar for users without image: auto generate random avatar Details »
[1e2] Gravatar as Default Avatar for users without image: auto generate random avatar
Mod Version: 1.1.2.p3, by galerio (Member) galerio is offline
Developer Last Online: Feb 2019 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (17 votes - 4.88 average) Installs: 96
Released: 18 Apr 2011 Last Update: 26 Feb 2012 Downloads: 581
Not Supported Uses Plugins Template Edits Auto-Template Code Changes External Content  

With this very sipmple plugin you can display a Gravatar icon as default avatar for users that don't have any avatar saved or selected. But if an user has its own avatar, this one will be used instead of Gravatar. So you can continue to use your forum's avatar system, and this plugin will be used only when an avatar is not present.

The Gravatar is unique and automatically genereted based on registration email address choosen by the user. And the avatar created is used in every other website that use this method, like Wordpress blogs.

Users that are registered to gravatar.com can upload their avatar image so that every website that uses Gravatar will display the uploaded personal image! So you can save your personal avatar one time and have it spreaded everywhere Gravatar system is used.

Images are hosted on gravatar.com website, so you don't have any increase to your server load or bandwidth.

In this way every user (old users and new users) will have an avatar image, and to recognize the author of a post will be simplier for all because unique images are assigned to each one.
Your forum will be more userfriendly and nice looking!





How To

1- Go to Plugins & Products -> Manage Products -> [Add/Import Product], then select the xml file downloaded, click Yes for Allow Overwrite and click Import button

2- Go to Settings->Options->User Picture Options and you will find three new option at the end of the page (see screenshot) where you can:

* Choose the Gravatar Type (choose between different Gravatar icon):
  • 404: do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response. But if an user has its own avatar saved on gravatar.com, that image is displayed.
  • mm: (mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash). But if an user has its own avatar saved on gravatar.com, that image is displayed.
  • identicon: a geometric pattern based on an email hash. But if an user has its own avatar saved on gravatar.com, that image is displayed.
  • monsterid: a generated 'monster' with different colors, faces, etc. But if an user has its own avatar saved on gravatar.com, that image is displayed.
  • wavatar: generated faces with differing features and backgrounds. But if an user has its own avatar saved on gravatar.com, that image is displayed.
  • retro: awesome generated, 8-bit arcade-style pixelated faces. But if an user has its own avatar saved on gravatar.com, that image is displayed.

* Choose the Gravatar Dimension from 1 to 512 pixel square (default is 80) accordingly to your theme. You must write only numbers without characters or punctuation (so for example 120 and not 120px nor 120,5).

* Choose the Gravatar Dimension for your Sidebar from 1 to 512 pixel square (default is 30) accordingly to your theme. You must write only numbers without characters or punctuation (so for example 120 and not 120px nor 120,5).

*- Choose the Gravatar Ratings. All images are rated default as "g":
  • g: suitable for display on all websites with any audience type.
  • pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.
  • r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use.
  • x: may contain hardcore sexual imagery or extremely disturbing violence.


Note: uninstall Geekydesigns default avatar hack to make work.

A manual edit for 4 files is needed if you want gravatar also in Blog and in ForumHome Sidebar. It's a simple search and replace, you can do it in 1 minute.

As soon as I have time, I will make automatic the manual edit and I will add gravatar support also for CMS.

The plugin adds a footer link to author website as copyright mark, but I don't require you to keep it. To remove the copyright info just disable the plugin for footer link:
go to Plugins & Products->Plugin Manager and search the plugins for Gravatar as Default Avatar and delete or disable the one named "Profile Hooks". Consider a donation if you do so.


vBulletin 3.8 version, please, download HERE

Changelog:
v 1.0 Initial release
v 1.0.1 corrected a bug that makes the gravatar all the same in user profile
v 1.1.0 Added a rudimental menu option to choose gravatar type, dimension and ratings
v 1.1.1 Improvements in option menu to prevent errors and make it easier
v 1.1.2:
  • Added option to choose dimensio for gravatar in sidebar.
  • Added a file called "gravatar in sidebar and blog.txt" with instruction to manual edit 4 file in order to have gravatar also in Sidebar blocks and in Blog.
v 1.1.2p1 updated manual edits for VB 4.1.4 and 4.1.5
v 1.1.2p2 update for VB 4.1.8 and added HTTPS version
v 1.1.2p3 updated for VB 4.1.10

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	1gravatar.png
Views:	323
Size:	10.1 KB
ID:	128254   Click image for larger version

Name:	av-memberlist.png
Views:	390
Size:	14.0 KB
ID:	128372   Click image for larger version

Name:	avat-cpanel.jpg
Views:	377
Size:	103.2 KB
ID:	128373   Click image for larger version

Name:	2011-06-08_114449.jpg
Views:	372
Size:	24.3 KB
ID:	129835  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Sigmachat VB Integration: Generate Random Guest Username kangta vBulletin 3.0 Full Releases 0 31 Jan 2005 10:43

Comments
  #2  
Old 18 Apr 2011, 14:03
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
nice!
Looking forward to the XML
/me tagged it
__________________

Love and support one another #vote2020
I offer Managed IT Services in Kansas
Reply With Quote
  #3  
Old 18 Apr 2011, 14:42
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
XML file uploaded. But I need to create only one xml file with a page option where you can select directly the Gravatar type and the dimension.
I need some free time... but I will do it.
Reply With Quote
  #4  
Old 18 Apr 2011, 16:04
starman™ starman™ is offline
 
Join Date: Apr 2008
Installed and working. Thanks. Please note that if you have Geekydesigns default avatar hack installed then you must uninstall it for this to work.
Reply With Quote
  #5  
Old 19 Apr 2011, 01:26
Juggernaut's Avatar
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Installed.
Reply With Quote
  #6  
Old 19 Apr 2011, 02:13
Juggernaut's Avatar
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Is there a way to use images that we've uploaded to gravatar.com, to save bandwidth?
Reply With Quote
  #7  
Old 19 Apr 2011, 10:26
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Every user must register to gravatar.com and upload his personal avatar, you can't do a bulk upload.
When you register on gravatar.com you can add other email addresses to your account and associate an avatar to each one, but you must add emails one by one and you must click on confirmation link sent to each email.

If you want, you can advise your users about gravatar.com and tell them to register and upload their avatar
Reply With Quote
  #8  
Old 21 Apr 2011, 14:34
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
I have just added a rudimental menu option in User Picture Options. Now I have to learn more about xml language to make multiple choices options.
Anyway, now you can select dimension, rating and type of gravatar in your control panel without editing any xml.
Reply With Quote
  #9  
Old 22 Apr 2011, 02:42
Juggernaut's Avatar
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Thank you for this great mod.
Reply With Quote
  #10  
Old 22 Apr 2011, 05:53
mitch84 mitch84 is offline
 
Join Date: Mar 2008
thank you for this update
Reply With Quote
  #11  
Old 24 Apr 2011, 01:46
ru55ian's Avatar
ru55ian ru55ian is offline
 
Join Date: May 2007
awesome, works in 3.8.7 Thanks
__________________
Reply With Quote
  #12  
Old 24 Apr 2011, 10:14
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
@ru55ian
really? Does it works on vb 3.8.7 without any modification? Or do you have changed something in the code? Can you tell me also if the menu option is working?
Reply With Quote
  #13  
Old 25 Apr 2011, 23:14
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Just a small update to menu option to prevent admin to write wrong options.
Reply With Quote
  #14  
Old 26 Apr 2011, 19:08
thespi thespi is offline
 
Join Date: Oct 2010
Really good work!
Reply With Quote
  #15  
Old 13 May 2011, 23:45
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
I was just looking over gravatar.com and considering trying my hand at coding this... I thought I'd have a quick look over here first though in case someone had wrote it already - YAY, someone has... saved me a lot of head scratching
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:30.

Layout Options | Width: Wide Color: