<?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>The Tech Repository of Chris Roberts</title>
	<atom:link href="http://croberts.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://croberts.me</link>
	<description></description>
	<lastBuildDate>Wed, 28 Mar 2012 16:12:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Introducing Annie for WordPress</title>
		<link>http://croberts.me/2012/02/16/introducing-annie-for-wordpress/</link>
		<comments>http://croberts.me/2012/02/16/introducing-annie-for-wordpress/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 04:11:29 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Annie WordPress Plugin]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=320</guid>
		<description><![CDATA[A new plugin has entered the WordPress realm: Annie, for all your annotation needs. Annie makes it to add and footnotes to your WordPress posts and pages. You can highlight using the default styles or you can easily add your own. Annie also adds a toolbox which allows your site visitors to or view just...<br /><a href="http://croberts.me/2012/02/16/introducing-annie-for-wordpress/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>A new plugin has entered the WordPress realm: Annie, for all your annotation needs<a name="foot_loc_320_1" id="tippy_tipfoot_tip_320_1_8624" href="#foot_text_320_1"  target="_blank"  class="annie_footnoteRef annie_custom tippy_link"  onmouseover="Tippy.loadTip({ text: 'Disclaimer: Annie does not cover annotation needs that are not covered by Annie.', width: 0, height: 0, id: 'tippy_tipfoot_tip_320_1_8624', title: '', event: event });" onmouseout="Tippy.fadeTippyOut();">1</a>.</p>
<p>Annie makes it <span id="" class="annie_hilight_yellow annie_custom annie_highlightText" highlight="annie_hilight_yellow">easy</span> to add <span id="" class="annie_hilight_green annie_custom annie_highlightText" highlight="annie_hilight_green">highlighting</span> and footnotes to your WordPress posts and pages. You can highlight using the default styles or you can easily add your own. Annie also adds a toolbox which allows your site visitors to <span id="" class="annie_hilight_red_underline annie_custom annie_highlightText" highlight="annie_hilight_red_underline">turn off highlighting</span> or view just your highlighted text<a name="foot_loc_320_2" id="tippy_tipfoot_tip_320_2_5231" href="#foot_text_320_2"  target="_blank"  class="annie_footnoteRef annie_custom tippy_link"  onmouseover="Tippy.loadTip({ text: 'Please suggest additional ideas for the Annie toolbox!', width: 0, height: 0, id: 'tippy_tipfoot_tip_320_2_5231', title: '', event: event });" onmouseout="Tippy.fadeTippyOut();">2</a>. You should be able to see the toolbox at the bottom left of your browser window. The toolbox can be hidden by the user or turned off completely by the site administrator.</p>
<p>If you have <a href="http://croberts.me/tippy/">Tippy</a> installed, you can have your footnotes display in a tooltip as well as at the bottom of your post.</p>
<p>Enjoy! Leave feedback<a name="foot_loc_320_3" id="tippy_tipfoot_tip_320_3_8242" href="#foot_text_320_3"  target="_blank"  class="annie_footnoteRef annie_custom tippy_link"  onmouseover="Tippy.loadTip({ text: 'Leave your feedback here, on the &lt;a href=&quot;http://croberts.me/annie/&quot;&gt;Annie&lt;/a&gt; page, or via my &lt;a href=&quot;http://croberts.me/contact/&quot;&gt;Contact&lt;/a&gt; page.', width: 0, height: 0, id: 'tippy_tipfoot_tip_320_3_8242', title: '', event: event });" onmouseout="Tippy.fadeTippyOut();">3</a>! And learn more at the <a href="http://croberts.me/annie/">Annie</a> page!</p>
<div class="annie_notes annie_custom"><span class="annie_noteHeader annie_custom">Notes:</span><br />
<br /><a name="foot_text_320_1" href="#foot_loc_320_1">1</a>. Disclaimer: Annie does not cover annotation needs that are not covered by Annie.

<br /><a name="foot_text_320_2" href="#foot_loc_320_2">2</a>. Please suggest additional ideas for the Annie toolbox!

<br /><a name="foot_text_320_3" href="#foot_loc_320_3">3</a>. Leave your feedback here, on the <a href="http://croberts.me/annie/">Annie</a> page, or via my <a href="http://croberts.me/contact/">Contact</a> page.
</div>]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2012/02/16/introducing-annie-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Tippy in a theme with manual links</title>
		<link>http://croberts.me/2012/01/23/using-tippy-in-a-theme-with-manual-links/</link>
		<comments>http://croberts.me/2012/01/23/using-tippy-in-a-theme-with-manual-links/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 22:30:00 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Tippy WordPress Plugin]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Tippy]]></category>
		<category><![CDATA[tooltip]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=301</guid>
		<description><![CDATA[In my previous post I showed how to include Tippy calls directly from your theme file where the shortcode is unavailable. In that example, all I wanted was a regular Tippy link so we were able to make use of the tippy_formatLink() function. But let&#8217;s take the example one step farther. What if I don&#8217;t...<br /><a href="http://croberts.me/2012/01/23/using-tippy-in-a-theme-with-manual-links/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://croberts.me/2012/01/23/using-tippy-in-a-theme-file/">previous post</a> I showed how to include Tippy calls directly from your theme file where the shortcode is unavailable. In that example, all I wanted was a regular Tippy link so we were able to make use of the tippy_formatLink() function. But let&#8217;s take the example one step farther. What if I don&#8217;t want a tooltip on a regular link but instead on an image? </p>
<p>For this example, I&#8217;m going to have a smaller image and a larger image. The theme file will automatically display the smaller image under the post title and if you hover over it, it will pop up with the larger image. I could do like last time and add a custom field such as post_tooltip_small_image and post_tooltip_large_image with the url or path to those images, but for this example I&#8217;ll keep it simple and code it in directly.</p>
<p>See the top of this post, just above the title, for the code in action. Here&#8217;s how to get it going:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">301</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tippy_formatLink'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$small_image</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://croberts.me/wp-content/uploads/giraffe_small.jpg&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$large_image</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://croberts.me/wp-content/uploads/giraffe_large.jpg&quot;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tip_title</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tip_content</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$large_image</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tip_content</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/htmlentities"><span style="color: #990000;">htmlentities</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tip_content</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">ENT_QUOTES</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'UTF-8'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a id=&quot;tippy_tipSample0&quot; class=&quot;tippy_link&quot; title=&quot;'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$tip_title</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; href=&quot;http://croberts.me/wp-content/uploads/giraffe_large.jpg&quot; onmouseover=&quot;Tippy.loadTipInfo(\''</span><span style="color: #339933;">.</span> <span style="color: #000088;">$tip_content</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'\', 375, 525, \'tippy_tipSample0\', event);&quot; onmouseout=&quot;Tippy.fadeTippyOut();&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$small_image</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>Lines 1 &#038; 3</strong>: Like in the last example, I&#8217;m only doing this on a specific post, so check post id. Also, make sure Tippy is loaded.</p>
<p><strong>Lines 5 &#038; 6</strong>: Specify where your small and large images are stored.</p>
<p><strong>Line 8</strong>: Specify your tooltip title, if desired.</p>
<p><strong>Line 9</strong>: Specify what you want to display inside your tooltip. In this case, we&#8217;re wanting to display an image.</p>
<p><strong>Line 11</strong>: In the last example, I said to run your content through tippy_format_text() instead of htmlentities(). In this case, however, we need to use htmlentities() (and in some cases may need both htmlentities() and tippy_format_text()!) since we&#8217;re bypassing tippy_formatLink. So before you pass your content string to the JavaScript function, make sure to run it through htmlentities() the way I do it above.</p>
<p><strong>Line 13</strong>: Output the tooltip with your formatting options. If you don&#8217;t want this to be a link, just remove the anchor tag and put the id, onmouseover, and onmouseout calls on your img tag. For example:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;img id=&quot;tippy_tipSample0&quot; class=&quot;tippy_link&quot; onmouseover=&quot;Tippy.loadTipInfo(\''</span><span style="color: #339933;">.</span> <span style="color: #000088;">$tip_content</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'\', 375, 525, \'tippy_tipSample0\', event);&quot; onmouseout=&quot;Tippy.fadeTippyOut();&quot; border=&quot;0&quot; src=&quot;'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$small_image</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Note that not all browsers (*cough*IE 6*cough) recognize onmouseover and onmouseout on image tags.</p>
<p>It is important to know how Tippy.loadTipInfo is declared. In Javascript, this function maps to domTip_loadTipInfo() and it is declared:</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> domTip_loadTipInfo<span style="color: #009900;">&#40;</span>domTip_tipText<span style="color: #339933;">,</span> domTip_tipWidth<span style="color: #339933;">,</span> domTip_tipHeight<span style="color: #339933;">,</span> domTip_tipId<span style="color: #339933;">,</span> domTip_event<span style="color: #339933;">,</span> domTip_tipTitle<span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
<p>Whatever id you use for id=&#8221;" in the link or image tag, be sure to pass it to domTip_tipId<br />
Set domTip_tipWidth and domTip_tipHeight to 0 if you want them to use default values.<br />
You should always pass <code class="codecolorer html4strict dawn"><span class="html4strict">even</span></code> for domTip_event<br />
domTip_tipTitle can be empty, unless you want to show a header title on the tooltip.</p>
<p>That should about do it!</p>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2012/01/23/using-tippy-in-a-theme-with-manual-links/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Tippy in a theme file</title>
		<link>http://croberts.me/2012/01/23/using-tippy-in-a-theme-file/</link>
		<comments>http://croberts.me/2012/01/23/using-tippy-in-a-theme-file/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 06:42:22 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Tippy WordPress Plugin]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Tippy]]></category>
		<category><![CDATA[tooltip]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=284</guid>
		<description><![CDATA[Tippy was created to work with WordPress shortcodes, but what do you do if you want to use Tippy directly within your theme file? Simple! You pay me $4.7 million and ask me to do it for you! Short of that, it is fairly simple to add Tippy calls directly to your WordPress theme file....<br /><a href="http://croberts.me/2012/01/23/using-tippy-in-a-theme-file/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Tippy was created to work with WordPress shortcodes, but what do you do if you want to use Tippy directly within your theme file? Simple! You pay me $4.7 million and ask me to do it for you!</p>
<p>Short of that, it is fairly simple to add Tippy calls directly to your WordPress theme file. Here&#8217;s how.</p>
<p>For this post, I&#8217;ll be putting together a specific example, but you can adapt this for whatever you are doing.</p>
<p>Let&#8217;s say I want to add some custom metadata to a WordPress post and I would like a way to automatically display that metadata in a tooltip underneath the post title. For this example, I have modified my WordPress theme&#8217;s single.php file and have done just that, so you should see a Tippy link under the post title at the top of this page. In my post I added two custom fields: post_popup_title and post_popup_content &#8211; the purpose of these should be self explanatory.</p>
<p>Here is the coded I added to single.php to get it to display the above Tippy link:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">284</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tippy_formatLink'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tip_title</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span>get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_popup_title'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tip_content</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span>get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_popup_content'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tip_content</span> <span style="color: #339933;">=</span> tippy_format_text<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tip_content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> tippy_formatLink<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tip_title</span><span style="color: #339933;">,</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tip_content</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">400</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Note that I&#8217;m only running this code on a specific post, hence my check with get_the_ID()</p>
<p><strong>Line 3</strong>: Make sure the plugin is loaded and accessible.</p>
<p><strong>Lines 5 &amp; 6</strong>: retrieve title &amp; content from the metadata</p>
<p><strong>Line 8</strong>: run the content through the tippy_format_text() function; this performs some automatic conversions to make sure html, etc, work properly without making JavaScript mad. Note that you should use tippy_format_text() instead of htmlentities(). When you create the Tippy link via tippy_formatLink(), htmlentities() is automatically applied.</p>
<p><strong>Line 10</strong>: Get and output the Tippy tooltip link using tippy_formatLink(). It is declared as:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> tippy_formatLink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tippyShowHeader</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tippyTitle</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tippyHref</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tippyText</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tippyCustomClass</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tippyItem</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tippyWidth</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tippyHeight</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
<p>The variables should all be self-explanatory, but feel free to post a comment if any of these are unclear.</p>
<p>That&#8217;s it! Of course you can set $tip_title and $tip_content to whatever you want; just be sure to pass $tip_content through tippy_format_text() or you might get a JavaScript error when hovering over the link. </p>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2012/01/23/using-tippy-in-a-theme-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A creative and fun use of Tippy</title>
		<link>http://croberts.me/2012/01/22/a-creative-and-fun-use-of-tippy/</link>
		<comments>http://croberts.me/2012/01/22/a-creative-and-fun-use-of-tippy/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 04:39:22 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Tippy WordPress Plugin]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=280</guid>
		<description><![CDATA[Came across the E-Journal Barrelhouse tonight. It bills itself as &#8220;Fiction. Poetry. Pop flotsam. Cultural jetsam.&#8221; It is an online literary site to showcase the current musings of pop culture. Recently, they have featured a number of works of poetry, and one of those works included a bit of inline annotation via Tippy. Check it...<br /><a href="http://croberts.me/2012/01/22/a-creative-and-fun-use-of-tippy/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Came across the E-Journal <a href="http://www.barrelhousemag.com/">Barrelhouse</a> tonight. It bills itself as &#8220;Fiction. Poetry. Pop flotsam. Cultural jetsam.&#8221; It is an online literary site to showcase the current musings of pop culture. Recently, they have featured a number of works of poetry, and one of those works included a bit of inline annotation via Tippy. <a href="http://www.barrelhousemag.com/?page_id=1972">Check it out!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2012/01/22/a-creative-and-fun-use-of-tippy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing Mensy for WordPress</title>
		<link>http://croberts.me/2012/01/15/introducing-mensy-for-wordpress/</link>
		<comments>http://croberts.me/2012/01/15/introducing-mensy-for-wordpress/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 03:33:14 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Mensy WordPress Plugin]]></category>
		<category><![CDATA[drop down]]></category>
		<category><![CDATA[Mensy]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=276</guid>
		<description><![CDATA[Adding yet another plugin to my repertoire, I have created the Mensy plugin for WordPress. Unlike my other plugins, Mensy is not intended to be used within posts and pages (though it will work just fine there!) but will find most of its use in themes and layouts. Mensy makes it easy to create drop-down...<br /><a href="http://croberts.me/2012/01/15/introducing-mensy-for-wordpress/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Adding yet another plugin to my repertoire, I have created the <a href="http://croberts.me/mensy/">Mensy</a> plugin for WordPress. Unlike my other plugins, Mensy is not intended to be used within posts and pages (though it will work just fine there!) but will find most of its use in themes and layouts.</p>
<p>Mensy makes it easy to create drop-down menus using a standard ul/li list of links. Mensy allows multiple levels and includes some tracking code to make navigating the menu more elegant. </p>
<p>Using a plugin like Mensy is superior to a pure CSS drop-down menu since Mensy allows features such as more advanced styling, level notifications, and brief delays fading out a menu if the user mouses out accidentally.</p>
<p>Mensy is written in CSS and JavaScript and relies on jQuery for much of its magic. </p>
<p>Learn more and see a demo at the <a href="http://croberts.me/mensy/">Mensy page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2012/01/15/introducing-mensy-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Value Checking in PHP with isset() and empty()</title>
		<link>http://croberts.me/2011/12/26/value-checking-in-php-with-isset-and-empty/</link>
		<comments>http://croberts.me/2011/12/26/value-checking-in-php-with-isset-and-empty/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 05:54:06 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=258</guid>
		<description><![CDATA[PHP has several functions which can be used to determine certain things about the value of a variable. None of these functions are particularly complex, but they can be difficult to tell apart &#8211; for instance, when to use empty() versus isset(). The PHP Doc site has a Type Comparison Table demonstrating the result you...<br /><a href="http://croberts.me/2011/12/26/value-checking-in-php-with-isset-and-empty/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>PHP has several functions which can be used to determine certain things about the value of a variable. None of these functions are particularly complex, but they can be difficult to tell apart &#8211; for instance, when to use <a href="http://php.net/manual/en/function.empty.php">empty()</a> versus <a href="http://php.net/manual/en/function.isset.php">isset()</a>.</p>
<p>The PHP Doc site has a <a href="http://php.net/manual/en/types.comparisons.php">Type Comparison Table</a> demonstrating the result you get from these comparison functions based on several different values. This table serves as a great reference to find out which function is designed to provide the kind of comparison you need.</p>
<p>For this post, I want to focus on three specific ways of checking values. Considering the following:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$nullvar</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$setvar</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;we are set.&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$setbutfalse</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>What happens when you run isset(), empty(), or if() on each of these variables? Here are some pointers:</p>
<p><span style="font-weight: bold; font-size: 14px;">isset()</span></p>
<ul>
<li>isset() returns true if a variable is set, no matter what its contents. The contents may be: false, 0, &#8221;, or anything else, and isset() will still return true. So long as the variable has had some value set, it will be true. There is one exception.</li>
<li>isset() returns false if a variable has never been set or if a variable has been assigned the specific keyword NULL (i.e., $var = NULL;).</li>
<li>For the above variables, isset($nullvar) will be false; isset($setvar) will be true; isset($setbutfalse) will be true.</li>
</ul>
<p><span style="font-weight: bold; font-size: 14px;">empty()</span></p>
<ul>
<li>empty() returns true for any variable that is not set, contains no value, or contains a value that equals zero (such as 0, &#8220;0&#8243;, false, etc).</li>
<li>For the above variables, empty($nullvar) will be true; empty($setvar) will be false; empty($setbutfalse) will be true.</li>
</ul>
<p><span style="font-weight: bold; font-size: 14px;">if()</span></p>
<ul>
<li>if($var) does essentially the opposite of empty($var). When checking a variable with if($var), it will return true if the variable is set and contains some value other than zero/false.</li>
<li>For the above variables, if ($nullvar) will be false; if ($setvar) will be true; if ($setbutfalse) will be false.</li>
</ul>
<p><span style="font-weight: bold; font-size: 14px;">When to use which?</span><br />
It depends on what you are trying to do.</p>
<ul>
<li>If you want to see if a variable is set, period, and don&#8217;t care what its value is, use isset().</li>
<li>If you want to see if a variable is empty or contains a value that equals 0 or false, use empty().</li>
<li>If you want to see if a variable is <i>not</i> empty <b>and</b> <i>does not</i> contain a false/zero value, use !empty(). For example, if (!empty($passed)).</li>
<li>For the above example, you could also use if ($passed) and it would do the same thing.</li>
</ul>
<p>Perhaps this post helps clear a little of the fog. Perhaps it just makes the fog thicker. Either way, it shows that PHP has a lot of little tools to meet a lot of use cases. In PHP, there are many ways to skin a cat. The trick is knowing which way is best. </p>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2011/12/26/value-checking-in-php-with-isset-and-empty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Tippy Outside WordPress</title>
		<link>http://croberts.me/2011/12/17/using-tippy-outside-wordpress/</link>
		<comments>http://croberts.me/2011/12/17/using-tippy-outside-wordpress/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 17:13:35 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Tippy WordPress Plugin]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tippy]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=245</guid>
		<description><![CDATA[Tippy has been written with WordPress in mind, but what if you want to use Tippy outside of WordPress &#8211; in a static HTML file, another CMS, or a custom project? In such situations, it will not be possible to use the Tippy short tags, but you can still use Tippy following the approach described...<br /><a href="http://croberts.me/2011/12/17/using-tippy-outside-wordpress/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Tippy has been written with WordPress in mind, but what if you want to use Tippy outside of WordPress &#8211; in a static HTML file, another CMS, or a custom project? In such situations, it will not be possible to use the Tippy short tags, but you can still use Tippy following the approach described in <a href="http://croberts.me/2011/10/11/using-tippy-without-the-tags/">Using Tippy Without the Tags</a>. To make it work, you will need to be sure and include any files needed by Tippy: jQuery, dom_tooltip.js, and dom_tooltip.factory.css.</p>
<p>I have put together an example: <a href="http://croberts.me/misc/static_tippy.html">Tippy on a Static Page</a>. Go there and view the page source to see how to set it up, or scroll around the code example below.</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span>Static Tippy Example<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://croberts.me/wp-content/plugins/tippy/dom_tooltip.factory.css&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://croberts.me/wp-content/themes/croberts/js/jquery-1.6.1.min.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://croberts.me/wp-content/plugins/tippy/dom_tooltip.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tippy.tipPosition = &quot;link&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tippy.tipOffsetX = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tippy.tipOffsetY = 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tippy.fadeRate = 300;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tippy.sticky = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tippy.showClose = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;background-color: #ddd;&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;width: 700px; margin: 0 auto; background-color: white; border: 1px dashed #333; padding: 20px;&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The purpose of this page is to show how you can use Tippy in a regular HTML file (or any other type of page) without having to go through WordPress. View the source of this page and note the files that must be included: dom_tooltip.factoy.css; jQuery; dom_tooltip.js. Also note the settings that must be initialized in the script section.<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Here is a <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tippy_link&quot;</span> tippyTitle<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy Link&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mydiv&quot;</span> <span style="color: #000066;">onmouseover</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy.loadTipInfo('Easy peasy.', 0, 0, 'mydiv', event);&quot;</span> <span style="color: #000066;">onmouseout</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy.fadeTippyOut();&quot;</span>&gt;</span>Tippy Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span> set up in a standard HTML page.<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Below, see Tippy applied on an image:<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tippy_tipSample0&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tippy_link&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy with an image&quot;</span> <span style="color: #000066;">onmouseover</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy.loadTipInfo('You can put anything in your Tippy tooltips. Just be aware that things like &amp;quot; will have to be converted to html entities. View source and look for this line for an example.&lt;br /&gt;&lt;br /&gt;&lt;img src=&amp;quot;http://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/NGC_4414_%28NASA-med%29.jpg/291px-NGC_4414_%28NASA-med%29.jpg&amp;quot; /&gt;</span></span>', 0, 0, 'tippy_tipSample0', event);&quot; onmouseout=&quot;Tippy.fadeTippyOut();&quot;&gt;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;height: 200px;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://croberts.me/wp-content/uploads/2011/05/giraffe.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2011/12/17/using-tippy-outside-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enscriptured.com</title>
		<link>http://croberts.me/2011/10/17/enscriptured-com/</link>
		<comments>http://croberts.me/2011/10/17/enscriptured-com/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 05:22:13 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Enscriptured]]></category>
		<category><![CDATA[Bible]]></category>
		<category><![CDATA[reading]]></category>
		<category><![CDATA[reading plan]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=240</guid>
		<description><![CDATA[I&#8217;ve finally gotten around to updating the contents of my Enscriptured page. Head over there to learn more about my personal project that allows users to create highly customized Bible reading plans.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally gotten around to updating the contents of my <a href="http://croberts.me/enscriptured/">Enscriptured</a> page. Head over there to learn more about my personal project that allows users to create highly customized Bible reading plans.</p>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2011/10/17/enscriptured-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Tippy without the tags</title>
		<link>http://croberts.me/2011/10/11/using-tippy-without-the-tags/</link>
		<comments>http://croberts.me/2011/10/11/using-tippy-without-the-tags/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 15:49:06 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Tippy WordPress Plugin]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tippy]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=219</guid>
		<description><![CDATA[One question I get asked a lot is if it is possible to use Tippy directly on elements rather than through the Tippy short tag. The short answer is yes, it is possible, and here&#8217;s how. This is a regular div, but I&#8217;ve added onmouseover and onmouseout calls to the div. The Tippy function is...<br /><a href="http://croberts.me/2011/10/11/using-tippy-without-the-tags/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>One question I get asked a lot is if it is possible to use Tippy directly on elements rather than through the Tippy short tag. The short answer is yes, it is possible, and here&#8217;s how.</p>
<div id="mydiv" style="background-color: #ccc; padding: 2px;" tippyTitle="Tippy in a div" onmouseover="Tippy.loadTipInfo('Here is an example of using Tippy with a div element.', 0, 0, 'mydiv', event);" onmouseout="Tippy.fadeTippyOut();">
This is a regular div, but I&#8217;ve added onmouseover and onmouseout calls to the div. The Tippy function is being called directly rather than using the shortcode to handle the call for me.
</div>
<p>Here is how it looks:</p>
<div class="codecolorer-container html4strict dawn" style="border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> tippyTitle<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy in a div&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mydiv&quot;</span> <span style="color: #000066;">onmouseover</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy.loadTipInfo('Here is an example of using Tippy with a div element.', 0, 0, 'mydiv', event);&quot;</span> <span style="color: #000066;">onmouseout</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy.fadeTippyOut();&quot;</span>&gt;</span><br />
div content<br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p>The most important parts are in onmouseover and onmouseout. The function Tippy.loadTipInfo() creates and displays the Tippy object, while Tippy.fadeTippyOut makes it go away.</p>
<p>Notice that in my example above, the div has a special attribute, tippyTitle. There are a few options for setting the tooltip title. With Tippy 3.6.4, options are limited: set the tippyTitle attribute, or let Tippy do its default behavior of grabbing the content of its tag, in this case, everything in the div. That would be a long title, so it&#8217;s far from ideal.</p>
<p>Tippy 3.7.0 adds two new options: manually specify, the title attribute, or pass the title to the Tippy.loadTipInfo() function. With Tippy 3.7.0, here are the parameters for loadTipInfo:</p>
<p>Tippy.loadTipInfo(text, width, height, id, event, title)</p>
<ul>
<li>Text is whatever you want to display inside the body of the tooltip.</li>
<li>Width and height specify the size of the tooltip. Set 0 to use default values.</li>
<li>id passes along the id of the element containing the tooltip. In this case, we want the tooltip to attach to the div with id mydiv so we pass mydiv for the id parameter.</li>
<li>An event object must be passed in.</li>
<li>Finally, the new parameter is the title. When you write the Tippy code, instead of specifying the title or tippyTitle attribute on your div element, specify the title in the function call.</li>
</ul>
<p>Here is another example:</p>
<div id="secondDiv" style="background-color: #ccc; padding: 2px;" onmouseover="Tippy.loadTipInfo('Display more tooltip info.', 0, 0, 'secondDiv', event, 'Second div example.');" onmouseout="Tippy.fadeTippyOut();">
Yay to Tippy in divs!
</div>
<p>&nbsp;</p>
<div class="codecolorer-container html4strict dawn" style="border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;secondDiv&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;background-color: #ccc; padding: 2px;&quot;</span> <span style="color: #000066;">onmouseover</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy.loadTipInfo('Display more tooltip info.', 0, 0, 'secondDiv', event, 'Second div example.');&quot;</span> <span style="color: #000066;">onmouseout</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy.fadeTippyOut();&quot;</span>&gt;</span><br />
Yay to Tippy in divs!<br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p>Note that when you manually write this out, you need to be careful of what you put in your tooltip text. Something like the following will not work:</p>
<div class="codecolorer-container html4strict dawn" style="border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;badDiv&quot;</span> <span style="color: #000066;">onmouseover</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tippy.loadTipInfo('I'll try to display an image: &lt;img src=&quot;</span>myimage.png<span style="color: #ff0000;">&quot; /&gt;</span></span>', 0, 0, 'badDiv', event, 'This won't work.');&quot; onmouseout=&quot;Tippy.fadeTippyOut();&quot;&gt;</div></div>
<p>Single quotes and double quotes inside the text or title parameters will throw off the JavaScript. When you use the Tippy shortcode, the plugin will automatically run the text through the following PHP function:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://www.php.net/htmlentities"><span style="color: #990000;">htmlentities</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tippyText</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">ENT_QUOTES</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'UTF-8'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>If you want to manually add Tippy links to your layout, you may want to use this function to keep quotes from going where they don&#8217;t belong.</p>
<p>Hope that helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2011/10/11/using-tippy-without-the-tags/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Announcing Glossy for WordPress</title>
		<link>http://croberts.me/2011/09/23/announcing-glossy-for-wordpress/</link>
		<comments>http://croberts.me/2011/09/23/announcing-glossy-for-wordpress/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 00:02:33 +0000</pubDate>
		<dc:creator>Chris Roberts</dc:creator>
				<category><![CDATA[Glossy WordPress Plugin]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[glossy]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://croberts.me/?p=201</guid>
		<description><![CDATA[Introducing a brand new WordPress plugin: Glossy. The idea for Glossy came from some comments on the Tippy plugin. A few users asked about a way to create a tooltip that can be reused in multiple posts. By itself, Tippy cannot do this, so Glossy was born. With Glossy, you can create Glossy entries in...<br /><a href="http://croberts.me/2011/09/23/announcing-glossy-for-wordpress/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Introducing a brand new WordPress plugin: Glossy.</p>
<p>The idea for Glossy came from <a href="http://croberts.me/tippy-for-wordpress/#comment-654">some</a> <a href="http://croberts.me/tippy-for-wordpress/#comment-793">comments</a> on the Tippy plugin. A few users asked about a way to create a tooltip that can be reused in multiple posts. By itself, Tippy cannot do this, so Glossy was born.</p>
<p>With Glossy, you can create Glossy entries in your dashboard and refer to those entries using shortcode. For instance, I created a Glossy entry with some information on the New York Stock Exchange. Just using Tippy, if I wanted to include that tooltip on multiple pages, I&#8217;d have to re-enter everything for the tooltip in every post. With Glossy, it is only necessary to use a piece of shortcode:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[gs NYSE]</div></td></tr></tbody></table></div>
<p>Example: <a id="tippy_tipglossy_3423" href="http://www.nyse.com/"  target="_blank"  class="glossy_tip tippy_link"  onmouseover="Tippy.loadTip({ text: '&lt;div style=&quot;float: left; width: 200px;&quot;&gt;According to Wikipedia, the New York Stock Exchange is  by far the world&amp;#8217;s largest stock exchange by market capitalization of its listed companies at US$13.39 trillion as of Dec 2010. Average daily trading value was approximately US$153 billion in 2008.&lt;/div&gt;&lt;div style=&quot;float: right; width: 400px;&quot;&gt;&lt;img src=&quot;http://upload.wikimedia.org/wikipedia/commons/9/99/NYC_NYSE.jpg&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;', width: 650, height: 500, id: 'tippy_tipglossy_3423', title: 'The New York Stock Exchange', event: event });" onmouseout="Tippy.fadeTippyOut();">The New York Stock Exchange</a></p>
<p>Learn more at the <a href="http://croberts.me/glossy/">Glossy page</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://croberts.me/2011/09/23/announcing-glossy-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

