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.1, by galerio (Coder) galerio is offline
Developer Last Online: Feb 2019 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (4 votes - 5.00 average) Installs: 17
Released: 24 Apr 2011 Last Update: 24 Jun 2013 Downloads: 111
Not Supported Uses Plugins Auto-Template 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 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.

As soon as I have time, I will create more options to include Gravatar also in widget, CMS and blog.

Original mod page for vBulletin 4:
http://www.vbulletin.org/forum/showthread.php?t=262196
I don't have VB 3, so I can't give you support, but I will do the best I can

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.

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

NOTE: if you run your board on HTTPS then you should go with HTTPS version of Gravatar so there will not a mix of secure and unsecure connections. For this, download and install the xml named product-gravatar_as_default-v1.1.1 for VB3 HTTPS.xml

Download Now

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

Screenshots

Click image for larger version

Name:	32282d1303550549-1e2-gravatar-as-default-avatar-for-users-without-image-auto-generate-random-ava.png
Views:	81
Size:	10.1 KB
ID:	128501   Click image for larger version

Name:	32283d1303550549-1e2-gravatar-as-default-avatar-for-users-without-image-auto-generate-random-ava.jpg
Views:	105
Size:	103.2 KB
ID:	128502   Click image for larger version

Name:	32284d1303550549-1e2-gravatar-as-default-avatar-for-users-without-image-auto-generate-random-ava.png
Views:	109
Size:	14.0 KB
ID:	128503  

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
Show Thread Enhancements [1e2] Gravatar as Default Avatar for users without image: auto generate random avatar galerio vBulletin 4.x Add-ons 70 30 Nov 2015 15:46
Add-On Releases Default avatar for users with no selected avatar macc vBulletin 3.8 Add-ons 44 03 Aug 2009 05:34
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) Zachery vBulletin 3.0 Template Modifications 21 27 Jun 2005 11:13
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) Zachery vBulletin 3.0 Template Modifications 21 07 Jul 2004 21:16

  #16  
Old 24 Jun 2013, 19:32
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
I don't have VB 3 installed anywhere, I need to redownload and install it. Hope to have time to do, I'm very busy with university!!!

Anyway, I have just seen that this version the plugin doesn't include the https gravatar option. So, if you run your VB3 on https then you should change in the xml before to install in this way:

Open the xml file, do a search&replace.
search for:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace with:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Well, I will just create another xml for those who need the https gravatar. I'll do right now
Reply With Quote
  #17  
Old 25 Jun 2013, 17:37
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Well. in my forum (www.bateristaspt.com) your mod is working just PERFECT! (the only exception is the member.php)

But I'm not using HTTPS...

SO, I guess that your newer HTTPS version will not help me?


Thank you for your EXCELLENT WORK!
Reply With Quote
  #18  
Old 25 Jun 2013, 17:44
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
No, I'm sorry, the https version is the same as the old one but the https gravatar links.
Reply With Quote
  #19  
Old 14 Jul 2014, 16:59
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Real name: CM
So users can only choose between 5 Images right?

This Product is made very awesome, and I am sure that the Developer took his/her time finishing it. Now after all the hard work, I would at least have added 10 images to choose between, instead of only 5.

Else Well done..
__________________
I am having a little break from vB Developing. I am trying to finish my PHP and MYSQL courses for now. I will answer all my PM's if anyone needed help for my products, but only when I can be online on vB.org. Its great to see new and old developers keeping vB.org alive! Thank you all for your support!CM
Reply With Quote
  #20  
Old 14 Jul 2014, 19:06
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
It's not 5 images but 5 groups or different types of images, i have mine set as wavitar and each person gets a fairly unique image based on their email address.
__________________
Kind regards,
Simon Microsoft Office Help
My Mods: Find my modifications here
Please do not pm me for support unless i have invited you to!
Reply With Quote
  #21  
Old 14 Jul 2014, 20:52
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Originally Posted by ChiNa View Post
So users can only choose between 5 Images right?

This Product is made very awesome, and I am sure that the Developer took his/her time finishing it. Now after all the hard work, I would at least have added 10 images to choose between, instead of only 5.

Else Well done..
Like Simon Lloyd sayed, you can choose between 5 type of images, and each user will have his unique avatar based on email hash. Gravatar also allows users to upload their personal avatar to use instead of the hash generated one. Gravatar is very popular on blog websites (mostly used as avatar for comments), so if an user will use the same email on forum and blog comment, then they will have the same avatar on different websites.
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 04:58.

Layout Options | Width: Wide Color: