Announcement

#1 2010-08-25 09:45:05

sergix
Member
2010-08-18
24

Special 15 images..

Can i made that the most viewed, most voted and random image will be not only 15?
I would like the amount of images available to see is equal to that loaded on the platform
thanks

Offline

 

#2 2010-08-25 09:57:18

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

Re: Special 15 images..

sergix wrote:

Can i made that the most viewed, most voted and random image will be not only 15?

Yes you can. You can set the "top number".

1) install + activate the LocalFiles Editor plugin.

2) open [Administration > Plugins > LocalFiles Editor > Local config] and paste:

Code:

<?php
$conf['top_number'] = 20;
?>

sergix wrote:

I would like the amount of images available to see is equal to that loaded on the platform

I don't understand what you mean. Do you mean the number of thumbnails on each page? (which is equal to the "Number of images per row" multiplied by "Number of rows per page")


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#3 2010-08-25 15:30:40

sergix
Member
2010-08-18
24

Re: Special 15 images..

I try to explain with the amount available to view..

I wish that the amount (now configured in 15) be the same of the total images loaded into the platform.
For example: today I have a total of 19 images loaded and it would be nice if coul be 19, tomorrow i load another 30 images and it would be nice if could be 59, and so on..
only if this is possible otherwise I thank you and I will do it manually.

Offline

 

#4 2010-08-30 14:47:42

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

Re: Special 15 images..

So, let's say we have the following case:

* on day 1, 19 photos were added
* on day 3, 30 photos were added

I don't really understand what you want, because you seem to mean that $conf['top_number'] should be equal to the total number of photos, am I right? And for the most viewed, most voted and random image, I really don't understand why you have such a wish.

If you want to show all photos in these sections of your gallery, why don't you simply set:

Code:

<?php
$conf['top_number'] = 999999; // that should always be bigger than your total number of photos
?>

Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#5 2010-08-31 08:21:55

sergix
Member
2010-08-18
24

Re: Special 15 images..

I really like the most rated, most viewed, etc. .. I suppose that it is possible that someone may want to look at the pictures with this possibility instead of by album, I think it is better leaving unrestricted :-)

another question.. can i with the PWG STUFFS to display in the module 4 images of the most viewed photos, but that when user will surfing in it to be more .. like 999999

Offline

 

#6 2012-07-29 21:38:10

olc
Guest

Re: Special 15 images..

Where do i find the "locafile Editor plug-in"? It is not displayed inside the regular list.

 

#7 2012-07-29 21:41:26

olc
Guest

Re: Special 15 images..

The homepage shows only support for v2.3

 

#8 2012-07-29 22:18:42

EdwinKort
Translation Team
Rhoon, the Netherlands
1970-01-01
77

Re: Special 15 images..

localfile editor plugin is located in the plugin sections of your installation. You just need to activate it from there.


Gallery
Hosted with: Surpass Hosting since 2004

Offline

 

#9 2012-07-29 22:24:27

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

Re: Special 15 images..

olc wrote:

The homepage shows only support for v2.3

I add version same piwigo 2.4.3


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

 

#10 2019-01-05 23:58:06

wbeddoe
Member
2018-12-26
2

Re: Special 15 images..

<?php
$conf['top_number'] = 20;
?>

It would be nice to have this as an admin menu option versus needing to research this forum and finding this answer and needing to add this to custom php.  But thank you!

Offline

 

Board footer

Powered by FluxBB

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