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: 3505
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Re: Google Adsense Search

Post by Stoker » 10 Jun 2010, 05:05

It searches a domain.
Board rules! No PM support
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear


Daniel
BBCoder II
BBCoder II
Posts: 29
Joined: 23 May 2010, 04:53

Re: Google Adsense Search

Post by Daniel » 10 Jun 2010, 05:55

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, 15:57

Re: Google Adsense Search

Post by paulxiii » 19 Jun 2010, 11:11

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.

cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 16:14
Location: Don't really know!

Re: Google Adsense Search

Post by cisco007 » 19 Jun 2010, 13:15

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, 15:57

Re: Google Adsense Search

Post by paulxiii » 19 Jun 2010, 14:10

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, 15:57

Re: Google Adsense Search

Post by paulxiii » 20 Jun 2010, 05:59

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.

User avatar
Stoker
Site Admin
Site Admin
Posts: 3505
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Re: Google Adsense Search

Post by Stoker » 20 Jun 2010, 06:37

phpbb.com is using a paid solution.
Board rules! No PM support
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear

paulxiii
BBCoder I
BBCoder I
Posts: 4
Joined: 16 Jun 2010, 15:57

Re: Google Adsense Search

Post by paulxiii » 20 Jun 2010, 07:40

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, 20:46

Re: Google Adsense Search

Post by billoo » 22 Jun 2010, 20:03

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, 16:14
Location: Don't really know!

Re: Google Adsense Search

Post by cisco007 » 22 Jun 2010, 21:28

all this stuff has already been asked before billoo, please check the rest of the posts in this topic specially the first post!