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)

SuperTaz 06-02-2007 05:33 AM

very nice...installed

VBDev 06-02-2007 05:54 AM

Nice buddy :)

projectego 06-02-2007 09:39 AM

Awesome idea, mfyvie! Great work. :)

Dr. Bantham 06-02-2007 10:45 AM

Yes! I have been asking for this of late, here and within the vBulletin forums. Many thanks!

mfyvie 06-02-2007 12:31 PM

Here is a query that will allow you to quickly identify existing users on your board that have the same avatars as others.

If you don't know how to run an SQL query, in your admincp go to Maintenance -> Execute SQL Query, then copy and paste the query below:

Code:

/*
This query will return a list of all of those users on your board who share an avatar with
at least one other person. This will allow you to contact them, edit them, or do whatever
you like with the information.

If this query doesn't work, you may be using prefixes in front of your table names. In this
case you'll have to edit the table names in the FROM line.
For example if your table prefix was vb then the FROM line would look like this:
FROM vbavatar av1,vbuser usr1, vbuser usr2
If you don't use table prefixes (most people), just do nothing and run this query as is
*/

SELECT distinct usr1.userid ,usr1.username, av1.title, av1.avatarid, av1.imagecategoryid
FROM avatar av1, user usr1, user usr2
WHERE av1.avatarid=usr1.avatarid
AND av1.avatarid=usr2.avatarid
AND usr1.userid <> usr2.userid
and usr1.avatarid>0
and usr2.avatarid>0
order by 4 asc

It can sometimes be interesting to see just how much you actually needed this mod :)

Note: I found that when I ran this inside the admincp it only gave me the number of rows returned. If you run it in another mysql tool you'll get the full results, including the usernames affected, etc.

Barakat 06-02-2007 09:10 PM

What if u have a thousand member ,! Installed indeed .

CCWBumper 06-02-2007 10:16 PM

Installing now!

PoetJA-1975 06-03-2007 08:38 AM

Ha! This is very nice - I was looking for something similar.
This will do just fine - Thanx very much for the sharing!

Jacquii.

william99 06-03-2007 08:40 AM

Installed, awesome idea, I have been waiting for something like this for a long time :-)

Andyucs 06-03-2007 01:05 PM

i get this error when i enable it

in my usercp change avata

PHP Code:

Database error in vBulletin 3.6.7:

Invalid SQL:

            
SELECT avatar.avataridavatar.titleavatar.minimumpostsavatar.avatarpathavatar.imagecategoryidavatar.displayordercount(1)
            
FROM user avatar
            WHERE user
.avatarid avatar.avatarid
            
AND avatar.imagecategoryid 3
            
AND minimumposts <= 1167
            GROUP by avatar
.avatarid
            UNION
            SELECT avatarid
titleminimumpostsavatarpathimagecategoryiddisplayorder0
            FROM avatar
            WHERE avatarid not in 
(select distinct avatarid from user)
            AND 
imagecategoryid 3
            
AND minimumposts <= 1167
            ORDER by displayorder
title
            LIMIT 0
,10;

MySQL Error  You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select distinct avatarid from user)
            AND imagecateg
Error Number : 1064
Date         : Sunday, June 3rd 2007 @ 02:53:25 PM
Script       : http://www.ucsclan.co.uk/forum/profile.php?do=editavatar
Referrer     : http://www.ucsclan.co.uk/forum/profile.php?do=editoptions
IP Address   : 83.100.253.11
Username     : FlatLiner
Classname    : vb_database 



All times are GMT. The time now is 01:43 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.01047 seconds
  • Memory Usage 1,746KB
  • 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)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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