Announcement

  •  » Themes
  •  » Smart Pocket theme displays hidden albums

#1 2016-05-14 19:57:33

fahrenheit
Member
2016-05-11
2

Smart Pocket theme displays hidden albums

Hi,

The Smart Pocket theme is awesome for mobile.  I've found that it displays hidden albums though.  I hide an album by downloading the "Extended Description" plugin.  Then I edit the album I want to hide.  I add "<!--hidden--><!--mb-hidden-->" to the name\title of the album.  Under the default theme and others, this album is now hidden.  However, Smart Pocket still displays the album. 

Is there any way I can make Smart Pocket read the "<!--hidden--><!--mb-hidden-->" text in an album title and hide it, or does the theme need to be patched?  Thanks!

Piwigo version: 2.8.1
PHP version: 5.6
MySQL version: 5.5.42-37.1

Offline

 

#2 2016-05-14 20:01:42

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

Re: Smart Pocket theme displays hidden albums

Hi fahrenheit,

I would rather say that plugin Extended Description (which adds the <!--hidden--> feature) needs a fix.

Flop25, do you agree?

Offline

 

#3 2016-05-14 20:20:31

flop25
Piwigo Team
2006-07-06
7037

Re: Smart Pocket theme displays hidden albums

Indeed the plugin has to handle the [Github] Piwigo file themes/smartpocket/themeconf.inc.php@L83 from the theme


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#4 2016-05-14 20:45:02

fahrenheit
Member
2016-05-11
2

Re: Smart Pocket theme displays hidden albums

Cool, thank you for diagnosing.  Do you need me to submit a bug fix somewhere?

Offline

 

#5 2016-08-27 20:44:00

madmas
Member
2015-07-06
6

Re: Smart Pocket theme displays hidden albums

Hi,

I'm facing the same issue.
Has there been an update on this? :)

thank you
Markus

Offline

 

#6 2016-11-16 13:52:42

Ratatoskk
Member
2016-11-16
3

Re: Smart Pocket theme displays hidden albums

Hi, facing the same problem :-)

Offline

 

#7 2016-11-16 14:12:40

windracer
Member
St. Pete, FL
2014-12-28
376

Re: Smart Pocket theme displays hidden albums

Instead of hiding an album via the extended description, is there a reason why you can't use permissions to hide the folder? That's what I do and seems more secure than relying on an extended description attribute.

Offline

 

#8 2016-11-16 15:29:50

Ratatoskk
Member
2016-11-16
3

Re: Smart Pocket theme displays hidden albums

Hi, thank you

I use this album to store copies of pictures, to show randomly in the Wordpress Piwigo widget, so this album can't be private or the widget doesn't work.

But I configure it to Hidden, so regular visitors of my Piwigo gallery can't see this album.

Offline

 

#9 2016-12-01 10:49:03

Ratatoskk
Member
2016-11-16
3

Re: Smart Pocket theme displays hidden albums

Any idea ?

Thanks :-)

Offline

 

#10 2020-01-23 16:43:26

BMS
Member
2015-12-24
14

Re: Smart Pocket theme displays hidden albums

The plugin Extended Description is not the problem!
It has included in ../plugins/ExtendedDescription/main.inc.php@L61 the required:

add_event_handler ('loc_end_index_category_thumbnails', 'ext_remove_cat', .... ,2);

The problem lies in the Smart Pocket theme, as already hinted by Flop25  at ../themes/smartpocket/themeconf.inc.php@L83.
On this line another (conflicting?) event handler is assigned to 'loc_end_index_category_thumbnails' being:

add_event_handler('loc_end_index_category_thumbnails', 'sp_select_all_categories');

Commenting out this line did the trick for me!

Offline

 
  •  » Themes
  •  » Smart Pocket theme displays hidden albums

Board footer

Powered by FluxBB

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