<?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>Melissa Hsiung</title>
	<atom:link href="http://www.mhsiung.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mhsiung.com</link>
	<description>web &#38; print production</description>
	<lastBuildDate>Mon, 31 Oct 2011 18:19:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Exporting Moveable Type Blog Posts with Tags</title>
		<link>http://www.mhsiung.com/2011/10/exporting-moveable-type-blog-posts-with-tags/</link>
		<comments>http://www.mhsiung.com/2011/10/exporting-moveable-type-blog-posts-with-tags/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 16:39:11 +0000</pubDate>
		<dc:creator>Melissa</dc:creator>
				<category><![CDATA[Web & Print Production Tips]]></category>
		<category><![CDATA[Moveable Type]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.mhsiung.com/?p=264</guid>
		<description><![CDATA[This script (MtTaggedExport.php) creates a Moveable Type blog export file with tags added to the keywords field.The default MT export contains keywords and categories, but not tags. WP imports keywords as tags, so we’re going to put the MT tags &#8230; <a href="http://www.mhsiung.com/2011/10/exporting-moveable-type-blog-posts-with-tags/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This script (<a href="http://www.mhsiung.com/wp/wp-content/uploads/2011/10/MtTaggedExport.php_.zip">MtTaggedExport.php</a>) creates a Moveable Type blog export file with tags added to the keywords field.The default MT export contains keywords and categories, but not tags. WP imports keywords as tags, so we’re going to put the MT tags into the keywords area. Everything else in the tagged export file should be exactly the same as the default export file (see notes for exceptions).</p>
<p>This script is for people who have been given an exported MT database but do not have admin access to the actual MT site. (If you have access to your MT installation, it is probably much easier to create custom export template [or “index template”] and do a little grep after. See this foliovision.com <a href="http://foliovision.com/2008/11/17/typepad-to-wordpress">article</a> and <a href="http://foliovision.com/downloads/typepad-to-wordpress/movable-type-export-template.txt">template example</a>.)</p>
<p><span id="more-264"></span>To use this script, you need:</p>
<ul>
<li>your MT database information</li>
<li>permission to move this script file to a place that can connect to your MT database</li>
</ul>
<p><strong>Instructions</strong></p>
<ul>
<li>Download <a href="http://www.mhsiung.com/wp/wp-content/uploads/2011/10/MtTaggedExport.php_.zip">MtTaggedExport.php</a>.</li>
<li>Open the file in a text editor &amp; edit the database login information.</li>
<li>Place the file someplace that can connect to your MT database.</li>
<li>Open the page in your browser. Then copy and paste the text in your browser window as a .txt file. (Or, I hear there&#8217;s this thing called Terminal that will do the whole thing with a single command.)</li>
<li>Import your new file into WordPress (from the dashboard menu &gt; Tools &gt; Import).</li>
</ul>
<p><strong>Possible Bugs</strong></p>
<ul>
<li>I wasn’t sure what the entry_status codes were. I guessed that 3 = “Review” and 4 = “Future”</li>
<li>The tagged export file imported fine when I tried it on my local computer and on my personal site. When I tried importing it on the client dev server, there were an error in the permalink slugs. Any blog post title that contained a period, “.”, had a broken permalink slug that also contained periods. To fix, just delete the period (and any extra dashes) in the permalink. I don’t know why this happened, please comment if you do.</li>
</ul>
<p><strong>Notes</strong></p>
<p>There may be some differences between the MT default export file and the file produced by this script:</p>
<ul>
<li>Sort order of categories may be different, depending on how case sensitivity is set up on your database server.</li>
<li>Line breaks are created using nl2br(), sometimes it doesn&#8217;t quite match up with the MoveableType export. Extra line space is forced with &lt;p&gt; instead of &lt;br /&gt; in the comments.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mhsiung.com/2011/10/exporting-moveable-type-blog-posts-with-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress NYC Genius Bar Notes</title>
		<link>http://www.mhsiung.com/2011/09/wordpress-nyc-genius-bar-notes/</link>
		<comments>http://www.mhsiung.com/2011/09/wordpress-nyc-genius-bar-notes/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 16:55:53 +0000</pubDate>
		<dc:creator>Melissa</dc:creator>
				<category><![CDATA[Web & Print Production Tips]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WPNYC]]></category>

		<guid isPermaLink="false">http://www.mhsiung.com/?p=238</guid>
		<description><![CDATA[Genius Bar from 09.20.11 WordPress NYC Meetup The formal presentation was &#8220;A beginners overview&#8221;. There was an introduction about the many ways you can interact with the WPNYC community. Then we split off to the Genius Bar. I was expecting &#8230; <a href="http://www.mhsiung.com/2011/09/wordpress-nyc-genius-bar-notes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Genius Bar from <a class="c3" href="http://www.meetup.com/WordpressNYC/events/32640052/">09.20.11 WordPress NYC Meetup</a></p>
<p>The formal presentation was &#8220;A beginners overview&#8221;. There was an introduction about the many ways you can interact with the <a class="c3" href="http://wpnyc.org/">WPNYC community</a>. Then we split off to the Genius Bar.</p>
<p>I was expecting a bunch of self-dubbed geniuses to be discussing advanced WP topics. Instead, it was more like Apple&#8217;s Genius Bar, with about 15 people waiting to ask the geniuses their WP questions. Most of the people seemed to be designers. There were two developers (Steve Bruner, the organizer, and Kevin Cristiano) who were very patient and helpful. Most of the questions were regarding plugins. These are not direct quotes. And the plugin spellings might be wrong.</p>
<ol>
<li><strong>“What video plugin should I use for .mov files? WP won’t let me upload anything larger than 8 MB and I’ve been converting them to .fla &#8230; I don’t want to use Youtube/Vimeo because of I want particular privacy/sharing options.”</strong></li>
<ul>
<li>Jw-player plugin is standard for video, uses HTML5, free/licensed version for business. Also, JPlayer &amp; VideoJS are recommended.</li>
<li>For reducing the file size, someone recommended using an online file convertor. They said that Dreamhost provides one in the control panel.</li>
<li>Some debate as to where the file size limit is set (in WP or the host’s PHP settings).</li>
<li>Some debate as to whether YouTube has separate privacy settings for each video (it does).</li>
</ul>
<li><strong>“My Google Analytics plugin doesn’t work.”</strong></li>
<ul>
<li>Try: Ultimate Google Analytics, Google Analyticator, Google Analytics for WP</li>
<li>You don’t actually need a plugin</li>
</ul>
</ol>
<p><span id="more-238"></span>
<ol start="3">
<li><strong>“I have problems when copying a site (say, from local to host server). I copy all the WP files, copy the database, change the all the urls in the db &amp; edit the config file. Almost everything copies except for some miscellaneous settings, like the custom header, menus, etc. need to be reset. Why? Am I missing a step?” (This was my question <img src='http://www.mhsiung.com/wp/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</strong></li>
<ul>
<li>Did you replace all the URLs? Yes, with a sql query.</li>
<li>Try Crowd Favorite’s plugin called Ramp. $100 but worth it.</li>
<li>Just point the domain/change the hostfile so localhost thinks that it’s the live URL. (Although this might cause problems with testing third-party functions like analytics, twitter feeds, etc.)</li>
<li>See <a class="c3" href="http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/">http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/</a> (uses conditionals in wp-config)</li>
<li>Something about the future moving towards networks with a shared userbase &amp; separate instances of something.</li>
</ul>
<li><strong>“My security plugin says that I have problems with x, y, z, how do I fix it?”</strong></li>
<ul>
<li>“There’s a tab right here that has instructions for fixing your problems.”</li>
<li>Read Hardening WordPress in the Codex.</li>
<li>Use WP Security Scan plugin</li>
</ul>
<li><strong>“What social plugins do you recommend?”</strong></li>
<ul>
<li>Links alpha, Twitterfeed, Autoblogged, WPematico</li>
<li>Disliked: Feed WordPress</li>
</ul>
<li><strong>Something about cron, server cron, cron jobs. </strong> There’s a wp-cron control plugin. Someone has to visit your site to trigger cron.</li>
<li><strong>“Everybody should use Google Webmaster tools.”</strong></li>
<li><strong>Google will ding sites running old versions of WP. Sometimes it (Chrome?) will show a warning that the site might not be safe.</strong></li>
<li><strong>“Why haven’t more people updated to WP 3.2?”</strong></li>
<ul>
<li>It’s usually safer to wait&#8230; because of bugs &amp; plugin updates.</li>
<li>WP 3.1 and 3.2 are safe. Something about WP being ok two families back.</li>
</ul>
<li><strong>Selling themes &amp; child themes (e.g., for Genesis). Themeforest. Next month’s talk.</strong></li>
<li><strong>“Best form plugin?”</strong> Gravity Forms</li>
<li><strong>Free vs premium</strong></li>
<ul>
<li>WP is moving towards not free. Takes too much time to maintain free plugins &amp; answer questions.</li>
<li>Prices are still reasonable: $60 for a theme + a couple hundred for plugins. Quality for paid stuff is better, plus you have support.</li>
<li>Some people ask too many questions and are taking advantage of the WP community.</li>
</ul>
<li><strong>“Which shopping cart theme should I use for e-books/file downloads?”</strong></li>
<ul>
<li>Cart66, Shopify, Marketpress. Cart66 is not recommended for retail merch.</li>
<li>Definitely get an SSL certificate or use a gateway.</li>
</ul>
<li><strong>“Which SEO metatag plugin should I use?” Yost SEO, WordPress SEO, All in one SEO</strong></li>
<li><strong>“Why do my HTML tags get lost when I switch from the html editor to the visual editor and back?”</strong></li>
<ul>
<li>That’s just what happens.</li>
<li>Use the TinyMCE Advanced plugin, it will give you more options in the visual editor. It won’t be necessary to use the HTML editor (except for embed codes). Also it lets you keep the &lt;p&gt; tags, which will make everyone happy.</li>
</ul>
<li><strong>Best practices for staging a site</strong></li>
<ul>
<li>Use Dot local</li>
<li>See wp-hackers mailing list archive</li>
<li>Use Subversion to keep backups of themes. Then have a cron job kickoff subversion.</li>
<li>There are many scripts to move test to production.</li>
</ul>
<li><strong>Child theming: do it!</strong></li>
<ul>
<li>Saves you from fixing deprecated functions with every WP update.</li>
<li>Try: Genesis, Flex, Carrington, Studiopress</li>
<li>New hybrid method (e.g., Devpress) allows you to activate features instead of deactivating</li>
</ul>
<li><strong>“What slider/image gallery plugin should I use?”<br />
Slider easing slider or Nivo with NextGen</strong></li>
<li><strong>“What should I use for a forum?”</strong> BBpress or Mingle</li>
<li><strong>Post-meeting</strong></li>
<ul>
<li>Graphpaper Press theme was recommended.</li>
<li>Yooko theme for responsive design.</li>
<li>Campaign Monitor has really good tracking for email blasts.</li>
<li>“Digging into WordPress” is a good book.</li>
</ul>
</ol>
<h2>Notes</h2>
<ul>
<li><a class="c3" href="http://www.meetup.com/WordpressNYC/events/32640052/">WordPress NYC Meetup</a></li>
<li><a class="c3" href="http://wpnyc.org/">WPNYC.org</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mhsiung.com/2011/09/wordpress-nyc-genius-bar-notes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>catch_that_image() Fix</title>
		<link>http://www.mhsiung.com/2010/06/catch_that_image-fix/</link>
		<comments>http://www.mhsiung.com/2010/06/catch_that_image-fix/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 18:00:49 +0000</pubDate>
		<dc:creator>Melissa</dc:creator>
				<category><![CDATA[Web & Print Production Tips]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.mhsiung.com/?p=202</guid>
		<description><![CDATA[catch_that_image() is a PHP function for WordPress that displays the first image of a post, so that you can create a gallery from your latest posts. It works quite well until someone goes crazy and uses special characters in their &#8230; <a href="http://www.mhsiung.com/2010/06/catch_that_image-fix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>catch_that_image() is a PHP function for WordPress that displays the first image of a post, so that you can create a gallery from your latest posts. It works quite well until someone goes crazy and uses special characters in their image filename.</p>
<p>You could try to establish file naming conventions, or you could stop being a masochist &amp; modify the function. All that needs to be changed is a <code>.*</code> to <code>[^&gt;]*</code>.</p>
<p>Here is the complete catch_that_image() function with the fix (it goes in your functions.php file):</p>
<pre class="brush: php; title: ; notranslate">function catch_that_image() {
	 global $post, $posts;
	 $first_img = '';
	 ob_start();
	 ob_end_clean();
	 $output = preg_match_all('/&lt;img.+src=[\'&quot;]([^\'&quot;]+)[\'&quot;][^&gt;]*&gt;/i', $post-&gt;post_content, $matches);
	 $first_img = $matches [1] [0];

	 if(empty($first_img)){ //Defines a default image
		  $first_img = &quot;/images/default.jpg&quot;;
	 }
	 return $first_img;
}</pre>
<p>Call the function wherever you want in your theme files:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php echo catch_that_image() ?&gt;</pre>
<p>Easy!</p>
<h2>Notes</h2>
<ul>
<li><a href="http://www.wprecipes.com/how-to-get-the-first-image-from-the-post-and-display-it">Original code &amp; quick instructions</a> from WPRecipes</li>
<li>WordPress.org forum discusses the function: <a href="http://wordpress.org/support/topic/246893">Retrieve first image from post</a></li>
<li>A short explanation of how the code works from Smashing Magazine: <a href="http://www.smashingmagazine.com/2009/06/10/10-useful-wordpress-loop-hacks/">10 Useful WordPress Loop Hacks: #10. Create A Loop Of Images</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mhsiung.com/2010/06/catch_that_image-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show All Menu Items in CS4</title>
		<link>http://www.mhsiung.com/2010/05/show-all-menu-items-in-cs4/</link>
		<comments>http://www.mhsiung.com/2010/05/show-all-menu-items-in-cs4/#comments</comments>
		<pubDate>Fri, 07 May 2010 14:22:04 +0000</pubDate>
		<dc:creator>Melissa</dc:creator>
				<category><![CDATA[Web & Print Production Tips]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[workspace]]></category>

		<guid isPermaLink="false">http://www.mhsiung.com/?p=188</guid>
		<description><![CDATA[So you want to get rid of this? Why Adobe, WHY??? Go to Edit &#62; Menus&#8230; Then, in the first drop-down menu, select &#8220;Photoshop Defaults&#8221;. Another option is to switch out of the &#8220;Basics&#8221; workspace (you&#8217;ll see it all the &#8230; <a href="http://www.mhsiung.com/2010/05/show-all-menu-items-in-cs4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So you want to get rid of this?</p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_189" class="wp-caption aligncenter" style="width: 293px;">
<dt class="wp-caption-dt"><a href="http://www.mhsiung.com/wp/wp-content/uploads/2010/05/showallmenu.png" rel="lightbox"><img class="size-full wp-image-189" title="showallmenu" src="http://www.mhsiung.com/wp/wp-content/uploads/2010/05/showallmenu.png" alt="Why Adobe, WHY???" height="200" /></a>Why Adobe, WHY???</dt>
</dl>
</div>
<p>Go to <strong>Edit &gt; Menus&#8230;</strong> Then, in the first drop-down menu, select &#8220;Photoshop Defaults&#8221;.</p>
<p><center><a href="http://www.mhsiung.com/wp/wp-content/uploads/2010/05/menu.png" rel="lightbox"><img class="aligncenter size-medium wp-image-190" title="menu" src="http://www.mhsiung.com/wp/wp-content/uploads/2010/05/menu-550x412.png" alt="menu" height="300" /></a></center>Another option is to switch out of the &#8220;Basics&#8221; workspace (you&#8217;ll see it all the way in the upper right corner).</p>
<h2>Notes</h2>
<ul>
<li>John Nack from Adobe <a href="http://blogs.adobe.com/jnack/2008/12/photoshop_hidde.html">explains why this happens</a>.</li>
<li>Chris Koerner <a href="http://clkoerner.com/2008/12/02/remove-show-all-menu-items-from-photoshop-cs4/">provides a custom menu file</a> to solve the menu problem.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mhsiung.com/2010/05/show-all-menu-items-in-cs4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anti-aliasing Text in Illustrator</title>
		<link>http://www.mhsiung.com/2010/03/anti-aliasing-text-in-illustrator/</link>
		<comments>http://www.mhsiung.com/2010/03/anti-aliasing-text-in-illustrator/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 17:57:51 +0000</pubDate>
		<dc:creator>Melissa</dc:creator>
				<category><![CDATA[Web & Print Production Tips]]></category>
		<category><![CDATA[anti-alias]]></category>
		<category><![CDATA[Illustrator]]></category>

		<guid isPermaLink="false">http://www.mhsiung.com/?p=148</guid>
		<description><![CDATA[Let&#8217;s say you&#8217;re making a web banner ad in Illustrator. There&#8217;s a lot of small text (it&#8217;s an informative ad). After much tweaking, everything looks amazing &#8212; legible even! You go to &#8216;Save for Web &#038; Devices&#8230;&#8217;&#8230; and your carefully &#8230; <a href="http://www.mhsiung.com/2010/03/anti-aliasing-text-in-illustrator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you&#8217;re making a web banner ad in Illustrator. There&#8217;s a lot of small text (it&#8217;s an informative ad).</p>
<p>After much tweaking, everything looks amazing &#8212; legible even! You go to &#8216;Save for Web &#038; Devices&#8230;&#8217;&#8230; and your carefully kerned text turns light and fuzzy and unreadable. You try sliding up the jpg quality, adding gif colors,  and rubbing your eyes. But the type still looks off.</p>
<p>This is because Ai is rasterizing the text with its default anti-alias settings. You can change these settings to improve the appearance of type. Go to <strong>Effects > Rasterize</strong>, and you will be given three options for anti-aliasing in a drop-down menu: None, Art Optimized (Supersampling), and Type Optimized (Hinted).</p>
<p>Here&#8217;s how the different settings look at 100%:<br />
<center><img src="http://www.mhsiung.com/wp/wp-content/uploads/2010/03/antialias100.gif" alt="antialias100" title="antialias100" width="250" height="107" class="aligncenter size-full wp-image-156" /></center></p>
<p>200%:<br />
<center><img src="http://www.mhsiung.com/wp/wp-content/uploads/2010/03/antialias200.gif" alt="antialias200" title="antialias200" width="500" height="213" class="aligncenter size-full wp-image-157" /></center></p>
<p>After setting the effect, you can change the object&#8217;s anti-alias settings in the Appearance panel. (If you are the decisive sort, you can permanently rasterize the object by going to <strong>Object > Rasterize</strong>.)</p>
<p>And now your banner ads will be readable &#038; beautiful again! Those people with ad blockers are truly missing out!</p>
<h2>Notes</h2>
<ul>
<li>Adobe help page: <a href="http://help.adobe.com/en_US/Illustrator/14.0/WS714a382cdf7d304e7e07d0100196cbc5f-63d6a.html">&#8220;Set anti-aliasing options for type</a>&#8220;</li>
<li>Sometimes non-text objects also need their anti-aliasing settings tweaked. Here is an example from Real World Illustrator: <a href="http://rwillustrator.blogspot.com/2007/03/to-anti-alias-or-not-to-anti-alias-that.html">&#8220;To anti-alias or not to anti-alias? That is the (blurry) question&#8230;&#8221;</a>.<br />
]]></content:encoded>
			<wfw:commentRss>http://www.mhsiung.com/2010/03/anti-aliasing-text-in-illustrator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding IntenseDebate to Pligg</title>
		<link>http://www.mhsiung.com/2010/01/adding-intensedebate-to-pligg/</link>
		<comments>http://www.mhsiung.com/2010/01/adding-intensedebate-to-pligg/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 15:31:37 +0000</pubDate>
		<dc:creator>Melissa</dc:creator>
				<category><![CDATA[Web & Print Production Tips]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[IntenseDebate]]></category>
		<category><![CDATA[Pligg]]></category>

		<guid isPermaLink="false">http://www.mhsiung.com/?p=133</guid>
		<description><![CDATA[IntenseDebate is a commenting system. Pligg is a social bookmarking CMS. By installing IntenseDebate, your Pligg site will lose the ability to connect users with their comments. However, your commenters will be able to tie their comments to their accounts &#8230; <a href="http://www.mhsiung.com/2010/01/adding-intensedebate-to-pligg/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em><a href="http://intensedebate.com/" title="commenting system">IntenseDebate</a> is a commenting system. <a href="http://www.pligg.com/" title="social bookmarking CMS">Pligg</a> is a social bookmarking CMS.</em></p>
<p>By installing IntenseDebate, your Pligg site will lose the ability to connect users with their comments. However, your commenters will be able to tie their comments to their accounts on Facebook, Twitter, IntenseDebate, etc. These notes apply to the Pligg Wistie template.</p>
<p><b>To add the IntenseDebate comment section: </b></p>
<ol>
<li>Copy the comment section snippet code from IntenseDebate > Sites > YourSite > Tools > Reinstall.</li>
<li>Find <code>&lt;div id="comments"&gt;</code> at the end of story_center.tpl.</li>
<li>Delete the Pligg code up to the end of the &lt;/div&gt;.</li>
<li>Paste the IntenseDebate code inside the comments div.</li>
</ol>
<p><b>To add a comment link with the current comment count on the front page:</b></p>
<ol>
<li>Copy the comment link snippet code from IntenseDebate > Sites > YourSite > Tools > Reinstall.</li>
<li>Open link_summary.tpl and find <code>&lt;div class="storyfooter"&gt;</code>.</li>
<li>Replace all the code from <code>&lt;span id="ls_comments_url-{$link_shakebox_index}"&gt;</code> to <code>&lt;/span&gt;</code> with the IntenseDebate code.</li>
<li>Make these edits to the IntenseDebate snippet:<br />
<code>var idcomments_post_id = 'http://www.yoursite.com' + '{$story_url}';<br />
var idcomments_post_url = 'http://www.yoursite.com' + '{$story_url}';</code></li>
</ol>
<p>By the way, how is Pligg working out for you? Please comment with a link to your Pligg site!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mhsiung.com/2010/01/adding-intensedebate-to-pligg/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Limit WordPress Search Scope to Blog Posts</title>
		<link>http://www.mhsiung.com/2009/11/limit-wordpress-search-scope-to-blog-posts/</link>
		<comments>http://www.mhsiung.com/2009/11/limit-wordpress-search-scope-to-blog-posts/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 21:47:44 +0000</pubDate>
		<dc:creator>Melissa</dc:creator>
				<category><![CDATA[Web & Print Production Tips]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.mhsiung.com/?p=89</guid>
		<description><![CDATA[When using get_search_form(), WordPress returns results from all pages and posts. To force WordPress to return results only from posts, copy &#038; paste the code below into your theme&#8217;s function.php file. Create a new function.php file if you don&#8217;t have &#8230; <a href="http://www.mhsiung.com/2009/11/limit-wordpress-search-scope-to-blog-posts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When using get_search_form(), WordPress returns results from all pages and posts. To force WordPress to return results only from posts, copy &#038; paste the code below into your theme&#8217;s function.php file. Create a new function.php file if you don&#8217;t have one.</p>
<pre class="brush: php; title: ; notranslate">
&amp;lt;?php
function SearchFilter($query) {
     if ($query-&gt;is_search) {
          $query-&gt;set('post_type','post');
     }
     return $query;
}
add_filter('pre_get_posts','SearchFilter');
?&gt;
</pre>
<p>To limit the search to page content only, change line 4 to <code>$query->set('post_type','page'); </code>.</p>
<h2>Notes</h2>
<ul>
<li>This code is altered from problogdesign&#8217;s <a href="http://www.problogdesign.com/wordpress/3-codes-for-a-far-better-wordpress-search-page/">&#8220;3 codes for a far better WordPress search page&#8221;</a> (code #3) &amp; a lot of trial and error.</li>
<li>To create other filters, see line 1156 of query.php (in wp-includes folder) for a list of keys.</li>
<li><a href="http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query">WordPress documentation on customizing queries</a></li>
<li>There are also plugins that will let you customize the search scope (and exclude pages by id). This is a popular one: <a href="http://wordpress.org/extend/plugins/search-everything/">Search Everything</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mhsiung.com/2009/11/limit-wordpress-search-scope-to-blog-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

