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 (Coder) 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: 579
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:	319
Size:	10.1 KB
ID:	128254   Click image for larger version

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

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

Name:	2011-06-08_114449.jpg
Views:	370
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 11:43

  #31  
Old 31 Jul 2011, 11:40
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Updated the manual modification for VB 4.1.5
Reply With Quote
  #32  
Old 31 Jul 2011, 11:45
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
ohhhh awesome man thanks
installed + tagged + motm + 5 stars

thanks
Reply With Quote
  #33  
Old 05 Aug 2011, 15:08
Zohhak Zohhak is offline
 
Join Date: Aug 2010
Can you give Support for adding gravatars to CMS-Widgets like "Recent Posts/Threads", too?

IMO it's to inconsistent, as it is now. Hopefully you find a way to automatically add gravatars to the templates, soon.

greets Zohhak
Reply With Quote
  #34  
Old 05 Aug 2011, 15:53
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
@Zohhak I'm sorry, but there are no template-hook to automatically insert gravatar in CMS-blog/widget.
And then, blog and cms uses another system to call avatars. I need to work on it, but it will be another manual file edit. I'm sorry, I'd like to have gravatar everywhere too.
Reply With Quote
  #35  
Old 17 Aug 2011, 02:50
ryiinn ryiinn is offline
 
Join Date: Aug 2011
Great plug-in! Is there any way for me to specify a custom default gravatar when users don't have one (instead of using the Gravatar default monsters/blank guy/etc.)?
Reply With Quote
  #36  
Old 17 Aug 2011, 05:15
cavyspirit cavyspirit is offline
 
Join Date: Jan 2004
I think this mod is more than I want, but I'm not sure.

I have about 40 avatars that a user can pick from if they don't have their own.

All I really, really want, is if a user doesn't pick one nor upload one of their own, that the system would assign one of my 40 at random. It seems like it should be an easy thing.

On my pet forum, I require avatars to be of an appropriate pet, so pulling in gravatars is not what I want.

Thanks!
Reply With Quote
  #37  
Old 17 Aug 2011, 07:43
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
@ryiin No, there isn't this option. This is out of the scope of gravatar plugin, so you need to find other plugins that do it or modify the xml of mine and substitute the url that calls the gravatar with the url of an image you want.

@cavyspirit This plugin calls a gravatar, and every gravatar is unique. If you assign an avatar of your 40, then there will be many users with the same avatar. Anyway, you can't do it with my plugin, I'm sorry. It's out of its scope.
Reply With Quote
  #38  
Old 27 Aug 2011, 19:34
lodos0677 lodos0677 is offline
 
Join Date: Jun 2010
ınstalled.Thanks.
Reply With Quote
  #39  
Old 11 Sep 2011, 07:00
nCODE nCODE is offline
 
Join Date: Aug 2011
Hello, found some error:
Avatars doesn't show up in the "View Forum Leaders" (showgroups.php) and in the groups section...
Reply With Quote
  #40  
Old 11 Sep 2011, 10:20
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
It is not an error, I haven't considered them.Thanks for reporting, I'll try to add gravatar also there.
Reply With Quote
  #41  
Old 21 Oct 2011, 21:09
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
There seems to be a bug,

This did not happen when I initially installed this, but it started happening today, maybe Gravatar changed something?

When this mod is enabled on my forum, it causes quick replay to throw a "Do you want to leave this page, or stay on this page" for everyone using the quick reply.

I had to go one by one and through my mods disabling them until I found it was this one.

Someone else said that it may also show do to a mix of http and https in the url that is being pulled from gravatar, though I don't know that to be true.
Reply With Quote
  #42  
Old 21 Oct 2011, 22:05
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
The url of gravatars are all http, so if your forum is on https it can be a problem.
Please, try this attached version (import and overwrite). It uses the https for gravatar images (from http://www.gravatar.... to https://secure.gravatar...)

Please, let me know if it works.
Attached Files
File Type: zip 1e2.it gravatar_as_default-https-v1.1.2.p1.zip (2.7 KB, 2 views)
Reply With Quote
  #43  
Old 29 Nov 2011, 15:14
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Update for VB 4.1.8 and HTTPS version added for those boards that use https protocol.
Reply With Quote
  #44  
Old 30 Nov 2011, 03:48
kpuls kpuls is offline
 
Join Date: Mar 2011
Originally Posted by Zohhak View Post
Can you give Support for adding gravatars to CMS-Widgets like "Recent Posts/Threads", too?

IMO it's to inconsistent, as it is now. Hopefully you find a way to automatically add gravatars to the templates, soon.
Galerio,

Thanks for the update today, and I'd like to second a vote for this.

Don't know if it helps, but the CMS widget for recent articles pulls from the following template: vbcms_widget_recentarticle_page

I'm just not sure what to edit there to implement the Gravatar call. If you could help with that one, I could try and roll it into the others and post back on the mods that need to be made.
Reply With Quote
  #45  
Old 30 Nov 2011, 07:48
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Thanks kplus, I'll take a look into it.
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 06:41.

Layout Options | Width: Wide Color: