Announcement

  •  » Extensions
  •  » normal users delete own images ?

#16 2012-09-12 13:54:03

lukenuke
Guest

Re: normal users delete own images ?

icy wrote:

I am afraid that the problem comes from your theme (What's its name?). My plugin doesn't modify the menu system (you can check in the template file *icy_picture_modify.tpl*.) I did a check the page on some themes, and I have no similar issues.

This issue is on 'stripped' and 'naive' (and 'gally minimalist').
maybe then its an issue with another plugin...
thanks anyway!

 

#17 2012-09-12 16:03:01

icy
Translation Team
Vietnam
2011-06-30
105

Re: normal users delete own images ?

lukenuke wrote:

This issue is on 'stripped' and 'naive' (and 'gally minimalist').
maybe then its an issue with another plugin...
thanks anyway!

Hello lukenuke,

Thinking twice and I guess that the problem may be due to missing category information in the address bar. Could you please take a look (compare the adrdesses in different cases.)?

Offline

 

#18 2012-09-13 08:33:32

lukenuke
Guest

Re: normal users delete own images ?

icy wrote:

lukenuke wrote:

This issue is on 'stripped' and 'naive' (and 'gally minimalist').
maybe then its an issue with another plugin...
thanks anyway!

Hello lukenuke,

Thinking twice and I guess that the problem may be due to missing category information in the address bar. Could you please take a look (compare the adrdesses in different cases.)?

Hi Icy,
Do you mean the address in the browser window?

home:  .../gal/
picture mod:  .../gal/index.php?/icy_picture_modify&image_id=37&cat_id=19
album: .../gal/index.php?/category/19
picture:  .../gal/picture.php?/37/category/19

there's no /category when I'm on the mod-page, you're right. how do I fix that?

thanks and regards,
luke

 

#19 2012-09-14 12:45:07

icy
Translation Team
Vietnam
2011-06-30
105

Re: normal users delete own images ?

lukenuke wrote:

Do you mean the address in the browser window?

home:  .../gal/
picture mod:  .../gal/index.php?/icy_picture_modify&image_id=37&cat_id=19
album: .../gal/index.php?/category/19
picture:  .../gal/picture.php?/37/category/19

there's no /category when I'm on the mod-page, you're right. how do I fix that?

The category id is already provided (cat_id= 19). I will take a look.

Offline

 

#20 2012-09-27 11:43:30

namli
Guest

Re: normal users delete own images ?

Sorry for stupid question:
in local/config/icy_acl.zml i have:
default:
  edit_image_of: owner
  delete_image_of:
  upload_image_to: sub
  moderate_image: no
  create_gallery_to: sub
  associate_image_to:
  present_image_to:
  replace_image_of: owner

namli:
upload_image_to: 10
edit_image_of: owner
delete_image_of: owner

but im don't see any change out :
https://dl.dropbox.com/u/4467929/2012-09-27_124007.png

i try navigate my brouser here /admin.php?page=photos_add but i steel dont have permit :
https://dl.dropbox.com/u/4467929/2012-09-27_124253.png

what i do wrong?

 

#21 2012-09-27 12:07:30

icy
Translation Team
Vietnam
2011-06-30
105

Re: normal users delete own images ?

Hi namli,

The white spaces do matter. The correct setting should be below . Please check if it helps.

Code:

default:
  edit_image_of: owner
  delete_image_of:
  upload_image_to: sub
  moderate_image: no
  create_gallery_to: sub
  associate_image_to:
  present_image_to:
  replace_image_of: owner

namli:
  upload_image_to: 10
  edit_image_of: owner
  delete_image_of: owner
  # two spaces at the begining of the line

Offline

 

#22 2012-09-27 12:21:36

namli
Guest

Re: normal users delete own images ?

icy wrote:

Hi namli,

The white spaces do matter. The correct setting should be below . Please check if it helps.

Thenk's a lot for answer!

I'do it but nothings changed.
What i mast see when plugin start work?
My be i have same mistake in community plugin. (i just install it)

 

#23 2012-09-27 12:50:19

icy
Translation Team
Vietnam
2011-06-30
105

Re: normal users delete own images ?

The plugin 'community' is required. The correct link should be

http://example.net/index.php?/add_photos

Could you please try to log out and log in again ?

Offline

 

#24 2012-09-27 12:54:42

namli
Guest

Re: normal users delete own images ?

i try logout\login and now i see "Upload Photos" and it's work.

also i see :

Notice: Constant PHOTOS_ADD_BASE_URL already defined in /sites/dahabphoto/htdocs/plugins/community/add_photos.php on line 32

Notice: Undefined variable: selected_category in /sites/dahabphoto/htdocs/plugins/community/add_photos.php on line 292

Notice: Undefined variable: selected_category in /sites/dahabphoto/htdocs/plugins/community/add_photos.php on line 316

i think its a problem of @community@ plugin.
Thank's for help!

 

#25 2012-09-27 13:01:13

icy
Translation Team
Vietnam
2011-06-30
105

Re: normal users delete own images ?

Oops very nice catch. Thank you for the try. I've fixed in the git

[Github] icy_picture_modify commit a53627c2

About the notice: you may configure PHP so that the notice are not printed when the site is under production mode.

At the moment, the plugin 'icy_picture_modify' requires the plugin 'community' to provide some extra support. So please don't remove that plugin 'community'.

Have fun with my plugin ;)

Offline

 

#26 2013-03-21 17:33:48

Joergen
Translation Team
Germany
2011-09-30
111

Re: normal users delete own images ?

Offline

 

#27 2013-09-28 13:59:41

Kalle
Member
2012-08-17
89

Re: normal users delete own images ?

Can you add a Log-File or eMail notification if a person delete his photo? Thank you.

Offline

 

#28 2013-09-29 09:55:05

icy
Translation Team
Vietnam
2011-06-30
105

Re: normal users delete own images ?

Kalle wrote:

Can you add a Log-File or eMail notification if a person delete his photo? Thank you.

Sure. Please wait I will release a new version soon that supports logging

Offline

 

#29 2013-10-01 16:25:59

icy
Translation Team
Vietnam
2011-06-30
105

Re: normal users delete own images ?

Please check out new version v2.4.4. Actions are logged in to file _data/icy_action.log.

Let me know if you have any problem with the new feature.


Thanks,

Offline

 

#30 2013-10-26 16:24:05

Kalle
Member
2012-08-17
89

Re: normal users delete own images ?

Thank you for the logging feature.
For the "delete_image" log i like to get some more information, because the image_id does not exist anymore, and i don't now what image is deleted. Filename? The date it was uploaded? The picture-owner? IP-Adress? the categorie where the picture was seen?

Offline

 
  •  » Extensions
  •  » normal users delete own images ?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2021 · Contact