<?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; wordpress</title>
	<atom:link href="http://bable.cybermarshall.com/category/wordpress/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>What I hope gets &#8220;fixed&#8221; in SharePoint 2010</title>
		<link>http://bable.cybermarshall.com/2009/06/13/what-i-hope-gets-fixed-in-sharepoint-2010/</link>
		<comments>http://bable.cybermarshall.com/2009/06/13/what-i-hope-gets-fixed-in-sharepoint-2010/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 19:19:22 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[WSS]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[foswiki]]></category>
		<category><![CDATA[tinymce]]></category>
		<category><![CDATA[twiki]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://bable.cybermarshall.com/?p=638</guid>
		<description><![CDATA[There are some limitations in WSS 3.0/SharePoint 2007 that are hurting the adoption of SharePoint 2007 at my company. I&#8217;m sure that this is pretty common. Many users are familiar with WordPress and Foswiki/TWiki. My users are looking for easy to use editors, plug-ins, and themes that they can use on their team sites and [...]]]></description>
			<content:encoded><![CDATA[<p>There are some limitations in WSS 3.0/SharePoint 2007 that are hurting the adoption of SharePoint 2007 at my company. I&#8217;m sure that this is pretty common. Many users are familiar with WordPress and Foswiki/TWiki. My users are looking for easy to use editors, plug-ins, and themes that they can use on their team sites and &#8220;my sites&#8221;.  With the &#8220;Revolution&#8221; in Social media and Web 2.0  users are familiar with open source web tools that allow rich-text editing and replaceable editors. They complain bitterly about editing their content, blog or a wiki inside SharePoint. <span id="more-638"></span></p>
<ul>
<li>The WSS 3.0/SharePoint 2007 WYSIWYG editor can’t upload images, video, audio clips and can&#8217;t insert Flash files.<br/>The workaround requires so many mouse clicks and web page interactions, that users look at me like I have &#8220;3 heads&#8221; when I show it to them.</li>
<li>Working with tables is difficult, at best</li>
<li>Any customizations such as:
<ul>
<li>custom file browsers,</li>
<li>link management,</li>
<li>syntax aware code viewers,</li>
<li>and much more</li>
</ul>
<p>are difficult to implement</li>
</ul>
<p>From a Wiki perspective </p>
<ul>
<li>Explicit syntax [[]]</li>
<li>No free form image inserts</li>
<li>No server side include of other topics.<br/>Need an easy way to include content from another site. In Foswiki/Twki the %{link} tag can be used</li>
<li>No easy upload and insert of attachments</li>
<li>No Easy way to insert links.<br/>Foswiki/TWiki support WikiWord/Camel Case.
<li>No tagging</li>
<li>WYSIWYG support for tables is ugly. You must know the number of rows and columns in advance.<br/>Foswiki/TWiki support simple &#8220;|&#8221; character based table definitions and an editable table plugin</li>
<li>No printable vew</li>
<li>No export to PDF/Word</li>
<li>Limited Alerts support.<br/>Email alerts say something changed and include the full text. However, this can not be customized to tell you what changed. You must login and see the history for that.<br/>Foswiki/Twiki support a highly customizable WebNotify</li>
<li>No easy support for multiple top level webs.<br/>There is only one flat &#8220;Wiki Pages&#8221; page with list view, no hierarchical view or some sort of sitemap feature.Wikis are made up of Topics that are interlinked in the form of a graph. Hence a specific Tree or Hierarchy structure is not the right representation. However, there must be a way to find all top level topics, i.e. Topics that are not linked to by any other topics. These topics will include
<ul>
<li>the starting points</li>
<li>new topics that have been added but not yet organized.</li>
</ul>
<p>I could not find a way to do this with this with the SharePoint Wiki. Even a simple way to flag a page as &#8220;add this page&#8221; to &#8220;Quick Launch&#8221; would help.</li>
<li>Not easy to provide a standard footer<br/>No apparent concept of templates</li>
</ul>
<p>The &#8220;MS/SharePoint 2007&#8243; update approach does not seem to fit into this &#8220;revolution&#8221;, either. The current approach requires direct access to the servers to install and activate extensions. With &#8220;Cloud Computing&#8221; and web hosting on the rise; the direct server access approach is not a good match. SharePoint needs something like a <a href="http://wordpress.org/extend/plugins/plugin-central/" onclick="pageTracker._trackPageview('/outgoing/wordpress.org/extend/plugins/plugin-central/?referer=');">Plug-in central</a> for SharePoint. Ideally, this could work on a site level and not require Central Administration be updated first. Another issue for remote management is that &#8220;by default&#8221; SharePoint Central Administration and SharePoint Sites must run on different tcp/ip ports. I&#8217;m sure that if I work real hard I can find a way to run them on the same port using &#8220;host-headers&#8221;. However, if I do, then will this really be supported or would the next next patch or upgrade break my sites?</p>
<p>So my wish list for SharePoint 2010 starts with:</p>
<ul>
<li>A site focused web based upload, install, and management capability similar to that found in <a href="http://wordpress.org/" onclick="pageTracker._trackPageview('/outgoing/wordpress.org/?referer=');">WordPress</a> and <a href="http://wordpress.org/extend/plugins/plugin-central/" onclick="pageTracker._trackPageview('/outgoing/wordpress.org/extend/plugins/plugin-central/?referer=');">Plug-in central for WordPress</a></li>
<li>A Rich-Text Editor that is rich in function, easily expandable and replaceable.<br />
Consider integrating a freely available javascript-based Rich-Text Editor for all browsers including IE. My primary choices would be <a href="http://www.fckeditor.net/" onclick="pageTracker._trackPageview('/outgoing/www.fckeditor.net/?referer=');">FCKEditor</a> and <a href="http://tinymce.moxiecode.com/" onclick="pageTracker._trackPageview('/outgoing/tinymce.moxiecode.com/?referer=');">TinyMCE or TinyMCE Advanved</a>.</li>
<li>A competitive wiki and blog, without having to buying 3rd party add-ons.</li>
</ul>
<p>Perhaps Microsoft only wants SharePoint to be a document sharing facility. Maybe I should not be trying to bend WSS and SharePoint into the social media and web 2.0 &#8220;arena&#8221;. Maybe that &#8220;arena&#8221; should just belong to Apache, Linux and Open Source.</p>
]]></content:encoded>
			<wfw:commentRss>http://bable.cybermarshall.com/2009/06/13/what-i-hope-gets-fixed-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<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>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>
		<item>
		<title>Running WordPress on Red Hat Enterprise 5.2 with the selinux targeted policy enabled</title>
		<link>http://bable.cybermarshall.com/2008/11/26/using-wordpress-on-red-hat-enterprise-52-with-the-selinux-targeted-policy-enabled/</link>
		<comments>http://bable.cybermarshall.com/2008/11/26/using-wordpress-on-red-hat-enterprise-52-with-the-selinux-targeted-policy-enabled/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 20:42:09 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://bable.cybermarshall.com/?p=56</guid>
		<description><![CDATA[If you run wordpress on Red Hat Enterprise 5.2 with the selinux targeted policy enabled, some of the wordpress features will not work and some wordpress plugins do not operate correctly. After some review of the targeted policy, I made some changes to the permissions of several folders:


I manually created the uploads folder in my [...]]]></description>
			<content:encoded><![CDATA[<p>If you run wordpress on Red Hat Enterprise 5.2 with the selinux targeted policy enabled, some of the wordpress features will not work and some wordpress plugins do not operate correctly. After some review of the targeted policy, I made some changes to the permissions of several folders:</p>
<p><span id="more-56"></span></p>
<ol>
<li>I manually created the uploads folder in my wordpress <em>wp-content</em> folder .<br />
    &nbsp;</li>
<li>I changed the ownership of my wordpress directories and subdirectories to be owned by the apache user and apache group. I should have done this from the beginning to be secure and clean. Shame on me <img src='http://bable.cybermarshall.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />
<p>    <em>chown -Rf apache-user:apache-group [mywordpress base folder]</p>
<p>    </em></li>
<li>I changed the Selinux security context of the following folders to &quot;httpd_tmp_t&quot;: plugins, themes and uploads<br />
    <em>chcon -Rf -t httpd_tmp_t plugins</em><br />
    <em>chcon -Rf -t httpd_tmp_t themes</em><br />
    <em>chcon -Rf -t httpd_tmp_t uploads</em></li>
</ol>
<p>With these changes I&#8217;m able to upload and to run plugin central and save changes to my themes.</p>
<p>As I learn more, I&#8217;ll be updating this post.</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/2008/11/26/using-wordpress-on-red-hat-enterprise-52-with-the-selinux-targeted-policy-enabled/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
