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

Thread: search engine

  1. #1
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts

    search engine

    how can i add a search engine to my subdomain so it only searches my subdomain and not my entire website?
    azra :D

  • #2
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Depends on what search you want. But you can add a simple site search with Google:

    Code:
    <form id="googlesearch" name="google" method="get" action="http://www.google.dk/search" accept-charset="ISO-8859-1">
    <fieldset>
    <legend>Google Search</legend>
    <input type="text" name="q" size="25" maxlength="255" title="Type a word to search for"><br>
    
    <input type="hidden" name="as_sitesearch" value="www.sub.example.com">
    
    <input type="submit" id="subm" value="Search">
    </fieldset>
    </form>
    .
    .

  • #3
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts
    well my web hosting provider gave an entropy search but when i asked them the question, they said to ask here. and thanks for the google one. i will try that
    azra :D

  • #4
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    You should bear in mind though, that this type of search is kinda slow, cause it only shows results that Google has indexed. The search on a forum like this is different cause when someone posts, it goes straight to the database and when someone search for a term or something, it pulls it out of the database and shows it.
    .
    .

  • #5
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts
    i am using the entropy search for my main site, but i just wanted to know if i could use it in my subdomain.
    azra :D

  • #6
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Jutlander View Post
    Depends on what search you want. But you can add a simple site search with Google:

    Code:
    <form id="googlesearch" name="google" method="get" action="http://www.google.dk/search" accept-charset="ISO-8859-1">
    <fieldset>
    <legend>Google Search</legend>
    <input type="text" name="q" size="25" maxlength="255" title="Type a word to search for"><br>
    
    <input type="hidden" name="as_sitesearch" value="www.sub.example.com">
    
    <input type="submit" id="subm" value="Search">
    </fieldset>
    </form>
    thanks for the code. After you press search, how can I make the results open in a new window?
    azra :D


  •  

    Posting Permissions

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