<?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>Not Just a Hat Rack &#187; Tools</title>
	<atom:link href="http://notjustahatrack.com/posts/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://notjustahatrack.com</link>
	<description>Development, design, etc.</description>
	<lastBuildDate>Mon, 18 Apr 2011 16:05:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Embeddable WYSIWYG Editors</title>
		<link>http://notjustahatrack.com/posts/embeddable-wysiwyg-editors/</link>
		<comments>http://notjustahatrack.com/posts/embeddable-wysiwyg-editors/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 20:36:14 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://notjustahatrack.com/?p=27</guid>
		<description><![CDATA[I&#8217;ve had several projects in the past few months which have called for some limited content management capabilities. In cases like these, where only small sections of the site need to be handled by an administrator, it seems silly to build the entire site on top of existing CMS platforms like Joomla or Drupal. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had several projects in the past few months which have called for some limited content management capabilities.  In cases like these, where only small sections of the site need to be handled by an administrator, it seems silly to build the entire site on top of existing CMS platforms like <a href="http://joomla.org/">Joomla</a> or <a href="http://drupal.org/">Drupal</a>. The problem is, if you build a small administration area, you&#8217;ll have to have some mechanism for specifying simple HTML content for the non-tech savvy.<span id="more-27"></span></p>
<p>A co-worker recommended <a href="http://fckeditor.net/">FCKeditor</a>, so I implemented it in a recent administration interface to control text for a few pages.  So far it&#8217;s worked extremely well, and was a breeze to implement.  Here&#8217;s a summary of my implementation:</p>
<ul>
<li><a href="http://www.fckeditor.net/download">Downloaded</a>, unzipped, and stored the FCKeditor files</li>
<li>Created a custom editor style file (myeditorstyles.css), and put the site&#8217;s content styling rules in it so the editor would mimic the site&#8217;s style</li>
<li>Created a custom configuration file (myconfig-default.js), which serves to remove a bunch of the unnecessary functionality, and reference the style:</li>
</ul>
<pre><code>
FCKConfig.FontFormats = 'h1;h2;h3;p';
FCKConfig.ToolbarCanCollapse = false;
FCKConfig.EditorAreaCSS = '/lib/includes/FCKeditor/myeditorstyles.css';
FCKConfig.ToolbarSets[&quot;Default&quot;] = [
	['Save'],
	['Undo','Redo'],
	['Bold','Italic','Underline'],
	['OrderedList','UnorderedList','-','Outdent','Indent'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
	['Link','Unlink'],
	['FontFormat'],
	['About', 'Source']
];
</code></pre>
<ul>
<li>Included the initialization files on the pages I put the editor:</li>
</ul>
<pre><code>
&lt;?php
include_once(&quot;[myeditorpath]/fckeditor.php&quot;) ;
?&gt;
</code></pre>
<ul>
<li>Then referenced the editor where I wanted to add it in my code:</li>
</ul>
<pre><code>
$oFCKeditor = new FCKeditor([myeditorid]);
$oFCKeditor-&gt;BasePath = '/[myeditorpath]/';
$oFCKeditor-&gt;Config[&quot;CustomConfigurationsPath&quot;] = &quot;/[myeditorpath]/myconfig-default.js&quot;;
$oFCKeditor-&gt;Height = '500';
$oFCKeditor-&gt;Create();
</code></pre>
<p>That&#8217;s it!  There&#8217;s a ton of other customization options, help with implementation, and general resources in <a href="http://docs.fckeditor.net/">the documentation</a>.</p>
<h3>Other Options</h3>
<p>I highly recommend FCKeditor, but if it doesn&#8217;t work for some reason you can always try <a href="http://tinymce.moxiecode.com/">TinyMCE</a> or <a href="http://openwebware.com/">openwysiwyg</a>.  Both seem full-featured and easy to implement, and both have significant recent activity.  </p>
<p>If you think content won&#8217;t require any additional HTML formatting, you could always just programmatically replace line breaks in text areas with HTML line breaks and vice versa.  This would allow the administrator to use carriage returns to separate text, but would require some HTML knowledge for additional formatting.</p>
]]></content:encoded>
			<wfw:commentRss>http://notjustahatrack.com/posts/embeddable-wysiwyg-editors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add to Any vs. AddThis and Implementation</title>
		<link>http://notjustahatrack.com/posts/add-to-any-vs-addthis-and-implementation/</link>
		<comments>http://notjustahatrack.com/posts/add-to-any-vs-addthis-and-implementation/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 03:01:07 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://notjustahatrack.com/?p=22</guid>
		<description><![CDATA[Add to Any and AddThis are fantastic and easy to implement bookmarking and sharing buttons. Definitely a must have for anybody hoping to capitalize on traffic to any of the current popular social media sites. So&#8230; which one is better? And how do you implement them on your site? Add to Any Add to Any [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://addtoany.com">Add to Any</a> and <a href="http://addthis.com">AddThis</a> are fantastic and easy to implement bookmarking and sharing buttons.  Definitely a must have for anybody hoping to capitalize on traffic to any of the current popular social media sites.  So&#8230; which one is better?  And how do you implement them on your site?<span id="more-22"></span></p>
<h3>Add to Any</h3>
<p>Add to Any is very full featured&#8230; allowing automatic sharing/bookmarking for pretty much any service you could think of.  It has a search built in to help find the service the user is looking for, and somehow displays recent or useful services at the top of the list for each user.  It allows for <a href="http://www.addtoany.com/ext/google_analytics/">tracking integration</a> with client-side analytics solutions (think Google Analytics).</p>
<p>To implement, <a href="http://www.addtoany.com/buttons/">get the button code</a> and paste it wherever you want it on your site, or use any number of CMS plugins available.  Note the customization options before you get the code, including the varying images, different # of services to show, etc.  If you copy and paste the code, make sure to not include the title of the page or the URL, as they will be dynamically generated by the page that the code is on.  The documentation suggests that you type in the URL:</p>
<blockquote><p>
Some people have JavaScript and/or HTTP referers disabled in their browsers. JavaScript is needed for the dropdown menu to appear, and the referring page is used if the page URL isn&#8217;t supplied. By typing in the page URL, all visitors will still be able to share, save and bookmark your page regardless of their browser settings. If you do not specify a URL, Add to Any will automatically detect the current page using JavaScript and/or the refererring page, and your visitors will always be able to click the button to go to the landing page.
</p></blockquote>
<p>&#8230;but unless you&#8217;re only using the code on a couple of pages, you won&#8217;t be able to.</p>
<h3>AddThis</h3>
<p>AddThis also offers the user a number of services for bookmarking/sharing, and comes with a fancy drop down menu.  For AddThis, you create an  account, and analytics are provided when you log in.  </p>
<p>Implementation is actually a little trickier than Add to Any, but offers a good amount of customization.  For some reason the WordPress plugin they offer uses a version of the button without the dropdown menu, so you should copy and paste the code generated when you select &#8220;put it on a website.&#8221; Check out the <a href="http://addthis.com/customization.php">customization options</a> to use your own logo, change services, etc.</p>
<h3>Which One is Better?</h3>
<p>AddThis has some advantages:</p>
<ul>
<li>Hosted, independent analytics</li>
<li>Extensive customization options</li>
<li>Streamlined/simple design</li>
</ul>
<p>&#8230;but so does Add To Any:</p>
<ul>
<li>More fully featured with search and email options</li>
<li>All services are contained within the dropdown</li>
<li>Bookmark options function better (FFox bookmarking with AddThis doesn&#8217;t work properly)</li>
<li>Google Analytics integration</li>
</ul>
<p>The email and bookmark options, and Google Analytics integration make Add to Any a more attractive choice for me.  If you don&#8217;t use Google Analytics, and a clean, branded look is more important, then you could definitely give AddThis a try.  Bottom line, either option is extremely useful and I would recommend implementing one or the other as soon as possible if you haven&#8217;t already!</p>
]]></content:encoded>
			<wfw:commentRss>http://notjustahatrack.com/posts/add-to-any-vs-addthis-and-implementation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

