MyBB Community Forums

Full Version: Google Search (Certain sites)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all.

I have got google search setup for certain sites only. Only sites that are relevant to my forum topic.

No matter where I place the code;
<form action="http://www.google.com.au/cse" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-1504745407462076:e8u8eg-xmqf" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="Search" />
  </div>

Every time I create a new post or thread and select post, it goes to google search and not back to the site. (Or view new post)

I have tried pasting it in the "header", "Index" and "global" templates Between the <$header> & <sf_shoutbox> and under <$forum> and many other different places.

Is there anywhere it can be pasted in without this hassle.
Geoff.
I have a searchbox on my forum... on my index.. as far as I know you can't put it into the header for some reason, get an error.

You don't have </form> on the end of that.. maybe the issue?
It never ceases to amaze me how good this site is Smile

The quick responses are fantastic.

Thanks atomic, it done the trick. (tested several times)

Geoff....