Frontend edit/delete for images on shared categories

Phoca Gallery - image gallery extension
Daedalus86
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Feb 2012, 09:51

Frontend edit/delete for images on shared categories

Post by Daedalus86 »

Hello dear Support Team,

First of all: Thank you for this awesome gallery extension! Great work!

I've got a little configuration question here... There are no explicit keywords that describe the question, therefore sorry in advance if the solution has already been posted and I couln't find it. I really tried hard searching, but couldn't find this exact question...

What I need is the users to be able to upload their photos into one common category, without having an own main category. This works perfect with the upload form below the gallery category layout so far. But: I need the users also to be able to edit (title, description) or delete their photos in the common category. I can't give the "Registered users" the rights to edit/delete images in the whole common category because they would be able to edit/delete ALL of the images in the category then, not only their own ones. If I activate the frontend user panel however, the uploaded images do not appear there - because the users don't have main category, of course.

So, basically, I would like the images uploaded by the user into the common category to appear in the images list of the user's control panel, so that he/she can edit or delete them there. The list will probably have to go through the common category and check the images by the account id that uploaded them, and if the account is the same as the logged in user's account id, editing and deleting should be enabled :idea: .

Well, I could go into the code and reprogram the user panel, but probably there's some simple option for that and I just can't find it? :x .

I am using Joomla 1.5.25 and Phoca Gallery 2.8.1 .

Kind regards

- Daedalus86
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Frontend edit/delete for images on shared categories

Post by Jan »

Hi, delete and manage the images can be done only in UCP ... :-(
If you find Phoca extensions useful, please support the project
Daedalus86
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Feb 2012, 09:51

Re: Frontend edit/delete for images on shared categories

Post by Daedalus86 »

Hello Jan,

thank you for the answer! Well, the UCP would be fine too, if there were a way for the users to edit/delete their own pics in the shared category, i.e. without having an own main category. The users basically need image-based permissions, not category-based ones. Is there a way to configure this in the settings? Or is it mandatory for every user to have an own main category to be able to edit/delete pics there?

If not, then I think it should be possible to customize the UCP. The uploader's user id is already stored in the database for every picture, so basically the UCP would just have to check if this id is the same as that of the currently logged in user, and if yes, the pic should appear as an editable entry in his/her image list. I think I could do that if there is no way to achieve the goal via configuration only :wink:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Frontend edit/delete for images on shared categories

Post by Jan »

Hi, for now there are only category permissions - I thougt about images permissions too but the system was too heavy - there were so many permissions and rights so only checking them include their combination took all the memory :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply