Diferior
CMS on steroids
Register
|
Login
Blog
Downloads
Forum
Users
+845 / 1942617
(
online
11
)
User uploads
Development
»
Suggestions
»
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...
Thnx
Post reply
Main
Welcome!
Forum
Contact
RSS
Blog
New posts
What's Diferior?
Functions and features
News
Diferior
release
stable
teaser
beta
Downloads
New downloads
Diferior CMS
Modules
Templates
Languages
Other
anti-spam
captcha
Diferior
Polski Język
Polish
Italian
translation
russian
transverse
diferior
method
utech
italian language
french
spanish
Dutch
Nederlands
release
stable
swedish
beta
Terms of Service
|
Copyright
|
Privacy policy
|
Disclaimer
Generated in: 0.05575 sec (PHP: 0.036 sec, DB: 0.003 sec (10), TPL: 0.019 sec)
Powered by Diferior, Copyright © 2007, 2008 Povilas Musteikis
Design is copyright © 2007, 2008 witkuz
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)
Thnx