<?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>Mark Middleton - Exploring Love, Brilliance and Freedom</title>
	<atom:link href="http://www.markmiddleton.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markmiddleton.com</link>
	<description>Exploring Love, Brilliance and Freedom</description>
	<lastBuildDate>Mon, 09 Apr 2012 12:48:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Expression Engine: adding placeholder to text fields</title>
		<link>http://www.markmiddleton.com/2011/12/expression-engine-adding-placeholder-to-text-fields/</link>
		<comments>http://www.markmiddleton.com/2011/12/expression-engine-adding-placeholder-to-text-fields/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 09:37:29 +0000</pubDate>
		<dc:creator>Mark Middleton</dc:creator>
				<category><![CDATA[Brilliance]]></category>

		<guid isPermaLink="false">http://www.markmiddleton.com/?p=113</guid>
		<description><![CDATA[With a simple tweak to the text fieldtype file, placeholder text is added to all text fields]]></description>
			<content:encoded><![CDATA[<p>Safecracker has been a huge leap forward in managing front-end &#8220;stand alone entry forms&#8221; (SAEFs).   One feature I was looking for is to simply add the attribute &#8220;placeholder&#8221; in each of the standard text input fields.</p>
<p>With a simple tweak to the text fieldtype file, this was an easy add: (EE version 2.3.1)</p>
<ul>
<li>In /(your system folder)/expressionengine/fieldtypes/text/ft.text.php</li>
<li>Make the following modification:</li>
</ul>
<p>Before Modification:<br />
<code>	function display_field($data)<br />
	{<br />
		$type = (isset($this-&gt;settings['field_content_type'])) ? $this-&gt;settings['field_content_type'] : 'all';</p>
<p>		$data = $this-&gt;_format_number($data, $type);</p>
<p>		return form_input(array(<br />
			'name'		=&gt; $this-&gt;field_name,<br />
			'id'		=&gt; $this-&gt;field_name,<br />
			'value'		=&gt; $data,<br />
			'dir'		=&gt; $this-&gt;settings['field_text_direction'],<br />
			'maxlength'	=&gt; $this-&gt;settings['field_maxl'],<br />
			'field_content_type' =&gt; $type<br />
		));<br />
	}</code><br />
After Modification<br />
<code>function display_field($data)<br />
	{<br />
		$type = (isset($this-&gt;settings['field_content_type'])) ? $this-&gt;settings['field_content_type'] : 'all';</p>
<p>		$data = $this-&gt;_format_number($data, $type);</p>
<p>		return form_input(array(<br />
			'name'		=&gt; $this-&gt;field_name,<br />
			'id'		=&gt; $this-&gt;field_name,<br />
			'value'		=&gt; $data,<br />
			'dir'		=&gt; $this-&gt;settings['field_text_direction'],<br />
			'maxlength'	=&gt; $this-&gt;settings['field_maxl'],<br />
			'placeholder' =&gt; $this-&gt;settings['field_label'],  // this line added to show placeholder text<br />
			'field_content_type' =&gt; $type<br />
		));<br />
	}<br />
</code><br />
PROS:</p>
<ul>
<li>simple fix</li>
<li>places placeholder text in all text fields added by safecracker</li>
</ul>
<p>CONS:</p>
<ul>
<li>places placeholder text in ALL text fields (no function to only display if desired, etc&#8230;)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.markmiddleton.com/2011/12/expression-engine-adding-placeholder-to-text-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Roots and Wings (T-Minus 5 Days)</title>
		<link>http://www.markmiddleton.com/2011/01/roots-and-wings/</link>
		<comments>http://www.markmiddleton.com/2011/01/roots-and-wings/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 18:29:14 +0000</pubDate>
		<dc:creator>Mark Middleton</dc:creator>
				<category><![CDATA[Freedom]]></category>
		<category><![CDATA[Love]]></category>

		<guid isPermaLink="false">http://www.markmiddleton.com/?p=63</guid>
		<description><![CDATA[Today is Monday, and this week is busy! This coming Saturday, Nick, Isabelle Pug, and I are leaving for Rome, Italy for a 3 month temporary office relocation.   We sublet our place in Hollywood, CA and have rented a one bedroom apartment on the 4th floor of a building 2 blocks from the Vatican. [...]]]></description>
			<content:encoded><![CDATA[<p>Today is Monday, and this week is busy!</p>
<div id="attachment_66" class="wp-caption alignleft" style="width: 310px"><a href="http://www.markmiddleton.com/wp-content/uploads/2011/01/roots_and_wings.jpg"><img class="size-medium wp-image-66" title="Roots and Wings" src="http://www.markmiddleton.com/wp-content/uploads/2011/01/roots_and_wings-300x250.jpg" alt="" width="300" height="250" /></a><p class="wp-caption-text">image courtesy JM Scott - http://cargocollective.com/jmscott</p></div>
<p>This coming Saturday, Nick, Isabelle Pug, and I are leaving for Rome, Italy for a 3 month temporary office relocation.   We sublet our place in Hollywood, CA and have rented a one bedroom apartment on the 4th floor of a building 2 blocks from the Vatican.  The Rome apartment has high speed internet and balcony with views over the busy street and the Dome of St. Peter&#8217;s over the rooftops.</p>
<p>Preparations are in full swing.  Isabelle has been vaccinated and a host of paperwork completed to ensure a speedy entrance to the EU.  She is having an International Microchip placed under her skin &#8211; as the US uses a system that is different from the rest of the world (say it isn&#8217;t so&#8230;).  My lost passport has been replaced (I pick it up tomorrow morning from the Federal Building on Wilshire near the 405), and Nick is having a loose filling in his tooth fixed this morning.  We have our confirmation on the apartment in Rome, and a deposit received from my lovely tenant in LA.  I&#8217;ll be storing my truck at Dudley&#8217;s, and all personal items we&#8217;re not bringing with us are going into Nick&#8217;s closet.</p>
<p>The last time I was in the Eternal City was in November of 2002 with my mom, her ex-husband and my (now estranged) ex-best friend, Mike.  We were there to celebrate my mom&#8217;s 50th birthday with a 10 day &#8220;highlights of Italy tour&#8221;.  It was here where I had a very key moment of revelation that helped me through some very deeply embedded walls in my life.  A few minutes at the top spire of St. Peter&#8217;s looking out over Rome helped me ask some very challenging questions of myself, God and my relationships.</p>
<blockquote><p>&#8220;Let a man so account of us, as of the ministers of Christ, and stewards of the mysteries of God.&#8221;<br />
1 Cor 4:1 KJV</p></blockquote>
<p>By 2002, I had put myself through 7 years of regimented reparative therapy to cure the Gay in me.  Frequent counseling with Exodus International, accountability sessions with hetero couples, dating some fantastic women, 40 day &#8220;juice fasts&#8221; were performed each year during lent were just a few of the self-imposed disciplines I engaged in.  I fully believed that if I surrendered to God enough, he would fix what was broken.  But, as God would have it, He helped me discover what was broken and what wasn&#8217;t &#8211; and helped me start the process of unraveling the mystery.  We&#8217;ll be exploring this in more detail in the next 3 months.</p>
<p>For the first time in many years, I feel like I have both roots and wings.  The roots of my faith, my love of family and friends, and the seeds of appreciation for myself and what I have to offer to this world.  I fly on the wings of freedom from judgement, a passion for people and a hope for humanity as we continue to evolve through these most interesting times.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markmiddleton.com/2011/01/roots-and-wings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

