Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[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
Version: 1.1.1, by galerio galerio is offline
Developer Last Online: Feb 2019 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 04-23-2011 Last Update: 06-23-2013 Installs: 19
Uses Plugins Auto-Templates
 
No support by the author.

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:
https://vborg.vbsupport.ru/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

File Type: xml product-gravatar_as_default-v1.1.1 for VB3.xml (5.1 KB, 102 views)
File Type: xml product-gravatar_as_default-v1.1.1 for VB3 HTTPS.xml (5.1 KB, 50 views)

Screenshots

File Type: png 32282d1303550549-1e2-gravatar-as-default-avatar-for-users-without-image-auto-generate-random-ava.png (10.1 KB, 0 views)
File Type: jpg 32283d1303550549-1e2-gravatar-as-default-avatar-for-users-without-image-auto-generate-random-ava.jpg (103.2 KB, 0 views)
File Type: png 32284d1303550549-1e2-gravatar-as-default-avatar-for-users-without-image-auto-generate-random-ava.png (14.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
vijayninel, vithorius

Comments
  #2  
Old 04-25-2011, 01:28 PM
Zylantex Zylantex is offline
 
Join Date: Sep 2009
Location: France
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works fine on 3.8.4 PL2. Thanks for a very nice enhancement.
Reply With Quote
  #3  
Old 04-25-2011, 10:17 PM
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Location: Italy
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a small update to menu option to prevent admin to write wrong options.
Reply With Quote
  #4  
Old 04-26-2011, 12:58 AM
edenx edenx is offline
 
Join Date: Nov 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey there. Running 3.8.5
Got this error msg when attemping to install the product:

Database error in vBulletin 3.8.5:

Invalid SQL:

INSERT INTO product
(productid, title, description, version, active, apm_releasedate, apm_author, apm_relatedurl, apm_extrainfo, apm_extraedit,url, versioncheckurl)
VALUES
('gravatar_as_default',
'Gravatar as Default Avatar',
'A default random and unique Gravatar avatar for posts, profiles, etc.',
'1.1.1',
1,
'',
'',
'',
'',
'',
'https://vborg.vbsupport.ru/showthread.php?t=262583',
'https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=gravatarasdef3');

MySQL Error : Unknown column 'apm_releasedate' in 'field list'
Error Number : 1054
Request Date : Monday, April 25th 2011 @ 09:57:24 PM
Error Date : Monday, April 25th 2011 @ 09:57:25 PM
Script : http://www.URLTOMYSITE/admincp/apm_p...=productimport
Referrer : http://www.URLTOMYSITE/admincp/apm_p...?do=productadd
IP Address : 190.160.72.7
Username : Faculty
Classname : vB_Database
MySQL Version : 5.0.77-log
Reply With Quote
  #5  
Old 04-26-2011, 02:11 AM
edenx edenx is offline
 
Join Date: Nov 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fixed, the issue was caused by another outdated mod.
Reply With Quote
  #6  
Old 04-26-2011, 02:14 AM
edenx edenx is offline
 
Join Date: Nov 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Galerio:
How can I activate this into vBulletin Blog comments? (VB 3.8 of course)
Reply With Quote
  #7  
Old 04-26-2011, 08:24 AM
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Location: Italy
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll do it in the next release. By now it works only in the forum. Just give me some time because I'm full of work. I will implement gravatar for widget, blog and cms (for vb4)
Reply With Quote
  #8  
Old 04-26-2011, 08:15 PM
edenx edenx is offline
 
Join Date: Nov 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HEy, but can you still implement it for VB 3.8 Blog Addon? (vbulletin blog)
Reply With Quote
  #9  
Old 04-27-2011, 08:05 AM
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Location: Italy
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I'll try to do it also for VB 3.8
Reply With Quote
  #10  
Old 04-27-2011, 01:44 PM
edenx edenx is offline
 
Join Date: Nov 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! waiting
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04602 seconds
  • Memory Usage 2,331KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete