How can i edit fnHeader - I cant find it

Discussion in 'PHP' started by CircleOfLinks, Apr 5, 2007.

  1. #1
    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, Apr 5, 2007 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Open up the config.php file and search for fnHeader and see what it says.
     
    mad4, Apr 5, 2007 IP
  3. CircleOfLinks

    CircleOfLinks Active Member

    Messages:
    306
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    there is no such file... ive looked everywhere
     
    CircleOfLinks, Apr 5, 2007 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Its in the "includes" directory.
     
    mad4, Apr 5, 2007 IP
  5. CircleOfLinks

    CircleOfLinks Active Member

    Messages:
    306
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    ok i found it, but what do i change now in there now to include the the header like example2?
    ive setup a new aussiepages.com.auone.php which is only the header.
     
    CircleOfLinks, Apr 5, 2007 IP
  6. CircleOfLinks

    CircleOfLinks Active Member

    Messages:
    306
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    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,$globalcontactemail,$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';
    }
    ?>

    what do i change in here??
     
    CircleOfLinks, Apr 5, 2007 IP
  7. manilodisan

    manilodisan Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    All I could see is some paddings as a difference between 1 and 2. The padding is not showing in this file and most likely is included in one of the pages that are included by default in you config page:
    include("functions.php");
    include("connection.inc.php");
    include("commonfunctions.php");
    include("imagemagicfunctions.php");
    include("pager.php");
    include("gif.php");

    You have to browse each and everyone of them and find the detail that you're looking for and edit it. Anyways, it's hard to tell what you want since you didn't said. Look at number 1, I want like number 2...
     
    manilodisan, Apr 5, 2007 IP
  8. CircleOfLinks

    CircleOfLinks Active Member

    Messages:
    306
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #8
    thanks guys, all worked out now...
     
    CircleOfLinks, Apr 7, 2007 IP