Quote:
Originally Posted by YourLocalNerd
I am trying to figure this out but am coming up empty thus far so I thought I'd throw it out there to see if someone else has already done this.
I am trying to make the file type restrictions not affect a certain user/usergroup.
Any ideas?
I apologize if I've completely missed the obvious here.
|
OK, finally found (yes feeling kind of like a moron here)...
in downloads.php find:
PHP Code:
if ($upload == true)
{
if (!strstr("|".str_replace(" ","|",$dl->ext)."|",$ext))
{
$errors['message'] .= '<center>'.$vbphrase['ecdownloads_invalid_extension'].': '.$dl->ext.'</center><br />';
}
}
and replace with:
PHP Code:
if ($upload == true)
{
if (!strstr("|".str_replace(" ","|",$dl->ext)."|",$ext) && $vbulletin->userinfo['userid'] != "X")
{
$errors['message'] .= '<center>'.$vbphrase['ecdownloads_invalid_extension'].': '.$dl->ext.'</center><br />';
}
}
with "X" being the userid of the person you want exempt.