<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>pootato.org &#187; Tips and tricks</title>
	<link>http://pootato.org</link>
	<description>Tutorials for your website</description>
	<pubDate>Sat, 17 May 2008 03:46:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>Disable WP fancy quotes and other</title>
		<link>http://pootato.org/tips-and-tricks/wordpress/disable-wp-fancy-quotes-and-other/</link>
		<comments>http://pootato.org/tips-and-tricks/wordpress/disable-wp-fancy-quotes-and-other/#comments</comments>
		<pubDate>Sat, 25 Aug 2007 23:07:22 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/wordpress/disable-wp-fancy-quotes-and-other/</guid>
		<description><![CDATA[&#034;Wptexturize&#034; was something I found very annoying because it transforms &#034; into “ and &#8211; into – etc. This is annoying when posting code snippets :/
If you want to disable this on all your pages like me, just add this snippet in your header:
&#60;? remove_filter ('the_content&#039;, &#039;wptexturize&#039;);
remove_filter (&#039;comment_text&#039;, &#039;wptexturize&#039;);
remove_filter (&#039;single_post_title&#039;, &#039;wptexturize&#039;);
remove_filter (&#039;the_title&#039;, &#039;wptexturize&#039;);
remove_filter (&#039;the_excerpt&#039;, &#039;wptexturize&#039;); [...]]]></description>
			<content:encoded><![CDATA[<p>&#034;Wptexturize&#034; was something I found very annoying because it transforms <samp>&#034;</samp> into <samp>“</samp> and <samp>&#8211;</samp> into <samp>–</samp> etc. This is annoying when posting code snippets :/</p>
<p>If you want to disable this on all your pages like me, just add this snippet in your header:</p>
<p><code>&lt;? remove_filter ('<strong>the_content</strong>&#039;, &#039;wptexturize&#039;);<br />
remove_filter (&#039;<strong>comment_text</strong>&#039;, &#039;wptexturize&#039;);<br />
remove_filter (&#039;<strong>single_post_title</strong>&#039;, &#039;wptexturize&#039;);<br />
remove_filter (&#039;<strong>the_title</strong>&#039;, &#039;wptexturize&#039;);<br />
remove_filter (&#039;<strong>the_excerpt</strong>&#039;, &#039;wptexturize&#039;); ?&gt;</code></p>
<p>Of course, if you want to keep fancy quotes in your title, remove the corresponding line. That is to say:</p>
<p><code>remove_filter ('<strong>single_post_title</strong>&#039;, &#039;wptexturize&#039;);</code></p>
<p>Hope it helps!</p>
<p class="akst_link"><a href="http://pootato.org/?p=130&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_130" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/wordpress/disable-wp-fancy-quotes-and-other/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Firefox search plugin for your website</title>
		<link>http://pootato.org/tips-and-tricks/miscellaneous/firefox-search-plugin-for-your-website/</link>
		<comments>http://pootato.org/tips-and-tricks/miscellaneous/firefox-search-plugin-for-your-website/#comments</comments>
		<pubDate>Thu, 23 Aug 2007 15:21:29 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/miscellaneous/firefox-search-plugin-for-your-website/</guid>
		<description><![CDATA[I haven&#039;t tested this on other browsers yet, but it works for Firefox 2. :) If you use Firefox, you certainly use the search field at the top right corner! If you click on your current search engine icon, you should see &#034;Add search pootato.org&#034; in the drop down list! You can find documentation about [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#039;t tested this on other browsers yet, but it works for Firefox 2. :) If you use Firefox, you certainly use the search field at the top right corner! If you click on your current search engine icon, you should see &#034;Add search pootato.org&#034; in the drop down list! You can find documentation about OpenSearch plugins <a href="http://developer.mozilla.org/en/docs/Creating_OpenSearch_plugins_for_Firefox">on this page</a> at Mozilla Developer Center.</p>
<p>If you want this for your website, you need&#8230; a search form! XD In <samp>your_website_title.xml</samp> file, paste this code:</p>
<p><code> &lt;OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"<br />
xmlns:moz="http://www.mozilla.org/2006/browser/search/"&gt;<br />
&lt;ShortName&gt;<strong>ShortName</strong>&lt;/ShortName&gt;<br />
&lt;Description&gt;<strong>ShortDescription</strong>&lt;/Description&gt;<br />
&lt;InputEncoding&gt;<strong>UTF-8</strong>&lt;/InputEncoding&gt;<br />
&lt;Image width=&#034;16&#034; height=&#034;16&#034;&gt;<strong>ImageData</strong>&lt;/Image&gt;<br />
&lt;Url type=&#034;text/html&#034; method=&#034;<strong>get</strong>&#034; template=&#034;<strong>Site URL</strong><em>/?s={searchTerms}</em>&#034;&gt;&lt;/Url&gt;<br />
&lt;moz:SearchForm&gt;<strong>Search form page URL</strong>&lt;/moz:SearchForm&gt;<br />
&lt;/OpenSearchDescription&gt; </code></p>
<p> <a href="http://pootato.org/tips-and-tricks/miscellaneous/firefox-search-plugin-for-your-website/#more-129" class="more-link">(more&#8230;)</a></p>
<p class="akst_link"><a href="http://pootato.org/?p=129&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_129" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/miscellaneous/firefox-search-plugin-for-your-website/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Styling admin comment</title>
		<link>http://pootato.org/tips-and-tricks/wordpress/styling-admin-comment/</link>
		<comments>http://pootato.org/tips-and-tricks/wordpress/styling-admin-comment/#comments</comments>
		<pubDate>Thu, 23 Aug 2007 13:21:36 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/wordpress/styling-admin-comment/</guid>
		<description><![CDATA[Here is Wordpress default comment template:
 &#60;li &#60;?php echo $oddcomment; ?&#62; id=&#034;comment-&#60;?php comment_ID() ?&#62;&#034;&#62;
&#60;cite&#62;&#60;?php comment_author_link() ?&#62;&#60;/cite&#62; Says:
&#60;?php if ($comment-&#62;comment_approved == &#039;0&#039;) : ?&#62;
&#60;em&#62;Your comment is awaiting moderation.&#60;/em&#62;
&#60;?php endif; ?&#62;&#60;br /&#62;
&#60;small class=&#034;commentmetadata&#034;&#62;&#60;a href=&#034;#comment-&#60;?php comment_ID() ?&#62;&#034; title=&#034;"&#62;&#60;?php comment_date(&#039;F jS, Y&#039;) ?&#62; at &#60;?php comment_time() ?&#62;&#60;/a&#62; &#60;?php edit_comment_link(&#039;edit&#039;,&#039;  &#039;,&#034;); ?&#62;&#60;/small&#62;
&#60;?php comment_text() ?&#62;
&#60;/li&#62; 
In the first line, just [...]]]></description>
			<content:encoded><![CDATA[<p>Here is Wordpress default comment template:</p>
<p><code> &lt;li <strong>&lt;?php echo $oddcomment; ?&gt;</strong> id=&#034;comment-&lt;?php comment_ID() ?&gt;&#034;&gt;<br />
&lt;cite&gt;&lt;?php comment_author_link() ?&gt;&lt;/cite&gt; Says:<br />
&lt;?php if ($comment-&gt;comment_approved == &#039;0&#039;) : ?&gt;<br />
&lt;em&gt;Your comment is awaiting moderation.&lt;/em&gt;<br />
&lt;?php endif; ?&gt;&lt;br /&gt;<br />
&lt;small class=&#034;commentmetadata&#034;&gt;&lt;a href=&#034;#comment-&lt;?php comment_ID() ?&gt;&#034; title=&#034;"&gt;&lt;?php comment_date(&#039;F jS, Y&#039;) ?&gt; at &lt;?php comment_time() ?&gt;&lt;/a&gt; &lt;?php edit_comment_link(&#039;edit&#039;,&#039;  &#039;,&#034;); ?&gt;&lt;/small&gt;<br />
&lt;?php comment_text() ?&gt;<br />
&lt;/li&gt; </code></p>
<p>In the first line, just look for <samp>&lt;?php echo $oddcomment; ?&gt;</samp> and replace it with:</p>
<p><code> &lt;? if($comment-&gt;comment_author == "<strong>Your nickname</strong>&#034;) echo &#039; class=&#034;admin&#034;&#039;; else echo $oddcomment; ?&gt; </code></p>
<p>Then, in your stylesheet, add a different style for <samp>.admin</samp> ! :)</p>
<p class="akst_link"><a href="http://pootato.org/?p=128&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_128" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/wordpress/styling-admin-comment/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Speeding up the site</title>
		<link>http://pootato.org/tips-and-tricks/speeding-up-the-site/</link>
		<comments>http://pootato.org/tips-and-tricks/speeding-up-the-site/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 02:02:37 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Tips and tricks]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/speeding-up-the-site/</guid>
		<description><![CDATA[(attn) Firefox users, Pingdom is currently offering one year of free uptime monitoring services! :)
After testing it with several tools, I noticed that my website was&#8230;very slow. Actually, Alexa (first time I ever check this website XD) tells me that 93% of sites are faster. Average loading time is 7 seconds. :/ So I&#039;ve decided [...]]]></description>
			<content:encoded><![CDATA[<p>(attn) Firefox users, <a href="http://www.pingdom.com/services/">Pingdom</a> is currently offering one year of free uptime monitoring services! :)</p>
<p>After testing it with several tools, I noticed that my website was&#8230;very slow. Actually, <a href="http://alexa.com">Alexa</a> (first time I ever check this website XD) tells me that 93% of sites are faster. Average loading time is 7 seconds. :/ So I&#039;ve decided to shrink my pages. It might help others in the same case, so here is what I did:</p>
<h2>Use speed tests sites</h2>
<p><a href="http://alexa.com">Alexa</a>&#039;s stats are refreshed monthly only, so I needed an other webtool to get my site speed. I recommend <a href="http://tools.pingdom.com/fpt/">Pingdom tools</a>! Information is clear. I liked <a href="http://www.websiteoptimization.com/services/analyze/">WebPage Analyzer</a> too, because it has tips to optimize your website speed.</p>
<h2>Turning off unused Wordpress plugins</h2>
<p>I love Wordpress plugins, but one thing that was annoying me from the start was the codes they generated in wp_head. For example, I use cforms only on my contact page, but it called an 11kb javascript file on all my pages! I&#039;ve edited the plugin to generate its script only on the contact page using Wordpress&#039; wonderful is_page() function. :) Same for WP-polls and IMP Links (for the resources page).</p>
<p> <a href="http://pootato.org/tips-and-tricks/speeding-up-the-site/#more-124" class="more-link">(more&#8230;)</a></p>
<p class="akst_link"><a href="http://pootato.org/?p=124&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_124" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/speeding-up-the-site/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Create a tag cloud</title>
		<link>http://pootato.org/tips-and-tricks/movable-type/create-a-tag-cloud/</link>
		<comments>http://pootato.org/tips-and-tricks/movable-type/create-a-tag-cloud/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 13:09:20 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Movable Type]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/movable-type/create-a-tag-cloud/</guid>
		<description><![CDATA[Here is a little trick to create a tag cloud in Movable Type, like I did on my photoblog.
Step 1
First, you need the Compare plugin for MT. Install it following the instructions on its website.
Step 2
You will need to insert this in your stylesheet, to control the size of the tags.
 .one {font-size:75%;} /* for [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a little trick to create a tag cloud in Movable Type, like I did on my <a href="http://photo.egosystem.org/tags.php" target="_blank">photoblog</a>.</p>
<h2>Step 1</h2>
<p>First, you need the <a href="http://www.staggernation.com/mtplugins/Compare" target="_blank">Compare</a> plugin for MT. Install it following the instructions on its website.</p>
<h2>Step 2</h2>
<p>You will need to insert this in your stylesheet, to control the size of the tags.</p>
<p><code> .one {font-size:75%;} /* for 1 or 2 uses */<br />
.two {font-size:100%;} /* for 3 to 10 uses */<br />
.three {font-size:125%;} /* 11 to 20 uses */<br />
.four {font-size:150%;} /* 21 to 30 uses */<br />
.five {font-size:175%;} /* 31 to 40 uses */<br />
.six {font-size:200%;} /* 41 to 50 uses */<br />
.seven {font-size:225%;} /* 51 to 60 uses */<br />
.eight {font-size:250%;} /* 61 to 70 uses */<br />
.nine {font-size:275%;} /* 71 to 80 uses */<br />
.ten {font-size:300%;} /* 81 to 100 uses */<br />
.bang {font-size:325%;} /* more than 100 uses */<br />
</code></p>
<p>Of course, you can change the sizes as you like.</p>
<h2>Step 3</h2>
<p>Create a new index template with the following settings:<br />
Template name: Tags<br />
Output file: tags.php</p>
<p>You have to put your layout codes in this page, using the usual methods. (PHP inclusion, or whatever) Then, instead of the contents, paste these codes:</p>
<p><code>&lt;p&gt;<br />
&lt;MTTags&gt;<br />
&lt;a href="&lt;$MTTagSearchLink$&gt;" class="&lt;MTIfBetween a="[MTTagCount]" lower="1" upper="2" numeric="1"&gt;one&lt;/MTIfBetween&gt;&lt;MTIfBetween a="[MTTagCount]" lower="3" upper="10" numeric="1"&gt;two&lt;/MTIfBetween&gt;&lt;MTIfBetween a="[MTTagCount]" lower="11" upper="20" numeric="1"&gt;three&lt;/MTIfBetween&gt;&lt;MTIfBetween a="[MTTagCount]" lower="21" upper="30" numeric="1"&gt;four&lt;/MTIfBetween&gt;&lt;MTIfBetween a="[MTTagCount]" lower="31" upper="40" numeric="1"&gt;five&lt;/MTIfBetween&gt;&lt;MTIfBetween a="[MTTagCount]" lower="41" upper="50" numeric="1"&gt;six&lt;/MTIfBetween&gt;<strong>&lt;MTIfBetween a=&#034;[MTTagCount]&#034; lower=&#034;51&#034; upper=&#034;60&#034; numeric=&#034;1&#034;&gt;<em>seven</em>&lt;/MTIfBetween&gt;</strong>&lt;MTIfBetween a=&#034;[MTTagCount]&#034; lower=&#034;61&#034; upper=&#034;70&#034; numeric=&#034;1&#034;&gt;eight&lt;/MTIfBetween&gt;&lt;MTIfBetween a=&#034;[MTTagCount]&#034; lower=&#034;71&#034; upper=&#034;80&#034; numeric=&#034;1&#034;&gt;nine&lt;/MTIfBetween&gt;&lt;MTIfBetween a=&#034;[MTTagCount]&#034; lower=&#034;81&#034; upper=&#034;100&#034; numeric=&#034;1&#034;&gt;ten&lt;/MTIfBetween&gt;&lt;MTIfGreater a=&#034;[MTTagCount]&#034; b=&#034;100&#034; numeric=&#034;1&#034;&gt;bang&lt;/MTIfGreater&gt;&#034;&gt;&lt;$MTTagName&gt;&lt;/a&gt;<br />
&lt;/MTTags&gt;<br />
&lt;/p&gt;</code></p>
<p>What&#039;s this mess? Here is a little explanation. The usual codes to display tags is this:</p>
<p><code>&lt;p&gt;<br />
&lt;MTTags&gt;<br />
&lt;a href="&lt;$MTTagSearchLink$&gt;"&gt;&lt;$MTTagName&gt;&lt;/a&gt;<br />
&lt;/MTTags&gt;<br />
&lt;/p&gt;</code></p>
<p>This would output a plain list of tags used on your site. But to control tag sizes, we add a class to tag links and the class changes with the number of times the tag have been used. For example, if a tag was used only one or two times, this would be the output:</p>
<p><code>&lt;a href="taglink" class="<strong>one</strong>&#034;&gt;tagname&lt;/a&gt;</code></p>
<p>If it was used between 51 or 60 times (I bolded this part in the tag cloud codes), it would output:</p>
<p><code>&lt;a href="taglink" class="<strong>seven</strong>&#034;&gt;tagname&lt;/a&gt;</code></p>
<p>And the font-size would be 225%! You can change the values as you want :)</p>
<p class="akst_link"><a href="http://pootato.org/?p=114&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_114" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/movable-type/create-a-tag-cloud/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress essential plugins</title>
		<link>http://pootato.org/tips-and-tricks/wordpress/wordpress-essential-plugins/</link>
		<comments>http://pootato.org/tips-and-tricks/wordpress/wordpress-essential-plugins/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 21:27:40 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/wordpress/wordpress-essential-plugins/</guid>
		<description><![CDATA[Here is an other list of essential plugins for Wordpress :) You can see the list of plugins I use on this page.
Lighter admin drop menus
This one fixes something I didn&#039;t like in the default admin menu: having to click and wait two or three times before being on the page you want! In my [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an other list of essential plugins for Wordpress :) You can see the list of plugins I use on <a href="http://pootato.org/about/plugins-used/">this page</a>.</p>
<p><a href="http://www.italyisfalling.com/lighter-admin-drop-menus-wordpress-plugin">Lighter admin drop menus</a><br />
This one fixes something I didn&#039;t like in the default admin menu: having to click and wait two or three times before being on the page you want! In my opinion, this plugin produces a more beautiful menu than the one from <a href="http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/">PlanetOzh</a>! The latter was a bit buggy when the menu was too &#034;long&#034;.</p>
<p><a href="http://akismet.com/">Akismet</a><br />
Blocks all spam comments. Absolutely necessary :)</p>
<p><a href="http://lesterchan.net/portfolio/programming.php">Wp Downloads Manager</a><br />
A plugin I love for its ease of use and it was totally what I was looking for. I was using a separate script to do what it does before. Now, it&#039;s super easy to add downloads and track them!</p>
<p> <a href="http://pootato.org/tips-and-tricks/wordpress/wordpress-essential-plugins/#more-110" class="more-link">(more&#8230;)</a></p>
<p class="akst_link"><a href="http://pootato.org/?p=110&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_110" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/wordpress/wordpress-essential-plugins/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom smilies</title>
		<link>http://pootato.org/tips-and-tricks/wordpress/custom-smilies/</link>
		<comments>http://pootato.org/tips-and-tricks/wordpress/custom-smilies/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 20:42:55 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/wordpress/custom-smilies/</guid>
		<description><![CDATA[Be careful when editing source codes! Go to the /wp-includes folder, look for functions.php and make a backup.  Find this line:
$wpsmiliestrans = array(
Below this line, you will find something like:
':smile:&#039; =&#62; &#039;icon_smile.gif&#039;,
etc. (There are several lines for all the smileys) Before the arrow (=&#62;) is the text to be converted to smiley and after [...]]]></description>
			<content:encoded><![CDATA[<p>Be careful when editing source codes! Go to the /wp-includes folder, look for functions.php and make a backup.  Find this line:</p>
<p><code>$wpsmiliestrans = array(</code></p>
<p>Below this line, you will find something like:</p>
<p><code>'<strong>:smile:</strong>&#039; =&gt; &#039;<em>icon_smile.gif</em>&#039;,</code></p>
<p>etc. (There are several lines for all the smileys) Before the arrow (<samp>=&gt;</samp>) is the text to be converted to smiley and after the arrow is the smiley file. Replace them by your own smileys and don&#039;t forget to upload them to the /wp-includes/images folder. Be careful, keep the <samp>&#039; &#039;</samp> (apostrophes) and the <samp>,</samp> (comma)! You can also add more smileys, instead of replacing.</p>
<p>(note) You can customize the smileys! I recommend this snippet:</p>
<p><code>img.wp-smiley {<br />
vertical-align: middle;<br />
}</code></p>
<p>This will align your smileys vertically in the middle in your text.</p>
<p class="akst_link"><a href="http://pootato.org/?p=61&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_61" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/wordpress/custom-smilies/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Multi languages</title>
		<link>http://pootato.org/tips-and-tricks/movable-type/multi-languages/</link>
		<comments>http://pootato.org/tips-and-tricks/movable-type/multi-languages/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 16:59:33 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Movable Type]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/movable-type/multi-languages/</guid>
		<description><![CDATA[How to make a site in two languages with Movable Type? Using the Entry Body and Extended Entry fields. Screenshot.
Before starting, your pages must be in PHP ! Go to your detailed settings, then click on the publishing tab, set the file extension to php and rebuild your site.
Step 0
Translate your entries in the extended [...]]]></description>
			<content:encoded><![CDATA[<p>How to make a site in two languages with <a href="http://www.movabletype.org">Movable Type</a>? Using the <strong>Entry Body</strong> and <strong>Extended Entry</strong> fields. <a href="/schemas/2007/08/mtlang.jpg" rel='lightbox[multi-languages]'>Screenshot</a>.</p>
<p>Before starting, your pages must be in PHP ! Go to your detailed settings, then click on the publishing tab, set the file extension to php and rebuild your site.</p>
<h2>Step 0</h2>
<p>Translate your entries in the extended entry field. (See previous <a href="/schemas/2007/08/mtlang.jpg" rel='lightbox[multi-languages]'>screenshot</a>). If you&#039;re already using this field for something else, you might want to use the <a href="http://www.staggernation.com/mtplugins/RightFields/">RightFields</a> plugin for Movable Type.</p>
<h2>Step 1</h2>
<p>First, we have to modify the templates. I recommend you to separate your menu. Make a Movable Type module for your menu and call it. The Movable Type tags I&#039;m giving are only examples. Your entries/main templates should look like this:</p>
<p><code> &lt;?php<br />
$x = basename($_SERVER['QUERY_STRING']);<br />
if(!$x || $x == <strong>en</strong>) { ?&gt;<br />
&lt;!&#8211; English is the default language<br />
If english is selected, let&#039;s show MTENTRYBODY &#8211;&gt;<br />
&lt;MTEntries&gt;<br />
&lt;h1&gt;&lt;$MTEntryTitle$&gt;&lt;/h1&gt;<br />
&lt;MTEntryBody&gt;<br />
&lt;/MTEntries&gt;<br />
&lt;? } elseif ($x == &#034;<strong>fr</strong>&#034;) { ?&gt;<br />
&lt;!&#8211; The user has selected French now,<br />
let&#039;s see if there&#039;s a french version with MTEntryIfExtended&#8230; &#8211;&gt;<br />
&lt;MTEntries&gt;<br />
&lt;MTEntryIfExtended&gt;<br />
&lt;!&#8211; Yay, a French version is available! Let&#039;s show it with MTENTRYMORE &#8211;&gt;<br />
&lt;MTEntryMore&gt;<br />
&lt;/MTEntryIfExtended&gt;<br />
&lt;MTElse&gt;<br />
&lt;!&#8211; If there&#039;s no French version, let&#039;s show the English one,<br />
and let&#039;s apologize &#8211;&gt;<br />
&lt;h1&gt;&lt;$MTEntryTitle$&gt;&lt;/h1&gt;<br />
&lt;p&gt;Sorry, only available in english.&lt;/p&gt;<br />
&lt;$MTEntryBody$&gt;<br />
&lt;/MTElse&gt;<br />
&lt;/MTEntries&gt;<br />
&lt;!&#8211; DO NOT DELETE THE FOLLOWING CODE!! &#8211;&gt;<br />
&lt;? } ?&gt;</code></p>
<h2>Step 2</h2>
<p>Done? If you want to test your pages, try to go to <em>thepageurl.php?fr</em> or <em>thepageurl.php?en</em> ! Now we have to make the menu. As I said, you&#039;d better make a separate module for it, but this is not required.</p>
<p><code> &lt;?php<br />
$x = basename($_SERVER['QUERY_STRING']);<br />
if(!$x || $x == <strong>en</strong>) { ?&gt;<br />
Enter your codes for your normal menu here&#8230;<br />
Do as usual.<br />
&lt;? } elseif ($x == &#034;<strong>fr</strong>&#034;) { ?&gt;<br />
Put your normal menu, but add &#034;?fr&#034; at the end !<br />
&lt;!&#8211; DO NOT DELETE THE FOLLOWING CODE!! &#8211;&gt;<br />
&lt;? } ?&gt; </code></p>
<h2>Step 3</h2>
<p>Now just apply this scheme to all your archives templates&#8230; To link to the other version, just use this code:</p>
<p><code> &lt;a href="&lt;MTEntryPermalink&gt;<strong>?fr</strong>&#034;&gt;&lt;MTEntryTitle&gt;&lt;/a&gt; </code></p>
<p class="akst_link"><a href="http://pootato.org/?p=39&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_39" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/movable-type/multi-languages/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bandwidth issues?</title>
		<link>http://pootato.org/tips-and-tricks/miscellaneous/bandwidth-issues/</link>
		<comments>http://pootato.org/tips-and-tricks/miscellaneous/bandwidth-issues/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 10:50:22 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://pootato.org/tips-and-tricks/miscellaneous/bandwidth-issues/</guid>
		<description><![CDATA[If your site is suddenly using a lot of bandwidth (and by lot, I mean, LOT), you may be attacked by a spambot. A friend of mine has recently seen 80% of her bandwidth used up in just a few days. If your site suddenly uses a lot of bandwidth, you may want to check [...]]]></description>
			<content:encoded><![CDATA[<p>If your site is suddenly using a lot of bandwidth (and by lot, I mean, LOT), you may be attacked by a spambot. A friend of mine has recently seen 80% of her bandwidth used up in just a few days. If your site suddenly uses a lot of bandwidth, you may want to check what&#039;s happening&#8230; here are some directions, if you&#039;re using cPanel:</p>
<ol>
<li>Log in and go to &#034;Web/FTP stats &gt; Bandwidth&#034; and see which subdomain is taking the more bandwidth.</li>
<li>Go to &#034;Web/FTP stats &gt; Subdomain stats&#034; and scroll to &#034;Awstats&#034;, and click on the &#034;guilty subdomain&#034; link.</li>
<li>In the sidebar, go to &#034;Who &gt; Hosts &gt; Full list&#034;, you&#039;ll see a green column with &#034;Bandwidth&#034;, just check who is taking the most gigabytes&#8230; A normal visitor will usually download only a few megabytes, if it&#039;s gigabytes, it&#039;s certainly a spambot, or a domain direct linking your files. Note the IP address and you can &#034;<a href="http://www.dnsstuff.com/">whois</a>&#034; it.</li>
<li>Go to IP Deny manager and block the IP&#8230;</li>
<li>You may also want to disable hotlinking: go to &#034;Hotlink protection&#034; and check if all your subdomains are listed as &#034;URLs to allow access&#034;, you may also want to add some URLs, such as forums where you use custom avatars hosted on your domain, etc. When you&#039;re ready, click &#034;activate&#034;. In the &#034;URL to redirect to&#034; field, I recommend you to make an image file with your URL on it, and host it on an other server, like <a href="http://imageshack.us">imageshack</a>, etc.</li>
</ol>
<p>I hope the directions are comprehensible. :)</p>
<p class="akst_link"><a href="http://pootato.org/?p=29&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_29" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tips-and-tricks/miscellaneous/bandwidth-issues/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
