<?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>Wordpress tutorials, Wordpress themes, PHP Tips</title>
	<atom:link href="http://blog.creative-webdesign.info/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.creative-webdesign.info</link>
	<description>Php tips, wordpress hacks</description>
	<lastBuildDate>Sat, 25 Feb 2012 21:25:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Show the latest videos from a youtube channel with Youtube GDATA Api &#8211; WordPress widget</title>
		<link>http://blog.creative-webdesign.info/2011/07/16/show-the-latest-videos-from-a-youtube-channel-with-youtube-gdata-api-wordpress-widget.html</link>
		<comments>http://blog.creative-webdesign.info/2011/07/16/show-the-latest-videos-from-a-youtube-channel-with-youtube-gdata-api-wordpress-widget.html#comments</comments>
		<pubDate>Sat, 16 Jul 2011 16:38:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[wordpress widget]]></category>
		<category><![CDATA[youtube api]]></category>
		<category><![CDATA[youtube gdata]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=174</guid>
		<description><![CDATA[The purpose of this tutori al is to create a widget that will show the latest videos from a particular Youtube user. For this tutorial we will use some JQuery magic and the power of Youtube GDATA Api. The Widget structure WordPress Widgets (WPW) is like a plugin, but designed to provide a simple way [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2011/07/16/show-the-latest-videos-from-a-youtube-channel-with-youtube-gdata-api-wordpress-widget.html" title="Show the latest videos from a youtube channel with Youtube GDATA Api - WordPress widget"><img src="http://blog.creative-webdesign.info/wp-content/uploads/wordpress.org_-150x83.png" alt="" class="feed-image" /></a><p>The purpose  of this tutori al is to create a widget that will show the   latest videos from a particular Youtube  user.  For this tutorial we will use some JQuery magic and the power of Youtube GDATA Api.<span id="more-174"></span></p>
<h3>The Widget structure</h3>
<blockquote><p>WordPress Widgets (WPW) is like a plugin, but designed to provide a simple way to arrange the various elements of your sidebar content (known as &#8220;widgets&#8221;) without having to change any  code. </p></blockquote>
<p>Here we have the structure of the widget (the widget class), each method  is commented so you can understand what it  means.</p>
<pre class="brush: php; title: ; notranslate">
/* YOUTUBE WIDGET */
class YT_Channel_Latest_Videos extends WP_Widget {

	// the widget constructor
    function YT_Channel_Latest_Videos() {
        parent::WP_Widget(false, $name = 'Youtube latest videos');
		parent::__construct(__CLASS__, 'Youtube latest videos', array(
			'classname' =&gt; __CLASS__,
			'description' =&gt; &quot;This widget will show the latest videos from a youtube user.&quot;
		));
    }

	// content of the widget - front-end
    function widget($args, $instance) {

    }

	// get the options
    function update($new_instance, $old_instance) {

    }

	// the form that shows in your administration area - here you insert the widget options
    function form($instance) {

    }

}

// register the widget
add_action('widgets_init', create_function('', 'register_widget(&quot;YT_Channel_Latest_Videos&quot;);'));
</pre>
<p>We will take it step by step, first we need to create the interface that will show up in the admin area, there you must be able to enter some options and save them in the database.</p>
<pre class="brush: php; title: ; notranslate">
	// the form that shows in your administration area - here you insert the widget options
    function form($instance) {
        $title     = esc_attr($instance['title']);
        $channel   = esc_attr($instance['channel']);
        $nr_videos = esc_attr($instance['nr_videos']);
		?&gt;
		&lt;p&gt;
          &lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;&quot;&gt;Title:&lt;/label&gt;
          &lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name('title'); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $title; ?&gt;&quot; /&gt;
        &lt;/p&gt;
		&lt;p&gt;
			&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id('channel'); ?&gt;&quot;&gt;Youtube channel:&lt;/label&gt;
			&lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id('channel'); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name('channel'); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $channel; ?&gt;&quot; /&gt;
		&lt;/p&gt;
		&lt;p&gt;
			&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id('nr_videos'); ?&gt;&quot;&gt;Number of videos to show:&lt;/label&gt;
			&lt;input size=&quot;3&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id('nr_videos'); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name('nr_videos'); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $nr_videos; ?&gt;&quot; /&gt;
		&lt;/p&gt;
        &lt;?php
    }
</pre>
<p>Update the options: </p>
<pre class="brush: php; title: ; notranslate">
	// get the options
    function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title']     = strip_tags($new_instance['title']);
		$instance['channel']   = strip_tags($new_instance['channel']);
		$instance['nr_videos'] = strip_tags($new_instance['nr_videos']);
		return $instance;
    }
</pre>
<p>Next we extract the latest videos from a given user using the power of jQuery (the javascript code is commented):</p>
<pre class="brush: php; title: ; notranslate">
	// content of the widget - front-end
    function widget($args, $instance) {
		remove_action(&quot;wp_print_footer_scripts&quot;, array(__CLASS__, 'remove_enqueued_script'));
		extract( $args );
		$title     = apply_filters('widget_title', $instance['title']);
		?&gt;
			&lt;?php echo $before_widget; ?&gt;
			&lt;?php if ( $title )
				echo $before_title . $title . $after_title; ?&gt;

			&lt;script type=&quot;text/javascript&quot;&gt;
			// avoid conflicts with other libraries
			jQuery.noConflict();
			(function($) {
			$(function() {

				var yt_subscription_url = 'http://gdata.youtube.com/feeds/api/users/&lt;?php echo $instance['channel']; ?&gt;/uploads?max-results=&lt;?php echo $instance['nr_videos']; ?&gt;&amp;alt=json';
				// the div element where we build the videos list
				$target_element = $('#recentUserVideosYoutube');

				// make an ajax request to get the videos from youtube
				$.ajax({
					url: yt_subscription_url,
					data_type: 'json',
					success: function(response){

						if( response != &quot;&quot; &amp;&amp; response != undefined ) {

							// parse json object
							var jsonObject = $.parseJSON(response);
							var html_build = '&lt;div&gt;';

							// loop through each video
							$.each(jsonObject.feed.entry,function(i,video){

								// video link
								var link = video.link[0].href;
								// thumbnail
								var image_url = video.media$group.media$thumbnail[1].url;
								var image_width = video.media$group.media$thumbnail[1].width;
								var image_height = video.media$group.media$thumbnail[1].height;
								//title
								var title = video.media$group.media$title.$t;
								// description
								var description = video.media$group.media$description.$t;
								// duration in seconds
								var duration = video.media$group.yt$duration.seconds;
								// view count
								var views = video.yt$statistics.viewCount;

								// start building the html for this video
								html_build += '&lt;div style=&quot;float: left; width: '+(parseInt(image_width))+'px; height: '+(parseInt(image_height))+'px; margin-bottom:5px;&quot;&gt;';
									html_build += '&lt;a href=&quot;'+link+'&quot; target=&quot;_blank&quot; title=&quot;'+title+'&quot;&gt;&lt;img src=&quot;'+image_url+'&quot; alt=&quot;'+title+'&quot; width=&quot;'+image_width+'&quot; height=&quot;'+image_height+'&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;';
								html_build += '&lt;/div&gt;';
								html_build += '&lt;div style=&quot;clear: left&quot;&gt;&lt;/div&gt;';

							});

							// close div
							html_build += '&lt;/div&gt;';

							// empty the div
							$target_element.empty();
							// put the html code
							$target_element.html( html_build );

						} else {

							// empty the div
							$target_element.empty();
							// put the html code
							$target_element.html( '&lt;p&gt;No videos, yet...&lt;/p&gt;' );

						}

					},
					error: function() {

						// empty the div
						$target_element.empty();
						// put the html code
						$target_element.html( '&lt;p&gt;No videos, yet...&lt;/p&gt;' );

					}
				});

			});
			})(jQuery);
			&lt;/script&gt;

			&lt;div id=&quot;recentUserVideosYoutube&quot;&gt;
				&lt;p&gt;Loading results...&lt;/p&gt;
			&lt;/div&gt;

			&lt;?php echo $after_widget; ?&gt;
		&lt;?php
    }
</pre>
<p> The widget code is ready,  now we need to pack it  in a plugin so it can be released to the  public. </p>
<h3>Packing it in a plugin</h3>
<blockquote><p>WordPress Plugin: A WordPress Plugin is a program, or a set of one or more functions, written in the PHP scripting language, that adds a specific set of features or services to the WordPress weblog, which can be seamlessly integrated with the weblog using access points and methods provided by the WordPress Plugin Application Program Interface (API).</p></blockquote>
<p>For the plugin is easy, in the plugins directory create a file named latest-youtube-videos-widget.php and the following piece of code in the header of the file:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
Plugin Name: Latest Youtube Videos Widget
Plugin URI: http://blog.creative-webdesign.info
Description: Show the latest youtube videos uploaded by a user.
Version: 1.0
Author: Alex Raduta
Author URI: http://blog.creative-webdesign.info
*/
</pre>
<p><img src="http://blog.creative-webdesign.info/wp-content/uploads/plugin-in-the-list.png" alt="Plugin in the list" title="plugin-in-the-list" width="581" height="122" class="aligncenter size-full wp-image-186" /></p>
<p>Then copy the widget code and its done.&nbsp;</p>
<p>You can download the final plugin file from here: <a title="Download widget" href="/download/latest-youtube-videos-widget.zip" target="_blank">latest-youtube-videos-widget.zip</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2011/07/16/show-the-latest-videos-from-a-youtube-channel-with-youtube-gdata-api-wordpress-widget.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Premium wordpress themes that can turn your blog into an arcade website</title>
		<link>http://blog.creative-webdesign.info/2011/04/17/premium-wordpress-themes-that-can-turn-your-blog-into-an-arcade-website.html</link>
		<comments>http://blog.creative-webdesign.info/2011/04/17/premium-wordpress-themes-that-can-turn-your-blog-into-an-arcade-website.html#comments</comments>
		<pubDate>Sun, 17 Apr 2011 16:08:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[gaming templates]]></category>
		<category><![CDATA[premium themes]]></category>
		<category><![CDATA[wordpress arcade]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=160</guid>
		<description><![CDATA[With minimal WordPress knowledge anyone can modify a theme and transform it into an arcade theme so I made a compilation of one of the best themes from Themeforest that with some changes can turn your blog into an arcade website. MyMagazine &#8211; Stylish Portal News Site This theme was created with content rich websites [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2011/04/17/premium-wordpress-themes-that-can-turn-your-blog-into-an-arcade-website.html" title="Premium wordpress themes that can turn your blog into an arcade website"><img src="http://blog.creative-webdesign.info/wp-content/uploads/gaming-template-e1302719177159-150x150.jpg" alt="" class="feed-image" /></a><p>With minimal  WordPress  knowledge anyone can modify a theme and transform it into an arcade theme so I made a compilation of one of the best themes from <a title="Themeforest" href="http://themeforest.net/?ref=alexandrul" target="_blank">Themeforest</a> that with some changes  can turn your  blog into an arcade website.<span id="more-160"></span></p>
<h3><a href="http://themeforest.net/item/mymagazine-stylish-portal-news-site-wordpress/117066?ref=alexandrul">MyMagazine &#8211; Stylish Portal News Site</a></h3>
<p>This theme was created with content rich websites in mind. It can be used for media  and videogames sites as well as news sites  and technology portals alike. It is very easy to configure and makes   running a news portal as easy as it gets. </p>
<p><a href="http://blog.creative-webdesign.info/wp-content/uploads/theme-mymagazine.jpg"><img class="aligncenter size-full wp-image-168" title="theme-mymagazine" src="http://blog.creative-webdesign.info/wp-content/uploads/theme-mymagazine.jpg" alt="" width="400" height="332" /></a></p>
<h3><a href="http://themeforest.net/item/leetpress-a-gaming-wordpress-theme/232177?ref=alexandrul">LeetPress &#8211; A Gaming WordPress Theme</a></h3>
<p>LeetPress is a WordPress gaming theme with all the features  you  need to create a great gaming site, such as reviews, videos and  screenshots. Compatible with the  latest version  of WordPress. </p>
<p><img class="aligncenter size-medium wp-image-161" title="gaming-template" src="http://blog.creative-webdesign.info/wp-content/uploads/gaming-template-300x176.jpg" alt="" width="300" height="176" /></p>
<h3><a href="http://themeforest.net/item/reviewit-review-community-wordpress-theme/109666?ref=alexandrul">ReviewIt &#8211; Review &amp; Community WordPress Theme</a></h3>
<p>ReviewIt provides you with a powerful review and community theme, that is also 100% BuddyPress compatible!</p>
<p><img class="aligncenter size-medium wp-image-164" title="review-template" src="http://blog.creative-webdesign.info/wp-content/uploads/review-template-300x195.jpg" alt="" width="300" height="195" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2011/04/17/premium-wordpress-themes-that-can-turn-your-blog-into-an-arcade-website.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Premium image content sliders for WordPress</title>
		<link>http://blog.creative-webdesign.info/2010/10/01/premium-image-content-sliders-for-wordpress.html</link>
		<comments>http://blog.creative-webdesign.info/2010/10/01/premium-image-content-sliders-for-wordpress.html#comments</comments>
		<pubDate>Fri, 01 Oct 2010 19:34:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[content slider]]></category>
		<category><![CDATA[image slider]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=100</guid>
		<description><![CDATA[Are you searching for a cool content slider for your WordPress blog? Here I have selected some of the best sliders from Codecanyon. 1. Slider PRO &#8211; WordPress Premium Slider Plugin Slider PRO is one of the most powerful slider plugins for WordPress on the market (some buyers have been saying that it’s actually the [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2010/10/01/premium-image-content-sliders-for-wordpress.html" title="Premium image content sliders for WordPress"><img src="http://blog.creative-webdesign.info/wp-content/uploads/slider-billboard-150x150.jpg" alt="uBillboard" class="feed-image" /></a><p>Are  you searching for a cool content slider for your  WordPress  blog? Here I have selected some of the best sliders from <a title="Codecanyon" href="http://codecanyon.net/?ref=alexandrul" target="_blank">Codecanyon</a>.</p>
<p><span id="more-100"></span></p>
<h3><a title="Slider PRO - WordPress Premium Slider Plugin" href="http://codecanyon.net/item/slider-pro-wordpress-premium-slider- plugin/253501?ref=alexandrul" target="_blank">1. Slider PRO &#8211; WordPress Premium Slider Plugin</a></h3>
<p>Slider PRO is one of the most powerful slider plugins  for WordPress on the market (some buyers have been saying that it’s actually the best). The slider offers you 100+ customizable properties, 100+ possible transition effects, 10+ skins and much more.</p>
<div id="attachment_197" class="wp-caption aligncenter" style="width: 410px"><a href="http://blog.creative-webdesign.info/wp-content/uploads/slider-pro.jpg"><img class="size-full wp-image-197" title="slider-pro" src="http://blog.creative-webdesign.info/wp-content/uploads/slider-pro.jpg" alt="" width="400" height="203" /></a><p class="wp-caption-text">Slider Pro</p></div>
<h3><a title="uBillboard - premium slider for WordPress" href="http://codecanyon.net/item/ubillboard-premium-slider-for-wordpress/124783?ref=alexandrul" target="_blank">2. uBillboard &#8211; Premium Slider for WordPress</a></h3>
<p>uBillboard is a slider for WordPress. We have been developing sliders for our WordPress themes for over a year now, and all that experience has been distilled into this one slider plugin. It is a premium quality jQuery-based slider with a nicely polished WordPress  admin.</p>
<div id="attachment_103" class="wp-caption aligncenter" style="width: 410px"><a title="uBillboard - premium slider for WordPress" href="http://codecanyon.net/item/ubillboard-premium-slider-for-wordpress/124783?ref=alexandrul" target="_blank"><img class="size-full wp-image-103" title="slider-billboard" src="http://blog.creative-webdesign.info/wp-content/uploads/slider-billboard.jpg" alt="uBillboard" width="400" height="163" /></a><p class="wp-caption-text">uBillboard</p></div>
<h3><a title="DDSlider WordPress Plugin" href="http://codecanyon.net/item/ddsliderwp-11-transitions-slide-manager-panel/109211?ref=alexandrul" target="_blank">3. DDSliderWP &#8211; 11 Transitions &#8211; Slide Manager Panel</a></h3>
<p>DDSliderWP  features EVERYTHING that the jQuery plugin already offered PLUS a custom admin panel, with total management of slides.</p>
<div id="attachment_106" class="wp-caption aligncenter" style="width: 410px"><a title="DDSlider WordPress Plugin" href="http://codecanyon.net/item/ddsliderwp-11-transitions-slide-manager-panel/109211?ref=alexandrul" target="_blank"><img class="size-full wp-image-106" title="ddslider" src="http://blog.creative-webdesign.info/wp-content/uploads/ddslider.jpg" alt="DDSliderWP" width="400" height="201" /></a><p class="wp-caption-text">DDSliderWP</p></div>
<h3><a title="Lowrider Triple Slider" href="http://codecanyon.net/item/lowrider-triple-slider/110218?ref=alexandrul" target="_blank">4. Lowrider Triple Slider</a></h3>
<p>Lowrider Triple Slider is a  non-traditional slider for WordPress. </p>
<ul>
<li>Install and configure as a  WordPress plugin.</li>
<li>Drag and  drop images into slides you create in the WP admin. </li>
<li>Hook  a blog post to each slide so the slide links to a post.</li>
</ul>
<div id="attachment_108" class="wp-caption aligncenter" style="width: 410px"><a title="Lowrider Triple Slider" href="http://codecanyon.net/item/lowrider-triple-slider/110218?ref=alexandrul" target="_blank"><img class="size-full wp-image-108" title="slider-lowrider" src="http://blog.creative-webdesign.info/wp-content/uploads/slider-lowrider.jpg" alt="Lowrider Triple Slider" width="400" height="185" /></a><p class="wp-caption-text">Lowrider Triple Slider</p></div>
<h3><a title="Slider Gallery Shortcode" href="http://codecanyon.net/item/slider-gallery-shortcode/116049?ref=alexandrul" target="_blank">5. Slider gallery shortcode</a></h3>
<p>This plugin creates  a new shortcode for WordPress. With this new shortcode, you can create a slider gallery in seconds just by typing [slider] while you’ re writing your post or page. The slider will display the images that you have uploaded to the current post or page.</p>
<div id="attachment_109" class="wp-caption aligncenter" style="width: 410px"><a title="Slider Gallery Shortcode" href="http://codecanyon.net/item/slider-gallery-shortcode/116049?ref=alexandrul" target="_blank"><img class="size-full wp-image-109" title="slider-shortcode" src="http://blog.creative-webdesign.info/wp-content/uploads/slider-shortcode.jpg" alt="Slider Gallery Shortcode" width="400" height="213" /></a><p class="wp-caption-text">Slider Gallery Shortcode</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2010/10/01/premium-image-content-sliders-for-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autopost Mochiads games in your WordPress arcade website</title>
		<link>http://blog.creative-webdesign.info/2010/05/29/autopost-mochiads-games-in-your-wordpress-arcade-website.html</link>
		<comments>http://blog.creative-webdesign.info/2010/05/29/autopost-mochiads-games-in-your-wordpress-arcade-website.html#comments</comments>
		<pubDate>Sat, 29 May 2010 02:07:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[autopost games]]></category>
		<category><![CDATA[mochi autopost]]></category>
		<category><![CDATA[wordpress arcade]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=76</guid>
		<description><![CDATA[The Mochi Publisher program allows you to post games automatically to your website but to do so the developer should have minimal knowledge of PHP. In this tutorial I will show you how you can add this feature to your wordpress arcade website. Overview of auto post feature The Auto Post feature allows you to [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2010/05/29/autopost-mochiads-games-in-your-wordpress-arcade-website.html" title="Autopost Mochiads games in your WordPress arcade website"><img src="http://blog.creative-webdesign.info/wp-content/uploads/mochi-robot-150x136.jpg" alt="" class="feed-image" /></a><p> The Mochi Publisher program allows you to  post games automatically to your  website but to do so the developer should have minimal knowledge of PHP. In this tutorial I will show  you how you can add this feature to your wordpress arcade website.</p>
<p><span id="more-76"></span></p>
<h3>Overview of auto post feature</h3>
<p>The Auto Post feature allows you to add a game to your site with a single click. By implementing our API on your site, you&#8217;ll be able to browse the Mochi Game Distribution catalog of games and click &#8220;add to my site&#8221;. This will  send all  the important game data via the API to your url, where you can store and display the game automatically. Here&#8217;s a high level overview of how the API works:</p>
<p>1. User clicks &#8220;add game to my site&#8221;<br />
2. Mochi servers make an HTTP request to a URL you supply in your publisher settings<br />
3. game_tag is contained inside of the request&#8217;s POST data<br />
4. Your site implementation should then call back  to get a Mochi URL supplying it with your publisher ID and the game ID<br />
5. Once we confirm the publisher ID and game ID matches our records, we return the full game data which you can import and process</p>
<p>You request a feed from Mochi Media:</p>
<pre class="brush: plain; title: ; notranslate">http://www.mochimedia.com/feeds/games/{PUB_ID}/{GAME_TAG}/?format=json;</pre>
<p>You can find all the documentation on Mochi Media official website: http://www.mochimedia.com/support/pub_docs</p>
<h3>WordPress integration</h3>
<p>Enough with the teory, this is the code:</p>
<pre class="brush: plain; title: ; notranslate">
set_time_limit(0);
//error_reporting(0);
// include the configuration file and  the file that keeps the wordpress functions
include ('wp-config.php');
include ('wp-blog-header.php');

$publisher_key = &quot;xxxxxxxxxxxxxxxx&quot;;

if (isset($_REQUEST['game_tag'])) {
	$urlrequest = &quot;http://www.mochiads.com/feeds/games/&quot;.$publisher_key.&quot;/&quot;.$_REQUEST['game_tag'].&quot;/?format=json&quot;;
	$gamearr = json_decode(file_get_contents($urlrequest),true);
	$game = $gamearr['games'][0];
	//print_r ($game);
	addToDB($game);
}

function addToDB($game)
{
	$name = mysql_escape_string($game['name']);
	$description = mysql_escape_string($game['description']);
	$swf = mysql_escape_string($game['swf_url']);
	$thumb = mysql_escape_string($game['thumbnail_url']);
	$width = $game['width'];
	$height = $game['height'];
	$keywords = $game['tags'];
	$instructions = mysql_escape_string($game['instructions']);

	$cats = array();
	$categories = $game['categories'];
	for($x=0;$x&lt;count($categories);$x++){
		$categories[$x] = str_replace(&quot;-&quot;,&quot; &quot;,$categories[$x]);
		array_push ($cats,get_cat_id($categories[$x]));
	}

	$keywd = &quot;&quot;;
	$count = count($keywords);
	$i = 0;
	if ($count) {
		foreach ($keywords as $value){
			if ($count-1 == $i) {
				$keywd .= $value;
			} else {
				$keywd .= $value.&quot;, &quot;;
			}
			$i++;
		}
	}

	$post = array(
		'post_ author' =&gt; 1, //The user ID number of the author.
		'post_category' =&gt; $cats, // Add some categories.
		'post_content' =&gt; $description, // The full  text of the post.
		'post_status' =&gt; 'publish', //Set the status of the new post.
		'post_title' =&gt; $name,//The title of your post.
		'post_type' =&gt; 'post', // post type
		'tags_input' =&gt; $keywd //For tags.
	);
	// Insert the post into the database
	$post_id = wp_insert_post($post);
	// adding the custom fields, these custom fields are compatible with Emanuele Feronato's Mochi plugin
	add_post_meta($post_id, 'width', $width);
	add_post_meta($post_id, 'height', $height);
	add_post_meta($post_id, 'thumbnail_url', $thumb);
	add_post_meta($post_id, 'swf_url', $swf);
	add_post_meta($post_id, 'instructions', $instructions);

}
</pre>
<p>So, my friends, just paste this code in a php file, let&#8217;s name it autopost.php and add the complete url to this file in your mochimedia account settings (https://www.mochimedia.com/pub/settings):<br />
<img src="http://blog.creative-webdesign.info/wp-content/uploads/autopost-mochiads.jpg" alt="autopost-mochiads" title="Autopost games to WordPress arcade website" width="524" height="149" class="alignnone size-full wp-image-92" /><br />
If you want to create a WordPress arcade website but you don&#8217;t have WordPress skills you can buy my <a href="http://blog.creative-webdesign.info/2009/12/10/wordpress-arcade-theme-released.html" title="Wordpress Arcade Theme">WordPress Arcade Theme</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2010/05/29/autopost-mochiads-games-in-your-wordpress-arcade-website.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dealing with the Youtube GData API</title>
		<link>http://blog.creative-webdesign.info/2009/12/31/dealing-with-the-youtube-gdata-api.html</link>
		<comments>http://blog.creative-webdesign.info/2009/12/31/dealing-with-the-youtube-gdata-api.html#comments</comments>
		<pubDate>Thu, 31 Dec 2009 17:28:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[php tips]]></category>
		<category><![CDATA[simplexml]]></category>
		<category><![CDATA[youtube api]]></category>
		<category><![CDATA[youtube gdata]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=44</guid>
		<description><![CDATA[Using SimpleXML we will parse the Youtube feed to show today&#8217;s top videos. The feed link is: it contains today&#8217; s top 5 videos. If you want to know more about the Youtube Gdata Api you can start by reading the API Reference Guide. This is the feed structure: Now, I will load the xml [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2009/12/31/dealing-with-the-youtube-gdata-api.html" title="Dealing with the Youtube GData API"><img src="http://blog.creative-webdesign.info/wp-content/uploads/data_api.png" alt="" class="feed-image" /></a><p>Using SimpleXML we will parse the Youtube feed to show today&#8217;s top  videos. <span id="more-44"></span><br style="clear: left" /><br />
The feed link is:</p>
<pre class="brush: php; title: ; notranslate">http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?time=today&amp;start-index=1&amp;max-results=5</pre>
<p>it contains today&#8217; s top 5 videos. If you want to know more about the <strong>Youtube Gdata Api</strong> you can start by reading the <a title="Youtube Gdata Api" href="http://code.google.com/apis/youtube/2.0/reference.html" target="_blank">API Reference Guide</a>.</p>
<p>This is the feed structure:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?xml version='1.0' encoding='UTF-8'?&gt;
&lt;feed xmlns='http://www.w3.org/2005/Atom' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' xmlns:yt='http://gdata.youtube.com/schemas/2007' gd:etag='W/&quot;DkYDQH47eCp7ImA9WxBREko.&quot;'&gt;
  &lt;id&gt;tag:youtube.com,2008:standardfeed:us:top_rated&lt;/id&gt;
  &lt;updated&gt;2009-12-31T07:42:51.000-08:00&lt;/updated&gt;
  &lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/&gt;
  &lt;title&gt;Top Rated&lt;/title&gt;
  &lt;logo&gt;http://www.youtube.com/img/pic_youtubelogo_123x63.gif&lt;/logo&gt;
  &lt;link rel='alternate' type='text/html' href='http://www.youtube.com/browse?s=tr'/&gt;
  &lt;link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?client=ytapi-google-jsdemo'/&gt;
  &lt;link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/us/top_rated/batch?client=ytapi-google-jsdemo'/&gt;
  &lt;link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=2&amp;max-results=1&amp;time=today&amp;client=ytapi-google-jsdemo'/&gt;
  &lt;link rel='service' type='application/atomsvc+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/us/top_rated?alt=atom-service'/&gt;
  &lt;link rel='previous' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=1&amp;max-results=1&amp;time=today&amp;client=ytapi-google-jsdemo'/&gt;
  &lt;link rel='next' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=3&amp;max-results=1&amp;time=today&amp;client=ytapi-google-jsdemo'/&gt;
  &lt;author&gt;
    &lt;name&gt;YouTube&lt;/name&gt;
    &lt;uri&gt;http://www.youtube.com/&lt;/uri&gt;
  &lt;/author&gt;
  &lt;generator version='2.0' uri='http://gdata.youtube.com/'&gt;YouTube data API&lt;/generator&gt;
  &lt;openSearch:totalResults&gt;100&lt;/openSearch:totalResults&gt;
  &lt;openSearch:startIndex&gt;2&lt;/openSearch:startIndex&gt;
  &lt;openSearch:itemsPerPage&gt;1&lt;/openSearch:itemsPerPage&gt;
  &lt;entry gd:etag='W/&quot;D0UERX47eCp7ImA9WxBREko.&quot;'&gt;
    &lt;id&gt;tag:youtube.com,2008:video:9DTWIYIgkrk&lt;/id&gt;
    &lt;published&gt;2009-12-30T22:36:23.000Z&lt;/published&gt;
    &lt;updated&gt;2009-12-31T16:00:04.000Z&lt;/updated&gt;
    &lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Entertainment' label='Entertainment'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='shaycarl'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='shaytards'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='costco'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='love'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='the'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='smell'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='of'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='new'/&gt;
    &lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='balls'/&gt;
    &lt;title&gt;RACING THROUGH  COSTCO!  (12/29/09-300th!!!)&lt;/title&gt;
    &lt;content type='application/x-shockwave-flash' src='http://www.youtube.com/v/9DTWIYIgkrk?f=standard&amp;c=ytapi-google-jsdemo&amp;app=youtube_gdata'/&gt;
    &lt;link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=9DTWIYIgkrk&amp;feature=youtube_gdata'/&gt;
    &lt;link rel='http://gdata.youtube.com/schemas/2007#video.responses' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/9DTWIYIgkrk/responses?client=ytapi-google-jsdemo'/&gt;
    &lt;link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/9DTWIYIgkrk/related?client=ytapi-google-jsdemo'/&gt;
    &lt;link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=9DTWIYIgkrk'/&gt;
    &lt;link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/us/top_rated/v/9DTWIYIgkrk?client=ytapi-google-jsdemo'/&gt;
    &lt;author&gt;
      &lt;name&gt;SHAYTARDS&lt;/name&gt;
      &lt;uri&gt;http://gdata.youtube.com/feeds/api/users/shaytards&lt;/uri&gt;
    &lt;/author&gt;
    &lt;gd:comments&gt;
      &lt;gd:feedLink href='http://gdata.youtube.com/feeds/api/videos/9DTWIYIgkrk/comments?client=ytapi-google-jsdemo' countHint='2837'/&gt;
    &lt;/gd:comments&gt;
    &lt;media:group&gt;
      &lt;media:category label='Entertainment' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'&gt;Entertainment&lt;/media:category&gt;
      &lt;media:content url='http://www.youtube.com/v/9DTWIYIgkrk?f=standard&amp;c=ytapi-google-jsdemo&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='731' yt:format='5'/&gt;
      &lt;media:content url='rtsp://v5.cache3.c.youtube.com/CjkLENy73wIaMAm5kiCCIdY09BMYDSANFEITeXRhcGktZ29vZ2xlLWpzZGVtb0gGUghzdGFuZGFyZAw=/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='731' yt:format='1'/&gt;
      &lt;media:content url='rtsp://v7.cache4.c.youtube.com/CjkLENy73wIaMAm5kiCCIdY09BMYESARFEITeXRhcGktZ29vZ2xlLWpzZGVtb0gGUghzdGFuZGFyZAw=/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='731' yt:format='6'/&gt;
      &lt;media:credit role='uploader' scheme='urn:youtube' yt:type='partner'&gt;SHAYTARDS&lt;/media:credit&gt;
      &lt;media:description type='plain'&gt;My Twitter http://www.twitter.com/shaycarl

My Dailybooth http://www.dailybooth.com/shaycarl&lt;/media:description&gt;
      &lt;media:keywords&gt;shaycarl, shaytards, costco, love, the, smell, of, new, balls&lt;/media:keywords&gt;
      &lt;media:player url='http://www.youtube.com/watch?v=9DTWIYIgkrk&amp;feature=youtube_gdata'/&gt;
      &lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/default.jpg' height='90' width='120' time='00:06:05.500'/&gt;
      &lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/2.jpg' height='90' width='120' time='00:06:05.500'/&gt;
      &lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/1.jpg' height='90' width='120' time='00:03:02.750'/&gt;
      &lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/3.jpg' height='90' width='120' time='00:09:08.250'/&gt;
      &lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/hqdefault.jpg' height='360' width='480'/&gt;
      &lt;media:title type='plain'&gt;  RACING THROUGH COSTCO!  (12/29/09-300th!!!)&lt;/media:title&gt;
      &lt;yt:aspectRatio&gt;widescreen&lt;/yt:aspectRatio&gt;
      &lt;yt:duration seconds='731'/&gt;
      &lt;yt:uploaded&gt;2009-12-30T22:36:23.000Z&lt;/yt:uploaded&gt;
      &lt;yt:videoid&gt;9DTWIYIgkrk&lt;/yt:videoid&gt;
    &lt;/media:group&gt;
    &lt;gd:rating average='4.973422' max='5' min='1' numRaters='13244' rel='http://schemas.google.com/g/2005#overall'/&gt;
    &lt;yt:statistics favoriteCount='1805' viewCount='302'/&gt;
  &lt;/entry&gt;
&lt;/feed&gt;
</pre>
<p>Now, I will load the xml file using <strong>simplexml_load_file</strong>:</p>
<pre class="brush: php; title: ; notranslate">
$feed = &quot;http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=1&amp;max-results=1&amp;time=today&quot;;
$xml = simplexml_load_file($feed);
echo '&lt;pre&gt;';
print_r($xml);
echo '&lt;pre&gt;';
</pre>
<p>As you see I check the simplexml object structure using print_r($xml), this will help me to see how can I parse the xml  response from youtube.<br />
To get the informations for every video I will parse every  node in the <strong>Youtube GData</strong> response, so the previous code becomes:</p>
<pre class="brush: php; title: ; notranslate">
$feed = &quot;http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=2&amp;max-results=1&amp;time=today&quot;;
// load xml
$xml = simplexml_load_file($feed);
// parse every node &lt;entry&gt; to get the video information
foreach ($xml-&gt;entry as $video) {
	echo '&lt;h2&gt;'.$video-&gt;title.'&lt;/h2&gt;&lt;br&gt;'; // video title
	echo '&lt;pre&gt;'.$video-&gt;content.'&lt;/pre&gt;&lt;br&gt;'; // video content
	// media: namespace
    $media = $video-&gt;children('http://search.yahoo.com/mrss/');
	echo 'Tags: '.$media-&gt;group-&gt;keywords.'&lt;br&gt;'; // video tags
	echo 'Video url: '.$media-&gt;group-&gt;player-&gt;attributes()-&gt;url.'&lt;br&gt;'; // video url
	echo 'Uploaded by '.$video-&gt;author-&gt;name.'&lt;br&gt;'; // author name
	echo '&lt;hr&gt;';
}
</pre>
<p>$video->title &#8211; gets the video title from the  node &#8220;title&#8221;<br />
$video->children(&#8216;http://search.yahoo.com/mrss/&#8217;) &#8211; gets the nodes in  media: namespace<br />
$media->group->keywords &#8211; gets the video tags from the <media:keywords>   node<br />
$media->group->player->attributes()->url &#8211; gets the video url from the <media:player> node<br />
This was only a simple example of using the incredible <strong>Youtube GData API</strong>,  I hope  you  liked it. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2009/12/31/dealing-with-the-youtube-gdata-api.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Arcade Theme released</title>
		<link>http://blog.creative-webdesign.info/2009/12/10/wordpress-arcade-theme-released.html</link>
		<comments>http://blog.creative-webdesign.info/2009/12/10/wordpress-arcade-theme-released.html#comments</comments>
		<pubDate>Wed, 09 Dec 2009 23:22:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[arcade template]]></category>
		<category><![CDATA[mochiads games]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=51</guid>
		<description><![CDATA[I&#8217;m glad to announce you that from today I&#8217;m offering for sale a brand new WordPress Arcade Theme, this is how it looks: The theme has an options page where you can add the featured games: To ease the process of adding games, I made a custom admin page where you can add the game [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2009/12/10/wordpress-arcade-theme-released.html" title="Wordpress Arcade Theme released"><img src="http://blog.creative-webdesign.info/wp-content/uploads/setupmu-template-150x150.jpg" alt="" class="feed-image" /></a><p>I&#8217;m glad to announce you that from today I&#8217;m offering for sale a brand new <strong>WordPress Arcade Theme</strong><span id="more-51"></span>, this is how it looks:<br />
<img class="alignnone size-full wp-image-52" title="setupmu-template" src="http://blog.creative-webdesign.info/wp-content/uploads/setupmu-template.jpg" alt="setupmu-template" width="456" height="700" /></p>
<p>The theme has an options page where you can add the featured games:</p>
<p><img class="alignnone size-full wp-image-53" title="wordpress-theme-options" src="http://blog.creative-webdesign.info/wp-content/uploads/wordpress-theme-options.jpg" alt="wordpress-theme-options" width="450" height="373" /></p>
<p>To ease the process of adding games, I made a custom admin page where you can add the game details:</p>
<p><img class="alignnone size-full wp-image-55" title="arcade-theme-admin" src="http://blog.creative-webdesign.info/wp-content/uploads/arcade-theme-admin.jpg" alt="arcade-theme-admin" width="450" height="333" /></p>
<p>Also, this <strong>arcade theme</strong> is compatible with <a title="Mochi Plugin" href="http://www.emanueleferonato.com/triqui-mochiads-arcade-plugin-for-wordpress-official-page/" target="_blank">Emanuele Feronato&#8217;s Mochiads plugin</a>.</p>
<p>Update: This theme was tested with the <strong>latest version of WordPress</strong>, it supports   now  widgets and  custom  menus.  Very easy to customize, all you need to do is to install the theme, enter the theme options, import the games and  forget it!</p>
<p><a rel="external nofollow" href="http://1crazyclub.portofoliu.org/">Check live demo</a></p>
<h3>Pricing:</h3>
<h4>Standard licence:  only <span style="font-size: 18px;">9$</span> (you cannot redistribute or resell the theme) &#8211;   the lowest  price   in  the market!</p>
<p>If you want to <strong>buy this theme</strong> or you have any questions about it, <a href="http://creative-webdesign.info/en/contact.html">contact me here</a> or by email: alexandru.raduta(at)gmail(dot) com</p>
<p>For suggestions please   post a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2009/12/10/wordpress-arcade-theme-released.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Add an mp3 player in your blog post</title>
		<link>http://blog.creative-webdesign.info/2009/11/24/add-an-mp3-player-in-your-blog-post.html</link>
		<comments>http://blog.creative-webdesign.info/2009/11/24/add-an-mp3-player-in-your-blog-post.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 21:10:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[mp3 player]]></category>
		<category><![CDATA[shortcode]]></category>
		<category><![CDATA[wordpress tips]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=31</guid>
		<description><![CDATA[In this tutorial I will show you a simple way to add an mp3 player in your blog posts using shortcodes. For the start I chose an open source mp3 player that can be downloaded from here. The swf file, from this player, must be uploaded in the same directory with your default wordpress theme [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2009/11/24/add-an-mp3-player-in-your-blog-post.html" title="Add an mp3 player in your blog post"><img src="http://blog.creative-webdesign.info/wp-content/uploads/grey-l.png" alt="" class="feed-image" /></a><p>In this tutorial I will show you a simple way to add an mp3 player in your blog posts using <strong>shortcodes</strong>.<span id="more-31"></span><br />
For the start I chose an open source mp3 player that can be downloaded from <a title="MP3 Player" href="http://flash-mp3-player.net/" target="_blank">here</a>. The swf file, from this player, must be uploaded in the same directory with your default <strong>wordpress theme</strong> (Ex. /wp-content/theme-name/).<br />
Add this piece of code in your functions.php file:<br />
<br style="clear: left" /></p>
<pre class="brush: php; title: ; notranslate">
function show_player($atts) {
 extract(shortcode_atts(array(
 'path' =&gt; '',
 'width' =&gt; '200',
 'height' =&gt; '20'
 ), $atts));
 return '&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;wp-content/themes/theme-name/player_mp3.swf&quot; width=&quot;'.$width.'&quot; height=&quot;'.$height.'&quot;&gt;
 &lt;param name=&quot;movie&quot;; value=&quot;player_mp3.swf&quot;&gt;
 &lt;param name=&quot;FlashVars&quot; value=&quot;mp3='.$path.'&quot;&gt;
 &lt;/object&gt;';
 }

add_shortcode('mp3', 'show_player');
</pre>
<p>Next, if you want to add the player in your blog post you can simply add this shortcode anywhere in your page:</p>
<pre class="brush: php; title: ; notranslate">[mp3 path=&quot;wp-content/uploads/song.mp3&quot;]</pre>
<p>Or if you want to customize the size of your player you can add:</p>
<pre class="brush: php; title: ; notranslate">[mp3 path=&quot;wp-content/uploads/song.mp3&quot; width=&quot;100&quot; height=&quot;10&quot;]</pre>
<p>It&#8217;  s  that  simple! </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2009/11/24/add-an-mp3-player-in-your-blog-post.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>6 examples of featured content sliders</title>
		<link>http://blog.creative-webdesign.info/2009/11/20/6-examples-of-featured-content-sliders.html</link>
		<comments>http://blog.creative-webdesign.info/2009/11/20/6-examples-of-featured-content-sliders.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 01:14:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[content slider]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=6</guid>
		<description><![CDATA[Below I selected 6 tutorials on how to create a nice featured content slider for your site. 1. jQuery UI tabs + Featured content = love This example uses the jQuery UI library. 2. An Elegant Featured Content Slider for WordPress In this tutorial John Sexton creates a nice content slider based on &#8220;Coda slider [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2009/11/20/6-examples-of-featured-content-sliders.html" title="6 examples of featured content sliders"><img src="http://blog.creative-webdesign.info/wp-content/uploads/featured-content-tabs-purpl-150x150.jpg" alt="Featured content tabs" class="feed-image" /></a><p>Below I selected 6  tutorials on how to create a nice featured content slider for your  site. <br /><br style="clear: left" /></p>
<p><span id="more-6"></span></p>
<h2>1. <a title="Featured content slider with jQuery UI " href="http://purpleurbia.com/jquery-ui-tabs-featured-content-slider/" target="_blank"><span>jQuery UI tabs + Featured content = love</span></a></h2>
<p>This example  uses the   jQuery  UI library. </p>
<div class="mceTemp">
<dl id="attachment_13" class="wp-caption alignnone" style="width: 510px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-13" title="featured-content-tabs-purpl" src="http://blog.creative-webdesign.info/wp-content/uploads/featured-content-tabs-purpl.jpg" alt="Featured content tabs" width="500" height="187" /></dt>
</dl>
</div>
<h2>2. <a title="Featured content slider for WordPress" href="http://www.gomediazine.com/tutorials/design-elegant-featured-content-slider-wordpress/" target="_blank">An Elegant Featured Content Slider for WordPress</a></h2>
<p>In this tutorial John Sexton creates a nice content slider based on &#8220;<a title="Coda slider effect" href="http://jqueryfordesigners.com/coda-slider-effect/" target="_blank">Coda slider effect</a>&#8221;</p>
<div class="mceTemp">
<dl id="attachment_15" class="wp-caption alignnone" style="width: 510px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-15" title="elegant-featured-content-sl" src="http://blog.creative-webdesign.info/wp-content/uploads/elegant-featured-content-sl.jpg" alt="Elegant featured content slider" width="500" height="250" /></dt>
</dl>
</div>
<h2>3. <a title="Auto-playing featured content slider" href="http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/" target="_blank">Creating a Slick Auto-Playing Featured Content Slider</a></h2>
<div class="mceTemp">
<dl id="attachment_16" class="wp-caption alignnone" style="width: 478px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-16" title="featured-content-slider-css" src="http://blog.creative-webdesign.info/wp-content/uploads/featured-content-slider-css.jpg" alt="Featured content slider" width="468" height="378" /></dt>
</dl>
</div>
<h2>4. <a title="Image rotator with preview" href="http://designm.ag/tutorials/image-rotator-css-jquery/" target="_blank">Image rotator with preview</a></h2>
<p>A very well explained  tutorial about creating  an image rotator,  perfect for an  image  gallery or  portofolio site. </p>
<div class="mceTemp">
<dl id="attachment_17" class="wp-caption alignnone" style="width: 510px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-17" title="image-rotator" src="http://blog.creative-webdesign.info/wp-content/uploads/image-rotator.jpg" alt="Image rotator" width="500" height="288" /></dt>
</dl>
</div>
<h2>5. <a title="Feature list" href="http://jqueryglobe.com/article/feature-list" target="_blank">Feature List</a></h2>
<p>A jQuery  plugin that cycles items  via slideshow. </p>
<div class="mceTemp">
<dl id="attachment_18" class="wp-caption alignnone" style="width: 510px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-18" title="feature-list" src="http://blog.creative-webdesign.info/wp-content/uploads/feature-list.jpg" alt="Feature list" width="500" height="233" /></dt>
</dl>
</div>
<h2>6. <a title="Featured content slider with jQuery UI " href="http://webdeveloperplus.com/jquery/featured-content-slider-using-jquery-ui/" target="_blank">Create Featured Content Slider Using jQuery UI</a></h2>
<p>Another  featured content slider that uses the jQuery UI library. </p>
<div class="mceTemp">
<dl id="attachment_19" class="wp-caption alignnone" style="width: 510px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-19" title="featured-content-slider-usi" src="http://blog.creative-webdesign.info/wp-content/uploads/featured-content-slider-usi.jpg" alt="Content slider using jQuery UI" width="500" height="197" /></dt>
</dl>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2009/11/20/6-examples-of-featured-content-sliders.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coming soon!</title>
		<link>http://blog.creative-webdesign.info/2009/11/04/coming-soon.html</link>
		<comments>http://blog.creative-webdesign.info/2009/11/04/coming-soon.html#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:43:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=1</guid>
		<description><![CDATA[The blog is still under construction.]]></description>
			<content:encoded><![CDATA[<p>  The  blog is   still under construction. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2009/11/04/coming-soon.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
