Google Adsense Search

Modifications for phpBB3. Try the Mods here and share Your own Mods
There is no support here! Only Read Access!
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
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Google Adsense Search

Post by Stoker »

It searches a domain.
Board rules! No PM support
Daniel
BBCoder II
BBCoder II
Posts: 29
Joined: 23 May 2010, 06:53

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.
paulxiii
BBCoder I
BBCoder I
Posts: 4
Joined: 16 Jun 2010, 17:57

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.
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. :?
Last edited by paulxiii on 19 Jun 2010, 13:17, edited 2 times in total.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

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!
paulxiii
BBCoder I
BBCoder I
Posts: 4
Joined: 16 Jun 2010, 17:57

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
paulxiii
BBCoder I
BBCoder I
Posts: 4
Joined: 16 Jun 2010, 17:57

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
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Google Adsense Search

Post by Stoker »

phpbb.com is using a paid solution.
Board rules! No PM support
paulxiii
BBCoder I
BBCoder I
Posts: 4
Joined: 16 Jun 2010, 17:57

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
User avatar
billoo
BBCoder II
BBCoder II
Posts: 24
Joined: 15 May 2010, 22:46

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>
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

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