Announcement

#1 2012-06-20 13:06:21

Konve
Guest

Accounting for the number of visitors photos.

How do I REMOVE information about the number of visitors? Look at the red circle.
That is, I want to leave ONLY the name of photography.

http://s018.radikal.ru/i505/1206/07/969a62752fee.jpg

 

#2 2012-06-20 13:25:44

flop25
Piwigo Team
2006-07-06
7037

Re: Accounting for the number of visitors photos.

Hello
if you're French you can post in French forum
Removing the number of views is a little tricky ; if you don't know Php you can't.
yo need to re-assign
'TN_TITLE' => get_thumbnail_title($row, $name, $desc),
where row is the result of the mysql request, but you need to drop 'hit'


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

 

#3 2012-06-20 19:24:56

Konve
Guest

Re: Accounting for the number of visitors photos.

I'm not saying either of French or English.
I am Russian.
.
Please give your advice a little more detail.

 

#4 2012-06-20 19:46:04

flop25
Piwigo Team
2006-07-06
7037

Re: Accounting for the number of visitors photos.

I have a much better idea:
in a plugin perso,

Code:

add_event_handler('loc_end_index_thumbnails', 'my_title_thumbnails');
function my_title_thumbnails($tpl_thumbnails_var)
{
global $template;
$new_tplvar=array();
preg_replace('#\\(.*\\)#s', ' ', 'badokz (jgêj) pjzfoj', -1, $count);
foreach ($tpl_thumbnails_var as $tplvar)
{
$content=preg_replace('#\\(.*\\)#s', '', $tplvar['NAME']);
$new_tplvar[]=$tplvar;
}
return $new_tplvar;

}

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

 

#5 2012-06-20 20:19:15

Konve
Guest

Re: Accounting for the number of visitors photos.

Unfortunatelly,

I'm not undestand http://i001.radikal.ru/1206/f8/0bf07bc1f5fc.gif

 

#6 2012-06-20 20:23:50

flop25
Piwigo Team
2006-07-06
7037

Re: Accounting for the number of visitors photos.

use LocalFile Editor for a Personnal Plugin


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

 

#7 2012-06-21 04:11:38

Konve
Guest

Re: Accounting for the number of visitors photos.

OK
I need to copy all your code into a new empty personal plug-in?

flop25 wrote:

... 'badokz (jgêj) pjzfoj'...

What is this?

 

#8 2012-06-24 18:49:27

Konve
Guest

Re: Accounting for the number of visitors photos.

Konve wrote:

OK
I need to copy all your code into a new empty personal plug-in?

flop25 wrote:

... 'badokz (jgêj) pjzfoj'...

What is this?

About me forget? :(

 

#9 2012-06-24 19:11:44

flop25
Piwigo Team
2006-07-06
7037

Re: Accounting for the number of visitors photos.

sry I was busy

I did mistakes ; I was too hurry/sleepy

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['NAME']=preg_replace('#\\(.*\\)#s', '', $tplvar['NAME']);
$new_tplvar[]=$tplvar;
}
return $new_tplvar;

}

edit code corrected [Forum, post 132506 by flop25 in topic 19667] Accounting for the number of visitors photos.

Last edited by flop25 (2012-07-11 12:16:41)


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

 

#10 2012-06-25 09:16:36

Konve
Guest

Re: Accounting for the number of visitors photos.

Thanks, of course for your care.
But I still did not get
: (
Apparently, no luck ...

 

#11 2012-07-11 08:13:31

T00kie
Translation Team
2011-05-06
66

Re: Accounting for the number of visitors photos.

The plugin doesn't work.. Where can I find: 'TN_TITLE' => get_thumbnail_title($row, $name, $desc)

Offline

 

#12 2012-07-11 10:09:11

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Accounting for the number of visitors photos.

T00kie wrote:

The plugin doesn't work.. )

Are you activate personal plugin ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#13 2012-07-11 10:14:09

T00kie
Translation Team
2011-05-06
66

Re: Accounting for the number of visitors photos.

Yup, of course.

Offline

 

#14 2012-07-11 11:56:15

flop25
Piwigo Team
2006-07-06
7037

Re: Accounting for the number of visitors photos.

what ddtddt wanted to ask is : Have you activated the Personal Plugin? And if I'm right, you haven't

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

Im searching for my mistake but don't see where..

Last edited by flop25 (2012-07-11 12:09:10)


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

 

#15 2012-07-11 12:16:22

flop25
Piwigo Team
2006-07-06
7037

Re: Accounting for the number of visitors photos.

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;

}

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

 

Board footer

Powered by FluxBB

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