PDA

View Full Version : is this possible?


mikk
20th of July 2002 (Sat), 06:09
Hi!
i´ve just found your website and must say your EE looks really great. As i meet the requirements to run it on my webspace i wanted to ask weather EE can be customized to show this:

instead of the details which are in your online gallery i would like to show only these details about my images:

1.filename
2.date added
3.resolution of image ( xxx : yyy pixels)
4.filesize of image(xx kb)
5.counter
6.an rating of the image which visitors can vote for

i would guess these differ very much in the difficulty. main problem i would see is how to get the filesize and resolution into an database but i´m not very good in php/mysql so i would like to hear your opinion about this.

greets,
mikk

Pekka
22nd of July 2002 (Mon), 12:39
mikk wrote:
Hi!
i´ve just found your website and must say your EE looks really great. As i meet the requirements to run it on my webspace i wanted to ask weather EE can be customized to show this:

instead of the details which are in your online gallery i would like to show only these details about my images:

1.filename

Already there in database.

2.date added

Already there in database.

3.resolution of image ( xxx : yyy pixels)

Already there. In photo.php

if ($s_imagecheckifthere=="1" OR $s_imagecheckifthere=="2") {
$sizetag = @getimagesize($imageulr);
}

$sizetag array gives you x and y. See http://fi.php.net/manual/en/function.getimagesize.php

4.filesize of image(xx kb)

Hard to do in EE path context. Filesize function works only on local files, not for files on other servers. Don't know any sensible workarounds. See http://fi.php.net/manual/en/function.filesize.php

Filesize could be also there in database, but frankly I don't see the point. :)

5.counter

Already there in database.

6.an rating of the image which visitors can vote for

Needs to be coded. I will code this in next few weeks.