Current location: Hot Scripts Forums » Programming Languages » PHP » calling on include file in specific place


calling on include file in specific place

Reply
  #1 (permalink)  
Old 03-09-04, 03:04 PM
APuppyDog APuppyDog is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Question calling on include file in specific place

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'); ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-02-04, 04:04 PM
bucabay bucabay is offline
New Member
 
Join Date: Jun 2004
Location: Fiji
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Puppy Dog

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-02-04, 06:06 PM
APuppyDog APuppyDog is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
thanks for your reply. I actually did figure it out.. i sent you an email through your website.. cya around.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting the created file (fopen/fwrite) Programme PHP 5 02-14-04 04:09 PM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 05:28 PM
Please I Need help before all my hair is gone! LisatheNovice Perl 6 11-22-03 04:05 PM
Include file in asp TheLaughingBandit ASP 1 09-19-03 11:32 AM
Upload file type and size limiter! Arctic ASP 1 08-02-03 08:06 PM


All times are GMT -5. The time now is 07:51 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.