Google Adsense Search

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Re: Google Adsense Search

Post by Stoker »

It searches a domain.

Re: Google Adsense Search

Post 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

Post 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.
home.jpg
cse.jpg
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. :?
You do not have the required permissions to view the files attached to this post.
Last edited by paulxiii on 19 Jun 2010, 11:17, edited 2 times in total.

Re: Google Adsense Search

Post 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

Post 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

Post 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
You do not have the required permissions to view the files attached to this post.

Re: Google Adsense Search

Post by Stoker »

phpbb.com is using a paid solution.

Re: Google Adsense Search

Post 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

Post 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

Post 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!