PDA

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


zefyx
18 Apr 2009, 11:29
https://www.vbulletin.org/forum/external/2015/08/1.jpg

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

Find:

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

Add below:

<tr>
<td class="thead">Search Site / Google</td>
</tr>
<tr>
<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>
</form>
</td>
</tr>

</table>
</div>


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

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

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

Thank you

zefyx
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.

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

Greetings

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

Greetings

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

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

Phobos49
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

multiplex
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

SorentoUltimate
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