Announcement

  •  » Extensions
  •  » Community - disable sub albums for user upload

#1 2015-10-19 00:25:15

D_man
Member
2015-10-19
2

Community - disable sub albums for user upload

Hey all,

Great product. Went through way too many wordpress plugins and other poorly written projects before finding Piwigo.

Basically i want my users to be able to uplaod photos, but not create "Sub Albums". I find these are confusing to users. I'd rather have one page with all albums listed.

So when the user hits "upload photos", is there any way to not allow them to select a parent?

Thanks!

Piwigo version: 2.7.4
PHP version: 5.5.9-1ubuntu4.13
MySQL version: 5.5.44-0ubuntu0.14.04.1
Community Plugin: 2.7b
Piwigo URL: local only

Offline

 

#2 2015-10-21 14:39:43

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13490

Re: Community - disable sub albums for user upload

Hi D_ma,

In the Community plugin permissions configuration, you don't have to check the option "create sub-albums". Doesn't it make what you wish?

Offline

 

#3 2015-10-21 18:06:51

D_man
Member
2015-10-19
2

Re: Community - disable sub albums for user upload

Unfortunately unchecking the "ability to create sub albums" completely removes the "create album..." link from the "Upload Photos" page. Come to think of it, this is probably a bug that would need looking into.

For the time being, I modified the "add_photos.php" file. I know I'll have to keep an eye on it after any updates though.

Original:
display_select_cat_wrapper(
  $query,
  $selected_category,
  'category_parent_options'
  );

My version:
display_select_cat_wrapper(
  $query,
  $selected_category,
  ''
  );

This accomplishes what I was looking for.

Thanks for the reply though.

Offline

 
  •  » Extensions
  •  » Community - disable sub albums for user upload

Board footer

Powered by FluxBB

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