Adding Google Search 
Thursday, August 16, 2007, 09:40 PM
Adding Google Search to my page was a relatively painless process. The worst part is adding the necessary quotes and line feeds to the code that Google provides you.

To add Google Search to the already existing Search box, I had to once again modify the Simple PHP Blog file, scripts/sb_theme.php. Once in the file, I needed to locate the menu_search_field function, which is the piece of PHP code that results in the Search box being displayed on the Blogging $100 a Day page.

After the line:

$str .= '</form>';

I had to insert the following code:

$str .= '<hr>';
$str .= '<!-- Search Google -->' . "\n";
$str .= ' <center>' . "\n";
$str .= ' <form method="get" action="http://www.google.com/custom" target="google_window">' . "\n";
$str .= ' <table bgcolor="#' . $user_colors[ menu_bg ] . '">' . "\n";
$str .= ' <tr><td nowrap="nowrap" valign="top" align="left" height="32">' . "\n";
$str .= ' <a href="http://www.google.com/">' . "\n";
$str .= ' <img src="http://www.google.com/logos/Logo_25gry.gif" border="0" alt="Google" align="middle"></img></a>' . "\n";
$str .= ' <br/>' . "\n";
$str .= ' <label for="sbi" style="display: none">Enter your search terms</label>' . "\n";
$str .= ' <input type="text" name="q" size="11" maxlength="255" value="" id="sbi"></input>' . "\n";
$str .= ' <label for="sbb" style="display: none">Submit search form</label>' . "\n";
$str .= ' <input type="submit" name="sa" value="Search" id="sbb"></input>' . "\n";
$str .= ' <input type="hidden" name="client" value="pub-xxxxxxxxxxxxxxxx"></input>' . "\n";
$str .= ' <input type="hidden" name="forid" value="1"></input>' . "\n";
$str .= ' <input type="hidden" name="ie" value="ISO-8859-1"></input>' . "\n";
$str .= ' <input type="hidden" name="oe" value="ISO-8859-1"></input>' . "\n";
$str .= ' <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:375;FORID:1"></input>' . "\n";
$str .= ' <input type="hidden" name="hl" value="en"></input>' . "\n";
$str .= ' </td></tr></table>' . "\n";
$str .= ' </form>' . "\n";
$str .= ' </center>' . "\n";
$str .= '<!-- Search Google -->' . "\n";

That did the trick. Don't forget to use your own pub number!
one of us is wrong 
Thursday, November 13, 2008, 06:04 PM / http://www.oneofusiswrong.com
We have thought about making use of this for our site, but have not yet decided whether we want to have that much advertising. We have made use of your code for putting an ad along the side of the page, and for putting one ad at the top of the first entry on each page. Thank you for providing this information.
loan payday 
Thursday, November 29, 2007, 08:46 PM / http://groups.google.com/group/lora7777 ... ayday-same
Hi. Day loan payday same Day loan no payday same teletrack Cash day loan payday same Day loan payday quick same Day faxless loan payday same Payday loan store Payday loan store milwaukee Payday loan store chicago Alabama loan payday store Payday loan store in chicago Same day no fax payday loan Savings account payday loan Account loan payday savings using Online savings account payday loan Faxless payday loan for savings account Payday loan with savings account only Payday loan in savings account Account into loan payday savings Account loan payday people savings No teletrack payday loan with savings account Low cost payday loan Faxless low cost payday loan Guaranteed payday loan Guaranteed no fax payday loan Bad credit guaranteed loan payday Guaranteed approval payday loan Guaranteed loan payday personal unsecured Payday loan with guaranteed no faxing Advance cash guaranteed loan payday 100 guaranteed payday loan Guaranteed faxless payday loan Guaranteed loan payday online Ten dollar payday loan Borrower dollar loan payday ten Quick cash payday loan Advance cash loan payday quick Cash loan payday quick utah Loan online payday quick Low fee payday loan Fee loan low online payday Low fee faxless payday loan Debt get loan payday Consolidation debt loan payday Fastest loan online payday Aafes loan payday Payday loan in georgia Georgia payday loan Fax georgia loan no payday Georgia loan online payday No fax payday loan in georgia Good work.
Bill/Administrator 
Monday, August 20, 2007, 04:06 AM / http://manningtondeal.110mb.com
Adding this search code was easy, but I have you to see any results from it. I'll see what happens in the future.

Comments 

Add Comment

Fill out the form below to add your own comments.









Insert Special: