View Full Version : Miscellaneous Hacks - Non-Adsense Google site & web search for your navbar!

18 Apr 2009, 11:29

This was requested, I shall share it with the rest of you all as well.


<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>

Add below:

<td class="thead">Search Site / Google</td>
<td class="vbmenu_option" title="nohilite">
<form action="http://www.google.com/search" method="get" name="search">
<input type="hidden" name="forid" value="1"/>
<input type="hidden" name="ie" value="ISO-8859-1"/>
<input type="hidden" name="oe" value="ISO-8859-1"/>
<input type="hidden" name="cof" value="http://www.yoursite.com/forum/images/autosportnc-yellow/logo.gif;S:http://www.yoursite.com;FORID:1"/>
<input name="domains" type="hidden" value="yoursite.com"/>
<input type="hidden" name="hl" value="en"/>
<input type="text" class="bginput" name="q" size="25" maxlength="255"/>
<input type="submit" class="button" value="Go" /><br />
<input name="sitesearch" type="radio" value="http://www.yoursite.com/forum" checked="checked"/> YourSite.com<br />
<input name="sitesearch" type="radio" value=""/><a href="http://www.google.com/search"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"/></a>


Change all instances of yoursite.com to your forum's URL & Enjoy!

18 Apr 2009, 16:30
Thanks, since I dont have an adsense account this would be quite nice to use now. thanks.

18 Apr 2009, 21:06
Excellent work, this code will be installed in my forum

Thank you

19 Apr 2009, 22:16
Don't forget to click installed.

Seems that I was half-awake making this & it produced quite a few validation errors, I have updated the code for 100% XHTML validation.

03 May 2009, 13:17
adsense account and searching from there?


06 May 2009, 19:24
adsense account and searching from there?


I'm not sure I follow. This search bar is for those who don't wish to force ad's on their users.

11 May 2009, 12:36
How would I make the changes to have the search results displayed on my website not google?

11 May 2009, 17:25
What does this string do???

<input type="hidden" name="cof" value="http://www.yoursite.com/forum/images/autosportnc-yellow/logo.gif

01 Sep 2009, 23:30
i get a defect when the post thank you hack is already installed

the "find all thanked posts" link in the search navbar is removed and put below the navbar, everything below it is then stretched

02 Sep 2009, 10:44
How would I make the changes to have the search results displayed on my website not google?

i'm also interesting on that,

do you found any way to do that