Diferior CMS on steroids
+1391 / 2338604 ( online 8 )

User uploads


Forum posts: 1
qm2006 (Beginner) @ 08 08 22 - 09:04:50 (edited 08 08 22 - 09:05:15)
I didn't like users are allowed by default to make their own uploads.

Even if they have to be reviewed by staff members and manually published,
staff members might get quite busy on sites with many users.

Therefore i made a few tiny changes in the code, so only users with set permission 'add_downloads' will get the option to upload own stuff.

/templates/skio/index.tpl.php : line 246

{if $smarty.const.FUNC_DOWNLOADS && $smarty.session.permissions.add_downloads==1}

/views/upload.php : line 40

if ( !isset ( $_SESSION [ 'logged' ] ) || $_SESSION [ 'logged' ] !== true || $_SESSION [ 'permissions' ] [ 'add_downloads' ] != 1)

:)
Forum posts: 98
p2pmylife (Talks a lot) @ 08 11 07 - 19:37:58
Thanks a lot ;) very usefull !
Forum posts: 4
Bengan (Beginner) @ 08 11 09 - 17:01:35
Yes i liked thin 1... 8D

Thnx