<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Cecilie Okada Design Blog</title>
	
	<link>http://www.cecilieokada.com/blog</link>
	<description>Welcome to Cecilie Okada Design Web Development Blog</description>
	<lastBuildDate>Thu, 03 May 2012 23:15:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CecilieOkadaDesignBlog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="cecilieokadadesignblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Kaimonokago 2.0 released</title>
		<link>http://www.cecilieokada.com/blog/codeigniter/2806/</link>
		<comments>http://www.cecilieokada.com/blog/codeigniter/2806/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 13:53:21 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[Kaimono Kago]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2806</guid>
		<description><![CDATA[<p>After long time, I have upgraded Kaimonokago. It is a Multi-Languages Shopping Cart running on CodeIgniter 2.1.0 and BackendPro 0.6.7 and also PHP 5.3 compatible.</p> Some features. Multi-languages menu, page content, product content etc. Email order notice to admin and cutomer Admin login, forgot password function Admin Event calendar Admin Page management jQuery Drop-down [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/kaimono-kago/kaimonokago-version-1-1-4-beta-released/' rel='bookmark' title='Kaimonokago version 1.1.4 Beta released'>Kaimonokago version 1.1.4 Beta released</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/' rel='bookmark' title='RSS Feeds and Google Analytics added to Kaimonokago'>RSS Feeds and Google Analytics added to Kaimonokago</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/kaimonokago-updated/' rel='bookmark' title='Kaimonokago shopping cart updated'>Kaimonokago shopping cart updated</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After long time, I have upgraded Kaimonokago. It is a<br />
Multi-Languages Shopping Cart running on CodeIgniter 2.1.0 and BackendPro 0.6.7 and also PHP 5.3 compatible.</p>
<h3>Some features.</h3>
<ul>
<li>Multi-languages menu, page content, product content etc.</li>
<li>Email order notice to admin and cutomer</li>
<li>Admin login, forgot password function</li>
<li>Admin Event calendar</li>
<li>Admin Page management</li>
<li>jQuery Drop-down site menu</li>
<li>Different types of slideshow</li>
<li>Admin Product management</li>
<li>Customer News letter subscription</li>
<li>Customer Login system</li>
<li>Customer management</li>
<li>Admin File management</li>
<li>Admin Menu management</li>
<li>Admin Order management</li>
<li>Admin Ajax messages</li>
<li>Dashboard/RSS feeds</li>
<li>Dashboard/Google Analytics</li>
<li>Dashboard/Twitter</li>
<li>Sharethis</li>
<li>Email template system</li>
</ul>
<h4 class="download floatleft"><a href="https://github.com/shinokada/kaimonokago2.0" target="_blank">Download from github</a></h4>
<div class="clearboth">&nbsp;</div>
<p><span id="more-2806"></span></p>
<h3>Demo frontend only</h3>
<p>Only Old version of Kaimonokago 1.1.4 is available at <a href="http://websitelab.skagerak.org/kaimonokago/" title="demo" target="_blank">here</a>.</p>
<h3>Installation</h3>
<p>1. Create a database kaimonokago and import kaimonokago20.sql<br />
2. Modify application/config/config.php and application/config/database.php accordingly.<br />
3. Change application/modules/recaptcha/config/recaptcha.php.original to recaptcha.php. Visit http://recaptcha.net/ to get your keys. If you need keys for your localhost, just add a newsite &#8220;localhost&#8221;.<br />
4. The following folders and files must be writable or chmod 777. After installation please don’t forget checking and changing some of files, especially files in config directory, to 644.</p>
<pre class="brush: php; title: ; notranslate">
/var/www/kaimonokago2.0/application/logs/
/var/www/kaimonokago/assets/cache/
/var/www/kaimonokago/application/config/config.php
/var/www/kaimonokago/application/config/database.php
/var/www/kaimonokago/modules/recaptcha/config/recaptcha.php
/var/www/kaimonokago/assets/js/plugins/ajaxfilemanager/session/
/var/www/kaimonokago/assets/js/plugins/ajaxfilemanager/session/gc_counter.ajax.php
</pre>
<p>5. Visit http://localhost/kaimonokago2.0<br />
6. To log-in go to http://localhost/kaimonokago2.0/index.php/auth and change your username, email and password.</p>
<pre class="brush: php; title: ; notranslate">
login email: admin(at)gmail.com
password: admin
</pre>
<p>7. Enter your public and private key to modules/recaptcha/config/recaptcha.php<br />
8. Add password to the ajaxfilemanager assets/js/plugins/ajaxfilemanager/inc/config.base.php</p>
<pre class="brush: php; title: ; notranslate">
define('CONFIG_ACCESS_CONTROL_MODE', ture);
define(&quot;CONFIG_LOGIN_USERNAME&quot;, 'admin(at)gmail.com');
define('CONFIG_LOGIN_PASSWORD', 'admin');
</pre>
<p>9. Further Security<br />
Open application/config/config.php and change encryption key.</p>
<pre class="brush: php; title: ; notranslate">
$config['encryption_key'] = &quot;yourkey here&quot;;
</pre>
<p>For your Encryption Key, visit <a href="http://www.ideaspace.net/misc/hash/" title="encryption">http://www.ideaspace.net/misc/hash/</a> or <a href="http://www.whatsmyip.org/hash_generator/" title="encryption">http://www.whatsmyip.org/hash_generator/</a> to<br />
generate at least 32 characters long code.<br />
After doing this you need to register a new user and change the group field to 2 in be_users in the database.</p>
<h3>Configure Your website</h3>
<p>Go to System->Settings and add necessary information for your website. The Settings include followings.</p>
<ol>
<li>General Configuration</li>
<li>Member Settings</li>
<li>Security Preferences</li>
<li>Email Configuration</li>
<li>Maintenance &#038; Debugging Settings</li>
<li>Module Management</li>
<li>Website Configuration</li>
<li>Slideshow Settings</li>
<li>Google Analytics Settings</li>
<li>RSS Feeds Settings</li>
<li>Sharethis Settings</li>
<li>Twitter Settings</li>
</ol>
<h3>How to switch to Multi-language in the frontend</h3>
<p>After logged in, go to System->Settings->Website Configuration. Select &#8216;Yes&#8217; in Multiple Languages for Frontend.</p>
<h3>How to add translation</h3>
<ul>
<li>Go to System->Settings->Website Configuration and select &#8216;Yes&#8217; in Multiple Languages.</li>
<li>Add a language in Languages page and create a new directory application/modules/language/languages/newlang_name.</li>
<li>Copy from application/modules/welcome/language/english/multi_lang.php and paste it.</li>
<li>This file is for general language in the webshop. Translate the content of the file.</li>
<li>Create a menu, page or product.</li>
<li>Click the name to edit the page. Then find the language you just added.</li>
</ul>
<h3>How to change the front-end slideshow</h3>
<p>Go to Settings>Slideshow Settings and select a slideshow from a dropdown.</p>
<h3>How to hide/show module menus in the back-end</h3>
<p>Go to Settings>Module Management. Select &#8216;Yes&#8217; to show, select &#8216;No&#8217; to hide.</p>
<h3>How to delete a menu/page/product etc</h3>
<p>Click a status/tick icon to change the status.<br />
Delete icon will be displayed. </p>
<h3>How to use Access Control</h3>
<p>Please read <a href="http://www.kaydoo.co.uk/backendpro/user_guide/features/acl.html" title="backendpro user manual" target="_blank">BackendPro</a>.</p>
<h3>How to customize the template</h3>
<p>There are two placed you need to look at. system/application/views/shop and modules/welcome/views/shop.<br />
You need to tweak accordingly.</p>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/kaimono-kago/kaimonokago-version-1-1-4-beta-released/' rel='bookmark' title='Kaimonokago version 1.1.4 Beta released'>Kaimonokago version 1.1.4 Beta released</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/' rel='bookmark' title='RSS Feeds and Google Analytics added to Kaimonokago'>RSS Feeds and Google Analytics added to Kaimonokago</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/kaimonokago-updated/' rel='bookmark' title='Kaimonokago shopping cart updated'>Kaimonokago shopping cart updated</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/codeigniter/2806/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Uploading csv file with Codeigniter</title>
		<link>http://www.cecilieokada.com/blog/codeigniter/uploading-csv-file-with-codeigniter/</link>
		<comments>http://www.cecilieokada.com/blog/codeigniter/uploading-csv-file-with-codeigniter/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 23:21:51 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Codeigniter]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2800</guid>
		<description><![CDATA[<p>I could not upload csv file. But you can upload it by changing confi/mimes.php line.</p> // instead of this $mimes = array( 'hqx' =&#62; 'application/mac-binhex40', 'cpt' =&#62; 'application/mac-compactpro', 'csv' =&#62; array('text/x-comma-separated-values', 'text/comma-separated-values', ... // add 'text/plain', as follows 'csv' =&#62; array('text/plain','text/x-comma-separated-values', <p>This should fix the problem.</p> <p>Related posts: Adding Ajax File/Image Manager to Codeigniter+BackendPro </p>
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/adding-ajax-fileimage-manager-to-codeigniterbackendpro/' rel='bookmark' title='Adding Ajax File/Image Manager to Codeigniter+BackendPro'>Adding Ajax File/Image Manager to Codeigniter+BackendPro</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I could not upload csv file. But you can upload it by changing confi/mimes.php line.</p>
<pre class="brush: php; title: ; notranslate">
// instead of this
$mimes = array(	'hqx'	=&gt;	'application/mac-binhex40',
				'cpt'	=&gt;	'application/mac-compactpro',
				'csv'	=&gt;	array('text/x-comma-separated-values', 'text/comma-separated-values', ...

// add 'text/plain', as follows
'csv'	=&gt;	array('text/plain','text/x-comma-separated-values',
</pre>
<p>This should fix the problem.</p>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/adding-ajax-fileimage-manager-to-codeigniterbackendpro/' rel='bookmark' title='Adding Ajax File/Image Manager to Codeigniter+BackendPro'>Adding Ajax File/Image Manager to Codeigniter+BackendPro</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/codeigniter/uploading-csv-file-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>25 Spotify invitations give away</title>
		<link>http://www.cecilieokada.com/blog/uncategorized/25-spotify-invitations-give-away/</link>
		<comments>http://www.cecilieokada.com/blog/uncategorized/25-spotify-invitations-give-away/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 09:43:40 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2789</guid>
		<description><![CDATA[<p></p> <p>UPDATE: I just emailed the last invitations today, so there are no more to send.</p> <p>I have been using Spotify more than a year. And I have 25 Spotify invitations to give away. I read CNN news telling that Spotify is available in the U.S. by invitation only &#8212; or for paying customers. [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/ubuntu/tips-for-ubuntu-10-04/' rel='bookmark' title='Tips for Ubuntu 10.04'>Tips for Ubuntu 10.04</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cecilieokada.com/blog/wp-content/uploads/2011/07/spotify.jpg" alt="" title="spotify" width="204" height="204" class="alignleft size-full wp-image-2791" /></p>
<p>UPDATE: I just emailed the last invitations today, so there are no more to send.</p>
<p>I have been using Spotify more than a year. And I have 25 Spotify invitations to give away. I read <a href="http://edition.cnn.com/2011/TECH/innovation/07/14/spotify.us.why/index.html" title="CNN" target="_blank">CNN news</a> telling that Spotify is available in the U.S. by invitation only &#8212; or for paying customers. </p>
<p>If you are interested in getting a Spotify invitation, please leave your comment here. </p>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/ubuntu/tips-for-ubuntu-10-04/' rel='bookmark' title='Tips for Ubuntu 10.04'>Tips for Ubuntu 10.04</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/uncategorized/25-spotify-invitations-give-away/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>sharethis_helper for CodeIgniter</title>
		<link>http://www.cecilieokada.com/blog/codeigniter/sharethis_helper-for-codeigniter/</link>
		<comments>http://www.cecilieokada.com/blog/codeigniter/sharethis_helper-for-codeigniter/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 06:49:34 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Codeigniter]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2778</guid>
		<description><![CDATA[<p> &#160; <p>I have created a sharethis_helper for CodeIgniter and you can download from github. </p> How to use it Download it and place them in your CodeIgniter Open application/helper/sharethis_helper.php and change $sharethis_pub_key =‘Add your key here’; and $services = “facebook, twitter, email, sharethis, gbuzz”; You can find your sharethis publication key at http://sharethis.com [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/blogger/add-sharethis-widget-to-your-blogger-wp-or-website/' rel='bookmark' title='Add sharethis widget to your Blogger, WP or website'>Add sharethis widget to your Blogger, WP or website</a></li>
<li><a href='http://www.cecilieokada.com/blog/jquery/the-undocumented-life-of-jquery-append/' rel='bookmark' title='The undocumented life of jQuery .append()'>The undocumented life of jQuery .append()</a></li>
<li><a href='http://www.cecilieokada.com/blog/social-platform/social-bookmarking-button-addthis/' rel='bookmark' title='Social Bookmarking Button &quot;AddThis&quot;'>Social Bookmarking Button &quot;AddThis&quot;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cecilieokada.com/blog/wp-content/uploads/2011/07/sharethis_helper.png" alt="" title="sharethis_helper" width="500" height="334" class="alignleft size-full wp-image-2783" />
<div class="clearboth">&nbsp;</div>
<p>I have created a sharethis_helper for CodeIgniter and you can download from <a href="https://github.com/shinokada/sharethis_helper">github</a>. </p>
<h3>How to use it</h3>
<ol>
<li>Download it and place them in your CodeIgniter</li>
<li>Open application/helper/sharethis_helper.php and change $sharethis_pub_key =‘Add your key here’; and $services = “facebook, twitter, email, sharethis, gbuzz”;</li>
<li>You can find your sharethis publication key at http://sharethis.com</li>
<li>To modify, open application/views/welcome_message.php</li>
</ol>
<p><span id="more-2778"></span></p>
<p>Here are the code.</p>
<p>application/helpers/sharethis_helper.php</p>
<pre class="brush: php; title: ; notranslate">
function sharethis()
{   $CI =&amp; get_instance();
    // sharethis public key
    //$sharethis_pub_key = $CI-&gt;preference-&gt;item('sharethis_pub_key'); // I pull it from DB settings
    // for demo
    $sharethis_pub_key ='Add your key here';
    // sharethis direction
    //$direction = $CI-&gt;preference-&gt;item('sharethis_direction'); // I pull it from DB settings
    // for demo
    $direction ='vertical';
    if($direction=='vertical'){
        $br = '&lt;br /&gt;';
    }  else {
        $br ='';
    }
    // sharethis services
    //$services = $CI-&gt;preference-&gt;item('sharethis_services'); // Again I pull this from DB
    // for demo
    $services = &quot;facebook, twitter, email, sharethis, gbuzz&quot;;
    $services_array = explode(',', $services);
    // sharethis size
    //$size = $CI-&gt;preference-&gt;item('sharethis_size');
    $size = 'large';
    if($size=='large'){
        $size = '_large';
    }  else {
        $size ='';
    }
    $sharethis ='&lt;div id=&quot;sthoverbuttons-background&quot; class=&quot;sthoverbuttons-background-l&quot;&gt;
&lt;div id=&quot;sthoverbuttons-top&quot; class=&quot;sthoverbuttons-top-l&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;sthoverbuttons-shade&quot; class=&quot;sthoverbuttons-shade-l&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;sthoverbuttons-bottom&quot; class=&quot;sthoverbuttons-bottom-l&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div id=&quot;sthoverbuttonsMain&quot; class=&quot;sthoverbuttonsMain-l&quot;&gt;
&lt;div class=&quot;sthoverbuttons-label&quot;&gt;
&lt;span&gt;Share&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;sthoverbuttons-chicklets&quot;&gt;';
    foreach($services_array as $service){
        $service = trim($service);
        $sharethis .=&quot;\n&lt;span  class='st_&quot;.$service.$size.&quot;' &gt;&lt;/span&gt;&quot;.$br ;
    }
    $sharethis .= '&lt;script type=&quot;text/javascript&quot;&gt;var switchTo5x=true;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/buttons.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;stLight.options({publisher:\''.$sharethis_pub_key.'\'});&lt;/script&gt;&lt;/div&gt;&lt;/div&gt;';
	return $sharethis;
}
</pre>
<p>And in a view.</p>
<pre class="brush: php; title: ; notranslate">
// I use this with if ($this-&gt;preference-&gt;item('sharethis_pub_key')){
// for demo
$sharethis_pub_key = TRUE;
if ($sharethis_pub_key){
    $this-&gt;load-&gt;helper('sharethis');
    echo '&lt;div id=&quot;sthoverbuttons&quot; class=&quot;sthoverbuttons-pos-left&quot;&gt;';
    echo sharethis();
    echo &quot;&lt;/div&gt;&quot;;
}
</pre>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/blogger/add-sharethis-widget-to-your-blogger-wp-or-website/' rel='bookmark' title='Add sharethis widget to your Blogger, WP or website'>Add sharethis widget to your Blogger, WP or website</a></li>
<li><a href='http://www.cecilieokada.com/blog/jquery/the-undocumented-life-of-jquery-append/' rel='bookmark' title='The undocumented life of jQuery .append()'>The undocumented life of jQuery .append()</a></li>
<li><a href='http://www.cecilieokada.com/blog/social-platform/social-bookmarking-button-addthis/' rel='bookmark' title='Social Bookmarking Button &quot;AddThis&quot;'>Social Bookmarking Button &quot;AddThis&quot;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/codeigniter/sharethis_helper-for-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RSS Feeds and Google Analytics added to Kaimonokago</title>
		<link>http://www.cecilieokada.com/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/</link>
		<comments>http://www.cecilieokada.com/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/#comments</comments>
		<pubDate>Sun, 29 May 2011 20:45:16 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[Kaimono Kago]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2765</guid>
		<description><![CDATA[<p>I have added RSS feeds, Goolge Analytics and Orders widgets in its dashboard.</p> <p></p> &#160; <p></p> <p>I made changes RSS feeds and Google Analytics codes in PyroCMS in order to fit to the BackendPro widget.</p> <p>You needs to add necessary information in system>settings>Google Analytics Settings and RSS Feeds Settings.</p> Download from github Demo &#160; [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/2806/' rel='bookmark' title='Kaimonokago 2.0 released'>Kaimonokago 2.0 released</a></li>
<li><a href='http://www.cecilieokada.com/blog/plug-ins/implementing-show-your-google-analytics-top-content-in-wordpress/' rel='bookmark' title='Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;'>Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/kaimonokago-updated/' rel='bookmark' title='Kaimonokago shopping cart updated'>Kaimonokago shopping cart updated</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have added RSS feeds, Goolge Analytics and  Orders widgets in its dashboard.</p>
<p><img src="http://www.cecilieokada.com/blog/wp-content/uploads/2011/05/dashboard.png" alt="" title="dashboard" width="500" height="381" class="alignleft size-full wp-image-2766" /></p>
<div class="clearboth">&nbsp;</div>
<p><span id="more-2765"></span></p>
<p>I made changes RSS feeds and Google Analytics codes in PyroCMS in order to fit to the BackendPro widget.</p>
<p>You needs to add necessary information in system>settings>Google Analytics Settings and RSS Feeds Settings.</p>
<h4 class="download floatleft"><a href="https://github.com/shinokada/Kaimonokago" target="_blank">Download from github</a></h4>
<h4 class="download floatleft"><a href="http://websitelab.skagerak.org/kaimonokago/" target="_blank">Demo</a></h4>
<div class="clearboth">&nbsp;</div>
<p><img src="http://www.cecilieokada.com/blog/wp-content/uploads/2011/05/googleanalyticssetting.png" alt="" title="googleanalyticssetting" width="456" height="424" class="alignleft size-full wp-image-2769" /><img src="http://www.cecilieokada.com/blog/wp-content/uploads/2011/05/rssfeedssettings.png" alt="" title="rssfeedssettings" width="518" height="296" class="alignleft size-full wp-image-2770" /></p>
<div class="clearboth">&nbsp;</div>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/2806/' rel='bookmark' title='Kaimonokago 2.0 released'>Kaimonokago 2.0 released</a></li>
<li><a href='http://www.cecilieokada.com/blog/plug-ins/implementing-show-your-google-analytics-top-content-in-wordpress/' rel='bookmark' title='Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;'>Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/kaimonokago-updated/' rel='bookmark' title='Kaimonokago shopping cart updated'>Kaimonokago shopping cart updated</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kaimonokago shopping cart updated</title>
		<link>http://www.cecilieokada.com/blog/codeigniter/kaimonokago-updated/</link>
		<comments>http://www.cecilieokada.com/blog/codeigniter/kaimonokago-updated/#comments</comments>
		<pubDate>Sun, 15 May 2011 19:42:54 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[Kaimono Kago]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2744</guid>
		<description><![CDATA[<p>Kaimonokago is a shopping cart based on CodeIgniter. The current version is 1.1.4 and it has a multi-language functions. </p> <p>I have added a quite few design changes in the back-end and some minor bug fixes. Please read README files for installation and other details. </p> Download from github Demo &#160; <p>Related posts: Kaimonokago [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/2806/' rel='bookmark' title='Kaimonokago 2.0 released'>Kaimonokago 2.0 released</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/' rel='bookmark' title='RSS Feeds and Google Analytics added to Kaimonokago'>RSS Feeds and Google Analytics added to Kaimonokago</a></li>
<li><a href='http://www.cecilieokada.com/blog/kaimono-kago/kaimonokago-version-1-1-4-beta-released/' rel='bookmark' title='Kaimonokago version 1.1.4 Beta released'>Kaimonokago version 1.1.4 Beta released</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Kaimonokago is a shopping cart based on CodeIgniter. The current version is 1.1.4 and it has a multi-language functions. </p>
<p>I have added a quite few design changes in the back-end and some minor bug fixes. Please read README files for installation and other details. </p>
<h4 class="download floatleft"><a href="https://github.com/shinokada/Kaimonokago" target="_blank">Download from github</a></h4>
<h4 class="download floatleft"><a href="http://websitelab.skagerak.org/kaimonokago/" target="_blank">Demo</a></h4>
<div class="clearboth">&nbsp;</div>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/2806/' rel='bookmark' title='Kaimonokago 2.0 released'>Kaimonokago 2.0 released</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/' rel='bookmark' title='RSS Feeds and Google Analytics added to Kaimonokago'>RSS Feeds and Google Analytics added to Kaimonokago</a></li>
<li><a href='http://www.cecilieokada.com/blog/kaimono-kago/kaimonokago-version-1-1-4-beta-released/' rel='bookmark' title='Kaimonokago version 1.1.4 Beta released'>Kaimonokago version 1.1.4 Beta released</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/codeigniter/kaimonokago-updated/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Norwegian Characters in CodeIgniter and Editor</title>
		<link>http://www.cecilieokada.com/blog/web-development/norwegian-characters-in-codeigniter-and/</link>
		<comments>http://www.cecilieokada.com/blog/web-development/norwegian-characters-in-codeigniter-and/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 16:49:43 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2738</guid>
		<description><![CDATA[<p>I had a problem with Norwegian characters today. I found that my editor&#8217;s encoding was set to iso-8859-1, so I needed to change it to UTF-8. I kept the following in config.php in CodeIgniter.</p> $config['charset'] = &#34;UTF-8&#34;; <p>Then I needed to retype all the Norwegian characters in the editor.</p> <p>I set all database charset [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/firefox/using-scribefire-blog-editor/' rel='bookmark' title='Using ScribeFire Blog Editor'>Using ScribeFire Blog Editor</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I had a problem with Norwegian characters today. I found that my editor&#8217;s encoding was set to iso-8859-1, so I needed to change it to UTF-8. I kept the following in config.php in CodeIgniter.</p>
<pre class="brush: php; title: ; notranslate">
$config['charset'] = &quot;UTF-8&quot;;
</pre>
<p>Then I needed to retype all the Norwegian characters in the editor.</p>
<p>I set all database charset to UTF-8 as well.</p>
<pre class="brush: php; title: ; notranslate">
DEFAULT CHARSET=utf8
</pre>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/firefox/using-scribefire-blog-editor/' rel='bookmark' title='Using ScribeFire Blog Editor'>Using ScribeFire Blog Editor</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/web-development/norwegian-characters-in-codeigniter-and/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changing DocumentRoot from /var/www to /home/myname/www</title>
		<link>http://www.cecilieokada.com/blog/web-development/changing-documentroot-from-varwww-to-homemynamewww/</link>
		<comments>http://www.cecilieokada.com/blog/web-development/changing-documentroot-from-varwww-to-homemynamewww/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 15:36:08 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2736</guid>
		<description><![CDATA[<p>This is a quick tip to change your document root in Ubuntu. If you are using github, it is a bit troublesome to work in /var/www directory. You need to type &#8216;sudo&#8217; each time or change to super user. But if you change your localhost document root to your home directory, you don&#8217;t need [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/ubuntu/installing-lamp-and-phpmyadmin-on-ubuntu/' rel='bookmark' title='Installing LAMP and phpMyAdmin on Ubuntu'>Installing LAMP and phpMyAdmin on Ubuntu</a></li>
<li><a href='http://www.cecilieokada.com/blog/xampp/how-to-add-httpd-conf-to-xampp/' rel='bookmark' title='How to add httpd.conf to XAMPP'>How to add httpd.conf to XAMPP</a></li>
<li><a href='http://www.cecilieokada.com/blog/jquery/changing-form-input-styles-on-focus-with-jquery-by-sam-dunn/' rel='bookmark' title='&quot;Changing Form Input Styles on Focus with jQuery&quot; by Sam Dunn'>&quot;Changing Form Input Styles on Focus with jQuery&quot; by Sam Dunn</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This is a quick tip to change your document root in Ubuntu. If you are using github, it is a bit troublesome to work in /var/www directory. You need to type &#8216;sudo&#8217; each time or change to super user. But if you change your localhost document root to your home directory, you don&#8217;t need to do it.</p>
<p>From terminal.</p>
<div class="codesnip-container" >sudo gedit /etc/apache2/sites-available/default</div>
<p>Change the following line.</p>
<div class="codesnip-container" ><VirtualHost *:80><br />
&#8230;<br />
&#8230;<br />
	DocumentRoot /var/www<br />
	<Directory /><br />
		Options FollowSymLinks<br />
		AllowOverride None<br />
	</Directory><br />
	<Directory /var/www/><br />
		Options Indexes FollowSymLinks MultiViews<br />
		AllowOverride All<br />
		Order allow,deny<br />
		allow from all<br />
	</Directory><br />
&#8230;<br />
&#8230;</div>
<p>to the following.</p>
<div class="codesnip-container" ><VirtualHost *:80><br />
&#8230;</p>
<p>	DocumentRoot /home/yourdirectory/www<br />
	<Directory /><br />
		Options FollowSymLinks<br />
		AllowOverride None<br />
	</Directory><br />
	<Directory /home/yourdirectory/www/><br />
		Options Indexes FollowSymLinks MultiViews<br />
		AllowOverride All<br />
		Order allow,deny<br />
		allow from all<br />
	</Directory><br />
&#8230;<br />
&#8230;</div>
<p>Don&#8217;t forget to change &#8216;yourdirectory&#8217;.</p>
<p>Then from terminal.</p>
<div class="codesnip-container" >sudo apache2ctl -t<br />
sudo apache2ctl restart<br />
suso /etc/init.d/apache2 restart</div>
<p>Then transfer all your directory from /var/www to /home/yourname/www.</p>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/ubuntu/installing-lamp-and-phpmyadmin-on-ubuntu/' rel='bookmark' title='Installing LAMP and phpMyAdmin on Ubuntu'>Installing LAMP and phpMyAdmin on Ubuntu</a></li>
<li><a href='http://www.cecilieokada.com/blog/xampp/how-to-add-httpd-conf-to-xampp/' rel='bookmark' title='How to add httpd.conf to XAMPP'>How to add httpd.conf to XAMPP</a></li>
<li><a href='http://www.cecilieokada.com/blog/jquery/changing-form-input-styles-on-focus-with-jquery-by-sam-dunn/' rel='bookmark' title='&quot;Changing Form Input Styles on Focus with jQuery&quot; by Sam Dunn'>&quot;Changing Form Input Styles on Focus with jQuery&quot; by Sam Dunn</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/web-development/changing-documentroot-from-varwww-to-homemynamewww/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kaimonokago version 1.1.4 Beta released</title>
		<link>http://www.cecilieokada.com/blog/kaimono-kago/kaimonokago-version-1-1-4-beta-released/</link>
		<comments>http://www.cecilieokada.com/blog/kaimono-kago/kaimonokago-version-1-1-4-beta-released/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 19:31:39 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Kaimono Kago]]></category>
		<category><![CDATA[shopping cart]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2729</guid>
		<description><![CDATA[<p>The version 1.1.4 has multi-language module for the front-end shop. You can add any number of languages as you like. After adding languages in the languages module, you are able to input other languages to pages, products, menus and category. After adding languages in the backend, you need to add a directory and a [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/2806/' rel='bookmark' title='Kaimonokago 2.0 released'>Kaimonokago 2.0 released</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/kaimono-kago-v-1-1-1-beta-released/' rel='bookmark' title='Kaimono Kago v 1.1.1 Beta released'>Kaimono Kago v 1.1.1 Beta released</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/shopping-cart-v1-1-beta-updates/' rel='bookmark' title='Shopping Cart v1.1 Beta updates'>Shopping Cart v1.1 Beta updates</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cecilieokada.com/blog/wp-content/uploads/2011/04/icon_128.png" alt="" title="icon_128" width="128" height="128" class="alignleft size-full wp-image-2731" />The version 1.1.4 has multi-language module for the front-end shop. You can add any number of languages as you like. After adding languages in the languages module, you are able to input other languages to pages, products, menus and category. After adding languages in the backend, you need to add a directory and a file for the system languages. For example modules/welcome/language/french/kaimonokago_lang.php. </p>
<p>Another new features</p>
<ul>
<li>Slideshow module to control the front-end slideshow.</li>
<li>Common functions, such as change status, delete etc are moved to kaimonokago modules</li>
</ul>
<h4 class="download"><a href="https://github.com/shinokada/Kaimonokago">Download from github</a></h4>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/2806/' rel='bookmark' title='Kaimonokago 2.0 released'>Kaimonokago 2.0 released</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/kaimono-kago-v-1-1-1-beta-released/' rel='bookmark' title='Kaimono Kago v 1.1.1 Beta released'>Kaimono Kago v 1.1.1 Beta released</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/shopping-cart-v1-1-beta-updates/' rel='bookmark' title='Shopping Cart v1.1 Beta updates'>Shopping Cart v1.1 Beta updates</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/kaimono-kago/kaimonokago-version-1-1-4-beta-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sending email from localhost using MSMTP with gmail</title>
		<link>http://www.cecilieokada.com/blog/web-development/sending-email-from-localhost-using-msmtp-with-gmail/</link>
		<comments>http://www.cecilieokada.com/blog/web-development/sending-email-from-localhost-using-msmtp-with-gmail/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 11:24:05 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[localhost]]></category>

		<guid isPermaLink="false">http://www.cecilieokada.com/blog/?p=2683</guid>
		<description><![CDATA[<p>If you are using Ubuntu and having a problem or setting up sending email from localhost, you can use Msmtp. In this article I go through how to install msmtp and create some hml and php files to test it. Furthermore I will explain how to set up email config for BackendPro which is [...]
Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/xampp/how-to-send-email-from-your-own-localhost/' rel='bookmark' title='How to send email from your own localhost'>How to send email from your own localhost</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/codeigniter-shopping-cart-v1-1-part-15-contact-page-and-sending-email-message/' rel='bookmark' title='Shopping cart v1.1 Part 15: contact page and sending email message'>Shopping cart v1.1 Part 15: contact page and sending email message</a></li>
<li><a href='http://www.cecilieokada.com/blog/web-development/windows-in-vm-virtualbox-on-ubuntu-localhost-and-base-url-of-codeigniter/' rel='bookmark' title='Windows in VM Virtualbox on Ubuntu, localhost and base url of CodeIgniter'>Windows in VM Virtualbox on Ubuntu, localhost and base url of CodeIgniter</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cecilieokada.com/blog/wp-content/uploads/2011/03/icon_128.png" alt="" title="icon_128" width="128" height="128" class="alignleft size-full wp-image-2688" />If you are using Ubuntu and having a problem or setting up sending email from localhost, you can use Msmtp. In this article I go through how to install msmtp and create some hml and php files to test it. Furthermore I will explain how to set up email config for BackendPro which is a control panel for CodeIgniter.<br />
You will see how easy to set it up.</p>
<div class="clearboth">&nbsp;</div>
<p><span id="more-2683"></span></p>
<p>Credit goes to <a href="http://www.absolutelytech.com/2010/07/17/howto-configure-msmtp-to-work-with-gmail-on-linux/">this</a> and <a href="http://www.absolutelytech.com/2010/07/18/howto-send-emailsusing-mail-function-from-localhost-in-php-through-msmtp-using-gmail-account-on-linux/">this article</a>.</p>
<p>Install msmtp and ca-certificates for use with SSL:</p>
<pre class="brush: php; title: ; notranslate">
sudo apt-get install msmtp ca-certificates
</pre>
<p>Open msmtprc to edit.<br />
If you don&#8217;t know where msmtprc, then use &#8216;which msmtprc&#8217; in terminal</p>
<pre class="brush: php; title: ; notranslate">
sudo gedit /etc/msmtprc
</pre>
<p>Add the followings to this file.</p>
<pre class="brush: php; title: ; notranslate">
defaults
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt

account default
host smtp.gmail.com
port 587
auth on
user username(at)gmail.com
password mypass
from username(at)gmail.com
logfile /var/log/msmtp.log
</pre>
<p>Change username(at) with your username and mypass with your password for gmail.</p>
<p>Change file permission.</p>
<pre class="brush: php; title: ; notranslate">
sudo chmod 0644 /etc/msmtprc
</pre>
<p>Open php.ini to edit</p>
<pre class="brush: php; title: ; notranslate">
sudo gedit /etc/php5/apache2/php.ini
</pre>
<p>Uncomment &#8216;sendmail_path&#8217; and add this.</p>
<pre class="brush: php; title: ; notranslate">
sendmail_path = '/usr/bin/msmtp -t'
</pre>
<p>Restart apache</p>
<pre class="brush: php; title: ; notranslate">
sudo /etc/init.d/apache2 restart
</pre>
<h3>Testing</h3>
<p>Then test with the following code.</p>
<p>Method 1<br />
Create /var/www/mail.htm</p>
<pre class="brush: php; title: ; notranslate">
&lt;form method=&quot;post&quot; action=&quot;sendmail.php&quot;&gt;
Email: &lt;input name=&quot;email&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
Message:&lt;br /&gt;
&lt;textarea name=&quot;message&quot; rows=&quot;15&quot; cols=&quot;40&quot;&gt;
&lt;/textarea&gt;&lt;br /&gt;
&lt;input type=&quot;submit&quot; /&gt;
&lt;/form&gt;
</pre>
<p>And  /var/www/sendmail.php</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( &quot;youremail(at)gmail.com&quot;, &quot;Feedback Form Results&quot;,
$message, &quot;From: $email&quot; );
header( &quot;SUBJECTHERE&quot; );
?&gt;
</pre>
<p>Change youremail(at)gmail.com to whatever you like. Then go to http://localhost/mail.htm to fill up the form.</p>
<p>Method 2</p>
<p>Create /var/www/mail1.php and add this.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
if ( mail ( 'youremail(at)gmail.com', 'Test mail from localhost', 'Working Fine.' ) ){
echo 'Mail sent';
}
else{
echo 'Error. Please check error log.';
}
?&gt;
</pre>
<p>Change youremail(at)gmail.com to your email for receiving this email. And visit http://localhost/mail1.php to send email.</p>
<h3>BackendPr0</h3>
<p>If you are using <a href="http://www.cecilieokada.com/blog/downloads/">any BackendPro applications</a> then login to the backend and go to System>Settings>Email configuration. Change &#8216;Sendmail path&#8217; feild to /usr/bin/msmtp -t and &#8216;Email&#8217; to Sendmail from a dropdown.</p>
<p>Related posts:<ol>
<li><a href='http://www.cecilieokada.com/blog/xampp/how-to-send-email-from-your-own-localhost/' rel='bookmark' title='How to send email from your own localhost'>How to send email from your own localhost</a></li>
<li><a href='http://www.cecilieokada.com/blog/codeigniter/codeigniter-shopping-cart-v1-1-part-15-contact-page-and-sending-email-message/' rel='bookmark' title='Shopping cart v1.1 Part 15: contact page and sending email message'>Shopping cart v1.1 Part 15: contact page and sending email message</a></li>
<li><a href='http://www.cecilieokada.com/blog/web-development/windows-in-vm-virtualbox-on-ubuntu-localhost-and-base-url-of-codeigniter/' rel='bookmark' title='Windows in VM Virtualbox on Ubuntu, localhost and base url of CodeIgniter'>Windows in VM Virtualbox on Ubuntu, localhost and base url of CodeIgniter</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cecilieokada.com/blog/web-development/sending-email-from-localhost-using-msmtp-with-gmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

