vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Display Avatar Thumbnails in WGO on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=285931)

Sarteck 07-24-2012 10:00 PM

Display Avatar Thumbnails in WGO on Forum Home
 
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.







Screenshots:

https://vborg.vbsupport.ru/external/2012/07/13.png

https://vborg.vbsupport.ru/external/2012/07/14.png

Sarteck 07-25-2012 08:11 AM

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

faisaly.com 07-25-2012 04:22 PM

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 07-25-2012 06:03 PM

Any screenshot? :)

Sarteck 07-25-2012 10:58 PM

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

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

Sarteck 07-25-2012 11:12 PM

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 07-26-2012 01:17 AM

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

Sarteck 07-26-2012 01:32 AM

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 07-26-2012 01:44 AM

Are there any screenshots?

Sarteck 07-26-2012 02:09 AM

https://vborg.vbsupport.ru/external/2012/07/13.png
https://vborg.vbsupport.ru/external/2012/07/14.png

thecore762 07-26-2012 04:21 AM

Thanks!
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 07-26-2012 04:45 AM


tanx but not work for vb 4.2.0

Sarteck 07-26-2012 05:09 AM

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



@Donavaz:

https://vborg.vbsupport.ru/external/2012/07/10.png

https://vborg.vbsupport.ru/external/2012/07/11.png

https://vborg.vbsupport.ru/external/2012/07/12.png

X3

Sarteck 07-29-2012 12:30 AM

From the inception thread for this mod:

Quote:

Quote:

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

$loggedin['comma'] = ''

I think so, anyhow.

qpurser 07-29-2012 11:14 AM

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

Michael

Sarteck 07-29-2012 05:18 PM

@qpurser, I sure wish I had your problem. X3 My forum's too inactive nowadays.

But I suppose I could look into making another Mod for it. I'll PM you details if/when I do.

Sarteck 07-31-2012 11:12 AM

Quote:

Originally Posted by Sarteck (Post 2352236)
From the inception thread for this mod:

Quote:

Quote:

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

$loggedin['comma'] = ''

I think so, anyhow.

Modification updated to include this functionality.


I'll look into qpurser's suggestion for an option to limit display of Who's Online to people on your Friend's List, next.

Aline 07-31-2012 03:11 PM

@ Sarteck
Do you have the ( Users on irc mod ) ?
thank you.

Sarteck 07-31-2012 08:24 PM

@Aline, that's more of a custom mod that wouldn't really be able to be "released," since the coding contains elements from both vBulletin and an eggdrop bot I use on the channel. If you have an eggrop bot on your channel, though, I can show you how I went about doing it. Contact me via PM if you're interested.

Gabe505 08-08-2012 03:11 AM

I have the updated version with the disable comma option. Working great using vb 4.1.10! Looking forward to seeing another update.

Love to have more css style options to also disable seeing "*" next to the avatars.
A way to show a default image for the invisible users so you dont see a random blank space where there is an invisible or user without a avatar. http://siccness.net/vb/ is a working example.

Sarteck 08-08-2012 05:31 AM

Hmm, I see what ya mean about spaces. I'll work on that and the asterisks sometime this week.

Gabe505 08-09-2012 02:24 AM

Thanks @Sartek!

Gabe505 09-07-2012 06:23 AM

Do you know if this works with vb3.8.x series?

vB-Tr 11-16-2012 08:42 PM

l want to show username and avatar.

how l show ?

avatar username, avatar username, avatar username ....

mitch84 11-20-2012 12:34 PM

don't work with 4.2.0pl3

Derwin 03-13-2013 02:59 AM

Do you plan on releasing a version that will work on 4.2?

I would love to use this, and think you are a genius. It's a great mod.

Thanks.

faisaly.com 02-11-2014 05:12 PM

Quote:

Originally Posted by vB-Tr (Post 2381709)
l want to show username and avatar.

how l show ?

avatar username, avatar username, avatar username ....

waiting for that too...

rohirrim 09-02-2015 08:48 PM

not works on vb4.2.3 waiting an update too:(

RichieBoy67 09-06-2015 01:04 PM

Developer Last Online: Mar 2015

iiioroh 10-25-2015 11:59 AM

not works on vb4.2.3 waiting an update too

RichieBoy67 10-26-2015 01:27 AM

Not sure I would use this without at least being able to choose the amount of max avatars to display. This mod would be a huge problem if you have many users listed online. If you could set it so the first 10 users avatars display or maybe even use a different condition like the 10 most recent or the 10 busiest, etc. Ofcourse there are top stats mods that can do those things.

rohirrim 04-03-2016 01:52 PM

Quote:

Originally Posted by vB-Tr (Post 2381709)
l want to show username and avatar.

how l show ?

avatar username, avatar username, avatar username ....

Quote:

Originally Posted by faisaly.com (Post 2480442)
waiting for that too...

I need that too... can someone help on this?


All times are GMT. The time now is 05:23 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.01243 seconds
  • Memory Usage 1,805KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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