<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">Masuga Design</title>
    <subtitle type="text">News and updates from Masuga Design</subtitle>
    <link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/" />
    <link rel="self" type="application/atom+xml" href="http://www.masugadesign.com/site/atom/" />
    <updated>2009-06-30T17:20:56Z</updated>
    <rights>Copyright (c) 2009, Masuga Design</rights>
    <generator uri="http://expressionengine.com/" version="1.6.6">ExpressionEngine</generator>
    <id>tag:masugadesign.com,2009:03:11</id>


    <entry>
      <title>MD Markitup</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/md-markitup/" />	
		      <id>tag:masugadesign.com,2009:the-lab/scripts/8.262</id>
      <published>2009-01-06T22:59:55Z</published>
      <updated>2009-06-30T17:20:56Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Extensions"
        label="Extensions" />
      <content type="html"><![CDATA[
        <p>Posted In: The Lab.</p>
Version: 1.6.1<br />Create a "Markitup" custom field type for your textareas in the ExpressionEngine Control Panel	<h3 id="overview">Overview</h3>

 <img class="flLeft" src="/images/uploads/posts/mdmarkitup_custom_field.png" width="300" height="230" alt="MD Markitup Custom Field" />

	<p>Add an <strong>MD Markitup (<span class="caps">MDMIU</span>)</strong> custom field type so you can make use of some of the great features of <a href="http://markitup.jaysalvat.com/home/">Markitup!</a> by adding custom buttons to your textareas in the ExpressionEngine control panel. </p>

	<p>Set the default height and default text formatting of your field right on the custom field screen, just as you would with a default EE textarea.</p>

 <br clear="all" />

	<h3 id="requirements">Requirements</h3>

	<p>The scripts and files required for <span class="caps">MDMIU</span> to work are:</p>

	<ul>
		<li>The extension and language files <em>(Included)</em></li>
		<li>The <a href="http://www.jquery.com/">jQuery</a> JavaScript library. <em>(Separate download)</em></li>
		<li>The <a href="http://markitup.jaysalvat.com/home/">Markitup!</a> script. <em>(Separate download)</em></li>
		<li>The sets that you want to utilize (default, Textile, Markdown), and the basic EE skin <em>(Included)</em></li>
		<li>If using <a href="http://thresholdstate.com/articles/4312/the-textile-reference-manual">Textile</a> or <a href="http://daringfireball.net/projects/markdown/basics">Markdown</a>, make sure you have the correct EE plugins installed. <em>(Separate downloads)</em></li>
	</ul>

	<h4 id="plugins">Using Textile and Markdown in ExpressionEngine</h4>

	<p>In order to use either Textile or Markdown with MD Markitup, you first have to have those plugins installed. Grab the <a href="http://expressionengine.com/downloads/details/textile/">Textile plugin</a> and the <a href="http://expressionengine.com/downloads/details/markdown/">Markdown</a> plugins and drop either or both of those in your <em>system</em>/plugins/ folder.</p>

	<p>After installing the plugins, you will need to enable the plugins for <em>each</em> custom field for which you want them to appear. This is an easy, yet somewhat tedious process. Here is the process, assuming just the Textile plugin for now:</p>

	<ol>
		<li>Install the Textile plugin into your <em>system</em>/plugins/ folder</li>
		<li>Create and Submit a new custom field. It doesn&#8217;t matter if it is <span class="caps">MDMIU</span> or a textarea off the bat. When you <em>create</em> a field, the only options available under &#8220;Default Text Formatting for This Field&#8221; are None, Auto &lt;br /&gt;, and <span class="caps">XHTML</span>.</li>
		<li>Back at the Custom Fields screen, click on your new field to go back in and edit it.</li>
		<li>You will now notice an &#8220;Edit List&#8221; link to the right of the Default Text Formatting dropdown. Click this, and click OK at the prompt (as long as you haven&#8217;t made other changes, because they will be lost).</li>
		<li>You will now see a list of all your plugins. Select &#8220;Yes&#8221; next to Textile and click &#8220;Update&#8221;.</li>
		<li>You will now be able to select Textile from the Text Formatting dropdown. When you do, you will see a red warning message appear above the field&#8217;s Update button.</li>
		<li>If you have previous entries you would like to apply your new formatting to, check the &#8220;Update all existing weblog entries&#8221; box. If not, skip the box and just click &#8220;Update&#8221;.</li>
		<li>You now have a field whose default text formatting is set to textile. When you are on a Publish or Edit page, you will be able to see Textile (as well as all the default formatting settings) in the Field Formatting dropdowns below your custom fields.</li>
	</ol>

	<p>Pretty tedious, right? If you&#8217;re not averse to some basic EE core hackery, there is an article at devot:ee explaining a small hack you can do to your EE install so that (as long as you have the plugin(s) installed), you don&#8217;t have to add them manually to every field&#8217;s text formatting list. You can <a href="http://devot-ee.com/articles/item/show-your-custom-field-formatting-list-whos-boss/">read the article at devot-ee.com</a>.</p>

	<h3 id="features">Features</h3>

 <img class="flLeft" src="/images/uploads/posts/mdmarkitup_features.png" width="576" height="242" alt="MD Markitup Features" />
 <br clear="all" />

	<p>Markitup helps make the textareas in your ExpressionEngine control panel much more powerful and flexible.</p>

	<ol>
		<li><strong>Per-field buttons:</strong> Control what buttons show on what fields to help guide the user to what can and can&#8217;t be done in a field.</li>
		<li><strong>Advanced Functionality:</strong> Mark something as &#8216;Bold&#8217;, drop in whole chunks of <span class="caps">HTML</span>, make a TinyUrl with <span class="caps">AJAX</span>, or use Markitup! callback functions (or plugins) to do other advanced things. Create your own buttons that can do almost anything you can think of using the power of Markitup!.</li>
		<li><strong>Resize handle:</strong> Ability to easily increase the height of the viewing area while editing</li>
		<li><strong>Spellchecking:</strong> Most all the features of the regular EE textareas are available</li>
		<li><strong>Field Formatting:</strong> Change the field formatting from the default setting on a per-entry basis on your <span class="caps">MDMIU</span> fields.</li>
	</ol>

	<p>Also:</p>

	<ul>
		<li><strong>Nested Buttons:</strong> Nest buttons to group similar functions (such as 5 different ways to insert an image, for example), and leave more room for other buttons or a clean look above your textareas</li>
		<li><strong>Moxiecode:</strong> Tie an MD Markitup field to Moxiecode&#8217;s Image and File managers for very robust image and file placement</li>
	</ul>

	<p>Markitup is <em>not</em> a <del><span class="caps">WYSIWTF</span></del> <span class="caps">WYSIWYG</span> editor, but works much like the native EE textareas do, showing the markup itself.</p>

	<h3 id="user-guide">Download and Installation</h3>

	<p>The following section outlines MD Markitup usage from download through configuration.</p>

	<h4 id="download">Download</h4>

	<p>After purchasing and downloading the latest version of the <span class="caps">MDMIU</span> package and extracting the zip file, you will have the following files:</p>

	<ul class="fileoutline">
		<li><strong>extensions/</strong>
	<ul>
		<li>ext.md_markitup.php</li>
	</ul></li>
		<li><strong>language/</strong>
	<ul>
		<li>lang.md_markitup.php</li>
	</ul></li>
		<li><strong>tools/</strong>
	<ul>
		<li><strong>markitup/</strong>
	<ul>
		<li><strong>sets/</strong>
	<ul>
		<li><strong>_shared_images/</strong>
	<ul>
		<li><em>(30 icon files)</em></li>
	</ul></li>
		<li><strong>default/</strong>
	<ul>
		<li>set.js</li>
		<li>style.css</li>
	</ul></li>
		<li><strong>markdown/</strong>
	<ul>
		<li>set_markdown.js</li>
		<li>style_markdown.css</li>
	</ul></li>
		<li><strong>textile/</strong>
	<ul>
		<li>set_textile.js</li>
		<li>style_textile.css</li>
	</ul></li>
	</ul></li>
		<li><strong>skins/</strong>
	<ul>
		<li><strong>simple_ee/</strong>
	<ul>
		<li><strong>images/</strong>
	<ul>
		<li><em>(3 image files)</em></li>
	</ul></li>
		<li>simple_ee.css</li>
	</ul></li>
	</ul></li>
	</ul></li>
	</ul></li>
		<li><span class="caps">README</span>_changelog.txt</li>
	</ul>

	<h4 id="install">Installation</h4>

 <img class="flLeft" src="/images/uploads/posts/markitup_installpath.png" width="576" height="151" alt="MD Markitup Default Folder Structure" />
 <br clear="all" />

	<p>Installation is relatively straightforward. The default installation setup is shown above.</p>

	<ol>
		<li>Copy /extensions/ext.md_markitup.php file to your /extensions/ directory in the system folder</li>
		<li>Copy /language/english/lang.md_markitup.php file to your /languages/english/ directory (also in system folder)</li>
		<li>Place /tools/ at the root of your site. This is the default, and it&#8217;s useful to place it there in case you&#8217;d like to use Markitup on the front end of your site as well, eg. for comments. You can change the location of this folder (or omit it altogether) &#8211; just make sure to update the path to your Markitup scripts in the extension settings</li>
		<li><a href="http://markitup.jaysalvat.com/downloads/">Download Markitup!</a> and place the script file in the markitup folder.</li>
		<li>Open the Extension Manager (Admin &rarr; Utilities &rarr; Extensions Manager)</li>
		<li>Enable Extensions if not already enabled (the global setting)</li>
		<li>Enable MD Markitup</li>
		<li>Click &#8220;Settings&#8221; to modify the settings (see below)</li>
	</ol>

	<p>You do not <em>need</em> to place your markitup in a &#8216;tools&#8217; folder &#8211; but this becomes very handy later on if you decide to work with Moxicode Image and File managers. You can put the support scripts for those into the &#8216;tools&#8217; folder as well. More info on Moxiecode below.</p>

	<h3 id="configure">Settings: Configure MD Markitup</h3>

 <img class="flLeft" src="/images/uploads/posts/mdmarkitup_settings.png" width="576" height="408" alt="MD Markitup Settings" />
 <br clear="all" />

	<p>These instructions are being fleshed out as I have time. If you have specific questions, please email me.</p>

	<h4 id="extension-access">Extension Access</h4>

	<p class="ext-setting">Enable MD Markitup for this site?</p>

<pre><code>Yes/No
</code></pre>

	<p>MD Markitup is <span class="caps">MSM</span> aware (EE&#8217;s <a href="http://expressionengine.com/docs/cp/sites/index.html">Multiple Site Manager</a>). Set whether MD Markitup can be used on the current site.</p>

	<h4 id="scripts">Scripts</h4>

	<p class="ext-setting">jQuery Core v1.2.6</p>

<pre><code>http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
</code></pre>

	<p>By default, this is pointed to the <a href="http://code.google.com/apis/ajaxlibs/">Google <span class="caps">AJAX</span> Libraries <span class="caps">API</span> version of jQuery</a>. If you are using ExpressionEngine 1.6.5+ this setting will be ignored if you have activated the CP jQuery extension &#8211; which would already load jQuery for use in the control panel.</p>

	<p class="ext-setting">Markitup JS</p>

<pre><code>http://www.yoursite.com/tools/markitup/jquery.markitup.pack.js
</code></pre>

	<p>You must download and install the Markitup! script separately. Because a skin and sets are included in the <span class="caps">MDMIU</span> download, you only need to worry about the Markitup! script itself. Set the path to the script here. It will default to the &#8216;tools&#8217; path you see above, taking the domain from the <strong><span class="caps">URL</span> to the root directory of your site</strong> setting under  Admin &rarr; System Preferences &rarr; General Configuration.</p>

	<h4 id="miu-skin">Markitup Skin</h4>

	<p class="ext-setting">Path to the Skin Directory</p>

<pre><code>http://www.yoursite.com/tools/markitup/skins/simple_ee/
</code></pre>

	<p>The Simple EE skin is a modified version of the default Markitup! Simple skin, modified to better fit with the EE control panel. There are certain <span class="caps">CSS</span> settings included in the simple_ee skin that ensure the Publish menu flyout menu stays above any <span class="caps">MDMIU</span> toolbars, among other things. If you prefer to use your own skin, just direct the extension to it here.</p>

	<p class="ext-setting">Name of the skin&#8217;s <span class="caps">CSS</span> File</p>

<pre><code>simple_ee.css
</code></pre>

	<p>This is here to allow you some flexibility with what you name the <span class="caps">CSS</span> file for your skin, in case you don&#8217;t like the &#8220;style.css&#8221; name that is the usual name in Markitup! skins.</p>

	<h4 id="miu-sets">Markitup Sets</h4>

	<p>There are three sets included with MD Markitup.</p>

	<h5 id="miu-sets-default">Default Set</h5>

	<p>The Default set will be used for fields whose formatting is set to &#8220;None&#8221;, &#8220;<span class="caps">XHTML</span>&#8221;, and Auto &lt;br /&gt;. The Default set is always enabled.</p>

	<p class="ext-setting">Path to Default Set</p>

<pre><code>http://www.yoursite.com/tools/markitup/sets/default/
</code></pre>

	<p class="ext-setting">Name of Default <span class="caps">CSS</span> File</p>

<pre><code>style.css
</code></pre>

	<p class="ext-setting">Name of Default JS File</p>

<pre><code>style.js
</code></pre>

	<h5 id="miu-sets-textile">Textile Set</h5>

	<p>This is only enabled for fields whose formatting is set to &#8220;Textile&#8221;.</p>

	<p class="ext-setting">Enable Markitup Textile?</p>

<pre><code>Yes/No
</code></pre>

	<p>Textile is enabled by default. Setting this to &#8220;No&#8221; will remove the lines from the control panel header that include the Textile set and <span class="caps">CSS</span> file.</p>

	<p class="ext-setting">Path to Textile Set</p>

<pre><code>http://www.yoursite.com/tools/markitup/sets/textile/
</code></pre>

	<p class="ext-setting">Name of Textile <span class="caps">CSS</span> File</p>

<pre><code>style_textile.css
</code></pre>

	<p>This allows you the flexibility to rename this file, which is named &#8220;style_textile.css&#8221; by default.</p>

	<p class="ext-setting">Name of Textile JS File</p>

<pre><code>set_textile.js
</code></pre>

	<p>This allows you the flexibility to rename this file, which is named &#8220;set_textile.js&#8221; by default.</p>

	<p class="ext-setting">Show documentation link for Textile Set?</p>

<pre><code>Yes/No
</code></pre>

	<p>This will show or hide a visible link to Textile documentation.</p>

	<p class="ext-setting"><span class="caps">URL</span> for Textile styling documentation</p>

<pre><code>http://thresholdstate.com/articles/4312/the-textile-reference-manual
</code></pre>

	<p>If there is certain documentation you would rather point to, change the <span class="caps">URL</span> here.</p>

	<h5 id="miu-sets-markdown">Markdown Set</h5>

	<p>This is only enabled for fields whose formatting is set to &#8220;Markdown&#8221;.</p>

	<p class="ext-setting">Enable Markitup Markdown?</p>

<pre><code>Yes/No
</code></pre>

	<p>Markdown is turned off by default. Setting this to &#8220;Yes&#8221; will put the proper lines in the control panel header to include the Markdown set and <span class="caps">CSS</span> file.</p>

	<p class="ext-setting">Path to Markdown Set</p>

<pre><code>http://www.yoursite.com/tools/markitup/sets/markdown/
</code></pre>

	<p class="ext-setting">Name of Markdown <span class="caps">CSS</span> File</p>

<pre><code>style_markdown.css
</code></pre>

	<p>This allows you the flexibility to rename this file, which is named &#8220;style_markdown.css&#8221; by default.</p>

	<p class="ext-setting">Name of Markdown JS File</p>

<pre><code>set_markdown.js
</code></pre>

	<p>This allows you the flexibility to rename this file, which is named &#8220;set_markdown.js&#8221; by default.</p>

	<p class="ext-setting">Show documentation link for Markdown Set?</p>

<pre><code>Yes/No
</code></pre>

	<p>This will show or hide a visible link to Markdown documentation.</p>

	<p class="ext-setting"><span class="caps">URL</span> for Markdown styling documentation</p>

<pre><code>http://daringfireball.net/projects/markdown/basics
</code></pre>

	<p>If there is certain documentation you would rather point to, change the <span class="caps">URL</span> here.</p>

	<h4 id="misc-settings">Misc Settings</h4>

	<p class="ext-setting">Enable Spellchecking?</p>

<pre><code>Yes/No
</code></pre>

	<p>This will show or hide the &#8220;Check Spelling&#8221; link that shows below the <span class="caps">MDMIU</span> field, next to the field formatting. If you have elected to hide field formatting on a field, the &#8220;Check Spelling&#8221; link will still show if you have this setting set to &#8220;Yes&#8221;. </p>

	<h4 id="updates">Check for Updates</h4>

	<p class="ext-setting">Would you like this extension to check for updates and display them on your CP homepage?</p>

<pre><code>Yes/No
</code></pre>

	<p>MD Markitup can call home (http://masugadesign.com) and check for recent updates. For this to work, you need to install the <a href="http://leevigraham.com/cms-customisation/expressionengine/lg-addon-updater/">LG Addon Updater</a> Extension.</p>

	<h3 id="usage">MD Markitup Usage</h3>

	<h4 id="usage-general">General</h4>

	<p><span class="caps">MDMIU</span> fields work just like default EE textareas, except that the <span class="caps">MIU</span> buttons are appended to the top of the textarea and a resize handle appears at the bottom (the resize handle does not appear in Safari). Usage is as simple as setting a custom field to be an MD Markitup field.</p>

	<p>The included sets include some basic buttons, as well as a sample nested button. You may wish to remove or hide (there are two different things) some of these buttons.</p>

	<p><strong>A quick Note About Multi-Line List Creation and Markitup!</strong><br />
Contrary to what has been mentioned in the EE forums regarding Markitup! and its failure to support multi-line list creation, you <em>can</em> make multiple lines into list items all at once. Select all the lines, hold Control-Shift, and click either the Ordered or Unordered list buttons. All of your line items will become list items. This is also documented on the <a href="http://markitup.jaysalvat.com/documentation/">Markitup! Documentation page</a>, under &#8220;Keys&#8221;.</p>

	<h4 id="usage-css">Hide and Seek with <span class="caps">CSS</span></h4>

	<p>It&#8217;s easy to apply only certain buttons to certain fields. See the included <span class="caps">CSS</span> files in the sets for examples. <em>Full instructions are coming soon.</em></p>

	<h4 id="usage-css-advanced">Advanced <span class="caps">CSS</span> Tricks</h4>

	<p>You can also change things such as the font family, font size, background, and more on a per-field basis. It&#8217;s just a matter of further modifying the <span class="caps">CSS</span> file for your set. </p>

	<p><em>Better and more complete instructions coming soon &#8211; I&#8217;m working on this documentation as I have time.</em></p>

	<h4 id="usage-moxiecode">Utilizing Moxiecode&#8217;s Image and File Managers</h4>

	<p>MD Markitup works well with both Moxiecode&#8217;s Image Manager and File Manager scripts. There is some information in <a href="http://expressionengine.com/forums/viewthread/82013/P108/#533034">this post from the MD Markitup thread</a> in the ExpressionEngine forums on making some buttons that work with the JS functions that tie MD Markitup to Moxiecode. </p>

	<p><em>More detailed instructions coming soon.</em></p>

	<h3 id="troubleshooting">Troubleshooting and Support</h3>

	<p>No one likes it when something doesn&#8217;t work out of the box. I&#8217;ll be happy to help you get MD Markitup working for you on your site. The <em>best</em> way to get help is to support@masugadesign.com. You may want to look over the following questions first &#8211; or better yet, copy them into your email and answer them for me. That will give me the best head start to help you out. Not all of these may apply to you, but they are a collection of my most common questions to people looking for help:</p>

	<ol>
		<li>What version and build of EE are you using?</li>
		<li>Is this an <span class="caps">MSM</span> site, or a single site?</li>
		<li>What other extensions do you have installed?</li>
		<li>You have created a custom field, and selected MD Markitup as the field type?</li>
		<li>You have downloaded and installed <a href="http://markitup.jaysalvat.com/downloads/">the actual Markitup script</a> from Jay Salvat&#8217;s site?</li>
		<li>Per the default install, you have a tools folder at the root of your site, with a markitup folder in it, which includes Jay&#8217;s Markitup script? If you have deviated at all, can you explain where your files reside and what our setup is?</li>
		<li>The path settings are correct for the extension if you have elected to put your Markitup script elsewhere?</li>
		<li>If you&#8217;re interested in Textile or Markdown, you have downloaded those plugins and installed them?</li>
		<li>Can you check to see (through Firebug or just viewing source) if jQuery is being loaded more than once on your edit tab?</li>
	</ol>

	<h3 id="release-notes">Release Notes</h3>

	<p>Included in the download is a file called <strong><span class="caps">README</span>_changelog.txt</strong> that contains all changes per release. They are also listed here for easy reference:</p>

	<h4 id="v161">Version 1.6.1 (Feb 27, 2009)</h4>

	<ul class="versionnotes">
		<li>Fixed a jQuery conflict that arose when installed along with some other add-ons (particularly others that also use jQuery but may be in &#8220;noconflict&#8221; mode)</li>
		<li>Reformatted the <span class="caps">README</span>.</li>
		<li>Removed jQuery version number when checking or setting <strong>$SESS-&gt;cache[&#8216;scripts&#8217;][&#8216;jquery&#8217;] = <span class="caps">TRUE</span></strong></li>
	</ul>

	<h4 id="v160">Version 1.6.0 (Dec 29, 2008)</h4>

	<ul class="versionnotes">
		<li>Removed &#8220;Remove Toolbar&#8221; link and text explaining field formatting</li>
		<li>Added &#8220;simple_ee&#8221; skin to the download and altered styles for it</li>
		<li>Updated set JavaScript files for default, Textile, and Markdown</li>
		<li>Some code cleanup in the extension file</li>
		<li>Added settings to allow custom filenames for each set.js file, and the main skin.css file</li>
		<li>Changed default <span class="caps">CSS</span> file names, and default CP skin to &#8216;simple_ee&#8217;</li>
	</ul>

	<h4 id="v158">Version 1.5.8 (Nov 19, 2008)</h4>

	<ul class="versionnotes">
		<li>Added &#8216;textarea&#8217; class to the markitup textareas</li>
		<li>Fixed names in text_formatting_buttons function</li>
		<li>Added &#8220;/tools/&#8221; to the default script paths</li>
		<li>Put the JS/CSS for the default set before Textile, Markdown lines</li>
		<li>General cleanup (deleting comments, changing some &#8220;\n&#8221;&#8216;s to NL&#8217;s)</li>
	</ul>

	<h4 id="v157">Version 1.5.7 (Nov 19, 2008)</h4>

	<ul class="versionnotes">
		<li>Fixed typo in JS</li>
		<li>Added htmlspecialcharacters to textarea</li>
		<li>Removed version number from language file</li>
		<li>Added the <span class="caps">README</span>_changelog.txt file</li>
	</ul>

	<h4 id="v156">Version 1.5.6</h4>

	<ul class="versionnotes">
		<li>Spellchecking is independent of show formatting</li>
		<li>Unobtrusively open documentation links in new window</li>
	</ul>

	<h4 id="v155">Version 1.5.5</h4>

	<ul class="versionnotes">
		<li>Disable quicksave if field formatting changes on any of the fields</li>
		<li>Made spellchecking optional</li>
	</ul>

	<h4 id="v154">Version 1.5.4</h4>

	<ul class="versionnotes">
		<li>Ability to change formatting on field-by-field basis</li>
		<li>Added spellcheck</li>
	</ul>

	<h4 id="v153">Version 1.5.3</h4>

	<ul class="versionnotes">
		<li>Added hidden field for explicitly setting field formatting (EE 1.6.5 issue)</li>
	</ul>

	<h4 id="v152">Version 1.5.2</h4>

	<ul class="versionnotes">
		<li>Added settings for more flexibility on placement</li>
		<li>Added check for CP jQuery.</li>
	</ul>

	<h4 id="v151">Version 1.5.1</h4>

	<ul class="versionnotes">
		<li>Fixed a conflict with other extensions calling jQuery (i.e. LG Live Look)</li>
	</ul>

	<h4 id="v150">Version 1.5.0</h4>

	<ul class="versionnotes">
		<li>Added LG Addon Updater compatibility</li>
		<li><span class="caps">MSM</span> aware</li>
		<li>Added namespaces for multiple different instances</li>
		<li>System folder path fix</li>
		<li>Added &#8216;skin&#8217; setting and updated settings page</li>
	</ul>

	<h4 id="v110">Version 1.1.0</h4>

	<ul class="versionnotes">
		<li>Changed name to MD Markitup</li>
	</ul>

	<h4 id="v100">Version 1.0.0</h4>

	<ul class="versionnotes">
		<li>Initial release. Sort of Beta.</li>
	</ul>

	<h3 id="license">License</h3>

	<p>MD Markitup is a commercial script for use with the ExpressionEngine <span class="caps">CMS</span> and is subject to the <a href="http://www.masugadesign.com/info/commercial-license-agreement/">Commercial License Agreement</a>.</p>

	<h3 id="copyrights-credits">Copyrights and Credits</h3>

	<p><a href="http://markitup.jaysalvat.com/home/"><strong>Markitup!</strong></a> was authored by <a href="http://www.jaysalvat.com/">Jay Salvat</a> and is released under a <span class="caps">MIT</span>/GPL license. </p>

	<p><a href="http://www.famfamfam.com/lab/icons/silk/"><strong>Fam Fam Fam Silk Icons</strong></a> (some of which I&#8217;ve included as default images in the download package) were created by Mark James, a web developer from Birmingham, UK. </p>

	<p>Moxicode <a href="http://tinymce.moxiecode.com/plugins_imagemanager.php">Image Manager</a> and <a href="http://tinymce.moxiecode.com/plugins_filemanager.php">File Manager</a> are copyright <a href="http://www.moxiecode.com/">Moxiecode Systems AB</a>. </p>

	<p>Thanks to Karl Swedberg of <a href="http://learningjquery.com">learningjquery.com</a> for his help with some custom functions in the set.js files that help MD Markitup play nice with Moxiecode Image and File managers.</p>

	<p>Thanks to <a href="http://leevigraham.com/">Leevi Graham</a> for creating the jQuery plugin for creating a Table of Contents, <a href="http://github.com/newism/nsm.toc.jquery_plugin/tree/master">nsm-<span class="caps">TOC</span></a> (used on this page). </p>

	<h3 id="script-misc">Miscellaneous</h3>

	<p><strong>Further Development</strong><br />
There are some things this extension lacks, I&#8217;m sure. I am open to suggestions, help, snippets of code that will help make it better, and any awesome examples of how you got MD <span class="caps">MIU</span> to do excellent things in the ExpressionEngine Control Panel. You can leave comments here or in the forum thread (see below). Also feel free to email support@masugadesign.com with suggestions.</p>

	<p><strong>ExpressionEngine Forum Thread</strong> <br />
You&#8217;re welcome to leave comments here, but I&#8217;ll bet most of the action is on the EE Forums. The <a href="http://expressionengine.com/forums/viewthread/82013/">related EE Forum thread for Markitup is here</a>.</p>

	<p><strong>Anything Missing?</strong><br />
Is there something that wasn&#8217;t covered here, or wasn&#8217;t explained well enough? Have suggestions? Please support@masugadesign.com me and let me know what&#8217;s missing or what could be improved.</p>      ]]></content>
    </entry>

    <entry>
      <title>MD Color Picker</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/md-color-picker/" />	
		      <id>tag:masugadesign.com,2009:the-lab/scripts/8.267</id>
      <published>2009-03-11T02:11:23Z</published>
      <updated>2009-03-11T02:12:25Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Extensions"
        label="Extensions" />
      <content type="html"><![CDATA[
        <p>Posted In: The Lab.</p>
Version: 1.0.0<br />Add a jQuery-driven color picker custom field type for ExpressionEngine.	<p>This extension requires FieldFrame.</p>      ]]></content>
    </entry>

    <entry>
      <title>Moxiecode Authentication</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/moxiecode-authentication/" />	
		      <id>tag:masugadesign.com,2009:the-lab/scripts/8.266</id>
      <published>2009-01-06T20:01:44Z</published>
      <updated>2009-01-07T14:40:45Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Extensions"
        label="Extensions" />
      <content type="html"><![CDATA[
        <p>Posted In: The Lab.</p>
Version: 0.2.0<br />Restricts Access to MCFileManager and MCImageManager and adds Moxie scripts to EE Control Panel head	<p>If you&#8217;re going to use Moxiecode Image and/or File manager with <a href="http://www.masugadesign.com/the-lab/scripts/md-markitup/">MD Markitup</a> you would probably do well to download this extension and enable it. This extensions restricts access to MCFileManager and MCImageManager and adds the Moxiecode scripts to EE Control Panel header on Publish and Edit pages so the Moxie window will launch from your Markitup field buttons.</p>

	<p>This extension looks out for and plays nice with Leevi Graham&#8217;s <a href="http://leevigraham.com/cms-customisation/expressionengine/lg-image-manager/">LG Image Manager</a> and <a href="http://leevigraham.com/cms-customisation/expressionengine/lg-file-manager/">LG File Manager</a> extensions, which also load the Moxie scripts in the Control Panel header (so if you have an entry that has an LG File Manager field and also a field that uses MD Markitup, the scripts shouldn&#8217;t get loaded twice).</p>

	<p class="footnote"><em>Damn &#8211; though I&#8217;ve been using this for weeks, I had no idea where this original code came from. Just found out that it&#8217;s Greg Wood&#8217;s work, from <a href="http://expressionengine.com/forums/viewthread/66073/#363793">this EE forum post</a> </em></p>      ]]></content>
    </entry>

    <entry>
      <title>MD Live Search</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/md-live-search/" />	
		      <id>tag:masugadesign.com,2009:the-lab/scripts/8.265</id>
      <published>2009-01-04T20:33:48Z</published>
      <updated>2009-03-05T14:20:49Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Extensions"
        label="Extensions" />
      <content type="html"><![CDATA[
        <p>Posted In: The Lab.</p>
Version: 1.2.1<br />Add a Live Search to your ExpressionEngine Control Panel for weblog entries and comments.	<p>I use <a href="http://expressionengine.com/forums/viewthread/38361/">Mark Huot&#8217;s Live Search</a> extension on most of the sites I&#8217;ve built with EE, but I thought it could use a few updates, including the ability to show the date of the entry, the weblog, and the status. I&#8217;ve updated the extension with these extras (as settings) as well as a couple other settings. I initially intended to convert this to jQuery, but that proved to be a bit beyond my current coding skills &#8211; so this is still a self-contained file. <em>Thanks to Mark Huot for giving me the OK to release this.</em></p>

	<ul>
		<li><span class="caps">MSM</span> Aware</li>
		<li>Works with LG Addon Updater to let you know if the version you&#8217;re using is outdated</li>
	</ul>

 <img class="flLeft" src="http://www.masugadesign.com/images/uploads/posts/live_search__flyout.jpg" width="220" height="375" alt="MD Live Search" />
 <br clear="all" />
 <br />


	<h4>Basic Steps for Installing and Using MD Live Search</h4>

	<ol>
		<li>Download the script from GitHub</li>
		<li>Put the ext.md_live_search.php file in your extensions folder</li>
		<li>Put the lang.md_live_search.php file in your language/english folder</li>
		<li>Enable the extension, and modify any of the settings you need</li>
	</ol>

 <img class="flLeft" src="http://www.masugadesign.com/images/uploads/posts/livesearch_settings.jpg" width="220" height="358" alt="MD Live Search Settings" />
 <br clear="all" />
 <br />


	<h4>Status Coloring</h4>

	<p>In order to get proper coloring of the statuses in the results, the color for the custom status should be in full Hex format. For example, don&#8217;t use &#8220;orange&#8221; as a status color, use &#8220;FF9900&#8221;.</p>

	<p>There is no related forum thread for this, as this is just a quick update to an oldie but a goodie that I wanted to do for myself. Use this at your own risk and all that.</p>      ]]></content>
    </entry>

    <entry>
      <title>Recent Work on Travel Channel&#8217;s &#8220;World Hum&#8221;</title>

	
		      <link rel="alternate" type="text/html" href="http://www.masugadesign.com/news-and-notes/item/recent-work-on-travel-channels-world-hum/" />
		      <id>tag:masugadesign.com,2008:news-and-notes/3.263</id>
      <published>2008-12-31T02:40:20Z</published>
      <updated>2009-02-25T06:20:21Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Web Design"
        label="Web Design" />
      <category term="News"
        label="News" />
      <content type="html"><![CDATA[
        <p>Posted In: News & Notes.</p>
	<p>In mid-December 2008, <a href="http://www.worldhum.com">World Hum</a> relaunched with a new design and a revamped ExpressionEngine install under the hood. World Hum was recently acquired by the Travel Channel, and underwent a redesign. Working closely with the design team at the Travel Channel, Masuga Design was enlisted to do the front-end <span class="caps">CSS</span> and <span class="caps">HTML</span>, and to overhaul the existing ExpressionEngine installation, making it more robust and flexible.</p>

	<p>The editors at World Hum had been using ExpressionEngine for years, so they were already familiar with the system and its ease of use, but we took it to a new level, allowing the editors more options than they&#8217;ve ever had before, and allowing them incredible control over their new, wonderfully redesigned site.</p>

	<p>Congrats to the Travel Channel and the editorial team at World Hum on the relaunch of a site that caters to so many passionate travelers around the world!</p>      ]]></content>
    </entry>

    <entry>
      <title>MD Character Count</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/md-character-count/" />	
		      <id>tag:masugadesign.com,2008:the-lab/scripts/8.261</id>
      <published>2008-11-14T17:17:01Z</published>
      <updated>2009-03-06T06:27:02Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Extensions"
        label="Extensions" />
      <content type="html"><![CDATA[
        <p>Posted In: The Lab.</p>
Version: 1.0.4<br />Show character counts below textareas, text inputs, and MD Markitup fields in the CP.	<h3>Overview</h3>

 <img class="flLeft" src="http://www.masugadesign.com/images/uploads/posts/charcount_settings.jpg" width="575" height="407" alt="MD Character Count Settings" />
 <br clear="all" />
 <br />


	<p>Show character counts below textareas, text inputs, and <a href="/the-lab/scripts/markitup/">MD Markitup</a> fields in the CP. You can set character counts to &#8220;soft&#8221; (default) which is more of a suggestion, or &#8220;hard&#8221; which will limit the field to that many characters and no more. You can also customize the message underneath each field.</p>

	<ul>
		<li><span class="caps">MSM</span> Aware</li>
		<li>Works with LG Addon Updater to let you know if the version you&#8217;re using is outdated</li>
	</ul>

	<h4>Basic Steps for Installing and Using MD Character Count</h4>

 <ol>
 <li>Put the ext.md_character_count.php file in your extensions folder</li>
 <li>Put the lang.md_character_count.php file in your language/english folder</li>
 <li>Put the jquery.charcounter.js file anywhere you like&#8212;you&#8217;ll reference it in the extension settings</li>
 <li>Enable the extension, and modify any of the settings you need</li>
 </ol>

 <img class="flLeft" src="http://www.masugadesign.com/images/uploads/posts/charcount_sample.jpg" width="360" height="155" alt="MD Character Count" />
 <br clear="all" />
 <br />


	<h4>Settings</h4>

	<p>There are a number of settings.<br />
<strong>Extension Access</strong> &#8211; Enable access on a site-by site basis if using <span class="caps">MSM</span> (Multi-Site Manager)<br />
<strong>Scripts</strong> &#8211; MD Character Count requires two scripts. They are <a href="http://jquery.com">jQuery Core v1.2.6+</a> and a modified version of <a href="http://www.tomdeater.com/jquery/character_counter/">the jQuery Charcounter Plugin</a> (modified version is bundled with the extension). If you are using EE 1.6.5+, you can simply enable the CP jQuery extension that is included in the extensions folder.<br />
<strong>Character Count Fields</strong> &#8211; This extension loops through all of the fields in your site and lists all the textareas, text inputs, and <a href="/the-lab/scripts/markitup/">MD Markitup</a> fields. There are three settings for each of your custom fields: Count, Count Type, and Count Format. </p>

	<ul>
		<li><strong>Count</strong> &#8211; If field is left blank then no count will display or be imposed.</li>
		<li><strong>Count Type</strong> &#8211; A &#8220;soft&#8221; count allows the user to type beyond the max set in &#8220;Count&#8221;. When the max is exceeded, the Count Format will change style (specified in the <span class="caps">CSS</span>) as a warning. A hard count will cap the text entry so that the Count cannot be exceeded. <strong><span class="caps">NOTE</span>:</strong> Be careful assigning a field that already has data in it to a &#8220;hard&#8221; count, as you will lose the characters beyond the number in your Count field.</li>
		<li><strong>Count Format</strong> &#8211; If nothing is entered, the format will default to: &#8220;%1/_count_ characters remaining&#8221; where &#8220;%1&#8221; is the number of typed characters, and <em>count</em> is the number entered in the Count field. You can enter anything here (note that <em>count</em> is not a real variable. If you need the max shown in the Count Format, you have to enter it manually). There are samples shown in the extension settings.</li>
	</ul>

	<p><strong><span class="caps">CSS</span></strong> &#8211; The default styles for the text that shows below your fields can be altered here.<br />
<strong>Check for updates?</strong> &#8211; Works with LG Addon Updater. If you have LG Addon Updater installed, and this is set to &#8220;Yes&#8221;, you will be notified of new updates on the Control Panel homepage.</p>

 <br clear="all" />

	<h4>EE Forum Thread</h4>

	<p>There is a <a href="http://expressionengine.com/forums/viewthread/96988/" rel="external">related EE Forum thread for MD Character Count here</a>. </p>      ]]></content>
    </entry>

    <entry>
      <title>MD Show Expired</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/md-show-expired/" />	
		      <id>tag:masugadesign.com,2008:the-lab/scripts/8.259</id>
      <published>2008-10-16T03:17:33Z</published>
      <updated>2009-03-08T06:01:34Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Extensions"
        label="Extensions" />
      <content type="html"><![CDATA[
        <p>Posted In: The Lab.</p>
Version: 1.0.0<br />Show (and filter!) expired entries on the Edit page in the EE Control Panel	<h3>Overview</h3>

 <img class="flLeft" src="http://www.masugadesign.com/images/uploads/posts/show_expired_sample.jpg" width="498" height="332" alt="Show Expired Entries in EE" />
 <br clear="all" />
 <br />


	<p>There wasn&#8217;t an easy way to show, or filter, your expired entries in EE until now. This extension allows you to easily see what entries are expired &#8211; or set to expire in the future. A brand new dropdown is inserted in the search area of the Edit page so you can also filter by entries that are expired. Very handy if you use EE&#8217;s built in entry expiration!</p>

	<ul>
		<li><span class="caps">MSM</span> Aware</li>
		<li>Works with LG Addon Updater to let you know if the version you&#8217;re using is outdated</li>
	</ul>

	<h4>Basic Steps for Installing and Using MD Show Expired</h4>

 <ol>
 <li>Put the ext.md_show_expired.php file in your extensions folder</li>
 <li>Put the lang.md_show_expired.php file in your language/english folder</li>
 <li>Enable the extension, and tweak any of the settings you need</li>
 </ol>

 <img class="flLeft" src="http://www.masugadesign.com/images/uploads/posts/expired_filter-1.jpg" width="444" height="116" alt="MD Show Expired Search Filter" />
 <br clear="all" />
 <br />


	<h4>Settings</h4>

	<p>There are two settings.<br />
<strong>Check for updates?</strong> &#8211; Works with LG Addon Updater. If you have LG Addon Updater installed, and this is set to &#8220;Yes&#8221;, you will be notified of new updates on the Control Panel homepage.<br />
<strong>Extension Access</strong> &#8211; Enable access on a site-by site basis if using <span class="caps">MSM</span> (Multi-Site Manager)</p>

 <br clear="all" />

	<h4>EE Forum Thread</h4>

	<p>There is a <a href="http://expressionengine.com/forums/viewthread/94004/" rel="external">related EE Forum thread for MD Show Expired here</a>. </p>      ]]></content>
    </entry>

    <entry>
      <title>MD Detect Page Type</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/md-detect-page-type/" />	
		      <id>tag:masugadesign.com,2008:the-lab/scripts/8.258</id>
      <published>2008-09-29T03:49:11Z</published>
      <updated>2009-03-14T16:41:12Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Plugins"
        label="Plugins" />
      <content type="html"><![CDATA[
        <p>Posted In: The Lab.</p>
Version: 1.0.1<br />Detect if you are on pagination page, category page, or yearly archive page.	<p>You can use a single template to handle the “landing page” for an area as well as the single-entry version of the page with a couple <code>&#123;if segment_3 != &quot;&quot;&#125;</code> and <code>&#123;if segment_3 == &quot;&quot;&#125;</code> conditionals. But when you introduce pagination, everything gets messed up. The goal was to avoid having to make a separate template to handle the single entries when pagination is used on the the same template. The <span class="caps">URL</span>s should look like the following using the (very basic) code sample that follows.</p>

	<p><strong>www.site.com/group/template/</strong> &#8211; The &#8220;landing&#8221; page, that may include paginated items<br />
<strong>www.site.com/group/template/P##</strong> &#8211; A paginated page in this area<br />
<strong>www.site.com/group/template/itemtitle/</strong> &#8211; Using the same template for a single entry</p>

	<p><strong>Super Basic Example:</strong><br />
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">md_detect_page_type&nbsp;url_segment</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;segment_3&#125;"</span><span style="color: #0000BB">&#125;<br />Pagination&nbsp;Page</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">&#123;if&nbsp;pagination_page&#125;This&nbsp;is&nbsp;a&nbsp;Paginated&nbsp;Page&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br&nbsp;</span><span style="color: #007700">/&gt;<br /></span><span style="color: #0000BB">Category&nbsp;Page</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">&#123;if&nbsp;category_page&#125;This&nbsp;is&nbsp;a&nbsp;Category&nbsp;Page&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br&nbsp;</span><span style="color: #007700">/&gt;<br /></span><span style="color: #0000BB">Yearly&nbsp;Archive&nbsp;Page</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">&#123;if&nbsp;yearly_archive_page&#125;This&nbsp;is&nbsp;a&nbsp;Yearly&nbsp;Archive&nbsp;Page&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">md_detect_page_type&#125;&nbsp;</span>
</span>
</code></div></p>

	<p><strong>Simple usage example, allowing Pagination and Single Entry on one template:</strong><br />
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">md_detect_page_type&nbsp;url_segment</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;&nbsp;segment_3&#125;"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&#123;</span><span style="color: #007700">!--&nbsp;if&nbsp;</span><span style="color: #0000BB">segment_3&nbsp;is&nbsp;</span><span style="color: #007700">empty&nbsp;or&nbsp;</span><span style="color: #0000BB">it&nbsp;equals&nbsp;P</span><span style="color: #FF8000">##&nbsp;--&#125;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;if&nbsp;pagination_page&nbsp;</span><span style="color: #007700">||&nbsp;</span><span style="color: #0000BB">segment_3&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #0000BB">&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&#123;</span><span style="color: #007700">!--&nbsp;list&nbsp;</span><span style="color: #0000BB">all&nbsp;the&nbsp;entries&nbsp;with&nbsp;pagination&nbsp;</span><span style="color: #007700">--</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"weblog"&nbsp;</span><span style="color: #0000BB">paginate</span><span style="color: #007700">=</span><span style="color: #DD0000">"bottom"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"999"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;absolute_count&#125;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;custom_field&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;paginate&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">div&nbsp;</span><span style="color: #007700">class=</span><span style="color: #DD0000">"pagination"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Page&nbsp;&#123;current_page&#125;&nbsp;of&nbsp;&#123;total_pages&#125;&nbsp;pages</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#123;pagination_links&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;<br /><br />&nbsp;&nbsp;&#123;</span><span style="color: #007700">!--&nbsp;</span><span style="color: #0000BB">otherwise</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">segment_3&nbsp;has&nbsp;something&nbsp;in&nbsp;it&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #007700">and&nbsp;</span><span style="color: #0000BB">it&nbsp;is&nbsp;not&nbsp;pagination</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">Show&nbsp;single&nbsp;entry&nbsp;</span><span style="color: #007700">--</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&#123;if</span><span style="color: #007700">:</span><span style="color: #0000BB">else&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"weblog"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"1"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#123;if&nbsp;no_results&#125;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Sorry</span><span style="color: #007700">!&nbsp;</span><span style="color: #0000BB">Couldnt&nbsp;find&nbsp;that&nbsp;entry</span><span style="color: #007700">.&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;custom_field&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;<br /><br />&nbsp;&nbsp;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">md_detect_page_type&#125;&nbsp;</span>
</span>
</code></div></p>

	<p>A simple way to detect if a page is <span class="caps">NOT</span> a paginated page is to do something like this:<br />
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">md_detect_page_type&nbsp;url_segment</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;segment_9&#125;"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&#123;if&nbsp;segment_9&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">""&nbsp;</span><span style="color: #007700">AND&nbsp;</span><span style="color: #0000BB">pagination_page&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #0000BB">TRUE&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">do&nbsp;</span><span style="color: #0000BB">stuff&nbsp;here</span><span style="color: #007700">...<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">md_detect_page_type&#125;&nbsp;</span>
</span>
</code></div></p>

	<p>Also check out this EE forum thread that spawned the plugin: <a href="http://expressionengine.com/forums/viewthread/55700/P18/#466891" rel="external">Detecting a single entry using EE code</a>. A thread called <a href="http://expressionengine.com/forums/viewthread/80605/" rel="external">Can’t get pagination to work</a> deals with this pagination issue using <span class="caps">PHP</span>.</p>

	<p>Here is a link to the thread for this plugin in the EE Forums: <a href="http://expressionengine.com/forums/viewthread/92307/" rel="external">Plugin: MD Detect Page Type</a>.</p>

	<h3>Release Notes</h3>

	<p><strong>1.0.1</strong> Sep 29, 2008 </p>

	<ul>
		<li>Added ability to check for category page and yearly archive page types</li>
		<li>Changed name from md_detect_pagination to md_detect_page_type</li>
	</ul>

	<p>1.0.0 Sep 28, 2008 <em>(5 downloads)</em></p>

	<ul>
		<li>Initial release.</li>
	</ul>      ]]></content>
    </entry>

    <entry>
      <title>New Portfolio Additions</title>

	
		      <link rel="alternate" type="text/html" href="http://www.masugadesign.com/news-and-notes/item/new-portfolio-additions/" />
		      <id>tag:masugadesign.com,2008:news-and-notes/3.256</id>
      <published>2008-09-03T02:46:21Z</published>
      <updated>2009-01-15T20:45:22Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="News"
        label="News" />
      <content type="html"><![CDATA[
        <p>Posted In: News & Notes.</p>
	<p>I&#8217;ve been posting these sorts of updates to the Masuga Design <a href="http://twitter.com/masugadesign" rel="external">Twitter account</a> more recently, but thought I should post here too, for the <span class="caps">RSS</span> crowd, or those that simply don&#8217;t &#8220;tweet&#8221;.</p>

	<p>I&#8217;ve been busy over the last few months jumping right from one project to the next, and haven&#8217;t had time to share what I&#8217;ve been up to. Here are the most recent additions to the Portfolio area, all of which I worked on for <a href="http://www.50000feet.com/">50,000feet</a>, a design agency out of Chicago:</p>

	<p><strong>Lucien Lagrange Architects</strong><br />
One of Chicago&#8217;s premier residence architects, responsible for many notable buildings in Chicago, among other places. <a href="http://www.masugadesign.com/portfolio/50000feet-lucien-lagrange-architects/ ">View in the Portfolio &raquo;</a></p>

	<p><strong>Vibes Media</strong><br />
A Chicago-based mobile marketing and media company. <a href="http://www.masugadesign.com/portfolio/50000feet-vibes/ ">View in the Portfolio &raquo;</a></p>

	<p><strong>PointOne Systems</strong><br />
A supplier of custom health data analytics. <a href="http://www.masugadesign.com/portfolio/50000feet-pointone-systems/ ">View in the Portfolio &raquo;</a></p>

	<p><strong>Orlando Events Center</strong><br />
Official site for the Orlando Events Center, which will be the future home for the NBA’s Orlando Magic. <a href="http://www.masugadesign.com/portfolio/50000feet-orlando-events-center/ ">View in the Portfolio &raquo;</a></p>      ]]></content>
    </entry>

    <entry>
      <title>50,000feet: Orlando Events Center</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/portfolio/50000feet-orlando-events-center/" />		
		      <id>tag:masugadesign.com,2008:portfolio/4.255</id>
      <published>2008-08-17T20:59:23Z</published>
      <updated>2009-01-15T16:58:24Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <content type="html"><![CDATA[
        <p>Posted In: Portfolio.</p>
A site devoted to promoting the new stadium for the NBA's Orlando Magic.	<p><a href="http://www.50000feet.com/">50,000feet</a>, a Chicago-based design agency, enlisted Masuga Design to implement their site design for the Orlando Events Center, home of the <span class="caps">NBA</span>&#8217;s Orlando Magic.</p>

	<p>Masuga Design executed the <span class="caps">CSS</span>/HTML front-end development and ExpressionEngine (EE) <span class="caps">CMS</span> implementation. Through some clever use of jQuery and EE plugins, we were able to put together some really nice photo galleries &#8211; such as the one on the homepage that can show photos or videos, utilizes tooltips to describe the gallery piece, and fades between a grayscale and color version of the thumbnail &#8211; which is automatically created for the content creator when they upload their image in the Control Panel.</p>

	<p>Visit <a href="http://www.50000feet.com/">50,000feet</a>.</p>      ]]></content>
    </entry>

    <entry>
      <title>50,000feet: Lucien Lagrange Architects</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/portfolio/50000feet-lucien-lagrange-architects/" />		
		      <id>tag:masugadesign.com,2008:portfolio/4.254</id>
      <published>2008-08-17T20:55:47Z</published>
      <updated>2009-01-15T17:27:48Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <content type="html"><![CDATA[
        <p>Posted In: Portfolio.</p>
One of Chicago's premier residence architects, responsible for many notable buildings in Chicago, among other places.	<p><a href="http://www.50000feet.com/">50,000feet</a>, a Chicago-based design agency, enlisted Masuga Design to implement their site design for the internationally-known architectural firm Lucien Lagrange Architects. Masuga Design took the supplied <span class="caps">PSD</span>&#8217;s and created a lightweight standards-compliant site that uses healthy doses of the jQuery JavaScript library to enhance the user&#8217;s experience. </p>

	<p>The site requirements, which includes a navigation structure controlled totally by the client, are every bit as exacting as LaGrange&#8217;s architecture. This site features a very highly-customized &#8220;lightbox&#8221; and portfolio setup that resizes the lightboxed portfolio images to fit the visitor&#8217;s available browser area.</p>

	<p>ExpressionEngine is the <span class="caps">CMS</span> used, which allows their staff to create some complex relationships between various entries under the hood, yet keep the maintenance of the site relatively straightforward. While building this site, I found a need to extend EE&#8217;s functionality, so I wrote a custom extension to modify some of the behavior of the Control Panel so the editors would have an easier time maintaining certain areas of the site.</p>

	<p>Visit <a href="http://www.50000feet.com/">50,000feet</a>.</p>      ]]></content>
    </entry>

    <entry>
      <title>50,000feet: PointOne Systems</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/portfolio/50000feet-pointone-systems/" />		
		      <id>tag:masugadesign.com,2008:portfolio/4.253</id>
      <published>2008-08-17T20:53:20Z</published>
      <updated>2009-01-15T17:01:22Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <content type="html"><![CDATA[
        <p>Posted In: Portfolio.</p>
A company that supplies custom health data analytics	<p><a href="http://www.50000feet.com/">50,000feet</a>, a Chicago-based design agency, hired Masuga Design implement their site design for PointOne Systems using ExpressionEngine. Development also took place on a blog for the <span class="caps">CEO</span>, which is run on a different subdomain using ExpressionEngine’s <span class="caps">MSM</span> (Multi-Site Manager). 50000feet&#8217;s design specifications called for Masuga Design to modify a lightbox to load sample document pages that a user can scan through before deciding to download an entire sample <span class="caps">PDF</span> file.</p>

	<p>The editors of this site can do some very creative things with uploaded imagery &#8211; uploading one picture and repositioning it in different ways in various spots (moving them up or down with pixel precision in the Control Panel) so they never have to upload more than one image for any given report profile.</p>

	<p>The <span class="caps">CSS</span> and <span class="caps">HTML</span> was done with a number of transparent <span class="caps">PNG</span> images, making for speedy development, and quicker page load times. (visitors using IE6 won’t see any of the best stuff, but we took care of them too, and they do get a very similar experience when visiting the site).</p>

	<p>Visit <a href="http://www.50000feet.com/">50,000feet</a>.</p>      ]]></content>
    </entry>

    <entry>
      <title>50,000feet: Vibes</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/portfolio/50000feet-vibes/" />		
		      <id>tag:masugadesign.com,2008:portfolio/4.252</id>
      <published>2008-08-17T20:43:58Z</published>
      <updated>2009-01-15T16:46:00Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <content type="html"><![CDATA[
        <p>Posted In: Portfolio.</p>
A Chicago-based mobile marketing company.	<p><a href="http://www.50000feet.com/">50,000feet</a>, a Chicago-based design agency, designed a new site for Vibes, a mobile marketing company and turned to Masuga Design for the front-end <span class="caps">CSS</span>/HTML development and ExpressionEngine implementation.</p>

	<p>Vibes.com is very flexible and gives the editors a lot of control from adding, moving, and reorganizing pages in the main navigation to determining whole template styles as easily as they would select an item from a pulldown menu. Even the entire homepage Flash splash movie reads an ExpressionEngine generated dynamic <span class="caps">XML</span> file based on the client&#8217;s input in the admin area&#8212;the client is really in charge of everything you see on this site.</p>

	<p>The <span class="caps">CSS</span> and <span class="caps">HTML</span> was done with a number of transparent <span class="caps">PNG</span> images, making development quicker, and page load times that much faster (obviously, those visitors using IE6 won&#8217;t see any of the best stuff, but they&#8217;re taken care of too, and get a very similar experience when visiting the site). </p>

	<p>Masuga Design also ended up modifying and extending an existing &#8220;Breadcrumb&#8221; EE plugin to better fit the way this site is structured.</p>

	<p>Visit <a href="http://www.50000feet.com/">50,000feet</a>.</p>      ]]></content>
    </entry>

    <entry>
      <title>A List Apart&#8217;s 2008 Web Design Survey</title>

	
		      <link rel="alternate" type="text/html" href="http://www.masugadesign.com/news-and-notes/item/a-list-aparts-2008-web-design-survey/" />
		      <id>tag:masugadesign.com,2008:news-and-notes/3.251</id>
      <published>2008-07-29T12:40:01Z</published>
      <updated>2008-07-29T12:59:35Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="News"
        label="News" />
      <content type="html"><![CDATA[
        <p>Posted In: News & Notes.</p>
	<p><a class="noicon" href="http://alistapart.com/articles/survey2008" rel="external"><img class="flLeft" src="/images/uploads/posts/i-took-the-2008-survey.gif" width="180" height="46" alt="The 2008 Web Design Survey" title="The 2008 Web Design Survey" /></a> As I did in 2007, I again took the revised survey in 2008. If you&#8217;re in the Web Design field, you too should <a href="http://alistapart.com/articles/survey2008">take the survey</a> and add your data to the mix.</p>      ]]></content>
    </entry>

    <entry>
      <title>MD Weegee</title>

	
					<link rel="alternate" type="text/html" href="http://www.masugadesign.com/the-lab/scripts/weegee/" />	
		      <id>tag:masugadesign.com,2008:the-lab/scripts/8.250</id>
      <published>2008-07-08T15:19:59Z</published>
      <updated>2009-04-17T17:43:00Z</updated>
      <author>
            <name>Ryan Masuga</name>
            <email>ryan@masugadesign.com</email>
            <uri>http://www.masugadesign.com</uri>      </author>

      <category term="Extensions"
        label="Extensions" />
      <content type="html"><![CDATA[
        <p>Posted In: The Lab.</p>
Version: 1.0.2<br />Add a thumbnail image for entries on the EE Control Panel Edit page. Useful for "weblog as gallery".	<h3>Overview</h3>

 <img class="flLeft" src="http://www.masugadesign.com/images/uploads/posts/weegee_editscreen.jpg" width="575" height="335" alt="Weegee for EE" />
 <br clear="all" />
 <br />


	<p>What&#8217;s with the name? Well, this was developed for those times when you&#8217;re using a &#8220;weblog as a gallery&#8221;. I thought of &#8220;WebGal&#8221;, &#8220;Galog&#8221;, and a bunch of other losers. &#8220;WG&#8221; is too short, so &#8220;Weegee&#8221; it is.</p>

	<p>This works well if you have one weblog that is used as a &#8220;gallery&#8221;. <strong>Unfortunately, in a rush, this only works on a field whose Field Type is &#8220;File&#8221;</strong> &#8211; which is another 3rd-party extension, by Mark Huot. <a href="http://docs.markhuot.com/ee/extensions/file" rel="external">You can get File by Mark Huot here</a>. You enter <em>one</em> field id (the field id for the File field you have) &#8211; and Weegee will put a thumb from that field on the Edit page. This also only works with one weblog right now (hey, you&#8217;re getting this free, so quit with the bellyachin&#8217;).</p>

	<p><strong><span class="caps">NOTE</span>:</strong> If you need an image preview that will work with a regular custom field, or with more than one field in different weblogs, you should check out <a href="http://leevigraham.com/cms-customisation/expressionengine/lg-image-preview/" rel="external">LG Image Preview</a>. It takes the main idea behind Weegee and runs a bit further. (I haven&#8217;t confirmed whether it will work with a &#8216;File&#8217; field type).</p>

	<h4>Basic Steps for Installing and Using Weegee</h4>

 <ol>
 <li>Put lang.weegee.php in your <em>/system/language/english</em> folder</li>
 <li>Put ext.weegee.php in your <em>/system/extensions</em> folder.</li>
 <li>Enable Weegee in Extensions (Admin &gt; Utilities &gt; Extensions Manager)</li>
 <li>Enter the field id number of the File field for which you want to show thumbnails</li>
 <li>Change the width of the thumbnails, if desired</li>
 </ol>

	<h4>Settings</h4>

 <img class="flLeft" src="http://www.masugadesign.com/images/uploads/posts/weegee_settings.jpg" width="363" height="188" alt="Weegee settings" />

	<p>There are two settings.<br />
<strong>Field ID</strong> &#8211; Select the field ID for which you want to show thumbnails.<br />
<strong>Width (in pixels) of the thumbnail</strong> &#8211; Defaults to 80 pixels (which is a pretty generous size). Keep in mind, these images are <em>not</em> currently cached as &#8220;real&#8221; thumbnails!</p>

<br class="clr" />

	<h4>Versions/Changelog</h4>

	<p>You can view the changelog in the <span class="caps">README</span> at GitHub.</p>

	<h4>EE Forum Thread</h4>

	<p>You&#8217;re welcome to leave comments here, but I&#8217;ll bet most of the action is on the EE Forums. The <a href="http://expressionengine.com/forums/viewthread/84513/" rel="external">related EE Forum thread for Weegee is here</a>. </p>      ]]></content>
    </entry>


</feed>