<?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>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 10 Jul 2010 20:50:18 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 add [...]]]></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;">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;">
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>2</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:
http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?time=today&#38;amp;start-index=1&#38;amp;max-results=5
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:

&#38;lt;?xml version='1.0' encoding='UTF-8'?&#38;gt;
&#38;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/&#38;quot;DkYDQH47eCp7ImA9WxBREko.&#38;quot;'&#38;gt;
  &#38;lt;id&#38;gt;tag:youtube.com,2008:standardfeed:us:top_rated&#38;lt;/id&#38;gt;
 [...]]]></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;">http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?time=today&amp;amp;start-index=1&amp;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;">
&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&amp;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/&amp;quot;DkYDQH47eCp7ImA9WxBREko.&amp;quot;'&amp;gt;
  &amp;lt;id&amp;gt;tag:youtube.com,2008:standardfeed:us:top_rated&amp;lt;/id&amp;gt;
  &amp;lt;updated&amp;gt;2009-12-31T07:42:51.000-08:00&amp;lt;/updated&amp;gt;
  &amp;lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/&amp;gt;
  &amp;lt;title&amp;gt;Top Rated&amp;lt;/title&amp;gt;
  &amp;lt;logo&amp;gt;http://www.youtube.com/img/pic_youtubelogo_123x63.gif&amp;lt;/logo&amp;gt;
  &amp;lt;link rel='alternate' type='text/html' href='http://www.youtube.com/browse?s=tr'/&amp;gt;
  &amp;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'/&amp;gt;
  &amp;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'/&amp;gt;
  &amp;lt;link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=2&amp;amp;max-results=1&amp;amp;time=today&amp;amp;client=ytapi-google-jsdemo'/&amp;gt;
  &amp;lt;link rel='service' type='application/atomsvc+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/us/top_rated?alt=atom-service'/&amp;gt;
  &amp;lt;link rel='previous' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=1&amp;amp;max-results=1&amp;amp;time=today&amp;amp;client=ytapi-google-jsdemo'/&amp;gt;
  &amp;lt;link rel='next' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=3&amp;amp;max-results=1&amp;amp;time=today&amp;amp;client=ytapi-google-jsdemo'/&amp;gt;
  &amp;lt;author&amp;gt;
    &amp;lt;name&amp;gt;YouTube&amp;lt;/name&amp;gt;
    &amp;lt;uri&amp;gt;http://www.youtube.com/&amp;lt;/uri&amp;gt;
  &amp;lt;/author&amp;gt;
  &amp;lt;generator version='2.0' uri='http://gdata.youtube.com/'&amp;gt;YouTube data API&amp;lt;/generator&amp;gt;
  &amp;lt;openSearch:totalResults&amp;gt;100&amp;lt;/openSearch:totalResults&amp;gt;
  &amp;lt;openSearch:startIndex&amp;gt;2&amp;lt;/openSearch:startIndex&amp;gt;
  &amp;lt;openSearch:itemsPerPage&amp;gt;1&amp;lt;/openSearch:itemsPerPage&amp;gt;
  &amp;lt;entry gd:etag='W/&amp;quot;D0UERX47eCp7ImA9WxBREko.&amp;quot;'&amp;gt;
    &amp;lt;id&amp;gt;tag:youtube.com,2008:video:9DTWIYIgkrk&amp;lt;/id&amp;gt;
    &amp;lt;published&amp;gt;2009-12-30T22:36:23.000Z&amp;lt;/published&amp;gt;
    &amp;lt;updated&amp;gt;2009-12-31T16:00:04.000Z&amp;lt;/updated&amp;gt;
    &amp;lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Entertainment' label='Entertainment'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='shaycarl'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='shaytards'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='costco'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='love'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='the'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='smell'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='of'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='new'/&amp;gt;
    &amp;lt;category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='balls'/&amp;gt;
    &amp;lt;title&amp;gt;RACING THROUGH COSTCO! (12/29/09-300th!!!)&amp;lt;/title&amp;gt;
    &amp;lt;content type='application/x-shockwave-flash' src='http://www.youtube.com/v/9DTWIYIgkrk?f=standard&amp;amp;c=ytapi-google-jsdemo&amp;amp;app=youtube_gdata'/&amp;gt;
    &amp;lt;link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=9DTWIYIgkrk&amp;amp;feature=youtube_gdata'/&amp;gt;
    &amp;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'/&amp;gt;
    &amp;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'/&amp;gt;
    &amp;lt;link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=9DTWIYIgkrk'/&amp;gt;
    &amp;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'/&amp;gt;
    &amp;lt;author&amp;gt;
      &amp;lt;name&amp;gt;SHAYTARDS&amp;lt;/name&amp;gt;
      &amp;lt;uri&amp;gt;http://gdata.youtube.com/feeds/api/users/shaytards&amp;lt;/uri&amp;gt;
    &amp;lt;/author&amp;gt;
    &amp;lt;gd:comments&amp;gt;
      &amp;lt;gd:feedLink href='http://gdata.youtube.com/feeds/api/videos/9DTWIYIgkrk/comments?client=ytapi-google-jsdemo' countHint='2837'/&amp;gt;
    &amp;lt;/gd:comments&amp;gt;
    &amp;lt;media:group&amp;gt;
      &amp;lt;media:category label='Entertainment' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'&amp;gt;Entertainment&amp;lt;/media:category&amp;gt;
      &amp;lt;media:content url='http://www.youtube.com/v/9DTWIYIgkrk?f=standard&amp;amp;c=ytapi-google-jsdemo&amp;amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='731' yt:format='5'/&amp;gt;
      &amp;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'/&amp;gt;
      &amp;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'/&amp;gt;
      &amp;lt;media:credit role='uploader' scheme='urn:youtube' yt:type='partner'&amp;gt;SHAYTARDS&amp;lt;/media:credit&amp;gt;
      &amp;lt;media:description type='plain'&amp;gt;My Twitter http://www.twitter.com/shaycarl

My Dailybooth http://www.dailybooth.com/shaycarl&amp;lt;/media:description&amp;gt;
      &amp;lt;media:keywords&amp;gt;shaycarl, shaytards, costco, love, the, smell, of, new, balls&amp;lt;/media:keywords&amp;gt;
      &amp;lt;media:player url='http://www.youtube.com/watch?v=9DTWIYIgkrk&amp;amp;feature=youtube_gdata'/&amp;gt;
      &amp;lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/default.jpg' height='90' width='120' time='00:06:05.500'/&amp;gt;
      &amp;lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/2.jpg' height='90' width='120' time='00:06:05.500'/&amp;gt;
      &amp;lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/1.jpg' height='90' width='120' time='00:03:02.750'/&amp;gt;
      &amp;lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/3.jpg' height='90' width='120' time='00:09:08.250'/&amp;gt;
      &amp;lt;media:thumbnail url='http://i.ytimg.com/vi/9DTWIYIgkrk/hqdefault.jpg' height='360' width='480'/&amp;gt;
      &amp;lt;media:title type='plain'&amp;gt;RACING THROUGH COSTCO! (12/29/09-300th!!!)&amp;lt;/media:title&amp;gt;
      &amp;lt;yt:aspectRatio&amp;gt;widescreen&amp;lt;/yt:aspectRatio&amp;gt;
      &amp;lt;yt:duration seconds='731'/&amp;gt;
      &amp;lt;yt:uploaded&amp;gt;2009-12-30T22:36:23.000Z&amp;lt;/yt:uploaded&amp;gt;
      &amp;lt;yt:videoid&amp;gt;9DTWIYIgkrk&amp;lt;/yt:videoid&amp;gt;
    &amp;lt;/media:group&amp;gt;
    &amp;lt;gd:rating average='4.973422' max='5' min='1' numRaters='13244' rel='http://schemas.google.com/g/2005#overall'/&amp;gt;
    &amp;lt;yt:statistics favoriteCount='1805' viewCount='302'/&amp;gt;
  &amp;lt;/entry&amp;gt;
&amp;lt;/feed&amp;gt;
</pre>
<p>Now, I will load the xml file using <strong>simplexml_load_file</strong>:</p>
<pre class="brush: php;">
$feed = &amp;quot;http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=1&amp;amp;max-results=1&amp;amp;time=today&amp;quot;;
$xml = simplexml_load_file($feed);
echo '&amp;lt;pre&amp;gt;';
print_r($xml);
echo '&amp;lt;pre&amp;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;">
$feed = &amp;quot;http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?start-index=2&amp;amp;max-results=1&amp;amp;time=today&amp;quot;;
// load xml
$xml = simplexml_load_file($feed);
// parse every node &amp;lt;entry&amp;gt; to get the video information
foreach ($xml-&amp;gt;entry as $video) {
	echo '&amp;lt;h2&amp;gt;'.$video-&amp;gt;title.'&amp;lt;/h2&amp;gt;&amp;lt;br&amp;gt;'; // video title
	echo '&amp;lt;pre&amp;gt;'.$video-&amp;gt;content.'&amp;lt;/pre&amp;gt;&amp;lt;br&amp;gt;'; // video content
	// media: namespace
    $media = $video-&amp;gt;children('http://search.yahoo.com/mrss/');
	echo 'Tags: '.$media-&amp;gt;group-&amp;gt;keywords.'&amp;lt;br&amp;gt;'; // video tags
	echo 'Video url: '.$media-&amp;gt;group-&amp;gt;player-&amp;gt;attributes()-&amp;gt;url.'&amp;lt;br&amp;gt;'; // video url
	echo 'Uploaded by '.$video-&amp;gt;author-&amp;gt;name.'&amp;lt;br&amp;gt;'; // author name
	echo '&amp;lt;hr&amp;gt;';
}
</pre>
<p>$video-&gt;title &#8211; gets the video title from the  node &lt;title&gt;<br />
$video-&gt;children(&#8217;http://search.yahoo.com/mrss/&#8217;) &#8211; gets the nodes in  media: namespace<br />
$media-&gt;group-&gt;keywords &#8211; gets the video tags from the &lt;media:keywords&gt;   node<br />
$media-&gt;group-&gt;player-&gt;attributes()-&gt;url &#8211; gets the video url from the &lt;media:player&gt; node<br />
This was only a simple example of using the incredible <strong>Youtube GData API</strong>, I hope you liked it.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 1893px; width: 1px; height: 1px;">
<pre style="padding: 0pt;">
<pre class="YtBorderless" style="margin: 0pt;">&lt;<span class="YtXmlTagNs">media</span>:<span class="YtXmlTagName">keywords</span></pre>
</pre>
</div>
]]></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[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 details:

Also, this [...]]]></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>Check the <a title="Wordpress Arcade Theme Demo" href="http://1crazyclub.com" target="_blank">live demo</a>.<br />
<br />
Pricing:</p>
<p><strong>Standard licence: <del>20$</del> only 15$</strong> (you cannot redistribute or resell the theme)</p>
<p>
If you want to buy the theme, <a href="http://creative-webdesign.info/en/contact.html">contact me here</a>  or by email: alexandru.raduta(at)gmail(dot)com</p>
<p>Also if you have 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>0</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 (Ex. [...]]]></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;">
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;">[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;">[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 effect&#8221;





3. Creating a Slick [...]]]></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>
