If you can use PHP I have a simple solution for you. Make your layout and insert the following where you want the full size image to load.
Code:
<?php
$config["path"] = "LOCATION OF FILES";
$config["ext"] = "EXTENSION TYPE";
if (!isset($_REQUEST["page"])){
$page = "main";
} else {
$page = $_REQUEST["page"];
$page = urldecode($page);
$page = trim($page);
$page = strip_tags($page);
if (substr_count($page,"..") > 0 || substr_count($page,"~") > 0){
$page = "main";
}
}
$full = $config["path"] . $page . $config["ext"];
if (!is_file($full) || is_dir($full) || !file_exists($full)){
die ("Sorry, the page you are looking for is gone. Please email the webmaster with the URL currently in your address bar so that it can be corrected. Thanks!");
} else {
require_once($full);
}
?>
Once you add this to your page make sure you change LOCATION OF FILES to the location of the fullsize images. such as /images/fullsize/ Also change EXTENSION TYPE to the extension for you images, such as .jpg, .gif, etc. They must all be the same extension beign photos I figure they are probably all .jpg
Now when you create the links for the thumbnails they should look like this.
<a href="yoursite.com/photos.php?page=image1></a>
<a href="yoursite.com/photos.php?page=image2></a>
A few notes.
1. the page this is on must be a PHP file for this to work.
2. when you make the links where I have page=image1 you need to put page="yourphotofile" without the extension. For example if you photos file name is me2002.jpg then the link would be <a href="yoursite.com/photos.php?page=me2002"></a>
3. On the line $page = "main"; change "main" to a file you would like to display when the first page loads.
Any questions I'll be glad to help.
|