Quote:
|
Originally Posted by APuppyDog
Hello
I found a php album script and implemented it on a clients site, http://www.fijifestival.com/scripts/gallery/index.php it does everything I want except one little glitch. I am calling on a header and footer file in the code, but when you click on a thumbnail, it bring up a larger picture. I don't want the header and footer to be used on the popup. I am pasting the code as I have it, is it possible to omit the header and footer from the viewPhoto section of the code?
Code:
<?php include('../../new/header.php'); ?>
<?php
// Set Include Path - change only if you move this file outside the default directory.
ini_set("include_path","./");
// SPARE USERS FROM USELESS WARNINGS
// see http://www.php.net/manual/en/functio...-reporting.php for more info on
// error reporting, and what you can make it do
error_reporting();
// Get Config and Global Functions
require_once("includes/config.php"); // Config
require_once("includes/functions.php"); // Functions
require_once("includes/templateInterface.php"); // Template Interface
// We're NOT working with the admin interface - let other functions know this
$CONFIG['adminInterface'] = false;
if ($_GET['act'] == "home") {
displayHeader("List Albums");
listAlbums();
displayFooter();
}
elseif ($_GET['act'] == "viewAlbum") {
displayHeader("View Album");
viewAlbum();
displayFooter();
}
elseif ($_GET['act'] == "search") {
displayHeader("Search");
viewAlbum();
displayFooter();
}
elseif ($_GET['act'] == "viewPhoto") {
viewPhoto();
}
else {
displayHeader("List Albums"); // mod for ps
listAlbums();
displayFooter();
// header("Location: " . $_SERVER['PHP_SELF'] . "?act=home");
}
?>
<?php include('../../new/footer.php'); ?>
|
So you guys from kaiviticlub did the Fiji Fesitival Website. Great Job!
Anyways... I checked out the album and it seems the popup from the pictures has the problem of hiding the pic within its boarders. I didnt see any header or footer from your page in teh popup so I assume you changed that.
By the way... the only script that affects the popup is the script that generates the popup... that is the function viewPhoto(); I could not see the function in the script above so I guess it must be in the includes/functions.php file. called by require_once("includes/functions.php");
you'll have to change the script there..
anyways.. if you post includes/functions.php contents someone here may help you.
holla back at me, bucabay.
http://fijivoices.com