Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
FXI Gravatars - Automatically Replace Avatars (all, custom, or empty) with Gravatars! Details »
FXI Gravatars - Automatically Replace Avatars (all, custom, or empty) with Gravatars!
Mod Version: 1.2, by EugeneFXI (Member) EugeneFXI is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

vB Version: 3.8.2 Rating: (3 votes - 5.00 average) Installs: 32
Released: 20 Feb 2009 Last Update: 09 Apr 2009 Downloads: 172
Not Supported Uses Plugins Auto-Template Re-usable Code Translations  

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

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	screenshot1.png
Views:	974
Size:	48.8 KB
ID:	95215   Click image for larger version

Name:	screenshot4.png
Views:	275
Size:	46.7 KB
ID:	97063  

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.
Comments
  #2  
Old 20 Feb 2009, 02:30
bullet07's Avatar
bullet07 bullet07 is offline
 
Join Date: Jan 2008
Nice i will give it a try later.
Reply With Quote
  #3  
Old 20 Feb 2009, 02:43
Rickeo's Avatar
Rickeo Rickeo is offline
 
Join Date: Jan 2007
Real name: Richard
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.
__________________
SpiritualBB.com
The Online Multi Faith, Unexplained & Paranormal Bulletin Board
Reply With Quote
  #4  
Old 20 Feb 2009, 02:50
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Real name: Eugene
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 20 Feb 2009, 05:47
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
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 20 Feb 2009, 15:59
ABDALWAHID ABDALWAHID is offline
 
Join Date: Aug 2006
Thanks, installed...
Reply With Quote
  #7  
Old 20 Feb 2009, 17:29
elmati elmati is offline
 
Join Date: Mar 2007
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 25 Mar 2009, 00:20
hctopcu hctopcu is offline
 
Join Date: Nov 2008
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 27 Mar 2009, 02:36
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Real name: Eugene
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 27 Mar 2009, 17:17
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Real name: Eugene
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
  #11  
Old 02 Apr 2009, 22:15
buro9 buro9 is offline
 
Join Date: Feb 2002
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
  #12  
Old 02 Apr 2009, 22:35
buro9 buro9 is offline
 
Join Date: Feb 2002
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
  #13  
Old 09 Apr 2009, 20:52
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Real name: Eugene
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
  #14  
Old 17 May 2009, 17:09
adc-arab's Avatar
adc-arab adc-arab is offline
 
Join Date: Jul 2007
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
http://www.vbulletin.org/forum/showthread.php?t=177980

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

I really need it to work any help please

Last edited by adc-arab; 17 May 2009 at 17:32.
Reply With Quote
  #15  
Old 18 May 2009, 01:39
EugeneFXI's Avatar
EugeneFXI EugeneFXI is offline
 
Join Date: Jun 2007
Real name: Eugene
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
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 17:54.

Layout Options | Width: Wide Color: