Page 3 of 4

Re: Google Adsense Search

Posted: 10 Jun 2010, 07:05
by Stoker
It searches a domain.

Re: Google Adsense Search

Posted: 10 Jun 2010, 07:55
by Daniel
Thanks guys. I understand that it will search a domain, but I'm looking for a way to give people the option to only search the blog, only search the forum, or both. I hope you understand where I'm coming from.

Re: Google Adsense Search

Posted: 19 Jun 2010, 13:11
by paulxiii
I've followed the steps in the first post and the Google search box definitely replaces the standard search, but for some strange reason it doesn't work correctly.

If I type in a search term and hit Enter the google search doesn't appear, but the page reloads with a new Google search box from which I can then search.
initially
initially
after searching and hitting enter
after searching and hitting enter
Any advice is appreciated.

Paul

P.S. As I am testing this thing, the domain which Google is searching, as set up in Google adsense, isn't the domain which the forum is installed on. I presume this isn't part of the problem. :?

Re: Google Adsense Search

Posted: 19 Jun 2010, 15:15
by cisco007
that is the problem, you must use the correct code for the exact site you will be using it in, at least i think so, i had that same problem a while back when i was testing this on my localhost!

Re: Google Adsense Search

Posted: 19 Jun 2010, 16:10
by paulxiii
Thanks for your reply. The funny thing is I've just changed the "Look and feel" option in Google cse to Iframe and it's suddenly working perfectly.

Interesting.

Paul

Re: Google Adsense Search

Posted: 20 Jun 2010, 07:59
by paulxiii
The Google search is working perfectly. Thanks very much for Stoker's Mod. I decided to use it in addition to the forum search instead of replacing it. I decided to position it in the navigation bar. Later I will turn off the search option for guests, but I've left it enabled for this screen shot.
screenshot_001.png
A question: The url of the adsense search is VERY long, but on http://www.phpbb.com/ it is short and elegant. Any idea what steps need to be taken to get it like the http://www.phpbb.com/ implementation? Or is that more a question for their forums?

Paul

Re: Google Adsense Search

Posted: 20 Jun 2010, 08:37
by Stoker
phpbb.com is using a paid solution.

Re: Google Adsense Search

Posted: 20 Jun 2010, 09:40
by paulxiii
Stoker ยป 20 Jun 2010, 08:37 wrote:phpbb.com is using a paid solution.
I guess that could make the difference.

Thank you.

Paul

Re: Google Adsense Search

Posted: 22 Jun 2010, 22:03
by billoo
it says add your code of adsense

plz help me ?

Code: Select all

<form action="http://localhost/googlesearch.php" id="cse-search-box">
  <fieldset>
    <input type="hidden" name="cx" value="partner-pub-0887266645916706:5f8lmp-uywf" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" class="inputbox search" name="q" maxlength="128" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
  </fieldset>
</form>

Re: Google Adsense Search

Posted: 22 Jun 2010, 23:28
by cisco007
all this stuff has already been asked before billoo, please check the rest of the posts in this topic specially the first post!