<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>David&#039;s technobabble &#187; google</title>
	<atom:link href="http://bable.cybermarshall.com/category/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://bable.cybermarshall.com</link>
	<description>David&#039;s thoughts about this and that</description>
	<lastBuildDate>Fri, 22 Jan 2010 18:29:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bad Behavior was blocking Google Analytics Verify</title>
		<link>http://bable.cybermarshall.com/2009/05/16/bad-behavior-was-blocking-google-analytics-verify/</link>
		<comments>http://bable.cybermarshall.com/2009/05/16/bad-behavior-was-blocking-google-analytics-verify/#comments</comments>
		<pubDate>Sat, 16 May 2009 16:51:18 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Bad Behavior]]></category>

		<guid isPermaLink="false">http://bable.cybermarshall.com/?p=462</guid>
		<description><![CDATA[This morning I was setting up a new blog to use Google Analytics. I&#8217;ve done this many times before. However, this morning every time that Google would try and verify the site, the verification would fail.

I ran a view &#8220;page source&#8221; on my site&#8217;s home page with both Internet Explorer and Firefox and I could [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I was setting up a new blog to use Google Analytics. I&#8217;ve done this many times before. However, this morning every time that Google would try and verify the site, the verification would fail.<br />
<span id="more-462"></span><br />
I ran a view &#8220;page source&#8221; on my site&#8217;s home page with both Internet Explorer and Firefox and I could see the correct Analytics code. I looked in my web server logs and could see that Google had accessed the site. After checking a few more things, I recalled that last week &#8220;Bad Behavior&#8221; had been blocking Windows Live. See: <a href="http://steve.heyvan.com/2009/05/09/technology-reviews/bad-behavior-workaround-dealing-with-windows-live/" onclick="pageTracker._trackPageview('/outgoing/steve.heyvan.com/2009/05/09/technology-reviews/bad-behavior-workaround-dealing-with-windows-live/?referer=');">Bad Behavior Workaround &#8211; Dealing with Windows Live.</a>.</p>
<p>I checked my &#8220;Bad Behavior&#8221; log and saw that &#8220;Bad Behavior&#8221; was reporting that it had blocked <em>74.125.75.17</em>.  The reason given was <em>&#8220;IP address found on http:BL blacklist&#8221;</em>.  I determined that this IP address did belong to Google. I ran several more tests and each time the Google Analytics verifier used this IP address and was blocked.</p>
<p>I added the IP Address to my &#8220;Bad Behavior&#8221; white-list located in directory <span style="text-decoration: underline;"><em>&lt;blog&gt;/wp-content/plugin/bad-behavior/bad-behavior/whitelist.inc.php</em></span> and restarted my httpd service. This allowed me to verify Google Analytics.</p>
<p>I use several of Google&#8217;s service. This has me considering white-listing all of Google&#8217;s IP Addresses. Currently, this appears to be &#8220;74.125.0.0/16&#8243; in CIDR format. However, at this time I decided not to do this. One of the main reasons is that would make me trust any computer that accesses the internet from inside of Google. I&#8217;m not sure that I&#8217;m ready to do this.</p>
<p>Below is my whitelist.inc.php code with the IP <em>74.125.75.17</em> white-listed.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p462code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4622"><td class="code" id="p462code2"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/defined" onclick="pageTracker._trackPageview('/outgoing/www.php.net/defined?referer=');"><span style="color: #990000;">defined</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'BB2_CORE'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <a href="http://www.php.net/die" onclick="pageTracker._trackPageview('/outgoing/www.php.net/die?referer=');"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'I said no cheating!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> bb2_whitelist<span style="color: #009900;">&#40;</span><span style="color: #000088;">$package</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Inappropriate whitelisting WILL expose you to spam, or cause Bad</span>
	<span style="color: #666666; font-style: italic;">// Behavior to stop functioning entirely!  DO NOT WHITELIST unless you</span>
	<span style="color: #666666; font-style: italic;">// are 100% CERTAIN that you should.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// IP address ranges use the CIDR format.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Includes four examples of whitelisting by IP address and netblock.</span>
	<span style="color: #000088;">$bb2_whitelist_ip_ranges</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array" onclick="pageTracker._trackPageview('/outgoing/www.php.net/array?referer=');"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">&quot;64.191.203.34&quot;</span><span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">// Digg whitelisted as of 2.0.12</span>
		<span style="color: #0000ff;">&quot;208.67.217.130&quot;</span><span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">// Digg whitelisted as of 2.0.12</span>
		<span style="color: #0000ff;">&quot;10.0.0.0/8&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">&quot;172.16.0.0/12&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">&quot;192.168.0.0/16&quot;</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">&quot;74.125.75.17&quot;</span><span style="color: #339933;">,</span>          <span style="color: #666666; font-style: italic;">// Google</span>
                <span style="color: #0000ff;">&quot;65.54.233.0/24&quot;</span><span style="color: #339933;">,</span>       <span style="color: #666666; font-style: italic;">// Microsoft Live</span>
<span style="color: #666666; font-style: italic;">//		&quot;127.0.0.1&quot;,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Inappropriate whitelisting WILL expose you to spam, or cause Bad</span>
	<span style="color: #666666; font-style: italic;">// Behavior to stop functioning entirely!  DO NOT WHITELIST unless you</span>
	<span style="color: #666666; font-style: italic;">// are 100% CERTAIN that you should.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// You should not whitelist search engines by user agent. Use the IP</span>
	<span style="color: #666666; font-style: italic;">// netblock for the search engine instead. See http://whois.arin.net/</span>
	<span style="color: #666666; font-style: italic;">// to locate the netblocks for an IP.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// User agents are matched by exact match only.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Includes one example of whitelisting by user agent.</span>
	<span style="color: #666666; font-style: italic;">// All are commented out.</span>
	<span style="color: #000088;">$bb2_whitelist_user_agents</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array" onclick="pageTracker._trackPageview('/outgoing/www.php.net/array?referer=');"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
	<span style="color: #666666; font-style: italic;">//	&quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) It's me, let me in&quot;,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Do not edit below this line</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/empty" onclick="pageTracker._trackPageview('/outgoing/www.php.net/empty?referer=');"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$bb2_whitelist_ip_ranges</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$bb2_whitelist_ip_ranges</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$range</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>match_cidr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$package</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ip'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$range</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/empty" onclick="pageTracker._trackPageview('/outgoing/www.php.net/empty?referer=');"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$bb2_whitelist_user_agents</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$bb2_whitelist_user_agents</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$user_agent</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/strcmp" onclick="pageTracker._trackPageview('/outgoing/www.php.net/strcmp?referer=');"><span style="color: #990000;">strcmp</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$package</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'headers_mixed'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'User-Agent'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_agent</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://bable.cybermarshall.com/2009/05/16/bad-behavior-was-blocking-google-analytics-verify/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating and registering a sitemap to Google for a WSS 3.0/SharePoint 2007 site.</title>
		<link>http://bable.cybermarshall.com/2009/01/10/creating-and-registering-a-sitemap-to-google-for-a-wss-30sharepoint-2007-site/</link>
		<comments>http://bable.cybermarshall.com/2009/01/10/creating-and-registering-a-sitemap-to-google-for-a-wss-30sharepoint-2007-site/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 17:05:04 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[WSS]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://bable.cybermarshall.com/?p=320</guid>
		<description><![CDATA[If you develop or maintain internet facing websites, then you already know what a sitemap is and does. I create and maintain site maps for several sites. I recently added a sitemap to my WSS 3.0 site. With other web technologies this can be a 10 minute process. With SharePoint this turned out to have [...]]]></description>
			<content:encoded><![CDATA[<p>If you develop or maintain internet facing websites, then you already know what a sitemap is and does. I create and maintain site maps for several sites. I recently added a sitemap to my WSS 3.0 site. With other web technologies this can be a 10 minute process. With SharePoint this turned out to have a few wrinkles.<br />
<span id="more-320"></span><br />
The 1<sup>st</sup> thing that I did was generate a sitemap of my SharePoint site using a free <a href="http://www.xml-sitemaps.com" onclick="pageTracker._trackPageview('/outgoing/www.xml-sitemaps.com?referer=');">Sitemap Generator</a>. Then I logged into my Google account to access my webmaster tools. The 1st challenge was to <a href="#verify">verify</a> my site, the next challenge would be to get Google to download the <a href="#sitemap">sitemap</a> from my site.<br />
<a id="verify" name="verify"></a><br />
<strong>Verifying my site</strong><br />
This is Google&#8217;s way of making sure that you are authorized to manage the site. Currently, Google lets you do this 2 ways:</p>
<ul>
<li>This first way, involves placing an HTML file on your site using an Google generated HTML file name.<br />
This must be placed in the root directory of you site.</li>
<li>The 2<sup>nd</sup> way involves placing a Google generated meta tag in your site&#8217;s default webpage.</li>
</ul>
<p>Based upon my previous experience with SharePoint, I tried the HTML file first. Using Internet Services Manager I determined the physical directory that was mapped to the virtual directory for my SharePoint site. Next, I created an HTML file in that directory using the name that Google provided and &#8220;viola&#8221;, I figured that I was done.  Unfortunately, the way SharePoint sites are registered into IIS, a SharePoint site would not render my HTML file from this location. This results in a 404 error. On to the meta tag option.</p>
<p>My 1<sup>st</sup> attempt at the meta tag option was to create a hidden &#8220;Content Editor Webpart&#8221; on my site&#8217;s home page and place the meta code in it. I suspected that this would not work as the meta tag needs to go into the head section of the HTML page before the body section. Sure enough, it did not work.</p>
<p>My next approach was to determine which file that I could modify to place my meta tag in.<br />
<em>I&#8217;m sure that there is a SharePoint Designer way to do this. However, if you are using the free version of SharePoint 2007, then I figure you may not want to buy SharePoint Designer.</em></p>
<p>SharePoint sites open with a default.aspx file that is based on the site type. There is are seperate default.aspx for Team Sites, Blog Sites, etc. Each of these default.aspx files include a default.master.  The default master can be overridden on a site by site basis by editing the default.master in your site&#8217;s &#8220;Master Page Gallery&#8221; by accessing &#8220;Site Actions&#8221; &#8211;&gt; &#8220;Site Settings&#8221; and then selecting the &#8220;Master Pages&#8221; Link in the &#8220;Galleries&#8221; section. Rather than change the default.aspx which would affect all sites of a type running on my server, I decided to change the default master for my site.</p>
<p>To change the default.master, you will:</p>
<ul>
<li> check it out.</li>
<li> download a copy</li>
<li> edit it with notepad (or some other text editor) and place your meta tag<br />
I chose to place my Google meta tag just below the<br />
&lt;META HTTP-EQUIV=&#8221;Expires&#8221; content=&#8221;0&#8243;&gt;</li>
<li>upload the update</li>
<li>check-in the file</li>
</ul>
<p>You can verify that this is correct by visiting your site&#8217;s homepage and then viewing the page source via your Web Browser. If you can see your verify code, you are ready to verify your site with Google and move to publishing your sitemap.<br />
<a id="sitemap" name="sitemap"></a><br />
<strong>Getting my sitemap into google</strong><br />
In order to get Google to download my sitemap, the sitemap file, sitemap.xml in my case, would need to be anonymously accessible form a url on your site that Google lets you specify. I already knew that I could not simply place the sitemap file into the root directory of my website. My solution was to create a SharePoint document library in my site, provide anonymous read access and upload the sitemap.xml file to that library.<br />
Then I entered the sitemap url into Google.</p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-5633552336244805";
google_ad_slot = "5649858591";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://bable.cybermarshall.com/2009/01/10/creating-and-registering-a-sitemap-to-google-for-a-wss-30sharepoint-2007-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Google Adsense for Search in Wordpress</title>
		<link>http://bable.cybermarshall.com/2009/01/08/using-google-adsense-for-search-in-wordpress/</link>
		<comments>http://bable.cybermarshall.com/2009/01/08/using-google-adsense-for-search-in-wordpress/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 00:59:13 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[google search]]></category>

		<guid isPermaLink="false">http://bable.cybermarshall.com/?p=259</guid>
		<description><![CDATA[I wanted to use Google &#8220;AdSense for Search&#8221; as the default search engine on my wordpress site. After experimenting with several of the wordpress plugins to set up the Google Search, I just wasn&#8217;t satisfied with any of them. So I asked myself: &#8220;Why couldn&#8217;t I do something like I&#8217;d been doing with plain old [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to use Google &#8220;AdSense for Search&#8221; as the default search engine on my wordpress site. After experimenting with several of the wordpress plugins to set up the Google Search, I just wasn&#8217;t satisfied with any of them. So I asked myself: &#8220;<em>Why couldn&#8217;t I do something like I&#8217;d been doing with plain old website</em>s&#8221;? It turns out that I could and I ended up with something that seems pretty simple, to me.</p>
<p><span id="more-259"></span></p>
<p>My reservations with the existing plugins had to do with modifying code in the theme. Although, I&#8217;m more than capable to modify the theme, I did not want to remember to do so every time I changed or upgraded my theme.</p>
<p>When you setup Google &#8220;AdSense for Search&#8221; on a plain old website, you:</p>
<ul>
<li>create a search results page that contains the &#8220;Search Results Code&#8221; JavaScript that is generated by Google.</li>
<li>create a search button on the pages of your website, using some more Google generated JavaScript code.<br />
This is done by placing the &#8220;Search Box Code&#8221; JavaScript that is generated by Google on the pages of your website where you want the search button to appear.</li>
</ul>
<p>Much to my surprise, this turned out to have a fairly direct translation to wordpress. It seemed pretty simple to do.</p>
<p>First, I setup my Google &#8220;AdSense for Search&#8221; which created 2 JavaScript code blocks: &#8220;Search Box Code&#8221; and &#8220;Search Results Code&#8221;</p>
<p>Next, I created a search results page for my site. Making sure that my permalink was in the format of http://mysite/search and then in source view I added  the Google generated JavaScript code for the &#8220;Search Results Code&#8221; from my &#8220;AdSense for Search&#8221;. This will look something like:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p259code5'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2595"><td class="code" id="p259code5"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://www.google.com/afsonline/show_afs_search.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Last, I removed the standard wordpress &#8220;Search&#8221; widget. I created a new Text widget and placed the Google generated javascript &#8220;Search Box Code&#8221; from my &#8220;AdSense for Search&#8221; into the text of the new widget. This will look something like:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p259code6'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2596"><td class="code" id="p259code6"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;cse-search-box&quot;</span> action<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://mysite/search/&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;cx&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;hidden&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;partner-pub-xxxxxxxxxxxxxxx:yyyyyyyyy&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>input <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;cof&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;hidden&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;FORID:10&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>input <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ie&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;hidden&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ISO-8859-1&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>input <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;q&quot;</span> size<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;32&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>input <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;sa&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Search&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://www.google.com/coop/cse/brand?form=cse-search-box&amp;amp;lang=en&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">2</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Then I made my new search widget which was named &#8220;Text&#8221; the first listed widget.</p>
<p>This seems to work pretty well.</p>
<p>Maybe in a future release wordpress will let me give user controlled names to my text widgets. I currently have 3 widgets named Text <img src='http://bable.cybermarshall.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-5633552336244805";
google_ad_slot = "5649858591";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://bable.cybermarshall.com/2009/01/08/using-google-adsense-for-search-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
