Allow users to upload

Started by greentide, July 24, 2011, 12:13:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zokii1983

I removed class check on mine
UPDATE users SET  uploadpos='1';

then just removed
$CURUSER['class'] < UC_UPLOADER OR
from upload.php and takeupload.php

Mindless

Code (php) Select
$CURUSER['class'] < UC_UPLOADER

If less the uploader no access - so adjust it to what class you want

greentide

#5
Hey  :)

Thanks for the help!

I'm been really dumb, could you Elaborate a bit more, i think im getting a little mixed up.




gram

no you must change UC_UPLOADER

greentide

Hey

thanks for your help
Must i replace it with this code?

Thanks again :)

Mindless

Code (php) Select
if ($CURUSER['class'] < UC_UPLOADER OR $CURUSER["uploadpos"] == 0 || $CURUSER["uploadpos"] > 1 || $CURUSER['suspended'] == 'yes')
    stderr($lang['upload_sorry'], $lang['upload_no_auth']);


upload and takeupload

greentide

Hi

I need some help:)

I would like to make user able to upload will I need to change the code in take upload.

THANKS :)