<?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>WordPress Web Hosting</title>
	<atom:link href="http://www.shrewdies.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shrewdies.net</link>
	<description>Business Web Hosting For Shrewdies Not Dummies</description>
	<lastBuildDate>Thu, 26 Aug 2010 19:11:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Best WordPress WYSIWYG Editor</title>
		<link>http://www.shrewdies.net/1643/best-wordpress-wysiwyg-editor/</link>
		<comments>http://www.shrewdies.net/1643/best-wordpress-wysiwyg-editor/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 19:06:31 +0000</pubDate>
		<dc:creator>Keith from shrewdies</dc:creator>
				<category><![CDATA[Function]]></category>
		<category><![CDATA[NicEdit]]></category>

		<guid isPermaLink="false">http://www.shrewdies.net/?p=1643</guid>
		<description><![CDATA[When I explained how NicEdit has become my personal best WordPress WYSIWYG editor, I mentioned some issues. Whilst the best solution would be to delve into the NicEdit code, and change the parts that present problems, I have found workarounds that mean I can get by without this for now. In fact, I am not [...]]]></description>
			<content:encoded><![CDATA[<div class="kctIntro">When I explained how NicEdit has become my personal <a href="/1634/wordpress-default-wysiwyg-editor/">best WordPress WYSIWYG editor</a>, I mentioned some issues.</p>
<p>Whilst the best solution would be to delve into the NicEdit code, and change the parts that present problems, I have found workarounds that mean I can get by without this for now.</p></div>
<p>In fact, I am not certain if this is truly a NicEdit issue, or the way WordPress builds it&#8217;s comments forms. I&#8217;ll leave the strict coding debate until I&#8217;ve fully investigated why it works in FireFox but not in MicroSoft Internet Explorer (MSIE).</p>
<p>In my first investigation I explained how wrapping elements in HTML Paragraph tags will break NicEdit under MSIE. The symptom is a small disabled NicEdit toolbar that renders it useless. I explained in that article about modifying the comments.php to remove the paragraph tags (or change them to DIV tags) re-enabled NicEdit. However, WordPress 3 has changed the way the comments form is built.</p>
<p>The good news is that there is no need to hack the WordPress core that serves the form. All that is needed is a simple change to the way the comments form is called in your theme.</p>
<h2>Restore NicEdit As Your MSIE WordPress WYSIWYG Editor</h2>
<p>If you are using a pre-WordPress 3 theme, your comments form is built directly in comments.php. Current themes replace many lines of code with a simple call to a new function &#8211; comment_form().</p>
<p>This is much tidier, but the default settings are very NicEdit unfriendly. Not only does it retain the MSIE-breaking paragraph tags, but default width settings do not get passed to MSIE at the toolbar rendering stage.</p>
<p>Additionally, the default form displays the allowed HTML tags. This is something very dear to my heart in a normal comments textarea. Visitors should be told which tags are allowed to save those frustrating times when you type a long and interesting comment, only to see it posted as garbled rubbish because the pre or code tags are not allowed. With NicEdit, such vital information is unnecessary, as the tags are all processed before the code is saved, and you can even configure which buttons are available.</p>
<p>So how do we get the comments form to display NicEdit properly?</p>
<p>The call to comment_form() is near the end of comments.php in the theme editor area. If you are not happy with editing themes, get in touch with the theme author and ask them to add comment form parameters in the theme options. Or if the theme is not supported, then let me know, and I&#8217;ll produce a NicEdit enabled version of it.</p>
<p>If you cannot find comment_form() then chances are that you have an older theme, in which case search for the textarea line, and adapt the following.</p>
<p>The comment_form() function allows most aspects of the comment form to be changed by passing an array of parameters. More details are in the WordPress codex, but all you need to do is paste the following between the brackets() of the comment_form function:</p>
<pre>array('comment_field'=>'&lt;div class="comment-form-comment">&lt;label for="comment">' . _x( 'Comment', 'noun' ) . '&lt;/label>&lt;textarea id="comment" name="comment" style="width:350px" rows="8" aria-required="true">&lt;/textarea>&lt;/div>','comment_notes_after'  => 'Thank you.')</pre>
<p>This simply changes 2 settings, comment_field and comment_notes_after by slightly changing the default WordPress code. I&#8217;ve cheated a little by including an inline style statement &#8211; my site is about getting things done quickly, and then we can argue with the purists to find more elegantly coded solutions. The important thing is that the following 3 NicEdit defeating issues are overcome:</p>
<ol>
<li>p is replaced with div to prevent MSIE &#8220;Unknown runtime error Line: 8 Char: 721&#8243;</li>
<li>cols=&#8221;45&#8243; is replaced with a width setting. Alternatively, you could probably set this in the style sheet, but I have not tested this.</li>
<li>The allowed tags are replaced with a simple &#8216;Thank you&#8217; message. You could change this to something else, or just the quotes to remove it entirely.</li>
</ol>
<h2>Change Defaults To Make NicEdit Your Best WordPress WYSIWYG Editor</h2>
<p>In my previous article I explained the quick way to enable NicEdit to be your editor for WordPress comments or Question2Answer questions, answers and comments. Posting the default code certainly works, but you are at risk of losing the editor if the NicEdit site is unavailable.</p>
<p>The first thing you should do is copy NicEdit to your own server, and amend the first NicEdit line in your header.php to:
<pre>&lt;script src="path-to-your-nicedit/nicEdit.js" type="text/javascript">&lt;/script></pre>
<p>If you like to keep images in a separate folder from js files, you will also need to change the NicEdit defaults. You will probably need to do this anyway to change the default buttons and add extra features. So, amend the second NicEdit line to:
<pre>&lt;script type="text/javascript">bkLib.onDomLoaded(function() {nicEditors.allTextAreas({iconsPath : 'path-to-your-nicedit/nicEditorIcons.gif'})});&lt;/script></pre>
<p>In this instance we are only changing the iconsPath, but any nicEdit parameters can be amended in a comma separated list.</p>
<p>If you&#8217;ve implemented these improvements and still have unresolved issues, please let me know below. As I mentioned earlier, I will soon publish complete step-by-step guides for NicEdit enabling Question2Answer and WordPress, combined and in isolation. I&#8217;d appreciate your help in making it as complete as possible by clarifying any issues you may still have.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shrewdies.net/1643/best-wordpress-wysiwyg-editor/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress Default WYSIWYG Editor</title>
		<link>http://www.shrewdies.net/1634/wordpress-default-wysiwyg-editor/</link>
		<comments>http://www.shrewdies.net/1634/wordpress-default-wysiwyg-editor/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 10:23:19 +0000</pubDate>
		<dc:creator>Keith from shrewdies</dc:creator>
				<category><![CDATA[Form]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[NicEdit]]></category>
		<category><![CDATA[Question2Answer]]></category>

		<guid isPermaLink="false">http://www.shrewdies.net/?p=1634</guid>
		<description><![CDATA[My search for the perfect WordPress Default WYSIWYG editor is far from over, but at least I have a stable solution that works. I&#8217;ve switched between NicEdit and TinyMCE for a few months. I like the simplicity of NicEdit, and had it working nicely on WordPress sites. Then all sorts of weirdness started happening when [...]]]></description>
			<content:encoded><![CDATA[<div class="kctIntro">My search for the perfect WordPress Default WYSIWYG editor is far from over, but at least I have a stable solution that works.</div>
<p>I&#8217;ve switched between NicEdit and TinyMCE for a few months. I like the simplicity of NicEdit, and <a href="/822/wordpress-wysiwyg-made-easy/">had it working nicely on WordPress sites</a>. </p>
<p>Then all sorts of weirdness started happening when I tried the beta of Q2A on a development site. I&#8217;d taken what I thought were sensible precautions. The site in question was new and had no visitors. I prefer to experiment with this sort of site if possible, as running development sites under localhost on my PC is not always a good representation of the real world. I had an absolute nightmare with this, and suspected all the new stuff I was trying out (beta Q2A and beta WordPress 3.0!)</p>
<p>Turned out it was nothing to do with the beta software, and everything to do with lousy server configuration backed up by lousy tech support from Bl** Host.</p>
<p>In the process of trying to get back to something that worked, I tried different settings on this site. I didn&#8217;t realize that I&#8217;d left WYSIWYG turned off here until <a href="/822/wordpress-wysiwyg-made-easy/#comment-4274">vince told me</a>.</p>
<p>For now, I&#8217;ve left tinyMCE alone. It looked like a good solution, but there are a whole bunch of formatting issues, so I&#8217;ve decided to focus on NicEdit.</p>
<p>I use it to make WordPress commenting better, and for Q2A. Within those setups (either of Q2A, WP, or both) there are installation and configuration options, so I&#8217;ll try to cover all the permutations.</p>
<h2>Preparing Q2A</h2>
<p>Q2A strips out any html code from multi-line text, so we have to tweak it. If you are uncomfortable with tweaking code, raise the issue on the <a href="http://www.question2answer.org/">Q2A site</a>, and ask for an Admin option to disable it.</p>
<p>We have to edit the qa_html() function in qa-base.php, which sits in the qa-include folder. At line 84, I simply comment out the string manipulation, and set the return value to the string that was passed in:<br />
<code>		if ($multiline) {<br />
//			$html=preg_replace('/\r\n?/', "\n", $html);<br />
//			$html=preg_replace('/(?<=\s) /', '&nbsp;', $html);<br />
//			$html=str_replace("\t", '&nbsp; &nbsp; ', $html);<br />
//			$html=nl2br($html);<br />
			$html=$string;<br />
		}<br />
</code></p>
<p>If you do not do this, NicEdit will still work, but the HTML tags will get stripped before your questions, answers, or comments get saved.</p>
<p>This change will need to be reapplied whenever you upgrade or reinstall Q2A.</p>
<h2>WYSIWYG Question2Answer</h2>
<p>The simplest implementation is to copy the from NicEdit front page:</p>
<pre>&lt;script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript">&lt;/script>
&lt;script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);&lt;/script>
</pre>
<p>Then paste it into the Question2Answer Admin area. All you do is go to the Layout settings, and paste the above code into the 'Custom HTML in &lt;HEAD> section of every page:' and save the settings.</p>
<p>You should see that all your multi-line text boxes have a WYSIWYG display with edit buttons across the top. The buttons are disabled until you click into the textarea.</p>
<p>Now check that NicEdit works OK on your question, answer and comment boxes. The easiest way is to edit existing items.</p>
<p>This has worked successfully every time I have tried it, but there may be some formatting issues on some browsers. I will cover these in my next article.</p>
<h2>WordPress Default WYSIWYG Editor</h2>
<p>For most of my sites, I want both WYSIWYG for Question2Answer and for WordPress. I always wrap my Q2A theme inside the WordPress theme, so it makes sense to apply NicEdit to the WordPress header. In this setup, you do not have to also apply it to NicEdit, unless you want different editor configurations in each area.</p>
<p>So to make NicEdit the WordPress Default WYSIWYG Editor and also apply it to Question2Answer, simply post the NicEdit code into header.php within the HEAD tags. This also applies if you just use WordPress without Question2Answer.</p>
<p>Test your comments both at the article level, and (if you use threaded comments) the reply to comment level. NicEdit should work nicely, but there may be issues in some browsers. You really need to try as many browsers as possible, but certainly common ones that your visitors use. See your server logs or analytics program - Google Analytics is very good - to get a list of browsers that your visitors use.</p>
<p>In my next article, I will look at some of the issues that WordPress themes can cause, especially with MSIE. I'll explain how to overcome these issues, and approaches to investigating problems. I will also explain how to avoid the pitfalls associated with simply <a href="http://nicedit.com/index.php">pasting the NicEdit code from their site</a>. You will see how to create the best WordPress WYSIWYG editor.</p>
<p>You might notice that I do not use the NicEdit/WordPress default WYSIWYG editor that I have described on this site. That is because I intend to move all the interactive features to a separate site, and add more discussion and feedback tools. When I've done that, I will produce a complete step-by-step guide for integrating NicEdit and Question2Answer under a WordPress theme.</p>
<p>Let me know if you want to see it in action before you commit to these changes, and I will show you sites where it works so that you can see the improved front end.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shrewdies.net/1634/wordpress-default-wysiwyg-editor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple:Press Forum &#8211; Is The Best Good Enough?</title>
		<link>http://www.shrewdies.net/1610/simplepress-forum-is-the-best-good-enough/</link>
		<comments>http://www.shrewdies.net/1610/simplepress-forum-is-the-best-good-enough/#comments</comments>
		<pubDate>Fri, 28 May 2010 16:34:36 +0000</pubDate>
		<dc:creator>Keith from shrewdies</dc:creator>
				<category><![CDATA[Foundation]]></category>
		<category><![CDATA[Simple:Press]]></category>
		<category><![CDATA[WordPress forum]]></category>
		<category><![CDATA[WordPress setup]]></category>

		<guid isPermaLink="false">http://www.shrewdies.net/?p=1610</guid>
		<description><![CDATA[Simple:Press Forum is definitely the best forum software I&#8217;ve used for WordPress. There is no WordPress plugin to touch it, and the alternatives are simply too cumbersome to integrate. For most needs, Simple:Press forum provides all that you need, but I&#8217;ve also mentioned before that it is not as simple to administer as some &#8211; [...]]]></description>
			<content:encoded><![CDATA[<div class="kctIntro">Simple:Press Forum is definitely the best forum software I&#8217;ve used for WordPress.</p>
<p>There is no WordPress plugin to touch it, and the alternatives are simply too cumbersome to integrate.</p></div>
<p>For most needs, Simple:Press forum provides all that you need, but I&#8217;ve also mentioned before that it is not as simple to administer as some &#8211; but only because it has a wealth of options. And under the lid, tweaking the code is not particularly easy &#8211; again because there is so much included that it can be hard to find exactly what you want to change.</p>
<p>Mechanics aside, I have been trying for months to develop a simpler alternative built on posts and comments. This is not the most difficult coding challenge, but it is time-consuming, and there always seems something more important to do. Whilst doing the more important things, I noticed that Pods CMS has recently changed there forum for a completely different, simpler interface.</p>
<p>Looking deeper, I saw that it was based on Stack Overflow. Similar, in some ways, to Yahoo Answers, this approach means that we can focus on answering questions. This is a bit of an eye-opener for me, and I realize that promoting a forum to answer questions and share experiences and opinions is asking too much for one application.</p>
<p>I&#8217;ve decided to split my forum into a Question And Answer Section and a Discussion Forum. In an ideal world, these would be linked, and it would be absolutely possible to build such a beast with Pods CMS. But the time to build this from scratch means I&#8217;d rather look for something usable now, and seek better integration later.</p>
<p>The key here is to find something usable that is easily integrated into WordPress.</p>
<p>Step forward Question2Answer.</p>
<p>I&#8217;ve installed it on own of my sites, and I&#8217;ll report back on the details later. I&#8217;ve no intention to import questions from Simple:Press Forum, as I believe the two applications can work side by side. There will probably be a few more integration issues, but installation of Question2Answer using the WordPress user records was surprisingly easy.</p>
<p>Rather than repeat it here, I&#8217;ll refer you to my <a href="http://www.question2answer.org/qa/428/how-can-i-integrate-it-with-wordpress">Question2Answer WordPress installation notes</a> on the author&#8217;s support site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shrewdies.net/1610/simplepress-forum-is-the-best-good-enough/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wp-config.php Essentials</title>
		<link>http://www.shrewdies.net/452/wp-config-php-essentials/</link>
		<comments>http://www.shrewdies.net/452/wp-config-php-essentials/#comments</comments>
		<pubDate>Sat, 01 May 2010 16:51:43 +0000</pubDate>
		<dc:creator>Keith from shrewdies</dc:creator>
				<category><![CDATA[Foundation]]></category>
		<category><![CDATA[Install WordPress]]></category>
		<category><![CDATA[WordPress setup]]></category>

		<guid isPermaLink="false">http://www.shrewdies.net/?p=452</guid>
		<description><![CDATA[wp-config.php is essential to WordPress. For manual installers, it is set and forget. For automatic installers (SimpleScripts or Fantastico) it is often quite invisible. wp-config.php WordPress Memory Post/Page Revisions wp-config.php Changes Unless something unexpected changes, WordPress 3 adds little different to the way wp-config.php works, so it is still vital to learn a couple of [...]]]></description>
			<content:encoded><![CDATA[<div class="kctIntro">wp-config.php is essential to WordPress.</p>
<p>For manual installers, it is <em>set and forget</em>. For automatic installers (SimpleScripts or Fantastico) it is often quite invisible.</p>
<div style="float:right;border:.1em solid #00009e;background-color:#9e9eff;margin:.7em;padding:.7em;width:38%;color:#00009e;">
<h4>wp-config.php</h4>
<ul>
<li><a href="http://www.shrewdies.net/452/wp-config-php-essentials/#memory">WordPress Memory</a></li>
<li><a href="http://www.shrewdies.net/452/wp-config-php-essentials/#revisions">Post/Page Revisions</a></li>
<li><a href="http://www.shrewdies.net/452/wp-config-php-essentials/#changes">wp-config.php Changes</a></li>
</ul>
</div>
<p>Unless something unexpected changes, WordPress 3 adds little different to the way wp-config.php works, so it is still vital to learn a couple of tweaks.</p></div>
<p>wp-config.php is well documented internally, and the installation instructions tell you what you need to change to make sure that your WordPress installation can see the database.</p>
<p>But, there are two situations that commonly occur in a standard WordPress installation that are far from ideal: memory exhausted messages and excessive page and post revisions.<br />
<span id="more-452"></span></p>
<h2 id="memory">WordPress Memory Problems</h2>
<p>I have mentioned <a href="http://www.shrewdies.net/261/wordpress-upgrade-2-9/">memory problems with WordPress</a> before. Though I only experienced it when upgrading with large plugins like Simple:Press Forum installed, I suspect this can also happen during normal running of some large plugins. Pods CMS has an error report, but as it looks to be a one-off, it could well be due to some other problem.</p>
<p>When I first experienced this problem, I used the temporary solution of de-activating large plugins during the upgrade. However, I later found the permanent solution to be an amendment to wp-config.php, as I noted on the original post, and repeat below.</p>
<h2 id="revisions">Excessive WordPress Revisions</h2>
<p>When WordPress introduced automatic saving of posts with revisions, it looked perfect for undecided people like myself. Changed a post only to realize you prefer an earlier version? No problem with WordPress, as the default installation settings give you a more or less complete revision history. But this can cause a problem if you frequently revise many posts and pages. Not only can you end up with a massive list of revisions on the edit page, but your database is becoming increasingly cluttered with copy upon copy of the same text &#8211; an absolute nightmare if you ever need to directly search or edit the database.</p>
<p>Many people hate the whole idea of revisions, and turn the feature off. I like to keep some recent versions, so I set the number to 3. Whichever you choose, you need to include a step in your installation routine to change the default setting by amending wp-config.php.</p>
<h2 id="changes">wp-config.php Changes</h2>
<p>All you need to do is add the following two lines to wp-config.php. It shouldn&#8217;t matter where you put them, but for convenience I add them before the line that includes <em>&#8220;stop editing&#8221;</em>.<br />
<code>define('WP_MEMORY_LIMIT', '64M');<br />
define('WP_POST_REVISIONS', 3);</code></p>
<p><!--more--><div style="margin-left:-1em;"><table><tr><td><script type="text/javascript"><!--
google_ad_client = "pub-7512621270035949";
/* shrewdies 300x250, created 22/12/09 */
google_ad_slot = "4026195862";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td><td>
<script type="text/javascript"><!--
ch_client = "GoutPal";
ch_type = "mpu";
ch_width = 300;
ch_height = 250;
ch_color_bg = "ffffff";
ch_color_border = "ffffff";
ch_color_title = "00009e";
ch_color_site_link = "00009e";
ch_non_contextual = 4;
ch_vertical ="premium";
ch_sid = "ShrewdiesReward";
ch_alternate_ad_url = "http://www.shrewdies.net/ad.html";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
</script></td></tr></table></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shrewdies.net/452/wp-config-php-essentials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 Beta</title>
		<link>http://www.shrewdies.net/1585/wordpress-3-0-beta/</link>
		<comments>http://www.shrewdies.net/1585/wordpress-3-0-beta/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 15:12:12 +0000</pubDate>
		<dc:creator>Keith from shrewdies</dc:creator>
				<category><![CDATA[Foundation]]></category>
		<category><![CDATA[Install WordPress]]></category>
		<category><![CDATA[WordPress 3]]></category>
		<category><![CDATA[WordPress setup]]></category>

		<guid isPermaLink="false">http://www.shrewdies.net/?p=1585</guid>
		<description><![CDATA[WordPress 3.0 Beta is now available, so I used it today on a new website. I wouldn&#8217;t normally use a beta version on a production website, but the full release will be available before that site is fully live, giving me a chance to test some new features. Site installation continues to be simple, and [...]]]></description>
			<content:encoded><![CDATA[<div class="kctIntro">WordPress 3.0 Beta is now available, so I used it today on a new website.</p>
<p>I wouldn&#8217;t normally use a beta version on a production website, but the full release will be available before that site is fully live, giving me a chance to test some new features.</p></div>
<p>Site installation continues to be simple, and I took the simplest option of using the automatic script provided by my server host. This has the nice option of changing the default admin username to something less guessable &#8211; always a good idea for improved security.</p>
<h2>WordPress Settings</h2>
<p>Settings are the same as version 2, so I made the usual adjustments:<span id="more-1585"></span>
<dl>
<dt>General Settings</dt>
<dd>Tagline and Email. I also ticked the membership so anyone can register, but it would be better to leave this until you get the membership plugins organized (more on this soon).</dd>
<dt>Discussion Settings</dt>
<dd>Enabled threaded comments, with depth set to the maximum of 10. Set moderation to hold comment if 1 link. More on discussion settings when someone asks for it.</dd>
<dt>Privacy Settings</dt>
<dd>Always a good idea to make sure your site is visible. If you can think of a situation where you would set it to block search engines, please tell me.</dd>
<dt>Permalink Settings</dt>
<dd>Vital to select the Custom Structure and change it to <code>/%post_id%/%postname%/</code> (we can discuss why this is so if you like). I usually change the category and tag base to something more site specific &#8211; there might be a slight search engine advantage, but I just think it looks better.</dd>
</dl>
<h2>Other WordPress Configuration</h2>
<p>It really should be categories and plugins next, but I could not resist investigating the new default template &#8211; Twenty Ten (surely not a tribute to Windows Ninety Five?). This seems to be a great improvement, but I have yet to find a WordPress theme that does not need a quick makeover with the editor. I think the essentials of WordPress themes needs a separate topic, so I&#8217;ll do one soon.</p>
<p>There also used to be essential modifications to wp-config.php. I&#8217;ll check this, and report back tomorrow.</p>
<p><!--more--><div style="margin-left:-1em;"><table><tr><td><script type="text/javascript"><!--
google_ad_client = "pub-7512621270035949";
/* shrewdies 300x250, created 22/12/09 */
google_ad_slot = "4026195862";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td><td>
<script type="text/javascript"><!--
ch_client = "GoutPal";
ch_type = "mpu";
ch_width = 300;
ch_height = 250;
ch_color_bg = "ffffff";
ch_color_border = "ffffff";
ch_color_title = "00009e";
ch_color_site_link = "00009e";
ch_non_contextual = 4;
ch_vertical ="premium";
ch_sid = "ShrewdiesReward";
ch_alternate_ad_url = "http://www.shrewdies.net/ad.html";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
</script></td></tr></table></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shrewdies.net/1585/wordpress-3-0-beta/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin: Promotion Tool</title>
		<link>http://www.shrewdies.net/1558/promotion-tools-plugins-wordpress/</link>
		<comments>http://www.shrewdies.net/1558/promotion-tools-plugins-wordpress/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 13:34:21 +0000</pubDate>
		<dc:creator>Keith from shrewdies</dc:creator>
				<category><![CDATA[Form]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[Happiness Today]]></category>
		<category><![CDATA[WordPress blogging]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[WordPress Pods CMS]]></category>

		<guid isPermaLink="false">http://www.shrewdies.net/?p=1558</guid>
		<description><![CDATA[Many of you looking for a WordPress plugin promotion tool have stumbled across my Happiness Today plugin. You seem disappointed that the next version is where the real promotion potential lies, but the good news is that you do not need to wait. If you have downloaded and activated Happiness Today, then you already have [...]]]></description>
			<content:encoded><![CDATA[<div class="kctIntro">Many of you looking for a WordPress plugin promotion tool have stumbled across my <a href="http://www.shrewdies.net/happiness_today" title="WordPress Plugin: Promotion Tool">Happiness Today</a> plugin.</p>
<p>You seem disappointed that the next version is where the real promotion potential lies, but the good news is that you do not need to wait.</p>
<p>If you have downloaded and activated Happiness Today, then you already have a tool for displaying random (or selected) promotion messages in your WordPress posts, pages or sidebar.</p></div>
<p>The main appeal of Pods is the way it makes extending the WordPress database so easy. But stored data is of little use if you cannot present it to your visitors. My first release of Happiness Today was just to prove that, like Hello Dolly does for standard WordPress, it is very easy to build a basic plugin. That basic plugin instantly demonstrates how Pods stores and displays data. In keeping with the Hello Dolly tradition, I displayed random lyrics in the Admin area &#8211; but the real life potential was always to be able to produce something simple yet useful, that can display random promotion messages to visitors.</p>
<p>Those promotional features are included in the current release, just not obvious. Here&#8217;s how to use Pods inbuilt features to get more from the Happiness Today plugin. Start your marketing campaign now.<span id="more-1558"></span></p>
<h2>WordPress Pods Presentation Features</h2>
<p>In the plugin, I present the messages via a Pods template that is called whenever an admin page loads. That template adds formatting to match the admin color scheme, and configurable link buttons. I also present the full set of lyrics on the happiness_today information page using a very simple template that adds nothing but a line break.</p>
<p>Pods output is not restricted to templates that can be as simple or as complex as you need them. Neither is it restricted to Pods pages such as the example mentioned, where you can build a page similar to a WordPress page, but with easy access to your data. You can also include Pods output in regular WordPress posts and pages with a simple shortcode call. Like this:<br />
<!-- This site is running development Happiness Today<br />
       Released version uses different name &#038; template --></p>
<blockquote>Don't let our love go away
<br>
No one wants sadness to stay<br /></blockquote>
<p>That is a simple Pods shortcode wrapped in blockquote tags, but you are only limited by your imagination, and css talents. How about:</p>
<style type="text/css">
.podsdemo
{
	margin:1em 5em 1em 5em;
	padding: 1em;
	border: 1em outset red;
}
p.podsdemo:first-letter
{
	color:#ff0000;
	font-size:200%;
	float:left;
}
p.podsdemo:first-line {
	font-size:110%;
	text-transform: uppercase;
	font-weight:bold;
}</p>
</style>
<p><!-- This site is running development Happiness Today<br />
       Released version uses different name &#038; template --></p>
<div>
<p class="podsdemo">Think of happiness today
<br>
All is one in their own way<br />Think of happiness today
<br>
All is one in their own way<br /></p>
</div>
<p>In this second example, I&#8217;ve set the limit to two records. Note that records are called randomly, but I have included the chorus several times, so that will appear more frequently &#8211; just refresh your browser to see the random effect.</p>
<p>All you need to do is add the following shortcode to your post, page or text widget:</p>
<pre>&#91;pods name="happiness_today_text" order="RAND()" limit="1" template="happiness_today_list"]</pre>
<h2>WordPress Plugin Promotion Tool: Next Steps</h2>
<p>All the data in the <a href="http://www.shrewdies.net/happiness_today" title="WordPress Plugin: Promotion Tool">Happiness Today</a> plugin is easily edited using the Pods data table editing features. In my example, I use couplets from the Think Of Happiness Today lyrics. Though I limit the example text to two lines so that it displays in the admin area properly, you can use any HTML text you like. The Pods WYSIWYG editor allows the usual formatting including hyperlinks, or direct entry of HTML code.</p>
<p>Using Happiness Today for longer visitor messages might make your admin area a little cluttered. No problem &#8211; simply deactivate Happiness Today &#8211; the data management and presentation features that I have discussed here are all part of standard Pods, and will work fine.</p>
<p>In future versions, I&#8217;ll add the ability to import and export different campaign text sets, with other options to make life even easier than it is with the basic release. But you do not need to wait &#8211; the current release can be used for any promotion campaign you can think of, including random advertising. In fact, it does not even need to be random, for instance specific records can be called on specific posts. The only limit is your imagination.</p>
<p><!--more--><div style="margin-left:-1em;"><table><tr><td><script type="text/javascript"><!--
google_ad_client = "pub-7512621270035949";
/* shrewdies 300x250, created 22/12/09 */
google_ad_slot = "4026195862";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td><td>
<script type="text/javascript"><!--
ch_client = "GoutPal";
ch_type = "mpu";
ch_width = 300;
ch_height = 250;
ch_color_bg = "ffffff";
ch_color_border = "ffffff";
ch_color_title = "00009e";
ch_color_site_link = "00009e";
ch_non_contextual = 4;
ch_vertical ="premium";
ch_sid = "ShrewdiesReward";
ch_alternate_ad_url = "http://www.shrewdies.net/ad.html";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
</script></td></tr></table></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shrewdies.net/1558/promotion-tools-plugins-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Pods: Food For Thought</title>
		<link>http://www.shrewdies.net/1445/wordpress-pods-food-for-thought/</link>
		<comments>http://www.shrewdies.net/1445/wordpress-pods-food-for-thought/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 11:41:25 +0000</pubDate>
		<dc:creator>Keith from shrewdies</dc:creator>
				<category><![CDATA[Form]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[WordPress Pods CMS]]></category>

		<guid isPermaLink="false">http://www.shrewdies.net/?p=1445</guid>
		<description><![CDATA[The data-presentation link is vital. To get the best out of WordPress Pods, it pays to study the sample that is packaged with the Pods CMS plugin, and the more advanced examples in the Pods Packages directory. It is also vital to have a clear plan of the presentation outcomes that you need. When describing [...]]]></description>
			<content:encoded><![CDATA[<div class="kctIntro">The data-presentation link is vital. To get the best out of WordPress Pods, it pays to study the sample that is packaged with the Pods CMS plugin, and the more advanced examples in the Pods Packages directory.</p>
<p>It is also vital to have a clear plan of the presentation outcomes that you need.</p></div>
<p>When describing the <a href="http://www.shrewdies.net/1382/wordpress-database-with-pods-wings/">data aspect</a> of my first plugin, I wrote of the importance of thoroughly analyzing the relationship between the presentation of content required, and the structure of data needed to support it. Recently, I saw a question on the <a href="http://podscms.org/forums/installation/cafe-menu">Pods Support Forum</a> that seemed to relate to this area. I was particularly interested in it because the issues seemed to be similar to matters I had encountered with my <a href="http://www.shrewdies.net/shrewdbar/" title="shrewdBar WordPress Menu Bar Plugin">shrewdBar WordPress menu bar plugin</a>.</p>
<p>The difficulty with forum discussions is fully understanding what the issues are. If one is sat with a client, or even on a video link, it is easy to mock up a quick display and discuss what the presentation should actually look like. Difficulties are compounded with cultural and time-zone differences. But, &#8220;All is one in their own way,&#8221; and the power of the Internet allows the following attempt at understanding the problem and suggesting a solution.</p>
<p>I hope it solves the problem it tries to address, but even if it doesn&#8217;t, I&#8217;ve learned a neat CSS trick that I&#8217;ll be using again.</p>
<h2>Basic Pods Data Display</h2>
<p>First, create the Pod (Pods &#8211; Setup &#8211; Pods &#8211; Add new pod) using the data supplied.<img src="http://www.shrewdies.net/wp-content/uploads/wordpress-pods-table.png" alt="WordPress Pods Table" title="WordPress Pods Table" width="434" height="233" class="aligncenter size-full wp-image-1452" /><br />
Second, <span id="more-1445"></span>add some test data (Pods &#8211; Add {name_of_pod}). We could have used the Pod menu settings to make this title more meaningful, or even used a separate menu out of the Pods hierarchy.<br />
Third, create the Template (Pods &#8211; Setup &#8211; Templates &#8211; Add new template)<br />
<img src="http://www.shrewdies.net/wp-content/uploads/wordpress-pods-template.png" alt="WordPress Pods Template" title="WordPress Pods Template" width="548" height="156" class="aligncenter size-full wp-image-1454" />
<p align= "right"><sup><a href="#screenshot">Happiness Today screenshot note</a></sup></p>
<p>Fourth, test the output without any styling using
<pre>&lt;ul>&#91;pods name="shrewdies_cafe_menu"  template="shrewdies_cafe_menu"]&lt;/ul></pre>
<p><img src="http://www.shrewdies.net/wp-content/uploads/wordpress-pods-simple-output.png" alt="WordPress Pods Simple Output" title="WordPress Pods Simple Output" width="176" height="185" class="alignleft size-full wp-image-1458" />Fifth, go back to the template, change the list (li) tag to anchor (a &#8211; because we need to hover), and add the labels for the prices. Then apply some styling.</p>
<p>The span tags in the template seem redundant up to now, but they are there for a very good reason. The popup display in the &#8220;client brief&#8221; didn&#8217;t seem relevant for the small amount of information to display. Given it&#8217;s complexity, I searched for something simpler, and found <a href="http://meyerweb.com/eric/css/edge/popups/demo.html">Eric&#8217;s pure css popups</a>. So, adding some CSS styling, our list is transformed into:</p>
<style type="text/css">
<!--
div#links {width: 166px; height: 300px; font: 16px Verdana, sans-serif; z-index: 100;}
div#links a {display: block; text-align: center; font: bold 1em sans-serif; 
   padding: 5px 10px; margin: 0 0 1px; border-width: 0; 
   text-decoration: none; color: #FFC; background: #444;
   border-right: 5px solid #505050;}
div#links a:hover {color: #411; background: #AAA;
   border-right: 5px double white;}</p>
<p>div#links a span {display: none;}
div#links a > span {display: none;}
div#links a:hover span {display: block;
   position: relative; top: 0px; left: 100; width: 125px;
   padding: 5px; margin: 10px; z-index: 100;
   color: #AAA; background: black;
   font: 10px Verdana, sans-serif; text-align: center;}</p>
<p>-->
</style>
<div id="links"><a href="">Spicy Salver <span>Breakfast Price: $9.99<br />Lunch Price: $15.99<br />Dinner Price: $19.99</span></a><a href="">Golden Gutbuster <span>Breakfast Price: $19.99<br />Lunch Price: $25.99<br />Dinner Price: $29.99</span></a><a href="">Fish Fantasy <span>Breakfast Price: $12.97<br />Lunch Price: $15.97<br />Dinner Price: $19.97</span></a><a href="">Platinum Platter <span>Breakfast Price: $15.99<br />Lunch Price: $18.99<br />Dinner Price: $25.75</span></a><a href="">Bronze Buffet <span>Breakfast Price: $9.99<br />Lunch Price: $11.99<br />Dinner Price: $15.99</span></a></div>
<h3>WordPress Style Notes</h3>
<p>The transforming CSS is called by wrapping our Pods call in an appropriate div:</p>
<pre>&lt;div id="links">&#91;pods name="shrewdies_cafe_menu"  template="shrewdies_cafe_menu"]&lt;/div></pre>
<p>I&#8217;ve taken Eric&#8217;s CSS style and included it in this post, though in practice, you would probably paste it into your theme&#8217;s style sheet. Eric uses his for a menu positioned absolutely near the top left, so I have removed the container styling, and changed the span positioning to relative. I also added the bold line below &#8211; a duplicate of the preceding span line, with a greater than to signify anchor text that is a <a href="http://www.w3.org/TR/CSS21/selector.html#child-selectors">child selector</a> of a span. Without both versions, the span element refuses to hide &#8211; I assume this is a conflict with the styling from my theme.</p>
<pre>&lt;style type="text/css">
&lt;!--
div#links {width: 166px; height: 300px; font: 16px Verdana, sans-serif; z-index: 100;}
div#links a {display: block; text-align: center; font: bold 1em sans-serif;
   padding: 5px 10px; margin: 0 0 1px; border-width: 0;
   text-decoration: none; color: #FFC; background: #444;
   border-right: 5px solid #505050;}
div#links a:hover {color: #411; background: #AAA;
   border-right: 5px double white;}

div#links a span {display: none;}
<b>div#links a > span {display: none;}</b>
div#links a:hover span {display: block;
   position: relative; top: 0px; left: 100; width: 125px;
   padding: 5px; margin: 10px; z-index: 100;
   color: #AAA; background: black;
   font: 10px Verdana, sans-serif; text-align: center;}

-->
&lt;/style>
</pre>
<p><id = "screenshot" hr /></p>
<h4>Happiness Today Screenshot Note</h4>
<p>Though the two screenshots show the same lyrics from Think Of <a href="http://www.shrewdies.net/happiness_today">Happiness Today</a>, do not think that the program has stuck, or in some way does not work. Those lines are the chorus, and I have repeated them in line with the original lyrics. This means that this particular couplet will display more regularly in the display area. If you adapt the plugin for your own promotional purposes, repeat your most important messages, and they will display more frequently.</p>
<p><!--more--><div style="margin-left:-1em;"><table><tr><td><script type="text/javascript"><!--
google_ad_client = "pub-7512621270035949";
/* shrewdies 300x250, created 22/12/09 */
google_ad_slot = "4026195862";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td><td>
<script type="text/javascript"><!--
ch_client = "GoutPal";
ch_type = "mpu";
ch_width = 300;
ch_height = 250;
ch_color_bg = "ffffff";
ch_color_border = "ffffff";
ch_color_title = "00009e";
ch_color_site_link = "00009e";
ch_non_contextual = 4;
ch_vertical ="premium";
ch_sid = "ShrewdiesReward";
ch_alternate_ad_url = "http://www.shrewdies.net/ad.html";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
</script></td></tr></table></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shrewdies.net/1445/wordpress-pods-food-for-thought/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
