The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
To add a Google searchbox into your forum's search page as part of the Google Adsense program...
Create a new asp file with the following code and name it - inc_google_search.asp
_______________________________________________________________________________
______________________________________________________________________________
Please Note:
In Line 10 you need to add your ID Number
In Line 14 of the above you will need to add the link to your website logo and also your website
The color variables can also be altered to change the text and background colors if required
In your search.asp file find the following (about line 639)
____________________________________________________________________________
____________________________________________________________________________
and after it add the following: ____________________________________________________________________________
____________________________________________________________________________
It's relatively easy to do :)
Webbo<
Create a new asp file with the following code and name it - inc_google_search.asp
_______________________________________________________________________________
Code:
<%
Response.Write " <br><br> " & vbNewLine
Response.Write " <form method=""get"" action=""http://www.google.com/custom"" target=""_top""> " & vbNewLine & _
" <table border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td nowrap=""nowrap"" valign=""top"" align=""left"" height=""32"">" & vbNewLine & _
" <a href=""http://www.google.com/""><img src=""http://www.google.com/logos/Logo_25wht.gif"" border=""0"" alt=""Google"" align=""middle""></img></a>" & vbNewLine & _
" <input type=""text"" name=""q"" size=""31"" maxlength=""255"" value=""""></input>" & vbNewLine & _
" <input type=""submit"" name=""sa"" value=""WebSearch""></input>" & vbNewLine & _
" <input type=""hidden"" name=""client"" value=""pub-YOUR_ID_HERE""></input>" & vbNewLine & _
" <input type=""hidden"" name=""forid"" value=""1""></input>" & vbNewLine & _
" <input type=""hidden"" name=""ie"" value=""ISO-8859-1""></input>" & vbNewLine & _
" <input type=""hidden"" name=""oe"" value=""ISO-8859-1""></input>" & vbNewLine & _
" <input type=""hidden"" name=""cof"" value=""GALT:#339933;GL:1;DIV:#663333;VLC:FF6666;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:67;LW:193;L:http://www.YOURSITE.com/YOURLOGO.gif;S:http://www.YOURSITE.com;LP:1;FORID:1;""></input>" & vbNewLine & _
" <input type=""hidden"" name=""hl"" value=""en""></input>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </form>" & vbNewLine
%>______________________________________________________________________________
Please Note:
In Line 10 you need to add your ID Number
In Line 14 of the above you will need to add the link to your website logo and also your website
The color variables can also be altered to change the text and background colors if required
In your search.asp file find the following (about line 639)
____________________________________________________________________________
Code:
end if and after it add the following: ____________________________________________________________________________
Code:
%>
<!--#INCLUDE FILE="inc_google_search.asp"-->
<%It's relatively easy to do :)
Webbo<