Announcement

#16 2013-01-23 12:45:45

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

Re: [resolved] GThumb+

add_event_handler('loc_end_section_init', 'Anti_gthumb');

$page is not complete at 'init'

Offline

 

#17 2013-01-23 13:38:26

flop25
Piwigo Team
2006-07-06
6939

Re: [resolved] GThumb+

Code:

add_event_handler('loc_end_section_init', 'Anti_gthumb');

function Anti_gthumb()
{
global $page;
  if (isset($page['category']['permalink']) and isset($page['category']) )
  {
    if ($page['category']['permalink']=="beh"  )
    {
    remove_event_handler('loc_begin_index', 'GThumb_init', 60);
    }
  }
}

finally
have a good day and delete the admin account!


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

 

#18 2013-01-23 13:43:35

Behrad
Member
2012-11-23
27

Re: [resolved] GThumb+

Thanks for everything Flop ;)

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact