WordPress.org

Ready to get started?Download WordPress

Forums

link to google search (21 posts)

  1. hihi
    Member
    Posted 9 years ago #

    how can i make a link from my blog to the search engine , so if he/she search then no result found by the blog search so it appear like this:
    Other
    Try this search on Google or Yahoo.

  2. redsoxnut
    Member
    Posted 9 years ago #

    Can you try to rephrase that?

  3. He wants his search to function similarly to the search on there forums. Notice that when you search the forums, at the bottom of the search page there is a link to also search via Google or Yahoo. This link is all ready constructed so that clicking it will specifically do a search of these forums with the search term.
    I'm also curious if anyone knows about this.

  4. moshu
    Member
    Posted 9 years ago #

  5. hihi
    Member
    Posted 9 years ago #

    Thanks to everyone, that's right moshu but what i want is to be exactly like the wordpress forum style. you search within the site search box then also you can just press a link to google if you want more search within your site. so i want the same strategy which used in the wordpress forum.

  6. marzar00
    Member
    Posted 9 years ago #

    I know what you mean. I ca make it work if I know the php value the the search outputs on the search results page.
    Regards
    Marzar

  7. hihi
    Member
    Posted 9 years ago #

    but are you sure that this code is the same as in the wordpress forum

  8. Mark (podz)
    Support Maven
    Posted 9 years ago #

    hihi - only Matt has access to the raw code, but I'm sure Beel's code is pretty damn good. It does not need to be exactly the same to work the same.

  9. hihi
    Member
    Posted 9 years ago #

    is this code search within my site only or with the site and the web

  10. hihi
    Member
    Posted 9 years ago #

    where i should place it i want it under word press search bar do i place it in the index.php

  11. hihi
    Member
    Posted 9 years ago #

    Hi beel i placed your code but the images doesn't appear for google and yahoo another thing that this code is like link opens google site and yahoo site and that's not what i want. what i want is when aperson search with my site search then he didn't find the result he /she can press google button so he/she can find more result about my site in the google search engine

  12. Anonymous
    Unregistered
    Posted 9 years ago #

    I guess what hihi wants would be to include the site search...
    site:his_URI <?php echo $s; ?>">
    but I am not a coder :(

  13. moshu
    Member
    Posted 9 years ago #

    ah, that was me...
    what I meant
    site:his_URI <?php echo $s; ?>">
    (you can really see I am bad at writing code, LOL)

  14. moshu
    Member
    Posted 9 years ago #

    sh***
    the strong doesn't work in code - I should have known that!

  15. hihi
    Member
    Posted 9 years ago #

    you can see that at http://www.wordsworld.org

  16. moshu
    Member
    Posted 9 years ago #

    Beel and hihi,
    I think you guys are still talking about 2 (two) different things :)
    1. What you have, Beel, is to enable a search on the entire web by Google - using the keyword typed initially in your WP search box...
    2. And what hihi wants is a site search done by Google with the keyword (as is the case when we click the Google link on the WP search result page).

  17. moshu
    Member
    Posted 9 years ago #

    (Beel you were faster...)
    On a second thought - probably it would be even closer to the WP solution if the Google and Yahoo link appears ONLY on the search result page. I guess that needs some sort of "if whatever" stuff, which is beyond my abilities :)

  18. hihi
    Member
    Posted 9 years ago #

    Hiiiii, :) Thanks alot Beel & Moshu , it works now as i want you can check it out at http://www.wordsworld.org

  19. Beel
    Member
    Posted 9 years ago #

    Thanks for the thread. It prompted me to add the capability to do a site specific search as well as the Web search I already had.

  20. Beel
    Member
    Posted 9 years ago #

    Now I made another change - added Google's search form. Off to see if Yahoo has a similar feature...

  21. marzar00
    Member
    Posted 9 years ago #

    If you r using the Google site search box then past the Google code in the search results area and inside the search box for google enter this as the initial text: code<?php echo $S; ?>code this will enter the searched text into the google search box so the user only needs to hit search.
    Marzar

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.