vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Unique avatar (https://vborg.vbsupport.ru/showthread.php?t=63079)

gsk8 07-18-2004 12:10 PM

Thanks Floris! Runs great. Will email you for further info.

Sadie Frost 07-20-2004 07:38 PM

Can someone tell me how this handles avatars already being used by more than one person? Does it let them both keep it, does the person who chose it first keep it etc?

Thanks :)

Also, is there a way to deal with lurkers who have chosen an avatar but haven't been around ina while?

turbidblue 07-20-2004 07:47 PM

when i first installed this hack, i had trouble with avatars showing up twice or maybe three times in the "edit avatar" field. It was because more than one member had chosen the same one, now that it has to be unique, they all show up only once :)

inziga 08-01-2004 07:58 AM

Works great!

Just one thing...Scince it would be too hard to make the avatar dissaper, would it be possible to (if each category has multiple pages) make the "taken" avatars move to the last pages of that category? :)

Gutspiller 11-02-2004 04:58 AM

I didn't know we could attach boobies into our threads.

Probably not the best image to display the hacks ability VBDev. :)

Scerina 11-19-2004 02:58 AM

Quote:

Originally Posted by Boofo
Will this handle avatars already picked or only after the hack is installed?

Can someone please install this hack for me please??? I really like it and would love to have it on my forum. If anyone can help me out here...please email me at: Pandora@Sweet-November.Net

cinq 12-09-2004 12:51 AM

Are the problems resolved for this hack ? It would be a great addition ( and should be default in vb ) if so.

Also how does it handled already chosen avatars which aren't unique ? i.e 2 or more members already using the same avatar ?

Dot50Cal 05-03-2006 01:16 PM

Bump from the grave, Im very interested in this but it doesnt work for 3.5. Can anyone help?

kall 05-03-2006 07:11 PM

It does. but you will need to make it into a plugin yourself. :)

Diva 10-20-2006 08:55 PM

Quote:

Originally Posted by kall
It does. but you will need to make it into a plugin yourself. :)

I only wish I had the skill to do so! Is anyone willing to port this over? I love the hack and think it would be great as a default on VB. *crosses fingers and hopes for a response*

mfyvie 03-09-2007 04:36 PM

I had a look at this, but it doesn't look like it is possible to do this as a plugin. I changed it around a little bit and got it working on 3.65. Then I noticed that there were some problems with it - namely that if you had 100 avatars in a category and 50 were already in use then it would select 150 records, but only display 100, repeating the same avatars over and over.

So I made some adjustments to the version I was making so that instead of being displayed with "taken" the used avatars are simply omitted from the list entirely (incorporating the suggestions made by others earlier in this thread).

I also removed the ability to turn this hack on or off on a per user basis - it simply applies to all users on the system now.

Even though this is a thread about a mod which only worked on 3.0, I've attached the version that works on 3.6 to this post. Since I'm not the author of this mod I can't really provide any support for it - sorry.

mfyvie 05-05-2007 01:39 PM

If you've used the original version of this mod, or you've used my modified version prior to this date you should be aware that there is a performance issue. If the query is used on a busy or large system it can tie up the mysql process on the server, affecting all other queries. Therefore you need to ensure that you execute this sql query on your database:

ALTER TABLE `user` ADD INDEX(`avatarid`)

By adding this index it cut the query time on my server from over 15 seconds to 0.0065 seconds.

I've updated the attached file in the previous post to incorporate this change.

If you are using this mod and you do not add the index as described above you could affect not only the performance of your own forum, but also other applications / sites which run on the same server.

mfyvie 06-01-2007 11:28 PM

If you have been using the modified version of the original mod I made above (1.1), you should know that I've made a full port of this to 3.6.x and released it as a version which uses the plug-in system.

If you'd like to use this new version then you should first remove any changes made manually to files or templates before installing the new mod.

You can find the newly released mod here:

https://vborg.vbsupport.ru/showthread.php?t=148711


All times are GMT. The time now is 11:04 AM.

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.01094 seconds
  • Memory Usage 1,741KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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