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

  #46  
Old 30 Nov 2011, 10:46
kfyonur kfyonur is offline
 
Join Date: Apr 2008
Good mod,thanx
Reply With Quote
  #47  
Old 20 Dec 2011, 21:20
WebiMax WebiMax is offline
 
Join Date: Dec 2011
Real name: WebiMax
Works great, waiting on the automatic entries and CMS support, thanks for you help.
Reply With Quote
  #48  
Old 22 Jan 2012, 11:16
jorgejgm jorgejgm is offline
 
Join Date: Jan 2008
Thank you. Work fine.

Small problem.

The path of the image in the facebook application is incorrect because the domain of forum is added to the route of gravatar.

Example. In app facebook the path of the image is:
http://myforumvbulletin.comhttps://secure.gravatar.com/avatar/XXXXXXXX

Any solution?

Thank you very much
Reply With Quote
  #49  
Old 22 Jan 2012, 17:31
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
@jorgejgm can you give more details? I can't understand the refering about facebook application. Can you give me an example link? (you can do it also in PM).
I have tried to login to your forum using the facebook connect, and I can see a regular gravatar in my profile, so I cannot see your problem.
Reply With Quote
  #50  
Old 22 Jan 2012, 18:48
jorgejgm jorgejgm is offline
 
Join Date: Jan 2008
Thank you Galerio. Send PM.

Facebook app of vbulletin https://www.vbulletin.com/index.php?do=facebookapp (I explained very bad, sorry)
Reply With Quote
  #51  
Old 22 Jan 2012, 20:02
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Thank you, I have seen the issue, but I don't have the Vbulletin Facebook App, so I can't see its source code and look for a solution. And I'm not going to purchase it by now. I'm sorry, but I can't give you support.
Reply With Quote
  #52  
Old 25 Jan 2012, 18:23
jorgejgm jorgejgm is offline
 
Join Date: Jan 2008
Thanks Galerio. A shame.
Reply With Quote
  #53  
Old 25 Jan 2012, 18:40
jorgejgm jorgejgm is offline
 
Join Date: Jan 2008
solved
In user_info.php (apps facebook)

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

and replace by:


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


Last edited by jorgejgm; 25 Jan 2012 at 18:51.
Reply With Quote
  #54  
Old 26 Feb 2012, 05:11
chikuru chikuru is offline
 
Join Date: Nov 2011
Is this compatible with vb 4.1.10?

Thanks!
Reply With Quote
  #55  
Old 26 Feb 2012, 10:01
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Yes it is, maybe I just need to update infos in txt file if you want gravatar also in sidebar and blog/cms, but it's a simple thing to do. I'll do it now.

Edit: added updated version compatible with 4.1.10

Last edited by galerio; 26 Feb 2012 at 10:41.
Reply With Quote
  #56  
Old 01 Mar 2012, 16:37
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Real name: Andi
Mhm...not very effective because after every update the changes are lost. Is it possible to do that with templates?
__________________
Visit me on Youtube http://www.youtube.com/user/KraxellPlay
Reply With Quote
  #57  
Old 01 Mar 2012, 17:12
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Sorry, but there's no way to alter avatars in sidebar and blogs with a template change. It's something hardcoded in the source files.
But the avatars in showpost, profile and memberlist are already there also after an update.
Reply With Quote
  #58  
Old 02 Mar 2012, 19:30
w8baby w8baby is offline
 
Join Date: Jun 2011
tried the edits in vb 4.1.11. works perfectly . had to wait 5-10min for it to update sidebar

Last edited by w8baby; 02 Mar 2012 at 19:43.
Reply With Quote
  #59  
Old 02 Mar 2012, 19:59
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
You should clean the sidebar block cache. Or wait for some hours.
Reply With Quote
  #60  
Old 08 Apr 2012, 10:01
postcd postcd is offline
 
Join Date: Feb 2012
Please can you make this mod so user can select from my custom avatars, nto gravatars (just adding another option in Mod config so i can set manually path to images.. (my def avatars directory)

thank you

Last edited by postcd; 28 Aug 2013 at 12:50.
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:38.

Layout Options | Width: Wide Color: