552404 Show random multiple images from multiple folders.
N/A
Terminado
Publicado hace más de 12 años
N/A
Pagado a la entrega
I need a PHP script (let's call it [login to view URL]) which grabs images from multiple folders and generates thumbnails in 6 columns x ? rows layout, where the number of rows depends on the variable $maxphotos_X.
The layout is similar to [login to view URL] (but I don't need the header or login box, I need only the clean thumbnail output).
See the attached [login to view URL] for a quick idea about the layout.
1. ============================================================
Variables to be specified inside [login to view URL] are:
$$foldertitle_X: A title text string which will be printed before the thumbnails
$folderpath_X: The path to the folder where full-size photos are located/grabbed.
$maxphotos_X: Maximum quantity of thumbnail output.
Example:
$foldertitle_1 = "Italy Photos";
$folderpath_1 = "/home/username/public_html/en/album/italy";
$maxphotos_1 = "36";
$foldertitle_2 = "Germany Photos";
$folderpath_2 = "/home/username/public_html/en/album/germany";
$maxphotos_2 = "12";
$foldertitle_3 = "Canada Photos";
$folderpath_3 = "/home/username/public_html/en/album/canada";
$maxphotos_3 = "6";
$foldertitle_4 = "Russia Photos";
$folderpath_4 = "/home/username/public_html/en/album/russia";
$maxphotos_4 = "6";
$foldertitle_5 = "Spain Photos";
$folderpath_5 = "/home/username/public_html/en/album/spain";
$maxphotos_5 = "6";
Can specify either 1, 2, 3, 4 or 5 folder sets. Maximum folder is 5. Minimum folder is 1 (with 2/3/4/5's variables left blank).
If a folder is specified but there is no photo in that folder, it will print out "No photo available".
If a folder is wrongly specified (no such folder), it will print out "No such folder".
2. ============================================================
The [login to view URL] script is called onto an existing PHP page via include:
<?php include("[login to view URL]"); ?>
3. ============================================================
The images grabbed from each folder MUST be RANDOM. Meaning, every time the page is refreshed, it will show different images.
4. ============================================================
When a thumbnail is clicked, it will show the full-size photo in a popup graybox/thickbox.
The graybox/thickbox should be the same as the one in [login to view URL] (try to click on the trishaw or Universal Studio thumbnail). The codes of the graybox/thickbox is attached.
5. ============================================================
Thumbnails will be generated at maximum width or maximum height of 120 pixels (such as 120x80, 120x65, 120x60, 80x120, 65x120, 60x120).
IMPORTANT:
==============
I KNOW VERY WELL WHAT I NEED. So please do not bid if you cannot produce any part of the above features.