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
FXI Gravatars - Automatically Replace Avatars (all, custom, or empty) with Gravatars! Details »»
FXI Gravatars - Automatically Replace Avatars (all, custom, or empty) with Gravatars!
Version: 1.2, by EugeneFXI EugeneFXI is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.2 Rating:
Released: 02-19-2009 Last Update: 04-08-2009 Installs: 33
Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

I was looking for a mod that forces all users on my forum to use Gravatars, but couldn't find anything at all, except mention that VB 4.0 will have this feature built in... so I decided to learn to make VB mods and give it a try myself.

This mod will replace user avatars for showthread.php, showpost.php, member.php, and memberlist.php with Gravatars (Globally Available Avatars).

You can learn more about Gravatars at http://www.gravatar.com

Installation:
1. Just install the XML file via Add/Import Product, and you're set.
2. You can configure the maximum Gravatar rating, default image, and sizes via the AdminCP under "FXI - Gravatar". You can also set up which users you want the Gravatars to be used for - all users, only those with avatars, or only those without avatars.

Uninstallation:
1. Just uninstall the product and you're done.

Upgrading:
1. Just set "Allow Overwrite" to Yes and install as usual.

Caveats:
1. This mod relies on automatic template edits to postbit (or postbit_legacy), memberinfo_block_ministats, and memberlist_resultsbit, so if you made heavy modifications to these areas, my changes might not take if it can't find the target code.
2. If you notice any areas where the "old" avatars are still in place and not being replaced by my mod - please let me know!

Demo Site:
http://forums.fxinstructor.com

Change Log:
1.0 - 2009.02.20 (Initial Release)
1.1 - 2009.03.27
+ Optionally replace avatars only for users with avatars
+ Optionally replace avatars only for users without avatars.
+ Now works without having to disable the built-in avatar system.
+ Works on the memberlist avatar display too.
1.2 - 2009.04.09
+ Support for postbit_legacy
+ Moved MD5 calculation to MySQL query
Enjoy!

Download Now

File Type: xml FXI_Gravatar_1.2.xml (17.6 KB, 152 views)

Screenshots

File Type: png screenshot1.png (48.8 KB, 0 views)
File Type: png screenshot4.png (46.7 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
ugorur

Comments
  #2  
Old 02-20-2009, 01:30 AM
bullet07's Avatar
bullet07 bullet07 is offline
 
Join Date: Jan 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice i will give it a try later.
Reply With Quote
  #3  
Old 02-20-2009, 01:43 AM
Rickeo's Avatar
Rickeo Rickeo is offline
 
Join Date: Jan 2007
Location: Manchester
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would install but I don't want to force users to have Gavartar plus I am using Facebook connect so I don't want it to have a huge impact on my site and cause errors anyway of having an option where they can still use custom avatars but have the option to enter gavartar username and passowrd which will upload there avatar from there.
Reply With Quote
  #4  
Old 02-20-2009, 01:50 AM
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rickeo View Post
I would install but I don't want to force users to have Gavartar plus I am using Facebook connect so I don't want it to have a huge impact on my site and cause errors anyway of having an option where they can still use custom avatars but have the option to enter gavartar username and passowrd which will upload there avatar from there.
Rickeo, that is a valid concern - when I work on this some more, I'll try to make this selectable on a per-user basis. But like I wrote in the description - I needed something NOW, and this does the job. Quick n' dirty, but effective.

I haven't encountered any problems yet - you can see how it looks at http://forums.fxinstructor.com
Reply With Quote
  #5  
Old 02-20-2009, 04:47 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah it is a good start but I will also wait for another version that can support the ability to either use a custom uploaded avatar or one from gravatar.
Reply With Quote
  #6  
Old 02-20-2009, 02:59 PM
ABDALWAHID ABDALWAHID is offline
 
Join Date: Aug 2006
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, installed...
Reply With Quote
  #7  
Old 02-20-2009, 04:29 PM
elmati elmati is offline
 
Join Date: Mar 2007
Location: Argentina
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the user dont use a custom avatar uploaded by himself then we force a gravatar for him.
i mean use gravatar as default avatar until they upload a custom one.

Btw, nice mod!
Reply With Quote
  #8  
Old 03-24-2009, 11:20 PM
hctopcu hctopcu is offline
 
Join Date: Nov 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if we give an option through profile fields as "Use my gravatar".
If choosen then we could put the gravatar. Else normal avatar.
Reply With Quote
  #9  
Old 03-27-2009, 01:36 AM
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the feedback, guys! I will try to overcome the limitations of this version for my next release, so stay tuned.

Great suggestions!
Reply With Quote
  #10  
Old 03-27-2009, 04:17 PM
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just posted version 1.1 which deals with several issues which have been discussed so far, mainly the ability to select which groups of users get their avatars replaced - everybody, those with avatars, or those without avatars.

For the next version I will try to let users themselves choose what they want to use. For now its still in the hands of the admin.
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 08:16 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.04705 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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)bbcode_quote
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)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
  • (3)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