vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Unique Avatars (https://vborg.vbsupport.ru/showthread.php?t=148711)

mfyvie 06-01-2007 10:00 PM

Unique Avatars
 
*** Staff note: The author of this modification has passed away in a diving accident. We wish his family all strength in dealing with this traggic issue. ***

Have you ever been frustrated by the fact that many of your users choose the same avatars from your pre-defined avatars?

Now you can prevent users from selecting avatars that others are already using.



Features
  • No template or file edits, just a single .xml file to install
  • Phrase-based - update language strings as you like
  • Can either omit the used avatars from the display, or show them as unavailable
  • Can optionally display a count of how many times each avatar is used
  • All options configurable via the admin control panel
  • Install routine adds an additional index to ensure database performance not impacted on larger boards
The inspiration from this mod came from a similar one for vBulletin 3.0 by VBDev. Even though there is almost no code in common between these mods I've sought and obtained his permission to release this.



Installation (30 seconds)
  • Download the attached .xml file
  • Go into your admin control panel -> Plugins & Products -> Manage Products -> Add/Import Product.
  • Press the browse button to locate the .xml file you just downloaded click OK.
  • Ensure that "Allow Overwrite" is set to "Yes" and press "Import"
  • Note: requires MySQL version 4.1 or higher.
Configuration
VBulletin Options -> Unique Avatar

Version History
1.0 - Initial release (02.06.2007)
1.1 - 1 minor bugfix (20.01.2008)

See screenshots for further details.

rayw 06-01-2007 11:23 PM

That is a great idea. I like it!

If two people on the board already have the same avatar and you install this, what effect will it have on those two people??

SMO 06-01-2007 11:30 PM

I like this idea....nice of ya to rls it.

mfyvie 06-01-2007 11:32 PM

No effect, but if one of them selects a different avatar, then they won't be able to reselect it (since at least one other person is using it).

If you configure the mod to show the count of how many people are using a given avatar you can get an overview of which avatars are used.

It would be possible to craft some queries to show you which users were using a duplicate avatar (count of 2 or higher), and theoretically it would be possible to make a query which removed the avatar from these users (forcing them to choose again, and therefore no more duplicates possible from that point on).

Nutz 06-01-2007 11:35 PM

Nice idea.

Thanks for the share,
Mat

gforce75 06-02-2007 12:14 AM

Not a bad idea. Once I get my forum going with some more advatars, I'll give this hack a crack.

TTG 06-02-2007 12:37 AM

Great idea .. thanks mfyvie

Clicked install.

FreshFroot 06-02-2007 01:06 AM

i love the idea, great one mate!

rjmjr69 06-02-2007 02:35 AM

Nice thank you installed

tehPARADOX 06-02-2007 03:16 AM

Very nice! Can't believe this isn't a default feature.


All times are GMT. The time now is 04:09 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.01591 seconds
  • Memory Usage 1,729KB
  • 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