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


All times are GMT. The time now is 11:03 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.01884 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete