Announcement

#1 2013-08-16 14:57:48

kyp_
Member
2013-06-17
84

User Collections - moving Menu Entry

Hi Guys,

I'm just having a small design problem hoping to get fixed:

The User Collections Menu entry on the left is at the bottom
and I dont see an option in AMM or UserColl -Plugin to move it up, above identifications or albums for example.

Did I overlook an option somewhere ?


My failed workaround before was to copy the content of my custom album links as pictures into:
      \plugins\UserCollections\template\menublock_user_collec.tpl

Which worked fine as all the albums were >below< the Collection Menu Entry, until I realized that guests would not see the albums, silly me :)


Help :) !




User Collections 1.1.1
Advanced Menu Manager 3.2.5

Piwigo 2.5.1
Operating system: Linux
PHP: 5.2.17


Cheers

Offline

 

#2 2013-08-16 15:03:50

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: User Collections - moving Menu Entry

Hello

in main.inc.php file of UserCollections, move the two last add_event_handler away from the conditional block

Code:

if (defined('IN_ADMIN'))
{
  add_event_handler('get_admin_plugin_menu_links', 'user_collections_admin_menu');
}
else
{
  // collections page
  add_event_handler('loc_end_section_init', 'user_collections_section_init');
  add_event_handler('loc_end_index', 'user_collections_page', EVENT_HANDLER_PRIORITY_NEUTRAL-10);

  // thumbnails actions
  add_event_handler('loc_end_index_thumbnails', 'user_collections_thumbnails_list', EVENT_HANDLER_PRIORITY_NEUTRAL-10, 2);
  add_event_handler('loc_end_index_thumbnails', 'uc_anti_lightbox', 41);

  // picture action
  add_event_handler('loc_end_picture', 'user_collections_picture_page');
}

// menu
add_event_handler('blockmanager_register_blocks', 'user_collections_add_menublock');
add_event_handler('blockmanager_apply', 'user_collections_applymenu');

now the block in "administrable" in AMM and core menus management

I'll fix this in the version (as well as my other plugins)

Offline

 

#3 2013-08-16 15:23:06

kyp_
Member
2013-06-17
84

Re: User Collections - moving Menu Entry

Done, and working.

You are the best! :)

Thanks!


Cheers

Offline

 

Board footer

Powered by FluxBB

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