Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Unique avatar Details »»
Unique avatar
Version: 1.00, by VBDev VBDev is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-27-2004 Last Update: Never Installs: 16
 
No support by the author.

With this hack, you will be able to set if you want users to have a unique avatar or not. In fact, if you select yes in 'User Picture Options' in general options of vBulletin, if a user has selected an avatar, an other user will not be able to select the same.

This avatar will still appear in the list, but you will not be able to select it, and instead of its title, you'll see TAKEN to show it's already used.

Support for this hack : http://www.vbulletindev.net/forums/showthread.php?t=107

Hack description : http://www.vbulletindev.net/forums/h...hack&hackid=31

Really easy to install : 5 min

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-28-2004, 11:24 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works i get no errors now
cheers

All works fine now
Reply With Quote
  #23  
Old 03-28-2004, 11:43 PM
Diva's Avatar
Diva Diva is offline
 
Join Date: Oct 2001
Location: CA, USA
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works! Thank you, VBDEV.

I was wondering if you knew how to make it so that selected pictures just didnt show up. It had it on the older option and made load time easier if people just looked through the ones they could select.
Reply With Quote
  #24  
Old 03-29-2004, 12:04 AM
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Location: France
Posts: 2,570
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To not display the avatar, replace your modifyavatarbit template with this one :

PHP Code:
<if condition="$disabled=="disabled"">
    <
td class="smallfont" align="$stylevar[center]valign="middle">
        <
label for="rb_avatarid_$avatar[avatarid]">
<
b>$vbphrase[avatar_taken]</b>
</
label>
    </
td>
 
<else />
 
 
    <
td class="smallfont" align="$stylevar[left]">
        <
label for="rb_avatarid_$avatar[avatarid]">
            <
img src="$avatar[avatarpath]alt="$avatar[title]border="0" /><br />
            <
input type="radio" name="avatarid" value="$avatar[avatarid]id="rb_avatarid_$avatar[avatarid]$avatarchecked[$avatarid$disabled/>$avatar[title]
 
        </
label>
    </
td>
</if> 
Reply With Quote
  #25  
Old 03-29-2004, 12:16 AM
Diva's Avatar
Diva Diva is offline
 
Join Date: Oct 2001
Location: CA, USA
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to be a pain... I meant that if someone selected it there wouldnt be a slot there.

Example:


Before someone selects AVATAR 2;

AVATAR 1 | AVATAR 2 | AVATAR 3

Afterwards:

AVATAR 1 | AVATAR 3

If it's too hard then this will be just fine.
Reply With Quote
  #26  
Old 03-29-2004, 12:22 AM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange,
I get no errors but I can also select any avatar even if another member has it selected. And I do have use unique avatars selected in the options.

NIX THAT. Got it! Thanks a million!!
Reply With Quote
  #27  
Old 03-29-2004, 12:22 AM
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Location: France
Posts: 2,570
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should be really too hard to do this Diva, I began but stoped rapidly

Indeed, to do this you have to rebuild $perpage before the SELECT query and the time you would win to not display the pic , you lost it with the code which as to be modified

The template's mod I gave you, improve your page's load by not displaying picture and it's no longer compared to sthg if the code had to be modifed to not display the template at all

Hurm, what I'm saying is quite confused, but it's really late (4h30), I'm quite tired and enough of vB for 6 mounths ^^
Reply With Quote
  #28  
Old 03-29-2004, 12:24 AM
Diva's Avatar
Diva Diva is offline
 
Join Date: Oct 2001
Location: CA, USA
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No worries, it's perfect. *hugs* I appreciate all of your help.
Reply With Quote
  #29  
Old 03-29-2004, 02:20 PM
aloha aloha is offline
 
Join Date: Jan 2004
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you make it so that it doesn't allow you to input anything at all instead of displaying 'taken' right next to an option. Some people are really airheaded and that will confuse them. At least on my site. lol At times they don't know how to get to the message boards... when it says "Forums" ... So I'm guessing this might cause a little confusion on mine. Just wondering... ;-)
Reply With Quote
  #30  
Old 04-25-2004, 07:20 AM
Eternal2u Eternal2u is offline
 
Join Date: Feb 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice..

I remember having this same thing on my phpBB board b4 i moved over to vB, nice to see you guyz got this one

**Click install
Reply With Quote
  #31  
Old 04-26-2004, 03:31 PM
DenzoForums DenzoForums is offline
 
Join Date: Apr 2004
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when in usercp, edit avars
http://www.denzoforums.com/forum/pro...?do=editavatar

i get this error..
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /homepages/28/d98287039/htdocs/denzo/forum/profile.php on line 1552

P.S. I had a problem with this..
Quote:
In your browser, go to :

http://www.yourforum.com/admincp/opt...pix&do=options


Click Add setting and insert these values :

*****************************

varname : avatar_unique
setting group : User Picture Options
title : Unique avatar ?
description : With this option you can choose if you want each member to have a unique avatar or not
Option code : yesno
Default : 0
Display order : 50
vbulletin default : yes
I don;t have anything that saus add setting..

Thanks
Dave
P.S. using 3.0.1
Reply With Quote
Reply


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 07:16 PM.


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.05854 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete