PDA

View Full Version : Allow only certain usergroups avatars


melondog
03-22-2002, 10:00 PM
This is a quick hack a whipped up, I didn't see it anywhere. It's my first working hack for vBulletin.

First, you want to open member.php
Find this:
if (!$avatarenabled) { and replace it with:
if($bbuserinfo[usergroupid] != 8){ You will need to change the 8 to whatever usergroup number you want to allow. A simpler way is to only allow admins and mods by putting this:
if(ismoderator()){ Any questions, comments, or anything you can just post here, I'll be glad to hear from you.

AnaSci
03-25-2002, 12:27 AM
thanks! i've been asking for this!

AnaSci
03-25-2002, 12:38 AM
how would one go about allowing more than one selected user group to have avatars enabled? for instance... mods, admins, and "X" user group

melondog
03-25-2002, 07:58 PM
Use this:

if(!ismoderator() && $bbuserinfo[usergroupid] != 8){ This will allow mods, admins, and also usergroup 8. If you want to add more, just copy and paste the $bbuserinfo[usergroupid] != 8 and replace the 8 with the other usergroup number.

Hope that helps. :classic:

AnaSci
04-04-2002, 01:24 AM
didnt work, i got a parse error when trying to click into someones profile

melondog
04-04-2002, 02:03 PM
Which version of vB are you running?

Sweet Cheeks
04-04-2003, 05:43 PM
I got it also, Im running version 2.2.9

Parse error: parse error, unexpected T_VARIABLE in /home/virtual/site19/fst/var/www/html/boards/member.php on line 1080