Hi,
First I want to thank you for your amazing work..! Thank!
There are 3 different visitors: visiteurs,admin,member
I would like to make the "upload function" available to members and admin. I don't want visiteurs to upload stuff..
Is that possible? How can I do this?
Thanks in advance,
Greetings,
Creamers :-P
In fact, it is not really relevant to do this. I explain :
· if your gallery is access "free", any non registered users can register and upload pictures
· if your gallery is access "restricted", only you (the admin) can create users and you know who can enter site (and so upload)
Now, you may want only users with status "member" be able to upload (and this would make the only difference between "guest" and "member" status), it would be possible, and more relevant since only admin can change the status of a user from "guest" to "member". You just have to know that in next release 1.3 (coming very soon), "member" status will have disappeared...
Anyway, why not !
1. in upload.php (release 1.2) replace
122 if ( $access_forbidden == true || $page['cat_site_id'] != 1 || $conf['upload_available'] == "false" )
by
if ( $access_forbidden == true || $page['cat_site_id'] != 1 || $conf['upload_available'] == "false" || $user['status'] == 'visiteur' )
2. in diapo.php (release 1.2), replace
395 if ( $page['cat_site_id'] == 1 && $conf['upload_available'] == "true" )
by
if ( $page['cat_site_id'] == 1 && $conf['upload_available'] == "true" && $user['status'] != 'visiteur' )
Offline
Thanks very very much!! :D
And again.........keep up the good work :-P
ps. Thanks for the fast reply message :) I can learn much with such a gnu product about php.
If you know some great learning sites about php, please let me know.....
thx again,
Creamers :cool: