Google Adsense Search for phpbb

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
ngaia
Registered User
Posts: 296
Joined: Sat Apr 23, 2016 4:28 am

Google Adsense Search for phpbb

Post by ngaia » Tue May 03, 2016 2:53 pm

is it possible to replace default search bar with Google Adsense Search? i tried it on google but i cudnt find with for phpbb please help me

GunChleoc
Translator
Posts: 145
Joined: Tue Jun 16, 2009 7:48 am

Re: Google Adsense Search for phpbb

Post by GunChleoc » Tue May 03, 2016 2:55 pm


User avatar
Elias
Registered User
Posts: 4625
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias

Re: Google Adsense Search for phpbb

Post by Elias » Tue May 03, 2016 2:57 pm

Maybe this can be useful:
viewtopic.php?f=46&t=2153974

Thanks
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|

ngaia
Registered User
Posts: 296
Joined: Sat Apr 23, 2016 4:28 am

Re: Google Adsense Search for phpbb

Post by ngaia » Tue May 03, 2016 3:19 pm

i have these codes from google adsense, i dnt where where to put these codes.
Search box code

Code: Select all

<form action="storyfb.com" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-6804718789467829:9324989797" />
    <input type="hidden" name="cof" value="FORID:10" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="55" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script>
<script type="text/javascript" src="http://www.google.com/cse/t13n?form=cse-search-box&t13n_langs=hi%2Cen"></script>

<script type="text/javascript" src="http://www.google.co.in/coop/cse/brand?form=cse-search-box&lang=en"></script>
Search results code

Code: Select all

<div id="cse-search-results"></div>
<script type="text/javascript">
  var googleSearchIframeName = "cse-search-results";
  var googleSearchFormName = "cse-search-box";
  var googleSearchFrameWidth = 800;
  var googleSearchDomain = "www.google.co.in";
  var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
Search results code

Code: Select all

<script type="text/javascript" src="http://www.google.com/cse/query_renderer.js"></script>
<div id="queries"></div>
<script src="http://www.google.com/cse/api/partner-pub-6804718789467829/cse/9324989797/queries/js?oe=UTF-8&callback=(new+PopularQueryRenderer(document.getElementById(%22queries%22))).render"></script>

Locked

Return to “[3.1.x] Support Forum”