UBB.Dev
Posted By: Micky [7.x] [Finished] Add Google search to your site - 09/01/2006 10:02 PM
Mod Name / Version: Add Google search to your site

Description: Google has a free service that will allow it to search your site Here. I have incorporated the generic threads page to allow you to add this to your site.

Working Under: UBB.Threads 7.0

Mod Status: Finished

Any pre-requisites: None

Author(s): Micky

Date: 09/01/06

Credits:

Files Altered: ubbt_registerednav.tmpl
ubbt_unregisterednav.tmpl
threads\language\*\online.php


New Files: google.php
viewgoogle.inc.php
viewgoogle.tpl

Database Altered: No

Info/Instructions:

Attached File
Thank you Micky smile
Have a demo?
Posted By: Micky Re: Finished-[7.0] Add Google search to your site - 09/02/2006 11:42 AM
Demo and then in navigation on Google. smile
Posted By: Gizmo Re: Finished-[7.0] Add Google search to your site - 09/02/2006 10:32 PM
Mmm, that looks nice; will definately be added to mine (been pondering doing this for a while yet too as we use it on our main page).

Great job smile
Posted By: Micky Re: Finished-[7.0] Add Google search to your site - 09/02/2006 11:45 PM
Is nice, I use it gladly wink
That does look pretty good and keeps the forum layout clean too, thanks smile
The demo link is dead.
Posted By: Micky Re: Finished-[7.0] Add Google search to your site - 11/07/2006 10:40 PM
This is, for example, mine google.php in the list includes wink
And it lives. grin

Attached File
2294-google.zip  (52 downloads)
THANKS!!!
Posted By: Gizmo Re: Finished-[7.0] Add Google search to your site - 11/11/2006 11:44 AM
I adapted my google search install to use the google adsense code, figured that if i'm referring people to use google I may as well get paid if they click any advertising links wink
can you please show how that is done?? Thanks
Posted By: Micky Re: Finished-[7.0] Add Google search to your site - 11/11/2006 10:37 PM
Here Google AdSense is described

[Linked Image][Linked Image]

Then there everything should be described.
My includes/google.php displays as follows:
Code
<!-- SiteSearch Google -->
<div align="center">
<form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#000000">
<tr>
<td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/"><img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle" /></a>
<br/>
<input type="hidden" name="domains" value="www.undergroundnews.com"></input>
<input type="text" name="q" size="31" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
</td>
</tr>
<tr>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#ffffff">The Internet</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.undergroundnews.com"></input>
<font size="-1" color="#ffffff">UGN Security</font>
</td>
</tr>
</table>

<input type="hidden" name="client" value="pub-5168900358893374"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="4984299912"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#8CA3D6;GL:1;DIV:#666666;VLC:8CA3D6;AH:center;BGC:000000;LBGC:000000;ALC:C0C0C0;LC:C0C0C0;T:FFFFFF;GFNT:8CA3D6;GIMP:8CA3D6;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td>
</tr>
</table>
</form>
</div>
<!-- SiteSearch Google -->
© UBB.Developers