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

Reply
 
Thread Tools
Display Avatar Thumbnails in WGO on Forum Home Details »»
Display Avatar Thumbnails in WGO on Forum Home
Version: 0.05a, by Sarteck Sarteck is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.1.x Rating:
Released: 07-24-2012 Last Update: 07-30-2012 Installs: 18
Uses Plugins
Re-useable Code  
No support by the author.

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:



Download Now

File Type: xml product-sar_wgo_avatars.xml (6.2 KB, 150 views)

Show Your Support

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

Comments
  #12  
Old 07-26-2012, 04:21 AM
thecore762 thecore762 is offline
 
Join Date: Jul 2008
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 07-26-2012, 04:45 AM
Donavaz Donavaz is offline
 
Join Date: Jun 2009
Location: IRAN
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


tanx but not work for vb 4.2.0
Reply With Quote
  #14  
Old 07-26-2012, 05:09 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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







X3
Reply With Quote
  #15  
Old 07-29-2012, 12:30 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From the inception thread for this mod:

Quote:
Quote:
Originally Posted by B!tCH PLeAsE! View Post
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.
Reply With Quote
  #16  
Old 07-29-2012, 11:14 AM
qpurser qpurser is offline
 
Join Date: Jul 2011
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 07-29-2012, 05:18 PM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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.
Reply With Quote
  #18  
Old 07-31-2012, 11:12 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sarteck View Post
From the inception thread for this mod:

Quote:
Quote:
Originally Posted by B!tCH PLeAsE! View Post
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.
Reply With Quote
  #19  
Old 07-31-2012, 03:11 PM
Aline Aline is offline
 
Join Date: Apr 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ Sarteck
Do you have the ( Users on irc mod ) ?
thank you.
Reply With Quote
  #20  
Old 07-31-2012, 08:24 PM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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.
Reply With Quote
  #21  
Old 08-08-2012, 03:11 AM
Gabe505 Gabe505 is offline
 
Join Date: Feb 2004
Location: Albuquerque NM
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Sarteck
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 02:25 AM.


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.04800 seconds
  • Memory Usage 2,339KB
  • Queries Executed 28 (?)
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
  • (2)bbcode_php
  • (5)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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