Results 1 to 6 of 6

Thread: Google custom search

  1. #1
    Thread Starter
    Junior Member
    Not a Verified Customer
    Martin's Avatar
    Join Date
    Apr 2009
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Google custom search

    Hi everyone,

    Been trying to implement google search engine since Gaby first introduced this great theme, however with no luck. Now when David has come up with some great new features, I am more than determined to get this gsearch on my site.

    So, was wondering if anyone has come up with a smart solution on how to do this. There is actually a plugin, but still I lack some programming knowledge to put this search box smoothly. If anyone can give just some rough guidelines on implementing this google custom search, would appreciate a lot.

    Here is this plugin: http://aleembawany.com/projects/wordpre ... ch-plugin/

    Have a nice Eastern everyone!

  2. #2
    Veteran sonnycool's Avatar
    Join Date
    Mar 2009
    Location
    Malaysia
    Posts
    308
    Thanks
    32
    Thanked 2 Times in 2 Posts

    Re: Google custom search

    yah me too ... i would rather have Gsearch replace with current search ..

  3. #3
    Rookie
    Not a Verified Customer
    Ostey's Avatar
    Join Date
    Mar 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Google custom search

    You should be able to just signup for an account with Google, and then create the custom search code and just replace the search.php code with the code from Google.

  4. #4
    Veteran sonnycool's Avatar
    Join Date
    Mar 2009
    Location
    Malaysia
    Posts
    308
    Thanks
    32
    Thanked 2 Times in 2 Posts

    Re: Google custom search

    Quote Originally Posted by Ostey
    You should be able to just signup for an account with Google, and then create the custom search code and just replace the search.php code with the code from Google.
    can guide which code to replace ? noob here
    thanks

  5. #5
    Rookie
    Not a Verified Customer
    Ostey's Avatar
    Join Date
    Mar 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Google custom search

    You would create the custom search code from Googles custom search service, thats easy.

    Then after checking search.php it appears that doesnt contain the search form.

    It looks like the search form is located in header.php. So you would want to replace this code in header.php

    <input type="text" name="s" id="s" class="input" onclick="this.value=''" value="<?php _e('Search Classifieds...'); ?>" onfocus="if (this.value == '<?php _e('Search Classifieds...'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Search Classifieds...'); ?>';}" />
    <input type="submit" class="go" value="Go!" />

    With the code from google. You need to make sure you properly close the form tags and place in the proper div, and I am sure you will have to do some styling to make it look right.

    I actually am not sure why you would want to do this, the google custom search results are not good for this type of theme. If anything talk David into creating a zip code search, which would allow posters to add there zip and searchs to search by zip radius.

  6. #6
    Rookie
    Not a Verified Customer
    rdbarahona's Avatar
    Join Date
    May 2009
    Location
    San Francisco, CA
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Google custom search

    I'd love a zip code search... or even better a 'search near me' option.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ownerads.in - new site - 1st page on Google!
    By msdomains in forum Showcase & Feedback
    Replies: 8
    Last Post: June 26th, 2009, 03:49 AM