<?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>Blog Design Studio</title>
	<atom:link href="http://blogdesignstudio.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogdesignstudio.com</link>
	<description>Best Wordpress Themes By Blog Design Studio</description>
	<lastBuildDate>Thu, 03 Apr 2014 09:41:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6</generator>
		<item>
		<title>Best of the best, 7 jQuery sliders that will fit your need</title>
		<link>http://blogdesignstudio.com/web-design/best-of-the-best-7-jquery-sliders-that-will-fit-your-need/</link>
		<comments>http://blogdesignstudio.com/web-design/best-of-the-best-7-jquery-sliders-that-will-fit-your-need/#comments</comments>
		<pubDate>Wed, 22 May 2013 11:50:40 +0000</pubDate>
		<dc:creator>bojan</dc:creator>
				<category><![CDATA[web design]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2226</guid>
		<description><![CDATA[You are searching for jQuery sliders? Search no more, here we have composed a list of the best slider that you can find on the internet. Some of them are free and very customizable and some of them are worth spending some money to achieve your goal. Rhinoslider This slider offers many different effects, you [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>You are searching for jQuery sliders? Search no more, here we have composed a list of the best slider that you can find on the internet. Some of them are free and very customizable and some of them are worth spending some money to achieve your goal.</p>
<h3>Rhinoslider</h3>
<p>This slider offers many different effects, you can use the generator to create your slider so you don’t spend a lot of time customizing your options.</p>
<p><a href="http://rhinoslider.com/"><img class="alignnone size-full wp-image-2227" title="1-rs" src="http://blogdesignstudio.com/wp-content/uploads/2013/05/1-rs.jpg" alt="" width="620" height="343" /></a></p>
<h3>Nivo</h3>
<p>The slider has a lot of cool effects you can get the free version or you can get one of the paid ones. It has very nice documentation and its very easy to implement.</p>
<p><a href="http://dev7studios.com/nivo-slider/"><img class="alignnone size-full wp-image-2228" title="2-nv" src="http://blogdesignstudio.com/wp-content/uploads/2013/05/2-nv.jpg" alt="" width="620" height="343" /></a></p>
<h3>Slidedeck</h3>
<p>Slidedeck offers a fully paid version only you have 3 options and tons of cool options and also you get a WordPress plugin for your money.</p>
<p><a href="http://www.slidedeck.com/"><img class="alignnone size-full wp-image-2229" title="3-sl" src="http://blogdesignstudio.com/wp-content/uploads/2013/05/3-sl.jpg" alt="" width="620" height="343" /></a></p>
<h3>Easy Slider</h3>
<p>It’s free and basic, but if you are comfortable with jQuery and you need to extend the slider to create something that you can’t find on the internet this is the way to go. We have extended the script in so many ways and it never failed us before.</p>
<p><a href="http://cssglobe.com/easy-slider-17-numeric-navigation-jquery-slider/"><img class="alignnone size-full wp-image-2230" title="4-es" src="http://blogdesignstudio.com/wp-content/uploads/2013/05/4-es.jpg" alt="" width="620" height="343" /></a></p>
<h3>Wowslider</h3>
<p>Offers a free version for noncommercial usage. There a lot of good examples on the site, good documentation so you don’t get lost and most important thing, it can fit in any design.</p>
<p><a href="http://wowslider.com/"><img class="alignnone size-full wp-image-2231" title="5-wow" src="http://blogdesignstudio.com/wp-content/uploads/2013/05/5-wow.jpg" alt="" width="620" height="343" /></a></p>
<h3>Unslider</h3>
<p>Free responsive slider that is very easy to use, it has all the options you will need. It can be used for mobile, it supports touch events if you use jQuery.event.swipe in combination with it.</p>
<p><a href="http://unslider.com/"><img class="alignnone size-full wp-image-2232" title="6-u" src="http://blogdesignstudio.com/wp-content/uploads/2013/05/6-u.jpg" alt="" width="620" height="343" /></a></p>
<h3>Camera</h3>
<p>Thumbnail preview, cool effects good documentation all you need to implement is just to download the files and take a look at the documentation.</p>
<p><a href="http://www.pixedelic.com/plugins/camera/"><img class="alignnone size-full wp-image-2233" title="7-c" src="http://blogdesignstudio.com/wp-content/uploads/2013/05/7-c.jpg" alt="" width="620" height="343" /></a></p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© bojan for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2013. |
<a href="http://blogdesignstudio.com/web-design/best-of-the-best-7-jquery-sliders-that-will-fit-your-need/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/web-design/best-of-the-best-7-jquery-sliders-that-will-fit-your-need/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful jQuery plugins</title>
		<link>http://blogdesignstudio.com/web-design/useful-jquery-plugins/</link>
		<comments>http://blogdesignstudio.com/web-design/useful-jquery-plugins/#comments</comments>
		<pubDate>Fri, 28 Dec 2012 11:29:27 +0000</pubDate>
		<dc:creator>bojan</dc:creator>
				<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2216</guid>
		<description><![CDATA[Easy List Splitter Easy list splitter can be very useful when you need to split some lists like some mega menu on the fly. It’s very easy to use  just follow the instruction on the site. To download the plugin go here. Wookmark jQuery Plugin If you are struggling on how to build this kind [&#8230;]]]></description>
				<content:encoded><![CDATA[<h3>Easy List Splitter</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/12/easy-list-splitter.png"><img class="alignnone size-full wp-image-2217" title="easy-list-splitter" src="http://blogdesignstudio.com/wp-content/uploads/2012/12/easy-list-splitter.png" alt="" width="620" height="343" /></a></p>
<p>Easy list splitter can be very useful when you need to split some lists like some mega menu on the fly. It’s very easy to use  just follow the instruction on the site.</p>
<p>To download the plugin go <a href="http://www.madeincima.it/en/articles/resources-and-tools/easy-list-splitter-plugin/">here</a>.</p>
<h3>Wookmark jQuery Plugin</h3>
<p>If you are struggling on how to build this kind of a layout take a look at this Jquery plugin.</p>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/12/wookmark-jQuery.png"><img class="alignnone size-full wp-image-2218" title="wookmark-jQuery" src="http://blogdesignstudio.com/wp-content/uploads/2012/12/wookmark-jQuery.png" alt="" width="620" height="343" /></a></p>
<p>Check out the demo <a href="http://www.wookmark.com/jquery-plugin">here</a>.</p>
<h3>qTip</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/12/qtip.png"><img class="alignnone size-full wp-image-2219" title="qtip" src="http://blogdesignstudio.com/wp-content/uploads/2012/12/qtip.png" alt="" width="620" height="343" /></a></p>
<p>A useful tooltip plugin that can save you a lot of time when you need to build an app that is using a lot of tooltips.</p>
<p>Take a look at the site <a href="http://craigsworks.com/projects/qtip/">here</a>.</p>
<h3>jQuery Countdown</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/12/jQuery-countdown.png"><img class="alignnone size-full wp-image-2220" title="jQuery-countdown" src="http://blogdesignstudio.com/wp-content/uploads/2012/12/jQuery-countdown.png" alt="" width="620" height="343" /></a></p>
<p>The beast free countdown timer. If you are getting your site ready to go live or you have some event in the future you can get this script to countdown the time that is left.</p>
<p>Take a look at the documentation <a href="http://keith-wood.name/countdown.html">here</a>.</p>
<h3>jQuery Validate</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/12/jQuery-Validate.png"><img class="alignnone size-full wp-image-2221" title="jQuery-Validate" src="http://blogdesignstudio.com/wp-content/uploads/2012/12/jQuery-Validate.png" alt="" width="620" height="343" /></a></p>
<p>Coding a validation for HTML forms can be boring and time consuming. This script will cut the time for coding and make your life better.</p>
<p>Take a look at the site <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/">here</a>.</p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© bojan for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2012. |
<a href="http://blogdesignstudio.com/web-design/useful-jquery-plugins/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/web-design/useful-jquery-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The best CSS frameworks out there</title>
		<link>http://blogdesignstudio.com/web-design/the-best-css-frameworks-out-there/</link>
		<comments>http://blogdesignstudio.com/web-design/the-best-css-frameworks-out-there/#comments</comments>
		<pubDate>Wed, 21 Nov 2012 14:09:28 +0000</pubDate>
		<dc:creator>bojan</dc:creator>
				<category><![CDATA[Free]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2208</guid>
		<description><![CDATA[In this article I am going to present you one of the best CSS frameworks you can find. When starting a new project as a frontend developer you will always have to face the fact that you will have to write a lot of CSS just to achieve the basic structure of the site. Creating [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In this article I am going to present you one of the best CSS frameworks you can find. When starting a new project as a frontend developer you will always have to face the fact that you will have to write a lot of CSS just to achieve the basic structure of the site. Creating different templates with one or multiple columns can be time consuming, well not anymore. To shorten the time and the testing of the CSS you have done we are going to look over some of the most popular CSS frameworks.</p>
<h3>Twitter Bootstrap</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/img-1.png"><img class="alignnone size-full wp-image-2209" title="img-1" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/img-1.png" alt="" width="620" height="300" /></a></p>
<p>Bootstrap comes with 940 pixel grid system it works in all the major browsers, it has a nice set of predefined UI elements that can come handy. You can customize the framework before you download the files and you can find all the things documented if you run in some problems. Overall I think that this is one of the most compete CSS frameworks you can find on the net.</p>
<p>Go to <a href="http://twitter.github.com/bootstrap/">Bootstrap</a>.</p>
<h3> 960 CSS Framework</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/img-2.png"><img class="alignnone size-full wp-image-2210" title="img-2" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/img-2.png" alt="" width="620" height="300" /></a></p>
<p>960 is a CSS framework that will ease your effort when working with 960 pixels layout sites and it will provide 12 or 16 column, which can be used separately or in tandem. To find more info go to 960 site and read the documentation and take a look at the demos.</p>
<p>Go to <a href="http://960.gs/">960</a>.</p>
<h3>Blueprint</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/img-3.png"><img class="alignnone size-full wp-image-2211" title="img-3" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/img-3.png" alt="" width="620" height="300" /></a></p>
<p>The Blueprint framework was developed By a student from Norway and this is considered to be one of the strongest CSS frameworks. It offers a CSS platform and typographic grids, the framework aims to considerably reduce the development time. Blueprint offers a user friendly generator that can be used to generate frames based on the width you input. To see more info visit the site.</p>
<p>Go to <a href="http://blueprintcss.org/">Blueprint</a>.</p>
<p>Overall using CSS grids can be helpful for big project, it can cut development time and decries the number of cross browser bugs. Always choose wisely do your research before you jump in, sometimes doing it from scratch is the best way to go.</p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© bojan for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2012. |
<a href="http://blogdesignstudio.com/web-design/the-best-css-frameworks-out-there/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/web-design/the-best-css-frameworks-out-there/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7 tools to make CSS coding easier</title>
		<link>http://blogdesignstudio.com/web-design/7-tools-to-make-css-coding-easier/</link>
		<comments>http://blogdesignstudio.com/web-design/7-tools-to-make-css-coding-easier/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 13:50:57 +0000</pubDate>
		<dc:creator>bojan</dc:creator>
				<category><![CDATA[Free]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2194</guid>
		<description><![CDATA[Border radius Border radius is one of the most used CSS properties, but to achieve the desired effect you have to type a bunch of code so can get it to work in all browsers. This tool will allow you to do this in seconds, just type the value you like and it will generate [&#8230;]]]></description>
				<content:encoded><![CDATA[<h3>Border radius</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/1.png"><img class="alignnone  wp-image-2195" title="1" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/1.png" alt="" width="620" height="300" /></a></p>
<p>Border radius is one of the most used CSS properties, but to achieve the desired effect you have to type a bunch of code so can get it to work in all browsers. This tool will allow you to do this in seconds, just type the value you like and it will generate the code for you.</p>
<p>Go to <a href="http://border-radius.com/">Border Radius.com</a></p>
<h3>Box shadow</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/2.png"><img class="alignnone  wp-image-2196" title="2" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/2.png" alt="" width="620" height="300" /></a></p>
<p>Create box shadow effects in second with Box shadow tool, just add the values you like and you are set to go.</p>
<p>Go to <a href="http://westciv.com/tools/boxshadows/index.html">Box Shadow</a></p>
<h3>Sprite Tool</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/3.png"><img class="alignnone  wp-image-2197" title="3" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/3.png" alt="" width="620" height="300" /></a></p>
<p>Sprite cow Is one of the easiest ways to generate your css code when you are using sprites in a web site. Upload your sprite image or see the example, with this tool you are going to speed up the process of making time consuming and boring sprites.</p>
<p>Go to <a href="http://www.spritecow.com/">Sprite Cow.com</a></p>
<h3>Button Maker</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/4.png"><img class="alignnone  wp-image-2198" title="4" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/4.png" alt="" width="620" height="300" /></a></p>
<p>CSS allows us to make awesome buttons. Here is a generator that will give you the ability to create the button you what in seconds no need to type the code just play around till you get the desired effect.</p>
<p>Go to <a href="http://css-tricks.com/examples/ButtonMaker/">Button Maker</a></p>
<h3>Gradient Generator</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/5.png"><img class="alignnone  wp-image-2199" title="5" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/5.png" alt="" width="620" height="300" /></a></p>
<p>Here you can generate CSS for gradients, pick the colors you like take a look at the preview and copy the code. Very easy to use.</p>
<p>Go to <a href="http://gradients.glrzad.com/">Gradient Generator</a></p>
<h3>All in one CSS3 generator</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/6.png"><img class="alignnone  wp-image-2200" title="6" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/6.png" alt="" width="620" height="300" /></a></p>
<p>All in one place, if something is missing from above you will find it here.</p>
<p>Go to <a href="http://css3generator.com/">CSS3 generator</a></p>
<h3>Font Face Generator</h3>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2012/11/7.png"><img class="alignnone  wp-image-2201" title="7" src="http://blogdesignstudio.com/wp-content/uploads/2012/11/7.png" alt="" width="620" height="300" /></a></p>
<p>Here you can generate font face css code for your free font, upload the font file and download your font kit. Also you can find a lot of free fonts for download.</p>
<p>Go to <a href="http://www.fontsquirrel.com/fontface/generator">Font Squirrel.com</a></p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© bojan for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2012. |
<a href="http://blogdesignstudio.com/web-design/7-tools-to-make-css-coding-easier/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/web-design/7-tools-to-make-css-coding-easier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Simple Flicker Widget</title>
		<link>http://blogdesignstudio.com/wordpress-plugins/create-simple-flicker-widget/</link>
		<comments>http://blogdesignstudio.com/wordpress-plugins/create-simple-flicker-widget/#comments</comments>
		<pubDate>Mon, 09 Jul 2012 09:32:26 +0000</pubDate>
		<dc:creator>bojan</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2179</guid>
		<description><![CDATA[In this tutorial we will create a simple Flicker widget using the Flicker API and the WordPress widget API. The widget can be used multiple times and it will require your Flicker ID and the number of images to display. If we search for something like this we can find a tons of premade widgets, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In this tutorial we will create a simple Flicker widget using the Flicker API and the WordPress widget API. The widget can be used multiple times and it will require your Flicker ID and the number of images to display. If we search for something like this we can find a tons of premade widgets, but nothing can be more fun than making it yourself.</p>
<h2>Introduction</h2>
<p>Flicker is the most popular photo service out there. By creating the Flicker widget you will learn how to use the Flicker API and how to create WordPress widgets.<br />
You can download the widget <a href="http://blogdesignstudio.com/wp-content/downloads/flicker_widget.rar">here</a></p>
<ol>
<li>Create a folder <em>flicker_widget </em>in your plug-ins dir.</li>
<li>Create a php file and name it <em>flicker_widget.php.</em></li>
</ol>
<h3>Step 1 – Create the widget extend class.</h3>
<p>From WordPress 2.8 we can copy and paste the widget skeleton code.</p>
<pre name="code" class="php:collapse">
	class flickr_widget extends WP_Widget {
    function flickr_widget() {
    parent::WP_Widget(false, $name = 'Flickr Widget');
    }
    
    function form($instance) {
    }
    
    function update($new_instance, $old_instance) {
    }
    
    function widget($args, $instance) {
    }
    
    }
    
    add_action( 'widgets_init', 'fw_load_widgets' );
    function fw_load_widgets() {
    register_widget('flickr_widget');
    }
</pre>
<h3>Step 2 &#8211; Making the form.</h3>
<p>Before we can make the widget form we need to figure out the input fields that we will use in this widget.</p>
<p>We will need a text filed for the title, the Flicker id and the number of items to display. Copy and paste the code in the <strong>form()</strong> function.</p>
<pre name="code" class="php:collapse">
	$title = esc_attr($instance['title']);
    $flickr_user_id = esc_attr($instance['flickr_user_id']);
    $flickr_img_limit= esc_attr($instance['flickr_img_limit']);
    ?&gt;
    &lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;"&gt;&lt;?php _e('Title:'); ?&gt; &lt;input id="&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('title'); ?&gt;" type="text" value="&lt;?php echo $title; ?&gt;" /&gt;&lt;/label&gt;&lt;/p&gt;
    &lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('flickr_user_id'); ?&gt;"&gt;&lt;?php _e('Enter Flickr ID:'); ?&gt; &lt;input id="&lt;?php echo $this-&gt;get_field_id('flickr_user_id'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('flickr_user_id'); ?&gt;" type="text" value="&lt;?php echo $flickr_user_id; ?&gt;" /&gt;&lt;/label&gt;&lt;/p&gt;
    &lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('flickr_img_limit'); ?&gt;"&gt;&lt;?php _e('Enter Flickr Image Number:'); ?&gt; &lt;input id="&lt;?php echo $this-&gt;get_field_id('flickr_img_limit'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('flickr_img_limit'); ?&gt;" type="text" value="&lt;?php echo $flickr_img_limit; ?&gt;" /&gt;&lt;/label&gt;&lt;/p&gt;
    &lt;?php
</pre>
<h3>Step 3 – Making the form update.</h3>
<p>To make the form update, you will need to setup your <strong>update()</strong> function. This should be very easy, by default WordPress sends two parameters in this function the new and the old instance. You don&#8217;t need to use the old instance since we don&#8217;t have values that we don&#8217;t want to change. Go ahead and paste this code in the <strong>update()</strong> function.</p>
<pre name="code" class="php:collapse">
	return $new_instance;
</pre>
<h3>Step 4 – Creating the costume function.</h3>
<p>In the enclosure of the class we can add more functions then just the skeleton ones that can be used in the widget.</p>
<p>To make the code cleaner we can go and crate a function that will interact with the Flicker API and use it in the widget when required.</p>
<p>Go ahead and copy/paste the <strong>getFlickrs()</strong> function bellow the widget function.</p>
<pre name="code" class="php:collapse">
	function getFlickrs($flickr_user_id, $flickr_img_limit = 10){
    $flickr_rss_url;
    if( file_exists( ABSPATH . WPINC . '/rss.php') ) {
    require_once(ABSPATH . WPINC . '/rss.php');
    } else {
    require_once(ABSPATH . WPINC . '/rss-functions.php');
    }
    if($flickr_user_id !=""){
    $flickr_rss_url = empty($options['flickr_rss_url']) ? __('http://flickr.com/services/feeds/photos_public.gne?id='.$flickr_user_id.'&amp;format=rss_200') : $options['flickr_rss_url'];
    }
    if ( empty($items) || $items &lt; 1 || $items &gt; 10 ) $items = $flickr_img_limit;
    $rss = fetch_rss( $flickr_rss_url );
    if( is_array( $rss-&gt;items ) ) {
    $out = "";
    $items = array_slice( $rss-&gt;items, 0, $items );
    $nub = 0;
    while( list( $key, $photo ) = each( $items )  ) {
    preg_match_all("/&lt;IMG.+?SRC=[\"']([^\"']+)/si",$photo[ 'description' ],$sub,PREG_SET_ORDER);
    $photo_url = str_replace( "_m.jpg", "_t.jpg", $sub[0][1] );
    if($nub == 2){
    $nub = 0;
    $out .= "&lt;li class='margin-0'&gt;&lt;a href='{$photo[ 'link' ]}'&gt;&lt;img alt='".wp_specialchars( $photo[ 'title' ], true )."' title='".wp_specialchars( $photo[ 'title' ], true )."' src='".$photo_url."' border='0' width='75'&gt;&lt;/a&gt;&lt;/li&gt;";
    continue;
    }else{
    $out .= "&lt;li&gt;&lt;a href='{$photo[ 'link' ]}'&gt;&lt;img alt='".wp_specialchars( $photo[ 'title' ], true )."' title='".wp_specialchars( $photo[ 'title' ], true )."' src='".$photo_url."' border='0' width='75'&gt;&lt;/a&gt;&lt;/li&gt;";
    }
    
    $nub ++;
    }
    }
    return $out;
    }
</pre>
<p>This function will receive two parameters, the id and the number of items <strong>$flickr_user_id, $flickr_img_limit</strong>.</p>
<p>In the function we need to include the WordPress rss file and create the flicker url variable.</p>
<p>After that we just loop thru the rss items and print out the html.</p>
<h3>Step 5 – Making everything work.</h3>
<p>The final step is to make the widget function print out our html.</p>
<p>Everything here is self explanatory and you need just to copy and paste the code in the <strong>widgets()</strong> function.</p>
<pre name="code" class="php:collapse">
	$title = apply_filters('widget_title', $instance['title']);
    if ( empty($title) ) $title = false;
    if($title){
    echo $before_title;
    echo $title;
    echo $after_title;
    }
    echo $before_widget;
    
    if($instance['flickr_user_id'] != ""){
    echo $this-&gt;getFlickrs($instance['flickr_user_id'], $instance['flickr_img_limit']);
    }else{
    echo "Enter Flickr ID.";
    }
    echo $after_widget;
</pre>
<p>If you have nice images and you want to show it in your blog then this is a nice way of doing that.</p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© bojan for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2012. |
<a href="http://blogdesignstudio.com/wordpress-plugins/create-simple-flicker-widget/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/wordpress-plugins/create-simple-flicker-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create Twitter widget with WordPress and SimplePie (Part 2)</title>
		<link>http://blogdesignstudio.com/wordpress-tutorials/how-to-create-twitter-widget-with-wordpress-and-simplepie-part-2/</link>
		<comments>http://blogdesignstudio.com/wordpress-tutorials/how-to-create-twitter-widget-with-wordpress-and-simplepie-part-2/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 10:24:15 +0000</pubDate>
		<dc:creator>bojan</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Wordpress Tutorials]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2169</guid>
		<description><![CDATA[In the second part of this tutorial we will extend the widget with more options. Let’s start by defining what sort of options we want it to have. Show timestamps Discover Hyperlinks Discover @replies Discover avatar Followers count You can download the extended plug-in here. Step 1: Getting the form ready for the new options [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In the second part of this tutorial we will extend the widget with more options. Let’s start by defining what sort of options we want it to have.</p>
<ul>
<li> Show timestamps</li>
<li> Discover Hyperlinks</li>
<li> Discover @replies</li>
<li> Discover avatar</li>
<li> Followers count</li>
</ul>
<p>You can download the extended plug-in <a href="http://blogdesignstudio.com/wp-content/downloads/bs_twitter-v2.rar">here.</a></p>
<h2>Step 1: Getting the form ready for the new options</h2>
<p>First of all we need to create the new options in the widget. Find the <strong>form()</strong> function and add the new form fields to it. Copy the code and add it at the end of the HTML.</p>
<pre name="code" class="php:collapse">&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('timestamps'); ?&gt;"&gt;&lt;?php _e('Show timestamps:'); ?&gt; &lt;input id="&lt;?php echo $this-&gt;get_field_id('timestamps'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('timestamps'); ?&gt;" type="checkbox" &lt;?php if($timestamps!=""){ echo "checked='checked'"; } ?&gt; /&gt;&lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('hyperlinks'); ?&gt;"&gt;&lt;?php _e('Discover Hyperlinks:'); ?&gt; &lt;input id="&lt;?php echo $this-&gt;get_field_id('hyperlinks'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('hyperlinks'); ?&gt;" type="checkbox" &lt;?php if($hyperlinks!=""){ echo "checked='checked'"; } ?&gt; /&gt;&lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('replies'); ?&gt;"&gt;&lt;?php _e('Discover @replies:'); ?&gt; &lt;input id="&lt;?php echo $this-&gt;get_field_id('replies'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('replies'); ?&gt;" type="checkbox" &lt;?php if($replies!=""){ echo "checked='checked'"; } ?&gt; /&gt;&lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('avatar'); ?&gt;"&gt;&lt;?php _e('Discover avatar:'); ?&gt; &lt;input id="&lt;?php echo $this-&gt;get_field_id('avatar'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('avatar'); ?&gt;" type="checkbox" &lt;?php if($avatar!=""){ echo "checked='checked'"; } ?&gt; /&gt;&lt;/label&gt;&lt;/p&gt;</pre>
<p>These are all check boxes that will turn on/off the options in the widget.</p>
<h2>Step 2: Making Sure Your Form is Saving the new options</h2>
<p>To make the form save the new options that we added in the html we need to edit the <strong>form() </strong>and <strong>update()</strong> functions.</p>
<p>In the <strong>form()</strong> function add this in the code before the html of the form.</p>
<pre name="code" class="php:collapse">$timestamps = esc_attr($instance['timestamps']);
$replies = esc_attr($instance['replies']);
$hyperlinks = esc_attr($instance['hyperlinks']);
$avatar = esc_attr($instance['avatar']);</pre>
<p>In the update function add this code just before <strong>return $instance;</strong></p>
<pre name="code" class="php:collapse">$instance['timestamps']=$new_instance['timestamps'];
$instance['replies']=$new_instance['replies'];
$instance['hyperlinks']=$new_instance['hyperlinks'];
$instance['avatar']=$new_instance['avatar'];</pre>
<h2>Step 3: Creating the set of functions for the options</h2>
<p>To make the new options we need to extend the BS_Twitter class by adding the new set of functions. All of the new functions will be added after the <strong>widget()</strong> function.</p>
<pre name="code" class="php:collapse">function bs_tweeter_hyperlinks($text) {

$text = preg_replace('/\b([a-zA-Z]+:\/\/[\w_.\-]+\.[a-zA-Z]{2,6}[\/\w\-~.?=&amp;%#+$*!]*)\b/i',"&lt;a href=\"$1\" class=\"twitter-link\"&gt;$1&lt;/a&gt;", $text);

$text = preg_replace('/\b(?&lt;!:\/\/)(www\.[\w_.\-]+\.[a-zA-Z]{2,6}[\/\w\-~.?=&amp;%#+$*!]*)\b/i',"&lt;a href=\"http://$1\" class=\"twitter-link\"&gt;$1&lt;/a&gt;", $text);

$text = preg_replace("/\b([a-zA-Z][a-zA-Z0-9\_\.\-]*[a-zA-Z]*\@[a-zA-Z][a-zA-Z0-9\_\.\-]*[a-zA-Z]{2,6})\b/i","&lt;a href=\"mailto://$1\" class=\"twitter-link\"&gt;$1&lt;/a&gt;", $text);

$text = preg_replace('/([\.|\,|\:|\Ў|\ї|\&gt;|\{|\(]?)#{1}(\w*)([\.|\,|\:|\!|\?|\&gt;|\}|\)]?)\s/i', "$1&lt;a href=\"http://twitter.com/#search?q=$2\" class=\"twitter-link\"&gt;#$2&lt;/a&gt;$3 ", $text);

return $text;

}

function bs_tweeter_users($text) {

$text = preg_replace('/([\.|\,|\:|\Ў|\ї|\&gt;|\{|\(]?)@{1}(\w*)([\.|\,|\:|\!|\?|\&gt;|\}|\)]?)\s/i', "$1&lt;a href=\"http://twitter.com/$2\" class=\"twitter-user\"&gt;@$2&lt;/a&gt;$3 ", $text);

$text =  preg_replace('/(^|\s)#(\w+)/', '\1#&lt;a href="http://search.twitter.com/search?q=%23\2"&gt;\2&lt;/a&gt;', $text);

return $text;

}

function bs_string_remover($tweet, $username) {

$string_length = strlen($username);

$tweet = substr_replace($tweet, '', 0, $string_length+1);

return $tweet;

}

function bs_twitter_followers_counter($username, $cache) {

$cache_file = $cache."/".md5($username);

if (is_file ( $cache_file ) == false) {

$cache_file_time = strtotime ( '1984-01-11 07:15' );

} else {

$cache_file_time = filemtime ( $cache_file );

}

$now = strtotime ( date ( 'Y-m-d H:i:s' ) );

$api_call = $cache_file_time;

$difference = $now - $api_call;

$api_time_seconds = 3600*24;

if ($difference &gt;= $api_time_seconds) {

$api_page = 'http://twitter.com/users/show/' . $username;

$xml = file_get_contents ( $api_page );

$profile = new SimpleXMLElement ( $xml );

$count = $profile-&gt;followers_count;

if (is_file ( $cache_file ) == true) {

unlink ( $cache_file );

}

touch ( $cache_file );

file_put_contents ( $cache_file, strval ( $count ) );

return strval ( $count );

} else {

$count = file_get_contents ( $cache_file );

return strval ( $count );

}

}

function bs_relative_time( $timestamp ){

if( !is_numeric( $timestamp ) ){

$timestamp = strtotime( $timestamp );

if( !is_numeric( $timestamp ) ){

return "";

}

}

$difference = time() - $timestamp;

$periods = array( "sec", "min", "hour", "day", "week", "month", "years", "decade" );

$lengths = array( "60","60","24","7","4.35","12","10");

if ($difference &gt; 0) { // this was in the past

$ending = "ago";

}else { // this was in the future

$difference = -$difference;

$ending = "to go";

}

for( $j=0; $difference&gt;=$lengths[$j] and $j &lt; 7; $j++ )

$difference /= $lengths[$j];

$difference = round($difference);

if( $difference != 1 ){

$periods[$j].= "s";

}

$text = "$difference $periods[$j] $ending";

return $text;

}

function bs_cache_avatar($username){

$cache_file =ABSPATH.'wp-content/plugins/bs_twitter/cache/'.md5($username).'.jpg';

if (is_file ( $cache_file ) == false) {

$cache_file_time = strtotime ( '1984-01-11 07:15' );

} else {

$cache_file_time = filemtime ( $cache_file );

}

$now = strtotime ( date ( 'Y-m-d H:i:s' ) );

$api_call = $cache_file_time;

$difference = $now - $api_call;

$api_time_seconds = 3600*24;

if ($difference &gt;= $api_time_seconds) {

$xml = simplexml_load_file("http://twitter.com/users/".$username.".xml");

$ch = curl_init($xml-&gt;profile_image_url);

$fp = fopen($cache_file, "w");

curl_setopt($ch, CURLOPT_FILE, $fp);

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_exec($ch);

curl_close($ch);

fclose($fp);

}

return get_bloginfo('url').'/wp-content/plugins/bs_twitter/cache/'.md5($username).'.jpg';

}</pre>
<p>Let’s take a look at the functions one by one.</p>
<ul>
<li> bs_tweeter_hyperlinks – will discover the hyperlinks in the content of the tweet and add the link to it.</li>
<li> bs_tweeter_users – will discover the users in the tweet content and add the link to the users profile on twitter.</li>
<li> bs_string_remover – will remove the users from the content when needed.</li>
<li> bs_twitter_followers_counter – is a function that will display the followers number also cache it so we don’t send requests to the twitter api every time we refresh the page on the front end</li>
<li> bs_relative_time – shows the tweet time in relative time.</li>
<li> bs_cache_avatar – displays your avatar before every tweet and also stores the image locally on your site.</li>
</ul>
<h2>Step 4: Displaying the new set of functionalities on the front end</h2>
<p>In the widget function we need to change the code so we can display the new set of options that we created. To do this we will change the function completely. Just copy and paste the new widget function over the existing one.</p>
<pre name="code" class="php:collapse">function widget($args, $instance) {

extract($args);

$title = apply_filters('widget_title', $instance['title']);

if ( empty($title) ) $title = false;

$twitter_username = trim($instance['twitter_username']);

$number = absint( $instance['number'] );

$timestamps = esc_attr($instance['timestamps']);

$replies = esc_attr($instance['replies']);

$hyperlinks = esc_attr($instance['hyperlinks']);

$avatar = esc_attr($instance['avatar']);

$cache_path = ABSPATH.'wp-content/plugins/bs_twitter/cache';

if($title){

echo $before_title;

echo $title;

echo ' - &lt;small&gt;'.$this-&gt;bs_twitter_followers_counter($twitter_username, $cache_path)." Followers&lt;/small&gt;";

echo $after_title;

}

echo $before_widget;

if (class_exists('SimplePie')) {

$feed = new SimplePie();

$feed-&gt;set_feed_url('http://www.twitter.com/statuses/user_timeline/'.$twitter_username.'.rss');

$feed-&gt;set_cache_location($cache_path);

$feed-&gt;enable_cache(true); //disable caching

$feed-&gt;set_cache_duration(1800); //The number of seconds to cache for. 60 is 1 minute, 600 is 10 minutes, 900 is 15 minutes, 1800 is 30 minutes.

$feed-&gt;set_timeout(50);

$success = $feed-&gt;init();

$feed-&gt;handle_content_type();

if ($success):

echo "&lt;ul class='bs_twitter_feed'&gt;";

foreach ($feed-&gt;get_items(0, $number) as $item):

if ($item) {

?&gt;

&lt;li&gt;

&lt;?php

$content = $this-&gt;bs_string_remover($item-&gt;get_title(), $twitter_username);

if($hyperlinks!=""){

$content=$this-&gt;bs_tweeter_hyperlinks($content);

}

if($replies!=""){

$content=$this-&gt;bs_tweeter_users($content);

}

if($avatar !=""){

echo '&lt;div&gt;&lt;a href="'.$item-&gt;get_permalink().'"&gt;&lt;img src="'.$this-&gt;bs_cache_avatar($twitter_username).'" /&gt;&lt;/a&gt;&lt;/div&gt;';

}

echo $content;

if($timestamps!=""){

echo '&lt;span&gt;&lt;abbr title="'.$item-&gt;get_date().'"&gt;'.$this-&gt;bs_relative_time(strtotime($item-&gt;get_date())).'&lt;/abbr&gt;&lt;/span&gt;';

}

?&gt;

&lt;/li&gt;

&lt;?php

} // end if there is an item

endforeach;

echo "&lt;/ul&gt;";

if($twitter_username !=""){

echo "&lt;a class='follow' href='http://twitter.com/".$twitter_username."'&gt;More ...&lt;/a&gt;";

}

endif; //success

}

echo $after_widget;

}</pre>
<p>That’s it! You can take a look at the new code and if you have any questions feel free to comment bellow.</p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© bojan for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2012. |
<a href="http://blogdesignstudio.com/wordpress-tutorials/how-to-create-twitter-widget-with-wordpress-and-simplepie-part-2/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/wordpress-tutorials/how-to-create-twitter-widget-with-wordpress-and-simplepie-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create Twitter widget with WordPress and SimplePie (Part 1)</title>
		<link>http://blogdesignstudio.com/wordpress-tutorials/how-to-create-twitter-widget-with-wordpress-and-simplepie-part-1/</link>
		<comments>http://blogdesignstudio.com/wordpress-tutorials/how-to-create-twitter-widget-with-wordpress-and-simplepie-part-1/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 08:42:32 +0000</pubDate>
		<dc:creator>bojan</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Wordpress Tutorials]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2157</guid>
		<description><![CDATA[There are a lot of Twitter widgets for WordPress but in my experience none of those utilize the powerful SimplePie PHP class that is in the WordPress core. SimplePie is a powerful RSS reader class that has very nice built-in caching system since as we all know the Twitter API is limited to only 150 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>There are a lot of Twitter widgets for WordPress but in my experience none of those utilize the powerful SimplePie PHP class that is in the WordPress core. SimplePie is a powerful RSS reader class that has very nice built-in caching system since as we all know the Twitter API is limited to only 150 requests per hour creating problems with high traffic websites.</p>
<p>You can download the plug-in <a href="http://blogdesignstudio.com/wp-content/downloads/bs_twitter.rar">here</a>.</p>
<h2>Step 1: Getting the plug-in ready</h2>
<p>Create a folder and name it bs_twitter. In that folder, create a PHP file and name it the same as the folder i.e. bs_twitter. Also, in the bs_twitter folder create a folder and name it cache. This will be the main plug-in file. Now, include the SimplePie class and add the activation/deactivation hooks for the plug-in.</p>
<pre name="code" class="php:collapse">
register_activation_hook(__FILE__, 'bs_twitter_activate');
register_deactivation_hook(__FILE__, 'bs_twitter_deactivate');
if ( file_exists(ABSPATH . WPINC . '/class-feed.php') ) {
	@require_once (ABSPATH . WPINC . '/class-feed.php');
}
function bs_twitter_activate () {
}
function bs_twitter_deactivate () {
}
</pre>
<h2>Step 2: Have the widget code prepared</h2>
<p>Starting from WordPress 2.8, creating a widget has become easier with the widget API. This code needs to be pasted to the widgets.php file:</p>
<p>• BS_Twitter is both the name of the class, as well as the name of the first function (the constructor). The constructor contains the code needed to setup the widget – it&#8217;s called Twitter Posts.</p>
<p>• form() generates the form that you see in the widget management page in WordPress.</p>
<p>• update() updates the options you enter in the form when the widget configuration is saved.</p>
<p>• widget() displays the actual output of the widget in the main site.</p>
<p>• The last part of the code hooks into WordPress&#8217; widget initialization and instructs it to register your widget</p>
<pre name="code" class="php:collapse">class BS_Twitter extends WP_Widget {
	function BS_Twitter() {
		$widget_ops = array( 'classname' =&gt; 'twitter_widget', 'description' =&gt; 'Show your latest Tweets' );
				$this-&gt;WP_Widget( 'twitter_widget', 'Twitter Posts', $widget_ops);
	}
	function form($instance) {
	}
	function update($new_instance, $old_instance) {
	}
	function widget($args, $instance) {
	}
}
add_action( 'widgets_init', 'bs_load_widgets' );
function bs_load_widgets() {
	register_widget('BS_Twitter');
}
</pre>
<h2>Step 3: Creating the form</h2>
<p>First thing that needs to be done even before you create the form for a widget, you must determine the type of inputs you need. For this specific widget, 3 inputs are needed: title for the widget, Twitter username, and number of tweets to be displayed. If you look at the basic code above, in the form() function you will find a parameter $instance. This basically contains the current values for all inputs in the form (for example, when you save the form with certain values). Therefore, it is needed to pull out the current values of the widgdet and populate the widget input fields with them.</p>
<pre name="code" class="php:collapse">
$instance = wp_parse_args( (array) $instance, array('title' =&gt; 'Twitter', 'number' =&gt; 5, 'twitter_username' =&gt; 'abuzz') );
$title = esc_attr($instance['title']);
$twitter_username = $instance['twitter_username'];
$number = absint($instance['number']);
?&gt;
&lt;p&gt;
&lt;label for="&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;"&gt; Title: &lt;/label&gt;
&lt;input id="&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('title'); ?&gt;" type="text" value="&lt;?php echo $title; ?&gt;" /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;label for="&lt;?php echo $this-&gt;get_field_id('twitter_username'); ?&gt;"&gt; Twitter username: &lt;/label&gt;
&lt;input id="&lt;?php echo $this-&gt;get_field_id('twitter_username'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('twitter_username'); ?&gt;" type="text" value="&lt;?php echo $twitter_username; ?&gt;" /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;label for="&lt;?php echo $this-&gt;get_field_id('number'); ?&gt;"&gt; Number of twits: &lt;/label&gt;
&lt;input id="&lt;?php echo $this-&gt;get_field_id('number'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('number'); ?&gt;" type="text" value="&lt;?php echo $number; ?&gt;" /&gt;
&lt;/p&gt;
&lt;?php
</pre>
<p>Maybe this seems as heavy code, but it actually is very simple. It creates a HTML form containing several changes. Instead of using id&#8217;s and name&#8217;s, you have to use get_field_id(). This needs to be done because if there are multiple instances of a widget and only one single ID, there will be errors. WordPress takes care of it for you if you use the said function. The other thing is that the value of the input fields is generated using PHP.</p>
<h2>Step 4: Making Sure Your Form is Saved</h2>
<p>To make sure your form updates, you need to configure your update() function. This is very simple. By default, WordPress gives 2 parameters &#8211; the old instance, and the new instance. We basically don&#8217;t really need the old instance because the old instance is only used if there are values that you may not want to change. Paste in this code into the update() function:</p>
<pre name="code" class="php:collapse">$instance=$old_instance;
$instance['title'] = strip_tags($new_instance['title']);
$instance['twitter_username']=$new_instance['twitter_username'];
$instance['number']=$new_instance['number'];
return $instance;</pre>
<h2>Step 5: Output the Widget HTML</h2>
<p>This is the final step, and it makes sure you widget displays HTML on the front end. Now that we have the user inputs set up, we can just use the inputs to communicate with the Twitter API and display tweets. The first step in the widget() function is to get the values of the user inputs. Copy and paste this code:</p>
<pre name="code" class="php:collapse">extract($args);
$title = apply_filters('widget_title', $instance['title']);
if ( empty($title) ) $title = false;
$twitter_username = $instance['twitter_username'];
$number = absint( $instance['number'] ); 
if ( empty($twitter_username) ) return;</pre>
<p>Once this is done, paste this code:</p>
<pre name="code" class="php:collapse">
if($title){
echo $before_title;
echo $title;
echo $after_title;
}
echo $before_widget;
if (class_exists('SimplePie')) {
$feed = new SimplePie();
$feed-&gt;set_feed_url('http://www.twitter.com/statuses/user_timeline/'.$twitter_username.'.rss');
$feed-&gt;set_cache_location(ABSPATH.'wp-content/plugins/bs_twitter/cache');
$feed-&gt;enable_cache(true); //disable caching
$feed-&gt;set_cache_duration(1800); //The number of seconds to cache for. 60 is 1 minute, 600 is 10 minutes, 900 is 15 minutes, 1800 is 30 minutes.
$feed-&gt;set_timeout(50);
$success = $feed-&gt;init();
$feed-&gt;handle_content_type();
if ($success):
echo "&lt;ul&gt;";
foreach ($feed-&gt;get_items(0, $number) as $item):
if ($item) {
?&gt;
&lt;li&gt;
&lt;a href="&lt;?php echo $item-&gt;get_permalink(); ?&gt;"&gt;
&lt;?php echo $item-&gt;get_title() ?&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;?php
} // end if there is an item
endforeach;
echo "&lt;/ul&gt;";
endif; //success
}
echo $after_widget;
</pre>
<p>This is a great plug-in for those who have high-traffic websites. This tutorial makes it easier to create customized Twitter widget. Options can be added and change to suite your needs.</p>
<p>This is just the first tutorial of the series that is coming up in the next period. We will explain how to customize this widget and adding more features such as adding the user avatar, discovering hyperlinks and hashtags and much more. </p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© bojan for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2012. |
<a href="http://blogdesignstudio.com/wordpress-tutorials/how-to-create-twitter-widget-with-wordpress-and-simplepie-part-1/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/wordpress-tutorials/how-to-create-twitter-widget-with-wordpress-and-simplepie-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 10 reasons to select WordPress as the platform for your website development</title>
		<link>http://blogdesignstudio.com/web-design/top-10-reasons-to-select-wordpress-as-the-platform-for-your-website-development/</link>
		<comments>http://blogdesignstudio.com/web-design/top-10-reasons-to-select-wordpress-as-the-platform-for-your-website-development/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 07:17:09 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[Business Blogging]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[WordPress Design]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2125</guid>
		<description><![CDATA[1. Low Cost to start with: Its open source and thus the platform itself is free to use and develop on – starting on WordPress is like less than half the cost of custom developing from scratch or using any other robust CMS. 2. Additional Functionality with Plugins: WordPress community is huge and developing everyday [&#8230;]]]></description>
				<content:encoded><![CDATA[<h3>1. Low Cost to start with:</h3>
<div id="_mcePaste"><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/LowCost.jpg"><img class="alignleft size-full wp-image-2128" title="LowCost" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/LowCost.jpg" alt="" width="75" height="75" /></a>Its open source and thus the platform itself is free to use and develop on – starting on WordPress is like less than half the cost of custom developing from scratch or using any other robust CMS.</div>
<h3>2. Additional Functionality with Plugins:</h3>
<div id="_mcePaste"><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/Plugins2.jpg"><img class="alignleft size-full wp-image-2152" title="Plugins2" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/Plugins2.jpg" alt="" width="75" height="75" /></a>WordPress community is huge and developing everyday – they contribute in the form of plugins which gives you additional functionality at ease and most of them are free or really low cost. Try to only use plugins which are regularly updated as it means the developer is active and it was not just a onetime thing.</div>
<h3>3. Simple to Develop:</h3>
<div id="_mcePaste"><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/SimpletoDevelop.jpg"><img class="alignleft size-full wp-image-2143" title="SimpletoDevelop" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/SimpletoDevelop.jpg" alt="" width="75" height="75" /></a>In comparison to any other robust Content Management Systems present out there, WordPress has the simplest of the code and is very documented – makes it really easy and simple to start developing on wordpress for anybody.</div>
<h3>4. Beautiful Design for Branding:</h3>
<div id="_mcePaste"><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/BeautifulDesignsforBranding.jpg"><img class="alignleft size-full wp-image-2142" title="BeautifulDesignsforBranding" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/BeautifulDesignsforBranding.jpg" alt="" width="75" height="75" /></a>Because of the flexibility of its code, the framework has no limitations in terms of design as most other CMS’s has – you can do anything to it in terms of design – no limitations really.</div>
<h3>5. Fast Launching:</h3>
<div id="_mcePaste"><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/FastLaunching.jpg"><img class="alignleft size-full wp-image-2139" title="FastLaunching" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/FastLaunching.jpg" alt="" width="75" height="75" /></a>All the above factors makes the site development really fast and save you a lot of valuable time.</div>
<h3>6. Themes – multiple prebuilt websites/blogs:</h3>
<div><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/WordpressThemes.jpg"><img class="alignleft size-full wp-image-2140" title="WordpressThemes" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/WordpressThemes.jpg" alt="" width="75" height="75" /></a>There are a huge bunch of themes available for use – free or low cost. If you are starting with a new concept then you can start with one of them rather going custom to start with – and as you grow and know your business better then you can start customizing – all depends on your business model. Just make sure that the theme you are selecting is not only just good to look at but has the simple management of the functionality in the backend so you can manage it simply (themes are not simply designs but a complete site but most of them available in the marketplace focus only on the design as thats the only thing an average person understands – the frontend).</div>
<h3>7. SEO friendly:</h3>
<div id="_mcePaste"><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/SEOfriendly.jpg"><img class="alignleft size-full wp-image-2141" title="SEOfriendly" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/SEOfriendly.jpg" alt="" width="75" height="75" /></a>It is built to be sear engine friendly &#8211; pings every time you do any update on the site. Apart from that there are multiple free plugins available for you to extend the SEO functionality and manage it easily all by yourself.</div>
<h3>8. Updated very easily:</h3>
<div id="_mcePaste"><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/EasytoUpdate.jpg"><img class="alignleft size-full wp-image-2144" title="EasytoUpdate" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/EasytoUpdate.jpg" alt="" width="75" height="75" /></a>WordPress has regular updates and you can simply implement that with click of a button. Even the plugins are the same. So your website is tuned to the latest developments.</div>
<h3>9. Easy Content Management:</h3>
<div id="_mcePaste"><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/EasyContentManagement.jpg"><img class="alignleft size-full wp-image-2138" title="EasyContentManagement" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/EasyContentManagement.jpg" alt="" width="75" height="75" /></a>Writing content in the backend is as simple as writing in MS Word. Also, you can play around with the placement of the features and add new features yourself mostly all by yourself – just make sure that the developer utilizes the power of wordpress when working on your site (making the sections widgetized to the extent possible).</div>
<h3>10. WordPress as a Company itself is run by smart innovative people and though it is open source it has a huge funding behind it for them to push developments on the platform itself – if you are a business owner you will understand the importance of this – its not only the product but who is behind it and how much money they have as its not a one day use thing</h3>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© rajat for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2011. |
<a href="http://blogdesignstudio.com/web-design/top-10-reasons-to-select-wordpress-as-the-platform-for-your-website-development/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/web-design/top-10-reasons-to-select-wordpress-as-the-platform-for-your-website-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paypal website isnt loading for the last 30+ min &#8211; is it really down?</title>
		<link>http://blogdesignstudio.com/website-optimization/paypal-website-isnt-loading-for-the-last-30-min-is-it-really-down/</link>
		<comments>http://blogdesignstudio.com/website-optimization/paypal-website-isnt-loading-for-the-last-30-min-is-it-really-down/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 05:02:21 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[Website Optimization]]></category>
		<category><![CDATA[PayPal]]></category>
		<category><![CDATA[website testing tools]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2105</guid>
		<description><![CDATA[I had some transactions to do on Paypal and I have tried opening it but it simply wont load &#8211; nothing happens on the page actually. So I called up my friends in Europe and India and it was the same result for them. I went to Pingdom and according to it the site is [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I had some transactions to do on Paypal and I have tried opening it but it simply wont load &#8211; nothing happens on the page actually. So I called up my friends in Europe and India and it was the same result for them.</p>
<p>I went to Pingdom and according to it the site is loading but surprisingly it takes 17+ sec &#8211; pingdom tests are from US servers &#8211; Its night time in US and so I cant confirm this with anybody. Here is the test <a href="http://tools.pingdom.com/fpt/?url=www.paypal.com/&amp;id=5668261" target="_blank">link</a>.</p>
<p>So I tried to ping and traceroute the site to see the response and make sure that its not only me or the few people I know &#8211; here&#8217;s the result &#8211; the website is actually not loading &#8211; it gives me the assumption that the website is down which is highly unlikely as I cant believe that Paypal can be down for an hour &#8211; but does this mean Internet Service Provider&#8217;s Server issues &#8211; and that also simultaneously with so many of them in multiple countries (Macedonia, India, Singapore)!</p>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/PaypalPing.png"><img class="alignnone size-full wp-image-2106" title="PaypalPing" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/PaypalPing.png" alt="Paypal Ping" width="529" height="309" /></a></p>
<p><a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/PaypalTraceroute.png"><img class="alignnone size-full wp-image-2108" title="PaypalTraceroute" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/PaypalTraceroute.png" alt="Paypal Traceroute" width="573" height="296" /></a></p>
<p>Maybe some of you can throw some more light to understand this problem! What other test tools are there for a non techie person like me? How do we really find out an issue if our website is down?</p>
<p>Update: After 1+ hour, its still down &#8211; same results for everyone I know!</p>
<p>2nd Update: Rankflex says the URL is not valid&#8230; hehehe I dont know if we can rely on these online tools or is it something really wrong with ISP&#8217;s &#8211; Paypal website still not opening by the way &#8211; I am giving up checking now and getting back to other work!<br />
<a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/PaypalURLnotvalid.png"><img class="alignnone size-full wp-image-2115" title="PaypalURLnotvalid" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/PaypalURLnotvalid.png" alt="Paypal URL not valid" width="582" height="376" /></a></p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© rajat for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2011. |
<a href="http://blogdesignstudio.com/website-optimization/paypal-website-isnt-loading-for-the-last-30-min-is-it-really-down/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/website-optimization/paypal-website-isnt-loading-for-the-last-30-min-is-it-really-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress is the right choice for Business websites or blog &#8211; Facts and Figures</title>
		<link>http://blogdesignstudio.com/web-design/wordpress-is-the-right-choice-for-business-websites-or-blog-facts-and-figures/</link>
		<comments>http://blogdesignstudio.com/web-design/wordpress-is-the-right-choice-for-business-websites-or-blog-facts-and-figures/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 11:33:30 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[Business Blogging]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://blogdesignstudio.com/?p=2093</guid>
		<description><![CDATA[About 3 years back we as a Web Design and Development Company, decided to chose WordPress as the only platform we will develop blog/websites on. The progress since then proves that our decision was right. Some of the achievements of WordPress as underlined by Matt in the recent Wordcamp in San Francisco and what it [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>About 3 years back we as a Web Design and Development Company, decided to chose WordPress as the only platform we will develop blog/websites on. The progress since then proves that our decision was right. Some of the achievements of WordPress as underlined by Matt in the recent Wordcamp in San Francisco and what it means to us:</p>
<div id="_mcePaste">
<ul>
<li><span style="color: #000000;">14.7%  of the top 1 million websites in the world are now powered by WordPress</span> (one year ago it was 8.5% only)</li>
<li><span style="color: #000000;">1 in every 5 new domains created in US are running on WordPress</span> (for new sites its easy to get started with WordPress &#8211; design, functionality and cost wise)</li>
<li><span style="color: #000000;">500 Thousand downloads in the first 48hrs of the 3.2 release</span> (its not only how big the community is but almost everybody is active as well)</li>
<li><span style="color: #000000;">200 Million plugin downloads</span> (how actively and beautifuly the community is contributing &#8211; proven by the use of the plugins)</li>
<li><span style="color: #000000;">92% of wordpress users now use it as a CMS</span> (most important stats as per my understanding as I have noticed over years many a people using wordpress without harnessing any of its powers which is a shame)</li>
<li><span style="color: #000000;">WordPress Maintains a zen like process of core development allowing it to be adaptive, flexible and open to extension</span> (why we all love wordpress &#8211; its the only platform which is flexible and well documented for us to mould and develop further upon to make it even more stronger and beautiful as per the reuqirement of individual projects)</li>
</ul>
</div>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="224" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=9ujY295r&amp;isDynamicSeeking=true" /><param name="src" value="http://s0.videopress.com/player.swf?v=1.03" /><param name="wmode" value="direct" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="400" height="224" src="http://s0.videopress.com/player.swf?v=1.03" allowfullscreen="true" wmode="direct" flashvars="guid=9ujY295r&amp;isDynamicSeeking=true"></embed></object></p>
<p>Also, a very creative infographic on WordPress Facts, Figures &amp; History:<br />
<a href="http://blogdesignstudio.com/wp-content/uploads/2011/09/Wordpress-Facts.jpg"><img class="alignnone size-full wp-image-2096" title="Wordpress-Facts-Figures-History" src="http://blogdesignstudio.com/wp-content/uploads/2011/09/Wordpress-Facts.jpg" alt="Wordpress Facts Figures History" width="585" height="2624" /></a></p>
<hr />
<strong>Download Free Ebook - <a href="http://blogdesignstudio.com/make-money-online.pdf">Tips and Tricks to Make Money Online</a></strong>
<p><small>© rajat for <a href="http://blogdesignstudio.com">Blog Design Studio</a>, 2011. |
<a href="http://blogdesignstudio.com/web-design/wordpress-is-the-right-choice-for-business-websites-or-blog-facts-and-figures/">Permalink</a>
</small></p>
ef0928f877b54b28a148e59b6100f865]]></content:encoded>
			<wfw:commentRss>http://blogdesignstudio.com/web-design/wordpress-is-the-right-choice-for-business-websites-or-blog-facts-and-figures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk
Database Caching using disk
Object Caching 1345/1377 objects using disk

 Served from: blogdesignstudio.com @ 2017-03-21 03:21:02 by W3 Total Cache -->