Announcement

#16 2012-07-11 12:27:35

T00kie
Translation Team
2011-05-06
66

Re: Accounting for the number of visitors photos.

flop25 wrote:

ps : sry in fact you have ; it's 'wtyczki wlasne' right ?

Yup

New code works perfectly! thanks a lot :)

Offline

 

#17 2014-01-28 14:02:06

salvatore
Member
2012-08-18
84

Re: Accounting for the number of visitors photos.

flop25 wrote:

correction :

Code:

add_event_handler('loc_end_index_thumbnails', 'my_title_thumbnails');
function my_title_thumbnails($tpl_thumbnails_var)
{
global $template;
$new_tplvar=array();

foreach ($tpl_thumbnails_var as $tplvar)
{
$tplvar['TN_TITLE']=preg_replace('#\\(.*\\)#s', '', $tplvar['NAME']);
$new_tplvar[]=$tplvar;
}
return $new_tplvar;

}

this code work perfectly except for a thing.
before adding this the tooltip appeared in this way
"photoname (26 visits) photodescription"

when I'll add that code in personal plugin only the photoname remain in the tooltip,the hits counter is removed,but also the photo description that I want to mantain.The photo description has been added using the "Batch Manager, Photo Description" plugin

Thanks

Offline

 

Board footer

Powered by FluxBB

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