Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder ajhauser's Avatar
    Join Date
    Nov 2007
    Location
    Earlville. It's where Earls come from.
    Posts
    226
    Thanks
    74
    Thanked 1 Time in 1 Post

    Possible Site Search Options

    Hello,
    I am breaking a website off of a Wordpress setup for a client, and I was hoping I could get a recommendation on a way to add a search function to the website? I was wondering if there were popular php scripts that could accomplish this? That's why I posted here.

    I just want to search the domain, populate a page with results (that can hopefully be styled) and avoid ads.

    Does anyone have any insight on this?
    I would really appreciate your opinions.

    Thanks very much.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You can use Google with Google Site Search, but I think it might cost money...

    http://www.google.com/enterprise/sea...ducts_gss.html

    Oh hey there's a free version too, but you get ads...

    http://www.google.com/cse/

  • Users who have thanked Fumigator for this post:

    ajhauser (08-09-2012)

  • #3
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Just to mention the simple option of a Google Search, optionally of your site:

    Code:
    <form id="frmSearch" method="get" action="http://www.google.com/search">
        <input type="text" id="searchbox" name="q" placeholder="Google search">
        <input type="image" src="images/searchbutton1.gif" width="24" height="22" 
            alt="search button" title="Search">
        <input type="checkbox" id="sitesearch" name="sitesearch" >
    </form>
    The name "q" identifies the search terms, and the checkbox named "sitesearch" confirms if it will search the specified site only. The form can specify an iframe as a 'target'.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • Users who have thanked AndrewGSW for this post:

    ajhauser (08-09-2012)

  • #4
    Regular Coder ajhauser's Avatar
    Join Date
    Nov 2007
    Location
    Earlville. It's where Earls come from.
    Posts
    226
    Thanks
    74
    Thanked 1 Time in 1 Post
    I will check both of them out - thanks you very much. If anyone knows of any other options that have worked for them I'd love to hear about it! Thanks!

  • #5
    Regular Coder ajhauser's Avatar
    Join Date
    Nov 2007
    Location
    Earlville. It's where Earls come from.
    Posts
    226
    Thanks
    74
    Thanked 1 Time in 1 Post
    Andrew if I use that method would I be able to style the results at all? Would I be able to show the results on a new page instead of within an iframe?

    Thanks very much.

  • #6
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Quote Originally Posted by ajhauser View Post
    Andrew if I use that method would I be able to style the results at all? Would I be able to show the results on a new page instead of within an iframe?

    Thanks very much.
    If you don't add a target (to an iframe) it will open in a new page. In which case you will have no control over the styling.

    You could investigate the Google Search API mentioned in a previous post. I suspect this will contain adverts unless paid for.

    There are alternative search tools that work with PHP. One called FreeFind many of which allow you some control over the styling.

    Some of these tools require you to download a piece of software to perform the indexing of your site. It is possible to find, or create, such indexing software for yourself. However, I doubt that it is a trivial task
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •