1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Search Engine Script situation

Discussion in 'Products & Tools' started by phpmx, Aug 23, 2004.

  1. #1
    I have been working real hard to add a search to my website for my own pages, b not the one offered by google free or others, rather one I can serve from my domain. I have been looking for scripts such as Altavista search engine 3.0 and such untill I came across Digitalpoint website and saw Shawns script. I was able to install the search.php and the rest of the components to make it work, but I don't know how to edit the header or footer.php files to make the results page look like the rest of my website including pictures, tables, banners and so on, all I get is the results. Can someone poitn me to the right direction on how to edit the header.php file and footer if needed. I am new with php and have spent a full day trying to figure it out. Any help will be greatly appreciated. :eek:
     
    phpmx, Aug 23, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You should be able to edit it with a normal HTML editor if you don't need any PHP functionality within the header/footer. Unless you add the PHP tags, it will simply include it as raw HTML.
     
    digitalpoint, Aug 23, 2004 IP
  3. mxlabs

    mxlabs Peon

    Messages:
    327
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I suggest copying one of your current pages and editing it via a WYSIWYG editor or so. Make sure to include a short reminder sentence like "this is where my results will go". This is where your search results will show up later on.

    If you are done save this file and open it with notepad.
    Find "this is where my results will go" and delete it. After that you have to split your file into 2: everything in front of that sentence goes to your header.php, the rest goes to footer.php
     
    mxlabs, Aug 23, 2004 IP
  4. phpmx

    phpmx Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks MXlabs, your tutorial worked like a charm.

    Kind regards.

    :)
     
    phpmx, Aug 23, 2004 IP