Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-08-2001 Last Update: Never Installs: 26
 
No support by the author.

My mods have been bugging me for ever that they want custom avatars, just like they have custom user titles.

This hack is really simple, won't take you more than 5 minutes.

1. In member.php find
Code:
  if ($bbuserinfo[userid]==0) {
    show_nopermission();
  }

  $avatarchecked[$bbuserinfo[avatarid]]="checked";
and add this right after:
Code:
if (ismoderator()) {
  $avatarcustomposts = 0;
}
2. In the same file replace this:
Code:
  if ($bbuserinfo[userid]==0) {
    show_nopermission();
  }

  $useavatar=iif($avatarid==-1,0,1);
and add this right after:
Code:
if (ismoderator()) {
  $avatarcustomposts = 0;
}
And that's it!

Have fun.

Show Your Support

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

Comments
  #2  
Old 08-09-2001, 05:34 PM
Dakota's Avatar
Dakota Dakota is offline
 
Join Date: Oct 2001
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks this is a nice hack. Something I have been wanting and should be included with vB.
Reply With Quote
  #3  
Old 03-05-2002, 05:16 AM
spazeman's Avatar
spazeman spazeman is offline
 
Join Date: Dec 2001
Location: Vancouver Island, Canada
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so how does it work? I installed it and all users seem to still have avatars??
Reply With Quote
  #4  
Old 03-05-2002, 01:11 PM
M.Smith M.Smith is offline
 
Join Date: Feb 2002
Location: Durham, UK
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its made so it still works for people that have the right amount of post counts
Reply With Quote
  #5  
Old 03-20-2002, 11:45 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firefly -

Okay, I've made the changes. Now what? Do I have to turn on "upload/www avatars" in the CP? I can't seem to get it to work just so that only mods/admin/heads have av uploading, but NOT the members. :s
Reply With Quote
  #6  
Old 03-21-2002, 05:47 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes turn that on, but make the required post number realllllllllllllllllllly high.
Reply With Quote
  #7  
Old 03-21-2002, 12:49 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Yes turn that on, but make the required post number realllllllllllllllllllly high.


When I tried all that, I got it to show up okay for mods/admin/heads and not for members. So the first step is good. BUT! When I tried to upload an avatar using the upload or link box, it didn't take. It simply changed my av to the first avatar in the gallery list. This was tested by myself (admin) and a moderator, with the same results.

I'll mess with it some more today, since I gave in in frustrations last night. *lol* But do you have any ideas why it won't save?

{edited to say} - When I click upload from my pc, I get a "no valid avatar" error.
Reply With Quote
  #8  
Old 03-21-2002, 12:58 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I updated the file for 2.2.4, because the hack is VERY old and only works on 2.0.3. So uninstall and install it again.
Reply With Quote
  #9  
Old 03-21-2002, 01:14 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Ok I updated the file for 2.2.4, because the hack is VERY old and only works on 2.0.3. So uninstall and install it again.

Thanks for updating it, Chen. But I still get the same errors. For myself, I get an approval for changing my avatar, but it doesn't change if I do upload from pc. If I use a link, it defaults to the first av in the gallery.

My mods get the error "no specified avatar" when using the upload option, and the frist av default when changing the other way.
Reply With Quote
  #10  
Old 03-21-2002, 01:20 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damnit so many things have changed.
I'll look again... *sigh*
Reply With Quote
Reply

Thread Tools

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 09:00 AM.


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.10527 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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