Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #12  
Old 04-02-2009, 09:15 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This only works for 'postbit' and not the 'postbit_legacy'.

Would be good for it to detect which is in use and use the appropriate set of regular expression patterns accordingly.
Reply With Quote
  #13  
Old 04-02-2009, 09:35 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And you're doing a query per postbit in showthread?

So for my default setting of 50 posts per page, my showthread goes from 13 queries to 63 queries per page?

You might want to consider modifying the call for the postbits to add the email address there or better still to have mysql perform the md5 and return that.

I love this hack, it's great. And the postbit > postbit_legacy changes are small. But I can't take a performance hit like that on the database. When this bit is fixed I'll enable it again... until then disabled.
Reply With Quote
  #14  
Old 04-09-2009, 07:52 PM
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Buro, thank you for the feedback!

The latest version adds support for postbit_legacy, and I have moved the md5 calculation to the database query - but I can't eliminate the query (at least not until I figure out how to get the poster's email address )

Any suggestions?
Reply With Quote
  #15  
Old 05-17-2009, 04:09 PM
adc-arab's Avatar
adc-arab adc-arab is offline
 
Join Date: Jul 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod installed but unfortunately the avatar doesn't appear in the postbit_legacy i have a heavy modification especially at the avatar i have the prison bar mod
https://vborg.vbsupport.ru/showthread.php?t=177980

so i guess the mod can't find the target code

I really need it to work any help please
Reply With Quote
  #16  
Old 05-18-2009, 12:39 AM
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Adc-Arab - thanks for the comment!

I'll check out how the prison bars mod interacts with the postbit and will release an update - will keep you posted.

Cheers
Reply With Quote
  #17  
Old 05-18-2009, 03:31 AM
adc-arab's Avatar
adc-arab adc-arab is offline
 
Join Date: Jul 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you EugeneFXI I'll be waiting for the update
Reply With Quote
  #18  
Old 05-19-2009, 10:40 PM
dannykilla's Avatar
dannykilla dannykilla is offline
 
Join Date: Jun 2007
Location: Manchester, UK
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, if I have any suggestions they would be;

1. To have the option upon registration and/or on the users cp, something like "use my gravatar" and enter you email address, and underneath that have the option to use an uploaded avatar.

2. Have group permissions, so that the admin can set who is allowed to use their Gravatar and who isn't.

Thanks alot Eugene.
Dan
Reply With Quote
  #19  
Old 06-24-2009, 06:10 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HI ,

First to tella i have install it,
But Iam looking for ta mod to force uesrs to use an AVATAR befire finishing theire registration.

Does any one knows ?
Reply With Quote
  #20  
Old 10-20-2009, 09:51 AM
Jim Westergren Jim Westergren is offline
 
Join Date: Jun 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I was looking for, thanks a lot.
Reply With Quote
  #21  
Old 05-03-2010, 11:33 PM
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the feedback everybody!

At this moment in time, the FXI Gravatars plugin does exactly what I need it to do for the FX Instructor forums, which run VB 3.8.5, and while I'd love to add the features suggested in this thread, I simply don't have the time to dedicate to it.

I've enabled code-reuse on this mod, so if anyone wants to try their hand at one-upping me, you're welcome to it. I might pop back over and work on it some more if my schedule changes - but at this point it's unlikely.

I hope you all continue finding this mod extra-helpful and use its code to further benefit the VB community.
Reply With Quote
Reply

Thread Tools

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 05:27 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.04767 seconds
  • Memory Usage 2,326KB
  • Queries Executed 29 (?)
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
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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