masterchief
Well-known member
Google Custom Search for your site
Using any of the RawHyperText addon blocks, simply add the following code into the HTML block. Thanx goes out to Jake Bunce for the code found in another thread here at XenForo.
NOTE: Go to following thread to find out how to setup your landing page for your search results. Create a new page, titled 'search' Make sure to enter your API from google custom search or you wont be getting a site search as expected.
http://xenforo.com/community/thread...ogle-custom-search-adsense.26443/#post-537921
Using any of the RawHyperText addon blocks, simply add the following code into the HTML block. Thanx goes out to Jake Bunce for the code found in another thread here at XenForo.
NOTE: Go to following thread to find out how to setup your landing page for your search results. Create a new page, titled 'search' Make sure to enter your API from google custom search or you wont be getting a site search as expected.
http://xenforo.com/community/thread...ogle-custom-search-adsense.26443/#post-537921
Code:
<div class="section">
<div class="secondaryContent">
<h3>Google This Site</h3>
<form method="get" action="pages/search">
<input type="text" name="q" placeholder="Search..." size="31" maxlength="255" value="" /><br />
<input type="hidden" name="sitesearch" value="YOUR_SITE_URL" />
<input type="submit" value="Search" />
</form>
</div>
</div>