vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Allow ONLY mods and admins to use custom avatars (https://vborg.vbsupport.ru/showthread.php?t=24975)

Admin 08-08-2001 10:00 PM

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! :D

Have fun. :)

Dakota 08-09-2001 05:34 PM

Thanks this is a nice hack. Something I have been wanting and should be included with vB.

spazeman 03-05-2002 05:16 AM

so how does it work? I installed it and all users seem to still have avatars??

M.Smith 03-05-2002 01:11 PM

its made so it still works for people that have the right amount of post counts

Rose 03-20-2002 11:45 PM

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

Admin 03-21-2002 05:47 AM

Yes turn that on, but make the required post number realllllllllllllllllllly high.

Rose 03-21-2002 12:49 PM

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.

Admin 03-21-2002 12:58 PM

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.

Rose 03-21-2002 01:14 PM

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.

Admin 03-21-2002 01:20 PM

Damnit so many things have changed. :p
I'll look again... *sigh*


All times are GMT. The time now is 11:17 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.01110 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (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