Topic: How would I do this?

http://prntscr.com/4rfr9

I want it to show the last 5 uploads and show also the thing below that that says the last 5 uploads of how ever many pictures have been uploaded.

Thumbs up

Re: How would I do this?

Well it is really simple to do.

First you need to make an array of all the files in your images directory, after you simply loop this array and get the filemtime() [PHP Function] of every files, order your array by the value return from filemtime() and show the 5 first image.

Last edited by Danny.Domb (2011-12-21 10:25:28)

~ Sup?!

Thumbs up

Re: How would I do this?

Danny.Domb wrote:

Well it is really simple to do.

First you need to make an array of all the files in your images directory, after you simply loop this array and get the filemtime() [PHP Function] of every files, order your array by the value return from filemtime() and show the 5 first image.


Could you show me an example of the process maybe a small tutorial? I am not that good with php :S

Thumbs up

Re: How would I do this?

LostProdigy wrote:

http://prntscr.com/4rfr9

I want it to show the last 5 uploads and show also the thing below that that says the last 5 uploads of how ever many pictures have been uploaded.

Could you show me an example of the process maybe a small tutorial? I am not that good with php :S

Thumbs up

Re: How would I do this?

LostProdigy, did you ever heard of words such as thanks or please?

Why should I take my time to create a mod for somebody like you, who doesn't even try by himself, but simply ask somebody to do the work for free? I hope you know life doesn't work like this...

Also you may think of buying chevereto 2.0 since these mods already exist.

Have a good day sir,
Danny

~ Sup?!

Thumbs up