i have 2 questions:
1. i want to build my G2 that registered users can upload files into the galleries but the admin will need to approve them before they will go public.
how can i do it in G2?
2. when i add the registered users permission to upload new items they get the upload page with all the upload options (upload from server, upload from site, upload applet, gallery remote, etc...)
but i want to allow they only to upload in one way.
how can i change the upload page to show only things i want to registered users?
thanks for helping...
Posts: 196
kisin,
1. Admin approval on uploaded items is not implemented.
2. There is no user setting to give a specific user specific upload option. All users has the same upload options.
Posts: 32509
1. approval: that would be quite cool and it could be implemented as a module. we'd be glad to guide any interested user through the process of creating this module.
2. you could hack it in modules/core/ItemAdd.inc, but a far better solution would be to to make such things optional.
Posts: 5
no admin approval on G2?! what a shame...
can i create a gallery that only admins has access to see the files in it and then make all the user uploads goes to this gallery, so until the admins wont move the file from that private gallery to ther other public galleries the users wont see the files.
so the private gallery will be like an approving gallery to new files.
can i do it in G2?
valiant - can u guide me how to hack G2 so registered users will only have a spcific upload option?
Posts: 32509
i'd prefer to give you some guidance for something that is useful for all users, e.g. not just a hack. plus i'm very busy.
this is very similar:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=32044
instead of hacking ItemEdit.inc you'll have to hack ItemAdd.inc and instead of ItemEditPlugins you'll have to deal with ItemAddPlugins.
Posts: 5
ok, i have created a private album that only admins see.
now how can i make all the uploads of guest and registered users to go to that album no mater from which gallery they uploading from?
Posts: 32509
this is a non trivial change. maybe some changes to ItemAdd.inc and the various ItemAdd*.inc plugins is required such that this could be implemented as a module.
in ItemAdd.inc
before
list ($ret, $error, $status) = $plugin->handleRequest($form, $item);
you could replace $item with your special album item.
but i guess this wouldn't work and i guess it's not the right approach.
maybe you can figure out a better approach.
in G2, there's already something similar. the register module. you can configure the registration module such that users need admin approval.
similar to how the register module creates Pending user objects instead of user objects and then changes pending users to users once they were approved, you could create pending gallery item objects.
i know, this is all vague, but as i said, i don't plan to work on it now and giving you a complete solution / howto is about the same work as doing it myself. maybe the other devs have already a more precise vision how this could be implemented.
Posts: 47
I want to implement Admin approval on uploaded items.
how can i do it?
I think that:
> It must exist an option in general config to check: do you want Admin approval?
- No: all go like now
- Yes: the uploaded items are visible only for admins. If Admin approve the item, this is visible in the album.
I think It is neccesary update "archiveupload" module.
Posts: 32509
as i pointed out, the way to go is definitely a module that implements an item add option plugin. see modules/core/ItemAdd.inc and the few plugins that already exist for it.
when handleRequest() of the plugin is called, you'll have to do some actions, there are quite a few alternatives how it could be implemented, maybe to mimic the register module and how it handles pending users could be a basic approach.