<?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>Social Media Blog</title>
	<atom:link href="http://blog.simplemediacode.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.simplemediacode.com</link>
	<description>Marketing, development and maintenance of online communication</description>
	<lastBuildDate>Sat, 14 Aug 2010 21:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to display Post Thumbnails in WordPress feeds [CODE]</title>
		<link>http://blog.simplemediacode.com/248/how-to-display-post-thumbnails-in-wordpress-feeds-code/</link>
		<comments>http://blog.simplemediacode.com/248/how-to-display-post-thumbnails-in-wordpress-feeds-code/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 05:45:45 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[WordPress code]]></category>
		<category><![CDATA[blog marketing]]></category>
		<category><![CDATA[RSS aggregators]]></category>
		<category><![CDATA[WordPress Feeds]]></category>
		<category><![CDATA[WordPress Post Thumbnails]]></category>

		<guid isPermaLink="false">http://blog.simplemediacode.com/?p=248</guid>
		<description><![CDATA[<img width="250" height="189" src="http://blog.simplemediacode.com/wp-content/blogs.dir/1/files/post-thumbnails-in-wordpress-feeds-250x189.jpg" class="attachment-medium wp-post-image" alt="How to display Post Thumbnails in WordPress feeds [CODE]" title="post thumbnails in wordpress feeds. result preview." align="left" />
When year ago I was working on new functions for e-art.lv, I decide to use Post Thumbnails In WordPress Feeds. There were several reasons why we (e-art.lv) started to use that "feature". We saw that some of RSS aggregators are usign these features from other RSS and Atom feeds.  We wanted them too... Here is my solution.<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>When year ago I was working on new functions for e-art.lv, I decide to use <strong>Post Thumbnails In WordPress Feeds</strong>. There were several reasons why we (e-art.lv) started to use that &#8220;<em>feature</em>&#8220;. We saw that some of RSS aggregators are usign these features from other RSS and Atom feeds.  We wanted them too&#8230; Here is my solution for post thumbnails in WordPress <span style="text-decoration: underline;">excerpt</span> feeds.</p>
<p style="text-align: center;"><a title="post thumbnails in wordpress feeds. preview." rel="attachment wp-att-264" href="http://blog.simplemediacode.com/?attachment_id=264"><img class="size-medium wp-image-264 aligncenter" style="border: 0pt none;" title="post thumbnails in wordpress feeds. result preview." src="http://blog.simplemediacode.com/wp-content/blogs.dir/1/files/post-thumbnails-in-wordpress-feeds-620x470.jpg" alt="post thumbnails in wordpress feeds. preview." width="620" height="470" /></a></p>
<h2>Code of Post Thumbnails In WordPress Feeds</h2>
<pre class="brush: php; ">

// Post thumbnails in RSS from Simple Media Code http://blog.simplemediacode.com/?p=248 by http://Umbrovskis.com
function me3_rssthumbnails($content) {
global $post;
if ( has_post_thumbnail( $post-&gt;ID ) ){
$content = &#039;&#039; . get_the_post_thumbnail( $post-&gt;ID, &#039;medium&#039;, array(&#039;align&#039; =&gt; &#039;left&#039;, &#039;alt&#039; =&gt; $post-&gt;post_title)) . &quot;\n&quot; . $content;
}
return $content;
}
add_filter(&#039;the_excerpt_rss&#039;, &#039;me3_rssthumbnails&#039;);
</pre>
<p><strong>Here comes code explanation:</strong></p>
<p>we are taking existing content  of RSS</p>
<pre class="brush: php; ">
me3_rssthumbnails($content)
</pre>
<p>we are taking uploaded image from post</p>
<pre class="brush: php; ">
has_post_thumbnail( $post-&amp;gt;ID ))
</pre>
<p>Here we are taking <em>medium</em> size image from post, aligning it to <em>left</em>, and taking post title as descriptional text in <em>alt</em> attribute.</p>
<pre class="brush: php; ">
$post-&amp;gt;ID, &#039;medium&#039;, array(&#039;align&#039; =&amp;gt; &#039;left&#039;, &#039;alt&#039; =&amp;gt; $post-&amp;gt;post_title)
</pre>
<h2><a title="Post Thumbnails In WordPress Feeds (WordPress plugin)" href="http://blog.simplemediacode.com/wordpress-plugins/post-thumbnails-in-wordpress-feeds-wp-plugin/">Download as WordPress plugin</a></h2>
<h3>More info about used WordPress functions</h3>
<ul>
<li>http://codex.wordpress.org/Function_Reference/has_post_thumbnail</li>
<li>http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail</li>
<li>http://codex.wordpress.org/Function_Reference/add_filter</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/248/how-to-display-post-thumbnails-in-wordpress-feeds-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Websites optimization: Every page is a Landing page</title>
		<link>http://blog.simplemediacode.com/237/websites-optimization-every-page-is-a-landing-page/</link>
		<comments>http://blog.simplemediacode.com/237/websites-optimization-every-page-is-a-landing-page/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 16:59:17 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[Internet marketing]]></category>
		<category><![CDATA[blog optimization]]></category>
		<category><![CDATA[landing page]]></category>
		<category><![CDATA[redesign wep page]]></category>
		<category><![CDATA[visitors site paths]]></category>
		<category><![CDATA[webpage site paths]]></category>
		<category><![CDATA[Websites optimization]]></category>
		<category><![CDATA[yandex]]></category>
		<category><![CDATA[yandex.ru]]></category>

		<guid isPermaLink="false">http://blog.simplemediacode.com/?p=237</guid>
		<description><![CDATA[<img width="250" height="130" src="http://blog.simplemediacode.com/wp-content/blogs.dir/1/files/mediabox-site-paths-250x130.jpg" class="attachment-medium wp-post-image" alt="Websites optimization: Every page is a Landing page" title="visitor site paths" align="left" />
Giving tips is easy, follow them is much more harder. By saying that "every page is a landing page" I mean, that website visitor don't care on which page he is, that page is visitor's first impression about Your  page.<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>Giving tips is easy, follow them is much more harder. By saying that &#8220;every page is a landing page&#8221; I mean, that website visitor don&#8217;t care on which page he is, that page is visitor&#8217;s first impression about <strong>Your</strong> page.</p>
<p>We know it&#8217;s hard to fallow that rule, this is why we will redesign our <a title="Simple Media Code web developers" href="http://simplemediacode.com"><strong>Simple Media Code</strong></a>&#8216;s <em><a title="Social Media blog by simple media code" href="http://blog.simplemediacode.com/">Social Media Blog</a></em> into something more simple.</p>
<p style="text-align: center;"><a title="visitor site paths. visualization." rel="attachment wp-att-277" href="http://blog.simplemediacode.com/237/websites-optimization-every-page-is-a-landing-page/mediabox-site-paths/"><img class="aligncenter size-full wp-image-277" style="border: 0pt none;" title="visitor site paths" src="http://blog.simplemediacode.com/wp-content/blogs.dir/1/files/mediabox-site-paths-620x323.jpg" alt="visitor site paths" width="620" height="323" /></a>Image from my <em>yandex.ru</em> <strong>METRIKA</strong></p>
<p>For next weeks, I&#8217;ll make a lot of redesigning and code rewriting</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/237/websites-optimization-every-page-is-a-landing-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From MedaBox.lv/en to SimpleMediaCode.com</title>
		<link>http://blog.simplemediacode.com/215/from-medabox-lven-to-simplemediacode-com/</link>
		<comments>http://blog.simplemediacode.com/215/from-medabox-lven-to-simplemediacode-com/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 14:01:06 +0000</pubDate>
		<dc:creator>webdeveloper</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.simplemediacode.com/?p=215</guid>
		<description><![CDATA[
Today we changed our blog address from mediabox.lv/en/  to blog.simplemediacode.com  for blog and SimpleMediaCode.com  which will be our brand new domain for international clients.<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>Today we changed our blog address from mediabox.lv/en/  to <strong><a title="Social Media blog by simple media code" href="http://blog.simplemediacode.com">blog.simplemediacode.com</a></strong> for blog and <a title="Simple Media Code web developers" href="http://simplemediacode.com">SimpleMediaCode.com</a> which will be our brand new domain for international clients.</p>
<h2>Simple Media Code</h2>
<p style="text-align: center"><img class="size-full wp-image-216 aligncenter" style="border: 0pt none" src="http://blog.simplemediacode.com/wp-content/blogs.dir/1/files/simple-media-code-logo.jpg" alt="simple media code. logo" width="620" height="98" /></p>
<p>Simple solutions for web. Brand new website for international affairs in web development.</p>
<h2>SimpleMediaCode.com blog &#8211; it&#8217;s about WordPress and <em>Social media</em></h2>
<p>Blog about WordPress themes, plugins and WordPress hooks. There will be posts about our work in web development.</p>
<p>We don&#8217;t forget Blogger template development too ;) They will still be available here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/215/from-medabox-lven-to-simplemediacode-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress theme feature vs. WordPress plugin. What is best choice?</title>
		<link>http://blog.simplemediacode.com/197/wordpress-theme-feature-vs-wordpress-plugin-what-is-best-choice/</link>
		<comments>http://blog.simplemediacode.com/197/wordpress-theme-feature-vs-wordpress-plugin-what-is-best-choice/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 12:20:43 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[Coding web page]]></category>
		<category><![CDATA[Social network applications and plugins]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>
		<category><![CDATA[WordPress widget]]></category>

		<guid isPermaLink="false">http://blog.simplemediacode.com/?p=197</guid>
		<description><![CDATA[As WordPress developer I came to point where I have to decide: make some functions as WordPress theme features or make them more optional and theme independent as WordPress plugins. Both options have pros and cons.<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>As WordPress developer at SimpleMediaCode.com I came to point where I have to decide: <strong>make some functions as WordPress theme features</strong> or <strong>make them more optional and theme independent as <a title="custom WordPress plugin development" href="http://blog.simplemediacode.com/wordpress-plugins/">WordPress plugins</a></strong>.</p>
<h2>WordPress plugin coding</h2>
<p>If I create plugin for WordPress theme, I am hardening that, so that this function will make sure, that futures are theme independent, if for some reason someone would like to change WordPress theme. In this case, if function is displaying content for private reading (for membership pages), it will still available in other themes as well.</p>
<p><strong>Pluses by developing WordPress plugin:</strong></p>
<ul>
<li>WordPress theme theme independent,</li>
<li>cross theme usage,</li>
<li>more freedom to turn on and off.</li>
</ul>
<p><strong>Minus(es):</strong></p>
<ul>
<li>harder to implement in theme</li>
</ul>
<h2>WordPress theme feature coding</h2>
<p>But if You are using only one theme for site (custom design for site), I&#8217;m sure You can make functions as features for WordPress theme. This is good for specific placement of information, like sidebars or footer information.</p>
<p><strong>WP theme feature pluses:</strong></p>
<ul>
<li>good support of WordPress theme  hacks and hooks,</li>
<li>compatible with WordPress theme.</li>
</ul>
<p><strong>Minus(es):</strong></p>
<ul>
<li>sometimes theme administrations panel can come with too much options</li>
</ul>
<p>So, before creating WordPress theme options page, think about plugin replacements!</p>
<p>There are many more pros and cons&#8230; <span style="text-decoration: underline">What&#8217;s Yours?</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/197/wordpress-theme-feature-vs-wordpress-plugin-what-is-best-choice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy way to set up an FaceBook.com fan page</title>
		<link>http://blog.simplemediacode.com/143/easy-way-to-set-up-an-facebook-com-fan-page/</link>
		<comments>http://blog.simplemediacode.com/143/easy-way-to-set-up-an-facebook-com-fan-page/#comments</comments>
		<pubDate>Mon, 03 May 2010 06:02:23 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[Facebook.com applications and pages]]></category>
		<category><![CDATA[Social network applications and plugins]]></category>
		<category><![CDATA[FaceBook.com application]]></category>
		<category><![CDATA[Static FBML]]></category>

		<guid isPermaLink="false">http://mediabox.lv/en/?p=143</guid>
		<description><![CDATA[
With growing popularity of Faceboo.com and their 300 million active users, clients start to ask me for simple solutions on how to integrate their products or services in FaceBook.com fan pages. In this post I will give some useful links to some applications, how to integrate Your/clients products and services in FaceBook.com fan pages.<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>With growing popularity of <strong>Facebook.com</strong> and their 300 million active users, clients start to ask me for simple solutions on how to integrate their products or services in <a title="Facebook.com Pages" href="http://www.facebook.com/pages/">FaceBook.com fan pages</a>. even if I&#8217;m not creating currently any <em>apps </em>for Facebook (just testing).</p>
<p style="text-align: center"><a title="Facebook logo" rel="attachment wp-att-153" href="http://blog.simplemediacode.com/easy-way-to-set-up-an-facebook-com-fan-page/facebook-logo/"><img class="size-full wp-image-153 aligncenter" style="border: 0pt none" src="http://blog.simplemediacode.com/wp-content/blogs.dir/1/files/facebook-logo.jpg" alt="Facebook logo" width="604" height="200" /></a></p>
<p>In this post I will give some useful links to some applications, how to integrate Your/clients products and services in FaceBook.com fan pages. <span style="text-decoration: underline">What we will put on Fan page</span>:</p>
<ul>
<li>Information about company</li>
<li>Contact information</li>
<li>Some latest news and/or Blog RSS</li>
<li>Customer support information</li>
</ul>
<h2>Setting Up Your FaceBook Fan Page</h2>
<p style="text-align: center"><a title="For FaceBook application developers" rel="attachment wp-att-154" href="http://blog.simplemediacode.com/easy-way-to-set-up-an-facebook-com-fan-page/fb-application-developer/"><img class="aligncenter size-full wp-image-154" style="border: 0pt none" src="http://blog.simplemediacode.com/wp-content/blogs.dir/1/files/fb-application-developer.jpg" alt="FaceBook application developer" width="620" height="196" /></a></p>
<p>First of all we will need to <a title="Create FaceBook page" href="http://www.facebook.com/pages/create.php">create an FaceBook.com Fan page</a>. Easy instruction on step-by-step basis. After all basic information is included. Based on Your needs, You have to make choice <strong>what for You will use Your fan page</strong>.Later it will be easier to add more applications.</p>
<h2><a title="Static FBML" href="http://www.facebook.com/apps/application.php?id=4949752878">Static FBML</a></h2>
<p>With <a title="Static FBML" href="http://www.facebook.com/apps/application.php?id=4949752878">Static FBML</a> it&#8217;s very easy to create new tab on fan page, filling with basic <strong>rich content</strong> (HTML, CSS, Flash). Since it&#8217;s extended HTML (It use FaceBook HTML features), You can event create some greeting text for users, based on their profile information. This is nice start where to include Your logo, product image, promotional or links to Your home page&#8217;s content pages.</p>
<p>After <em>Static FBML</em> it&#8217;s time to create Your own FaceBook application for Fan page.</p>
<h2><a title="simply rss facebook app" href="http://apps.facebook.com/simplyrss/">Simply RSS</a></h2>
<p>Another great application is <a title="simply rss facebook app" href="http://apps.facebook.com/simplyrss/">Simply RSS</a>. If You have RSS feed from Your blog or news page, this will add them to page and Your profile. Simply paste Your RSS feeds in form and add them to page.</p>
<p><strong>It&#8217;s easy&#8230;</strong></p>
<p><span style="text-decoration: underline">This is just start point</span> while I&#8217;m working on my first FaceBook application.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/143/easy-way-to-set-up-an-facebook-com-fan-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing WWW from URI (or domain) with PHP</title>
		<link>http://blog.simplemediacode.com/136/removing-www-from-uri-or-domain-with-php/</link>
		<comments>http://blog.simplemediacode.com/136/removing-www-from-uri-or-domain-with-php/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 13:40:13 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[Coding web page]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[duplicate content]]></category>
		<category><![CDATA[non-www site]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[www prefix]]></category>

		<guid isPermaLink="false">http://mediabox.lv/en/?p=136</guid>
		<description><![CDATA[Few weeks ago I wrote how to remove WWW from domain with .htaccess. In some cases or hosting plans it's not possible to view or use .htaccess file (e.g. some low cost or free hosting providers). Solution is PHP code which redirects all www requests to non www page.<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>Few weeks ago I wrote <strong><a title="how to remove WWW from domain with .htaccess" href="http://mediabox.lv/en/remove-www-from-domain-with-htaccess/">how to remove WWW from domain with .htaccess</a></strong>. In some cases or hosting plans it&#8217;s not possible to view or use .htaccess file (e.g. some low cost or free hosting providers).</p>
<p><strong>Solution is PHP code</strong> which redirects all www requests to non www page. Since You are (should) use some general configuration or header file in Your web application, you can include this PHP code (very top of php page):</p>
<pre class="brush: php; ">

&amp;lt;?php // Removing WWW from URI with PHP http://mediabox.lv/en/?p=136
if (&#039;mediabox.lv&#039; !== $_SERVER[&#039;HTTP_HOST&#039;]) {
header(&#039;Location: http://mediabox.lv&#039; . $_SERVER[&#039;REQUEST_URI&#039;], null, 301);
}
?&amp;gt;
</pre>
<p>It use build-in <a href="http://php.net/manual/en/function.header.php">PHP header() function</a> to redirect all requests to another page, in this case: non-www domain.</p>
<p>Simple!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/136/removing-www-from-uri-or-domain-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Final cut for my first WordPress plugin</title>
		<link>http://blog.simplemediacode.com/112/final-cut-for-my-first-wordpress-plugin/</link>
		<comments>http://blog.simplemediacode.com/112/final-cut-for-my-first-wordpress-plugin/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 13:17:37 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[Facebook.com applications and pages]]></category>
		<category><![CDATA[Social network applications and plugins]]></category>
		<category><![CDATA[WordPress plugins and widgets]]></category>
		<category><![CDATA[draugiem.lv]]></category>
		<category><![CDATA[Extending Social networks]]></category>
		<category><![CDATA[FaceBook.com application]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[WordPress plugin]]></category>
		<category><![CDATA[WordPress widget]]></category>

		<guid isPermaLink="false">http://mediabox.lv/en/?p=112</guid>
		<description><![CDATA[More than one month ago I published my first WordPress plugin "Draugiem.lv/lapas fan page" for social network in Latvia draugiem.lv (FRYPE.COM). And now I want to make final cut with version 1.0 (0.1.5) and upgrade it.<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>More than one month ago I published my first WordPress plugin &#8220;<a title="Draugiem.lv/lapas Fan page, WordPress Plugin on MediaBox.lv" href="http://mediabox.lv/en/wordpress-plugins/draugiem-lv-lapas-fan-page/">Draugiem.lv/lapas fan page</a>&#8221; for social network in Latvia draugiem.lv (FRYPE.COM). And now I want to make final cut with version 1.0 (0.1.5) and upgrade it.</p>
<p>For now on my To-Do list:</p>
<ol>
<li>make for widget separate administration page,</li>
<li>rewrite <strong>JSON </strong>parsing script from <strong>Javascript </strong>to <strong>PHP</strong>,</li>
<li>and remove counter* and make it optional.</li>
</ol>
<p>*counter reads ONLY clicks on profile and page links, nothing more</p>
<h2>Next on list</h2>
<p>An <strong>FaceBook.com application for pages and profiles</strong>. Now testing.</p>
<p>Download page for WordPress plugin on WordPress.org <a title="Draugiem.lv/lapas Fan page, WordPress Plugins" href="http://wordpress.org/extend/plugins/draugiemlvlapas-fan-page/">http://wordpress.org/extend/plugins/draugiemlvlapas-fan-page/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/112/final-cut-for-my-first-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove WWW from domain with .htaccess</title>
		<link>http://blog.simplemediacode.com/103/remove-www-from-domain-with-htaccess/</link>
		<comments>http://blog.simplemediacode.com/103/remove-www-from-domain-with-htaccess/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 15:47:26 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[Coding web page]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[duplicate content]]></category>
		<category><![CDATA[non-www site]]></category>
		<category><![CDATA[www prefix]]></category>

		<guid isPermaLink="false">http://mediabox.lv/en/?p=103</guid>
		<description><![CDATA[Another good thing about removing double content is to remove or add www prefix to your domain. Remove WWW from domain # This will remove www from your domain RewriteCond %{HTTP_HOST} ^www\.mediabox\.lv$ [NC] RewriteRule ^(.*)$ http://mediabox.lv/$1 [R=301,L] This is what I now use for all my domains &#8211; domain without www prefix. Add WWW to [...]<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>Another good thing about removing double content is to remove or add <strong>www </strong>prefix to your domain.</p>
<h2>Remove WWW from domain</h2>
<pre class="brush: shell; ">

# This will remove www from your domain
RewriteCond %{HTTP_HOST} ^www\.mediabox\.lv$ [NC]
RewriteRule ^(.*)$ http://mediabox.lv/$1 [R=301,L]
</pre>
<p>This is what I now use for all my domains &#8211; <strong>domain without www prefix</strong>.</p>
<h2>Add WWW to domain</h2>
<p>This probably is best for old domains like mine www.rolandinsh.lv</p>
<pre class="brush: shell; ">

# This will remove www from your domain
RewriteCond %{HTTP_HOST} ^mediabox\.lv$ [NC]
RewriteRule ^(.*)$ http://www.mediabox.lv/$1 [R=301,L]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/103/remove-www-from-domain-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Writing first public WordPress Plugin (widget)</title>
		<link>http://blog.simplemediacode.com/70/writing-first-public-wordpress-plugin-widget/</link>
		<comments>http://blog.simplemediacode.com/70/writing-first-public-wordpress-plugin-widget/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 14:08:13 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[WordPress plugins and widgets]]></category>
		<category><![CDATA[draugiem.lv]]></category>
		<category><![CDATA[frype]]></category>
		<category><![CDATA[Frype.com]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[WordPress plugin]]></category>
		<category><![CDATA[WordPress widget]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://mediabox.lv/en/?p=70</guid>
		<description><![CDATA[
Today was first release of  "Draugiem.lv/lapas Fan page" (for non-Latvian draugiem.lv best known as Frype.com) WordPress sidebar widget for FRYPE business pages.<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>Today was first release of  &#8220;<strong><a title="Draugiem.lv/lapas Fan page, WordPress Plugins" href="http://wordpress.org/extend/plugins/draugiemlvlapas-fan-page/">Draugiem.lv/lapas Fan page</a></strong>&#8221; (for non-Latvian <em>draugiem.lv</em> best known as <a title="FRYPE" href="http://frype.com"><strong>Frype.com</strong></a>) WordPress sidebar widget for FRYPE business pages.</p>
<h2>About &#8220;<a title="Draugiem.lv/lapas Fan page, WordPress Plugins" href="http://mediabox.lv/en/wordpress-plugins/draugiem-lv-lapas-fan-page/">Draugiem.lv/lapas  Fan page</a>&#8221; WordPress widget</h2>
<blockquote><p>This plugin makes it easy to add <strong>draugiem.lv/lapas (frype.com) fan page</strong> to sidebar of WordPress blog.</p></blockquote>
<p style="text-align: center"><a title="draugiem.lv/lapas fan page on wordpress.org" rel="attachment wp-att-72" href="http://blog.simplemediacode.com/writing-first-public-wordpress-plugin-widget/draugiem-lapas-fan-wordpressorg/"><img class="size-medium wp-image-72 aligncenter" style="border: 0pt none" src="http://blog.simplemediacode.com/files/draugiem-lapas-fan-wordpressorg-610x550.jpg" alt="draugiem.lv/lapas fan page on wordpress.org" width="610" height="550" /></a></p>
<p>Widget <strong>features</strong>: (<a title="Draugiem.lv/lapas Fan page, WordPress Plugins" href="http://mediabox.lv/en/wordpress-plugins/draugiem-lv-lapas-fan-page/">http://mediabox.lv/en/wordpress-plugins/draugiem-lv-lapas-fan-page/</a>)</p>
<ol>
<li>customizable <strong>widget title</strong>,</li>
<li>customizable <strong>width</strong> (included recommended widths from frype.com),</li>
<li>customizable <strong>user count</strong> in sidebar or possibility turn visibility off,</li>
<li> changeable fan pages URL (e.g. http://draugiem.lv/<strong>umbrovskiscom</strong>),</li>
<li><strong>In Your language</strong>. By default included <span style="text-decoration: underline">Latvian</span> and <span style="text-decoration: underline">English</span>.</li>
</ol>
<p>This plugin is mainly written for Latvians :) <a title="Draugiem.lv/lapas Fanu lapa WordPress spraudnis" href="http://mediabox.lv/blog/wordpress/spraudni/draugiem-lv-lapas-fanu-lapa/">http://mediabox.lv/blog/wordpress/spraudni/draugiem-lv-lapas-fanu-lapa/</a></p>
<h2>Changelog</h2>
<ul>
<li>0.1.3 (test for upcoming 0.2) Custom CSS</li>
<li>0.1.1 &amp; 0.1.2 code clean up</li>
<li>0.1 initial release</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/70/writing-first-public-wordpress-plugin-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add Google Buzz button to WordPress and Blogger</title>
		<link>http://blog.simplemediacode.com/30/how-to-add-google-buzz-button-to-wordpress-and-blogger/</link>
		<comments>http://blog.simplemediacode.com/30/how-to-add-google-buzz-button-to-wordpress-and-blogger/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 11:49:34 +0000</pubDate>
		<dc:creator>Rolands Umbrovskis</dc:creator>
				<category><![CDATA[Coding web page]]></category>
		<category><![CDATA[Blogger addons]]></category>
		<category><![CDATA[blogspot.com tip]]></category>
		<category><![CDATA[Google Buzz]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mediabox.lv/en/?p=30</guid>
		<description><![CDATA[
Already some days are working Google Buzz. I made short search on Google for possibility to add Google Buzz button to Blogger template. As I didn't find it on first page, I decide to rewrite some of previous Blogspot template code, which I made earlier. And for WordPress blogs too...<p><small>Social Media Blog : <a href="http://blog.simplemediacode.com" title="Social Media Blog">http://blog.simplemediacode.com</a> | Mājas lapu izstrāde <a href="http://mediabox.lv/" title="Mājas lapu izstrāde un blogu izveide. Wordpress programmešanas pakalpojumi">http://mediabox.lv</a></small></p>]]></description>
			<content:encoded><![CDATA[<p>Already some days are working Google  Buzz. I made short search on Google for possibility to add Google Buzz button to Blogger template.  As I didn&#8217;t find it on first page, I decide to rewrite some of previous  Blogspot template code, which I made earlier.</p>
<p style="text-align: center"><img class="aligncenter size-full wp-image-36" style="border: 0pt none" src="http://blog.simplemediacode.com/wp-content/blogs.dir/1/files/google-buzz-logo.png" alt="google buzz. logo" width="286" height="68" /></p>
<p>So here it is: (live example: <a title="add Google Buzz button to Blogger template" href="http://mediabox4b.blogspot.com/2010/02/google-buzz-button-in-blogspot-blogger.html">http://mediabox4b.blogspot.com</a>)</p>
<pre class="brush: xml; ">
&amp;lt;a expr:href=&#039;&amp;amp;quot;http://www.google.com/reader/link?url=&amp;amp;quot; + data:post.url + &amp;amp;quot;&amp;amp;amp;title=&amp;amp;quot; + data:post.title + &amp;amp;quot;&amp;amp;amp;srcTitle=&amp;amp;quot; + data:blog.title+ &amp;amp;quot;&amp;amp;amp;srcURL=&amp;amp;quot; + data:blog.homepageUrl &#039; rel=&#039;nofollow&#039; target=&#039;_blank&#039;&amp;gt;+add to Google Buzz&amp;lt;/a&amp;gt;
</pre>
<p>put it near data:post.body</p>
<blockquote><p>Made  with <a title="Web development, WordPress  freelancer, Blogger templates" href="../../">MediaBox.lv</a> / <a title="Rolands Umbrovskis" href="http://umbrovskis.com/">Umbrovskis.com</a></p></blockquote>
<p>Where<br />
<strong>url=data:post.url</strong> – post URI,<br />
<strong>title=data:post.title</strong> – post title,<br />
<strong>srcTitle=data:blog.title</strong> – post source, You may also use data:blog.homepageUrl,<br />
<strong>srcURL=data:blog.homepageUrl</strong> – source home page.</p>
<p>And Google Buzz button for WordPress blogs:</p>
<pre class="brush: php; ">

&amp;lt;a href=&amp;quot;http://www.google.com/reader/link?url=&amp;lt;?php the_permalink() ?&amp;gt;&amp;amp;title=&amp;lt;?php the_title(); ?&amp;gt;&amp;amp;srcTitle=&amp;lt;?php bloginfo(&#039;url&#039;); ?&amp;gt;&amp;amp;srcURL=&amp;lt;?php bloginfo(&#039;url&#039;); ?&amp;gt;&amp;quot; rel=&amp;quot;nofollow&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;+add to Google Buzz&amp;lt;/a&amp;gt;
</pre>
<p>Put this <span style="text-decoration: underline">inside</span> <strong>WordPress post loop</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simplemediacode.com/30/how-to-add-google-buzz-button-to-wordpress-and-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
