vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - [1e2] Gravatar as Default Avatar for users without image: auto generate random avatar (https://vborg.vbsupport.ru/showthread.php?t=262583)

galerio 04-23-2011 10:00 PM

[1e2] Gravatar as Default Avatar for users without image: auto generate random avatar
 
1 Attachment(s)
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):
* 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

Zylantex 04-25-2011 01:28 PM

This works fine on 3.8.4 PL2. Thanks for a very nice enhancement.

galerio 04-25-2011 10:17 PM

Just a small update to menu option to prevent admin to write wrong options.

edenx 04-26-2011 12:58 AM

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

edenx 04-26-2011 02:11 AM

fixed, the issue was caused by another outdated mod.

edenx 04-26-2011 02:14 AM

Galerio:
How can I activate this into vBulletin Blog comments? (VB 3.8 of course)

galerio 04-26-2011 08:24 AM

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)

edenx 04-26-2011 08:15 PM

HEy, but can you still implement it for VB 3.8 Blog Addon? (vbulletin blog)

galerio 04-27-2011 08:05 AM

Yes, I'll try to do it also for VB 3.8

edenx 04-27-2011 01:44 PM

Thank you! waiting :D

edenx 05-13-2011 09:35 PM

Hey Galerio!
Any chance to update the mod to support vb blog for 3.8?

galerio 05-13-2011 10:06 PM

Hi edenx,
As already said, I'm full of work and have no time, and I also need to look into documentation and look for someone with vb blog 3.8 to test on because I'm a vb 4 user, so I don't have vb blog 3.8.
I'll do it, but just give me time. I'll inform every one who mark as installed this mod about updates.

edenx 05-14-2011 04:12 PM

I can test it in 3.8 blog if you want! :)

Jim Westergren 06-15-2011 10:25 AM

The link to the plugin for vBulletin 4 does not work. Here it is:
https://vborg.vbsupport.ru/showthread.php?t=262196

But make sure you delete his code that injects a hidden link to his forum. Google hates that. See my post here.

vithorius 06-24-2013 04:36 PM

Hi! Too bad I only found this hack today... WHAT A GREAT HACK!

(working on a 3.6 forum!)

The only problem is that it does NOT shows the Gravatar on member's area (member.php)...

Please, can you help me?

THANK YOU!

galerio 06-24-2013 05:32 PM

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:
Code:

http://www.gravatar.com
replace with:
Code:

https://secure.gravatar.com
Well, I will just create another xml for those who need the https gravatar. I'll do right now

vithorius 06-25-2013 03:37 PM

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! :up:

galerio 06-25-2013 03:44 PM

No, I'm sorry, the https version is the same as the old one but the https gravatar links.

ChiNa 07-14-2014 02:59 PM

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..

Simon Lloyd 07-14-2014 05:06 PM

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.

galerio 07-14-2014 06:52 PM

Quote:

Originally Posted by ChiNa (Post 2506739)
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.


All times are GMT. The time now is 03:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01228 seconds
  • Memory Usage 1,790KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete