Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > PHP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 04-05-2007, 12:38 PM   #1
CircleOfLinks
Member
 
CircleOfLinks's Avatar
 
Join Date: Oct 2006
Posts: 123
CircleOfLinks will become famous soon enough
Default How can i edit fnHeader - I cant find it

Hi, im having a few problems. Ive had my site designed and the designer had said to me he had done it in a way when the header or footer is changed it would effect all pages. now after playing around and changing some stuff my self i have found out that this link shows the header

<?
require("includes/config.php");
fnHeader();
?>

how can i edit the header so it appears on all pages. becuase ive removed that line from the homepage and now have inserted the whole header code. but this only changed the home page. I just want to remove some txt and replace it with a gif image, so please some if you know how i can do that i would really appreciate it. I have been trying to get in contact with the orginal designer but his not answer or replying not sure whats happend.

if you see page http://www.aussiepages.com.au/example1.php and then example http://www.aussiepages.com.au/example2.php
example1 contains the fnHeader and example 2 doesnt. I want my pages too look like example 2

I cant manually change everypage especially pages that are coded in away that read password, change passwords, result.php which has the results.php?CID=47 changing results.php would stuff things up big time.

ive already stuffed up a few pages by changing it manually and now i need to get them fixed up and re coded.

thanks everyone for your help.
CircleOfLinks is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 04-05-2007, 02:44 PM   #2
CircleOfLinks
Member
 
CircleOfLinks's Avatar
 
Join Date: Oct 2006
Posts: 123
CircleOfLinks will become famous soon enough
Default Re: How can i edit fnHeader - I cant find it

Hi if it helps this is whats included in the config.php file

This is whats included in config.php

<?php
//ini_set ('error_reporting', E_ALL);
session_start();
session_register("session");


// Report simple running errors
//ini_set ('error_reporting', E_ERROR | E_WARNING | E_PARSE);
include("functions.php");
include("connection.inc.php");
include("commonfunctions.php");
include("imagemagicfunctions.php");
include("pager.php");
include("gif.php");

global $vchItemImagesPath,$vchItemImagesUrl,$globalcontac temail,$strAccount;

if($_SERVER['HTTP_HOST'] == "localhost")
{
$vchSiteUrl="http://localhost/danny/";
$vchItemImagesUrl="http://localhost/danny/images/listings/";
$vchItemImagesPath=$_SERVER["DOCUMENT_ROOT"]."/danny/images/listings/";
$globalcontactemail = "abc@hotmail.com";
$strAccount = 'abc@hotmail.com';
}
else
{
$vchSiteUrl="http://www.aussiepages.com.au/";
$vchSitePath=$_SERVER["DOCUMENT_ROOT"];
$vchItemImagesUrl="http://www.aussiepages.com.au/images/listings/";
$vchItemImagesPath=$_SERVER["DOCUMENT_ROOT"]."/images/listings/";
$globalcontactemail = "support@aussiepages.com.au";
$strAccount = 'dghabash@yahoo.com.au';
}
?>

I just dont know what to do from here on wards
thanks
CircleOfLinks is offline  
Old 04-05-2007, 03:17 PM   #3
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: How can i edit fnHeader - I cant find it

You need to find the functions.php file, or something similarly named. What you are looking for is the fnHeader function.

There should be a line somewhere in your main page code that looks something like

include('functions.php');

it could be include, include_once, require, or require_once.....Find any lines in your code that begin like that, and look for something like function.php or functions.php in between the parenthesis...
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 04-06-2007, 04:47 AM   #4
CircleOfLinks
Member
 
CircleOfLinks's Avatar
 
Join Date: Oct 2006
Posts: 123
CircleOfLinks will become famous soon enough
Default Re: How can i edit fnHeader - I cant find it

I found it in the functions.php but it doesnt refer to any file. it just says the following:

function fnHeader($pagetitle="::: aussiepages.com.au :::")

and also

function fnHeaderIndex($pagetitle="::: aussiepages.com.au :::")
CircleOfLinks is offline  
Old 04-06-2007, 06:34 AM   #5
lwbbs
Member
 
lwbbs's Avatar
 
Join Date: Apr 2007
Location: www.easywebx.com
Posts: 245
lwbbs is on a distinguished road
Default Re: How can i edit fnHeader - I cant find it

You can change the title when you call the function of fnHeader().
For example:
<?php
require("includes/config.php");
fnHeader("Your title here");
?>

Quote:
Originally Posted by CircleOfLinks View Post
I found it in the functions.php but it doesnt refer to any file. it just says the following:

function fnHeader($pagetitle="::: aussiepages.com.au :::")

and also

function fnHeaderIndex($pagetitle="::: aussiepages.com.au :::")
__________________
EasyWebX.com offers Cash Rebates up to $100 for lots of web hosting plans.
HostDomainZone.com offers cheap domains ($1.99*), web hosting ($3.19) and reseller plans ($59.99/yr)
lwbbs is offline  
Old 04-06-2007, 07:58 AM   #6
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: How can i edit fnHeader - I cant find it

Now you will need to find the file that makes use of the $pagetitle variable. It will probably be a template file, it might end with .tpl, or it might end in .php. Post the code here in between code tags....
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 04-07-2007, 01:49 PM   #7
CircleOfLinks
Member
 
CircleOfLinks's Avatar
 
Join Date: Oct 2006
Posts: 123
CircleOfLinks will become famous soon enough
Default Re: How can i edit fnHeader - I cant find it

thanks guys, all worked out now...
CircleOfLinks is offline  
Old 04-07-2007, 05:18 PM   #8
lwbbs
Member
 
lwbbs's Avatar
 
Join Date: Apr 2007
Location: www.easywebx.com
Posts: 245
lwbbs is on a distinguished road
Default Re: How can i edit fnHeader - I cant find it

You are welcome.

Quote:
Originally Posted by CircleOfLinks View Post
thanks guys, all worked out now...
__________________
EasyWebX.com offers Cash Rebates up to $100 for lots of web hosting plans.
HostDomainZone.com offers cheap domains ($1.99*), web hosting ($3.19) and reseller plans ($59.99/yr)
lwbbs is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find out what search terms visitors find you with. jumpenjuhosaphat Search Engine Optimization (SEO) 19 05-08-2007 07:51 AM
How did you find IWT Forum? midlandi Discuss iWEBTOOL 27 04-10-2007 04:30 PM
How do i edit results.php?CID=1 - cant find any files CID=1 CircleOfLinks PHP 6 01-27-2007 09:09 AM
Which do you find better? mani General Talk 15 01-18-2007 01:25 PM
How to edit (unlock) html spenno HTML 2 10-10-2006 04:03 AM


All times are GMT. The time now is 10:49 PM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.