vBulletin Mods

The Official vBulletin Modifications Site

Display Avatar Thumbnails in WGO on Forum Home
by Sarteck
25 Jul 2012 10:07

1 Attachment(s)
Created on and tested with 4.1.11, although it will probably work with most other versions.

This Modification allows an Admin to make Avatar thumbnails display in the Who's Online portion of the What's Going On section (usually located at the bottom of the Forum Home).

This modification allows the Admin to specify maximum height and/or width to the thumbnails. It also allows an Admin to specify a specific image to use as a default thumbnail for those users without avatars. Alternatively, it allows for an Admin to decide if Users withut avatars should jsut have their username displayed as normal.

Included in the settings (and disabled by default) is an option to "give credit" to CleverBaka. All this does is add a link to my forum in your forum's footer. It's entirely optional, but I hope you'll give credit if you don't mind the tiny bit of clutter in your footer. :)

To install, simply import the provided XML file in your Product Manager.

You have full permission to modify this to suit your needs, and I'm always open to input.

What this Modification does [Technical]:
--adds fields to the query that searches for logged in users.
--adds table joins to the query that searches for logged in users.
--does not add any queries
--replaces the "Marked Up Username" with an image of the user's avatar.

Update (25.JUL.12) [0.02a]
  • Added "title" attribute to Image element so that Username shows when hovering your mouse cursor over a thumbnail
  • Added Product URL.
  • Added Version Check URL.
Update (26.JUL.12) [0.03a]
  • Options now successfully install. (Sorry 'bout that guys.)
Update (26.JUL.12) [0.04a]
  • Fixed a bug that was not showing the currently logged in user.
  • Got rid of some unnecessary testing code.
Update (31.JUL.12) [0.05a]
  • Added an option that allows an Admin not to display commas between the avatars.




Sarteck 25 Jul 2012 10:11

This is my first "official" and "full" modification. Please be gentle.

faisaly.com 25 Jul 2012 18:22

Where are the options I am not seeing any options after uploading .xml in settings/options? also causes mysql errors using vB4.2.0...

o well nice try...

sadiq6210 25 Jul 2012 20:03

Any screenshot? :)

Sarteck 26 Jul 2012 00:58

Options are in AdminCP ----> Settings ----> Options ----> Avatar -> WGO
As for 4.2.0, I dunno. This is for 4.1.x.

Next time I got a decent number of members online at my forums, I'll take a screenshot or two. X3

Sarteck 26 Jul 2012 01:12

Ah. I guess the settings did have to be saved separately. >_> My bad.

I'll add them into the product XML stuff when I figure out how, for now there's a vBulletin Settings XML that should work.

Sarteck 26 Jul 2012 03:17

Okay, now the Setting Group successfully isntalls. Sorry about that. X3

Sarteck 26 Jul 2012 03:32

Another minor update.

Had some useless code left over from my testing that I deleted.

Also fixed a bug that made it so that the currently logged in was not showing.

thecore762 26 Jul 2012 03:44

Are there any screenshots?

Sarteck 26 Jul 2012 04:09


thecore762 26 Jul 2012 06:21

I like the idea, but instead of making the images rectangular I think they should be smaller and square, it would look a lot better I think.

Donavaz 26 Jul 2012 06:45

tanx but not work for vb 4.2.0

Sarteck 26 Jul 2012 07:09

@thecore, most users on my forum are crazy about "Vertical Avatars." X3 That's why most of them look rectangular. The actual shape depends on the user's avatar itself.

You can adjust "max-height" and "max-width"--do you think I should set an option to allow Admins to force height and width, so that all avatars are square? It wouldn't be a hard thing to do, but it would distort avatars that aren't already square, so I didn't bother including the feature.






Sarteck 29 Jul 2012 02:30

From the inception thread for this mod:



Originally Posted by B!tCH PLeAsE! (Post 2352209)
Installed! Great job on this @Sarteck! What's the best way to style these avatars? I also don't want to have the comma in between the avatars, do you know how I can remove those without breaking anything? lol

Hmm. I'll release the option for it on my next plugin update, but you could just add the line in your "[Display]" PHP code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I think so, anyhow.

qpurser 29 Jul 2012 13:14

Really like your idea and considering to use it on our forum but when there are hundreds of users online it will take up a lot of space.

Based on your knowledge how to code this plugin would it be possible to have another Mod or option in your actual Mod that would display only the "friends/buddy's" and instead of the Avatar their profile picture?

Just a thought


All times are GMT. The time now is 10:27.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.