Member
Member
Laurent   2008-08-31, 20:40
#1

Hi,

I play with this two functions : printPopularImages(20); and printLatestImages(20); .
The function works fine but i wonder this there are à way to display the pictures as any othet albums.
In fact, I'll like to have a "special gallery" with two albums : The most views pictures and the last pictures upload on the server.

Is there a function to do that ?

Regards
Laurent

Member
Member
sterk   2008-08-31, 22:05
#2

you can make a new php file within your theme folder, for example top.php. you put your code in there and if you go to domain.com/index.php?p=top or domain.com/page/top you'll have a page with only the most viewed or last pictures.

Administrator
Administrator
acrylian   2008-09-01, 08:31
#3

Sterk's idea I would have recommended, too. With some css styling it should be possible to have that look like a normal album.

For the lastest images it might be possible to create a dynamic album for all images and then sort that by id/date to show the latest.
Although I did not try that.

Member
Member
Laurent   2008-09-01, 19:39
#4

Thank sterk and acrylian,

I already do that, but with this method you have to play with the css.
I think that if we can put a hack of the printImageStatistic function in this code (in theme/index.php)

`

Administrator
Administrator
acrylian   2008-09-01, 19:48
#5

You can do that. getImageStatstic() gets the array you can use to create your own custom printImageStatsitic() function. That's why we always have a get and print variant..:-)

Member
Member
Laurent   2008-09-01, 20:09
#6

Yes i saw that and i'm making some test, but at this time the result is not what i want.
The php is quite difficult for me.

I think i'll have to ask again to you for some help ....

Regards
Laurent

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.