<?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>Serge&#039;s Technology View &#187; sidebar</title>
	<atom:link href="http://blog.dragonsoft.us/tag/sidebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dragonsoft.us</link>
	<description>Talk about Technologies, Software Architecture and Management</description>
	<lastBuildDate>Tue, 31 Jan 2012 01:43:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create your first Widget for WordPress &#8211; Gallery 2 ImageBlock</title>
		<link>http://blog.dragonsoft.us/2008/01/13/create-your-first-widget-for-wordpress-gallery-2-imageblock/</link>
		<comments>http://blog.dragonsoft.us/2008/01/13/create-your-first-widget-for-wordpress-gallery-2-imageblock/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 15:43:02 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Web-design]]></category>
		<category><![CDATA[imageblock]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/2008/01/11/create-your-first-widget-for-wordpress-gallery-2-imageblock/</guid>
		<description><![CDATA[Now I am going further with my experiment and modify PHP Text Widget to allow embedding Menalto Gallery 2 ImageBlock into your blog. As a result here is for you to try is an actual widget which you can see used to &#8230; <a href="http://blog.dragonsoft.us/2008/01/13/create-your-first-widget-for-wordpress-gallery-2-imageblock/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now I am going further with my experiment and modify <a href="http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/">PHP Text Widget</a> to allow embedding <a target="_blank" href="http://gallery.menalto.com/">Menalto Gallery 2</a> ImageBlock into your blog.</p>
<p>As a result here is for you to try is an actual widget which you can see used to show some of my gallery photos.<br />
You can download widget here &#8211; <a href="http://blog.dragonsoft.us/wp-content/uploads/2008/01/wp-gallery2.zip" title="Gallery 2 Widget">Gallery 2 Widget</a>.</p>
<p>Bellow are steps to follow in order to start using it.</p>
<ul>
<li>Download a ZIP file from location above</li>
<li>Unpack it and upload folder into your WordPress plugin folder</li>
<li>Visit your WordPress Admin concole and enable Plugin under &#8220;Plugins&#8221; section</li>
<li>Now go to Presentation/Widgets. You will see a new widget available &#8211; &#8220;Gallery.2&#8243;. If you need more then 1 widget to be used in your blog, change a number of available Gallery.2 widgets to desired.</li>
<li>Drag &#8220;Gallery.2 widget from available list onto your sidebar and go into options by clicking a small button on the widget bar</li>
<li>You could specify SideBar widget name, location of your gallery and choose appearance of the ImageBlock in your blog. Description for items is self-explanatory otherwise go to your Gallery.ImageBlock configuration page to find more details about the options.</li>
</ul>
<p>Enjoy.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/01/13/create-your-first-widget-for-wordpress-gallery-2-imageblock/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create your first Widget for WordPress &#8211; PHPText</title>
		<link>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/</link>
		<comments>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 05:22:51 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Web-design]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/</guid>
		<description><![CDATA[There is my first WordPress Widget &#8211; PHP Text &#8211; Text Box which accepts arbitrary PHP code and can execute it inside sidebar block. Another requirement is that it is only be allowed to be entered by Admin User. I &#8230; <a href="http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There is my first WordPress Widget &#8211; PHP Text &#8211; Text Box which accepts arbitrary PHP code and can execute it inside sidebar block.<br />
Another requirement is that it is only be allowed to be entered by Admin User.</p>
<p>I have started with the original code for Text Widget and adjusted it to include such restriction.</p>
<p>It has superseded my IFrame solution discussed in prior post and works well except that CSS is not yet applied.</p>
<p>What has been demonstrated by this little project:</p>
<ul>
<li>how to register your own sidebar widget</li>
<li>how to support multiple instances of the same widget in the sidebar</li>
<li>how to manage widget options from popup options window in Widget  Manager section of your Blog Admin Panel</li>
<li>how to store/read widget options</li>
<li>how to make your widget properly appear at the sidebar</li>
<li>implement some basic user rights manager</li>
</ul>
<p>If you&#8217;d like to use it in your blog, source code is available here &#8211; <a href="http://blog.dragonsoft.us/wp-content/uploads/2008/01/wp-phptext.zip" title="WordPress PHP Text Widget">WordPress PHP Text Widget</a>.</p>
<p>I hope this little example would help you started with Plug-in development for your WordPress Blog.</p>
<p><font color="#ff0000"><strong>WARNING: </strong>Any code injections allowed by dynamic content comes with possible security risk. Please be cautious about what you allow to be executed by the PHP code specified in the widget. I would strongly suggest avoiding use of external sources you have no control over.</font></p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create your first Widget for WordPress &#8211; Intro</title>
		<link>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/</link>
		<comments>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 04:15:38 +0000</pubDate>
		<dc:creator>Serguei Dosyukov</dc:creator>
				<category><![CDATA[Web-design]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/</guid>
		<description><![CDATA[As you can see this blog is hosted using WordPress 2.3 engine. Aside from being free and all, it provides you with easy way to extend it using Widgets. There is a long list of widgets created by different people &#8230; <a href="http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As you can see this blog is hosted using <a target="_blank" href="http://wordpress.org/">WordPress</a> 2.3 engine.<br />
Aside from being free and all, it provides you with easy way to extend it using Widgets.<br />
There is a long list of widgets created by different people over the time and you can find almost anything.<br />
Well&#8230; almost&#8230; when it comes to personal preference especially a programmer, we might became very picky and I am not an exclusion from this.</p>
<p>I was looking for the widget which will allow me to integrate an ImageBlock from my Photo Gallery into a side bar and I have not find something which will satisfy me all the way.</p>
<p>If you are familiar with <a target="_blank" href="http://gallery.menalto.com/">Menalto Gallery 2 Engine</a>, then you might know what <a target="_blank" href="http://codex.gallery2.org/Gallery2:Modules:imageblock">ImageBlock</a> is a simple preformatted PHP code snippet which you can put in your site&#8217;s PHP code to inject HTML showing random (or other kind) of item from your photo collection. In addition you need to include reference to the stylesheet file into the header.<br />
All configuration options are translated into query parameters which are then used by the snippet.<br />
Good, nice, easy&#8230; except that WordPress does not allow to use PHP inside your Text Widget, neither there is some very simple widget available around which will allow you do such thing easy way. I am sure there is one but I have not found one up to this moment.</p>
<p>As a result I end up using IFrame for some time with external page embedded. Not very nice solution since IFrame is not to XHTML validator friendly when it comes to transparency and is not auto-sizable without dancing with JavaScript&#8230;</p>
<p>After finishing some design work with my blog layout I have decided it is time to create my first Side Bar Widget for WordPress and it happened to be a <a href="http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-phptext/">PHPText</a>.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2012 <strong><a href="http://blog.dragonsoft.us">Serge&#039;s Technology View</a></strong>. This Feed is for personal non-commercial use only.</span>]]></content:encoded>
			<wfw:commentRss>http://blog.dragonsoft.us/2008/01/10/create-your-first-widget-for-wordpress-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

