<?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>PSD to Wordpress &#187; Wordpress</title> <atom:link href="http://www.sramekdesign.com/category/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://www.sramekdesign.com</link> <description>Get your PSD sliced into the XHTML valid Wordpress theme. SramekDesign offers cheap and fast PSD to Wordpress conversion service.</description> <lastBuildDate>Tue, 30 Mar 2010 08:22:59 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Deep Blue</title><link>http://www.sramekdesign.com/wordpress/themes/deep-blue/</link> <comments>http://www.sramekdesign.com/wordpress/themes/deep-blue/#comments</comments> <pubDate>Tue, 30 Mar 2010 08:11:55 +0000</pubDate> <dc:creator>Tom</dc:creator> <category><![CDATA[Themes]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=565</guid> <description><![CDATA[
Deep Blue is an easily customizable and fully widgetized beautiful web 2.0 Wordpress theme.Features6 widget areas
3 widget areas in the footer
2 widget areas in the header
In-built Cufon support
Automatic thumbnails
3 level drop-down menu
Nested commentsPreview
Download
]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fthemes%2Fdeep-blue%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fthemes%2Fdeep-blue%2F&amp;source=TomSramek&amp;style=normal" height="61" width="51" /><br
/> </a></div><p>Deep Blue is an easily customizable and fully widgetized beautiful web 2.0 Wordpress theme.<br
/> <a
href="http://sramekdesign.com/free-theme/deepblue/"><img
src="http://www.sramekdesign.com/wp-content/uploads/2010/03/deepblue-screenshot-237x300.jpg" alt="" title="deepblue-screenshot" width="237" height="300" class="alignnone size-medium wp-image-571" /></a></p><h3>Features</h3><ul><li>6 widget areas</li><li>3 widget areas in the footer</li><li>2 widget areas in the header</li><li>In-built Cufon support</li><li>Automatic thumbnails</li><li>3 level drop-down menu</li><li>Nested comments</li></ul><p><a
class="preview" href="http://sramekdesign.com/free-theme/deepblue/">Preview</a><br
/> <a
class="download-file" href="http://www.sramekdesign.com/downloads/deepblue.zip">Download</a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/themes/deep-blue/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Display recent and related posts without duplicating each other</title><link>http://www.sramekdesign.com/wordpress/display-recent-and-related-posts-without-duplicating-each-other/</link> <comments>http://www.sramekdesign.com/wordpress/display-recent-and-related-posts-without-duplicating-each-other/#comments</comments> <pubDate>Tue, 02 Mar 2010 08:22:57 +0000</pubDate> <dc:creator>Tom</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[do not duplicate]]></category> <category><![CDATA[function]]></category> <category><![CDATA[recent posts]]></category> <category><![CDATA[related posts]]></category> <category><![CDATA[WP_Query]]></category><guid
isPermaLink="false">http://sramekdesign.com/?p=496</guid> <description><![CDATA[
My client asked me to implement lists of recent and related posts below a single post without duplicating each other.What do we have to do?Create 2 instances of WP_Query class ($recent_query and $tags_query)
By the help of these instances we have to create loops for recent and related posts
IDs of the recent posts must be stored [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fdisplay-recent-and-related-posts-without-duplicating-each-other%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fdisplay-recent-and-related-posts-without-duplicating-each-other%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=do+not+duplicate,function,recent+posts,related+posts,WP_Query" height="61" width="51" /><br
/> </a></div><p>My client asked me to implement lists of recent and related posts below a single post without duplicating each other.<div
class="clear"></div><p><img
src="http://sramekdesign.com/wp-content/uploads/2010/03/re-rel.jpg" alt="recent and related posts" title="re-rel" class="alignleft size-full wp-image-497" /><div
class="clear"></div><h3>What do we have to do?</h3><ol><li>Create 2 instances of <a
rel="nofollow" href="http://codex.wordpress.org/Function_Reference/WP_Query">WP_Query class</a> ($recent_query and $tags_query)</li><li>By the help of these instances we have to create loops for recent and related posts</li><li>IDs of the recent posts must be stored in an array for later use</li><li>Implement displaying of the related posts based on tags</li><li>In the loop for tags we have to exclude IDs of recent posts from displaying</li></ol><p>This tutorial has two parts:</p><ul><li>Recent posts</li><li>Related posts</li></ul><h4>Recent posts</h4><p>This is how full code for recent posts looks:</p><pre class="brush: php; html-script: true;">
&lt;?php
/**
 * recent posts
 */
?&gt;

&lt;h2&gt;recent 5 posts&lt;/h2&gt;
&lt;?php $recent_query = new WP_Query(); ?&gt;
&lt;?php $recent_query-&gt;query('showposts=5'); $ids = array(); ?&gt;
&lt;ul&gt;
&lt;?php while($recent_query-&gt;have_posts()) : $recent_query-&gt;the_post();
 $ids[] = get_the_ID(); // we have to store IDs in the array for later use
?&gt;
	&lt;li&gt;
            &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;
            &lt;?php the_title(); ?&gt;
            &lt;/a&gt;
       &lt;/li&gt;
&lt;?php endwhile; ?&gt;
&lt;/ul&gt;
</pre><p>Now let&#8217;s go step by step:<br
/> The first we have to create instance of the WP_Query() class. Its references retain a lot of info that we can use later. More info about this class you can find in the <a
rel="nofollow" href="http://codex.wordpress.org/Function_Reference/WP_Query">function reference.</a></p><pre class="brush: php;">
&lt;?php $recent_query = new WP_Query(); ?&gt;
</pre><p>With the instance of WP_QUery we can query posts. We also have  to create an array $ids that we&#8217;ll use later for storing IDs of the rcent posts we displayed.</p><pre class="brush: php;">
&lt;?php
$recent_query-&gt;query('showposts=5'); // we are going to display 5 posts
$ids = array(); // create array we will use for storing recent posts' IDs
?&gt;
</pre><p>Using $recent_query object we can run a loop to display last 5 posts. We also have to get the ID of each post and store it in $id array. Note that the loop is inside ul tags i.e we want to repeat only list items with unique permalinks, not whole list.</p><pre class="brush: php; html-script: true;">
&lt;ul&gt;
&lt;?php while($recent_query-&gt;have_posts()) : $recent_query-&gt;the_post();
 $ids[] = get_the_ID(); // we have to store IDs in the array for later use
?&gt;
	&lt;li&gt;
            &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;
            &lt;?php the_title(); ?&gt;
            &lt;/a&gt;
       &lt;/li&gt;
&lt;?php endwhile; ?&gt;
&lt;/ul&gt;
</pre><h4>Related posts</h4><p>Here is a code of displaying of the related posts based on tags.</p><pre class="brush: php; html-script: true;">
&lt;?php
/**
 * related posts
 */

$tags = wp_get_post_tags( array('showposts' =&gt; 5, 'post__not_in'=&gt;$ids) );

    $tag_ids = array();
    foreach ($tags as $individual_tag)
        $tag_ids[] = $individual_tag-&gt;term_id;

    $args = array(
	'tag__in'=&gt;$tag_ids,
	'post__not_in'=&gt;$ids, // while using $recent_query we created $ids[] array with IDs of the recent posts
	'showposts'=&gt;5, // Number of related posts that will be shown.
	'caller_get_posts'=&gt;1);
    $tags_query = new WP_Query($args);
    if ($tags_query-&gt;have_posts()) {
?&gt;
    	&lt;div class=&quot;related-posts&quot;&gt;
            &lt;h2&gt;Related posts&lt;/h2&gt;
            &lt;ul&gt;

    &lt;?php while ($tags_query-&gt;have_posts()) { $tags_query-&gt;the_post(); ?&gt;           

    		&lt;li&gt;
    		    &lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
    		&lt;/li&gt;   		

    &lt;?php } ?&gt;

            &lt;/ul&gt;
        &lt;/div&gt;

        &lt;?php
      }
?&gt;
</pre><p>The first we have create an array of tags and exclude recent posts. This we do by adding an array $ids to the parameter &#8216;post__not_in&#8217;.</p><pre class="brush: php;">
$tags = wp_get_post_tags( array('showposts' =&gt; 5, 'post__not_in'=&gt;$ids) );
</pre><p>Store the tags&#8217; ID&#8217;s in the array $tag_ids</p><pre class="brush: php;">
$tag_ids = array();
    foreach ($tags as $individual_tag)
        $tag_ids[] = $individual_tag-&gt;term_id;
</pre><p>Prepare $args &#8211; arguments we want to set for $tags_query instance of the WP_Query class.<br
/> Note argument &#8216;post__not_in&#8217; => $ids to which we assign array of the IDs of the recent posts. They won&#8217;t be displayed in the related posts.</p><pre class="brush: php;">
 $args = array(
	'tag__in'=&gt;$tag_ids,
	'post__not_in'=&gt;$ids, // while using $recent_query we created $ids[] array with IDs of the recent posts
	'showposts'=&gt;5, // Number of related posts that will be shown.
	'caller_get_posts'=&gt;1);
    $tags_query = new WP_Query($args);
</pre><p>If there are posts that meet our conditions:</p><pre class="brush: php;">
if ($tags_query-&gt;have_posts()) {
</pre><p>Start displaying related posts based on the their tags:</p><pre class="brush: php; html-script: true;">
&lt;div class=&quot;related-posts&quot;&gt;
            &lt;h2&gt;Related posts&lt;/h2&gt;
            &lt;ul&gt;

    &lt;?php while ($tags_query-&gt;have_posts()) { $tags_query-&gt;the_post(); ?&gt;           

    		&lt;li&gt;
    		    &lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
    		&lt;/li&gt;   		

    &lt;?php } ?&gt;

            &lt;/ul&gt;
        &lt;/div&gt;
</pre>]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/display-recent-and-related-posts-without-duplicating-each-other/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Advanced Videobox</title><link>http://www.sramekdesign.com/wordpress/plugins/advanced-videobox/</link> <comments>http://www.sramekdesign.com/wordpress/plugins/advanced-videobox/#comments</comments> <pubDate>Tue, 23 Feb 2010 11:14:19 +0000</pubDate> <dc:creator>Tom</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[embed]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[video]]></category> <category><![CDATA[videobox]]></category> <category><![CDATA[web 2]]></category> <category><![CDATA[widget]]></category> <category><![CDATA[XHTML valid]]></category> <category><![CDATA[youtube]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=470</guid> <description><![CDATA[
With this plugin you can add videos to your sidebar (or any other widgetized area of your site). Just copy and paste code of the video into the Advanced widget.
The Youtube&#8217;s original video code doesn&#8217;t pass W3C validation. The filtered video code of the Advanced Videobox will keep your site XHTML valid. Of course only [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fplugins%2Fadvanced-videobox%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fplugins%2Fadvanced-videobox%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=embed,plugin,video,videobox,web+2,widget,XHTML+valid,youtube" height="61" width="51" /><br
/> </a></div><p>With this plugin you can add videos to your sidebar (or any other widgetized area of your site). Just copy and paste code of the video into the Advanced widget.<br
/> The Youtube&#8217;s original video code doesn&#8217;t pass W3C validation. The filtered video code of the Advanced Videobox will keep your site XHTML valid. Of course only in case the site was valid beforehand <img
src='http://www.sramekdesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br
/> <em>See sidebar</em> for Advanced Videobox in action.</p><h3>Latest version 1.0.1</h3><p><a
class="download-file" rel="nofollow" href="http://wordpress.org/extend/plugins/advanced-videobox/">Download</a></p><h3>Features</h3><ul><li>Web 2.0 graphics</li><li>Plugin outputs XHTML valid code</li><li>Change sizes of the video comfortably through widget panel</li><li>Easily customizable CSS</li><li>Add up to 20 videos</li></ul><div
id="attachment_222" class="wp-caption alignnone" style="width: 340px"><img
src="http://tomsramek.com/wp-content/uploads/screenshot-11.jpg" alt="" title="screenshot-1" width="330" height="460" class="size-full wp-image-222" /><p
class="wp-caption-text">You can add up to 20 videos. Music, tutorials, ads or whatever you want.</p></div><h3>How-to</h3><ul><li>Download plugin from Wordpress repository.</li><li> Unzip and upload it to \wp-content\plugins\. Or you can go to the admin panel:<ul><li>Plugins &#8211;&gt; Add New</li><li>Type &#8220;advanced videobox&#8221; into the search field.</li><li>Install.</li></ul></li><li>Drag the widget instance to the widget panel of your choice</li><li>Choose number of videos and SAVE widget to see correct number of the input fields.</li><li>Add width and height of the videos</li><li>Add title and code for each video</li><li>If you want to display customized video player, you have to check &#8220;Enable parameters&#8221;. Don&#8217;t do that if you want to keep code of the video XHTML valid.<div
class="wp-caption alignnone" style="width: 317px"><img
class="size-full wp-image-47" title="yt" src="http://tomsramek.com/wp-content/uploads/yt.jpg" alt="" width="307" height="233" /><p
class="wp-caption-text">In the your youtube.com, click the wheel and play around with the colors of the player.</p></div></li></ul><p><a
rel="nofollow" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&#038;hosted_button_id=HKC9Q229KP22U" class="buy-me-beer">Buy me a beer</a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/plugins/advanced-videobox/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>All-In-One Cufon</title><link>http://www.sramekdesign.com/wordpress/plugins/all-in-one-cufon/</link> <comments>http://www.sramekdesign.com/wordpress/plugins/all-in-one-cufon/#comments</comments> <pubDate>Tue, 23 Feb 2010 11:02:43 +0000</pubDate> <dc:creator>Tom</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[cufon]]></category> <category><![CDATA[flir]]></category> <category><![CDATA[font]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[replacement]]></category> <category><![CDATA[sifr]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=466</guid> <description><![CDATA[
All-In-One Cufon plugin allows you an easy replacement of standard fonts with beautiful catchy fonts.
This plugin implements Simo Kinnunen&#8217;s Cufón script, which aspires to become a worthy alternative to sIFR.
Latest version 1.0.3
Download
FeaturesEasy to use
Automatic detection of the uploaded fonts
Preview of the uploaded fonts
Automatic detection of the fontFamily parameter
Option to enable only font you really want [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fplugins%2Fall-in-one-cufon%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fplugins%2Fall-in-one-cufon%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=cufon,flir,font,plugin,replacement,sifr" height="61" width="51" /><br
/> </a></div><p>All-In-One Cufon plugin allows you an easy replacement of standard fonts with beautiful catchy fonts.<br
/> This plugin implements Simo Kinnunen&#8217;s <a
href="http://wiki.github.com/sorccu/cufon/about" rel="nofollow">Cufón script</a>, which aspires to become a worthy alternative to sIFR.</p><h3>Latest version 1.0.3</h3><p><a
href="http://wordpress.org/extend/plugins/all-in-one-cufon/" rel="nofollow" class="download-file">Download</a></p><h3>Features</h3><ul><li>Easy to use</li><li>Automatic detection of the uploaded fonts</li><li>Preview of the uploaded fonts</li><li>Automatic detection of the fontFamily parameter</li><li>Option to enable only font you really want to use</li><li>Code tips</li></ul><div
id="attachment_200" class="wp-caption alignnone" style="width: 238px"><a
href="http://tomsramek.com/wp-content/uploads/screenshot-1.jpg"><img
src="http://tomsramek.com/wp-content/uploads/screenshot-1-228x300.jpg" alt="" title="screenshot-1" width="228" height="300" class="size-medium wp-image-200" /></a><p
class="wp-caption-text">All-In-One Cufon admin panel with code tips, fonts preview and field where you set your font.</p></div><h3>How-to</h3><ul><li>Download plugin from Wordpress repository.</li><li>Unzip and upload it to \wp-content\plugins\. Or you can go to the admin panel:<ul><li>Plugins &#8211;> Add New</li><li>Type &#8220;all-in-one cufon&#8221; into the search field.</li><li>Install.</li><li>First you have to generate JavaScript file of your .otf, .ttf etc. font file. To generate this you have to go the <a
href="http://cufon.shoqolate.com/generate/" rel="nofollow">Cufon generator</a>.<br
/> Make sure the EULA of the font permits web embedding.</li></ul></li><li>Create a folder called /cufon-fonts/ in the wp-content/plugins/ directory, where you need to upload your generated font .js files.</li><li>When you&#8217;re done, just go the admin panel: Settings&#8211;>All-In-One Cufon</li><li>There you will instantly see fonts that were detected in your \wp-content\plugins\cufon-fonts\ folder.</li><li>Enable fonts you wish to use.</li><li>The last step is adding the Cufón code.</li></ul><h4>Adding Cufon code</h4><p>Add Cufon code to the Cufon&#8217;s code field. Basic code for replacing h2 element looks like this:</p><pre class="brush: jscript;">
Cufon.replace('h2');
</pre><p>For more complex element you can use code like this:</p><pre class="brush: jscript;">
Cufon.replace('#top-menu.menu');
</pre><p>1. Add gradient to the font:</p><pre class="brush: jscript;">
Cufon.replace('.cufon-gradient', {
                	color: '-linear-gradient(red, blue)'
                    });
</pre><div
class="cufon-gradient">Cufon can make use of gradients</div><p>2. Add shadow to the font:</p><pre class="brush: jscript;">
Cufon.replace('.cufon-shadow', {
                    textShadow: '2px 2px red'
                    });
</pre><div
class="cufon-shadow">Cufon can have a shadow, too!</div><p>3. Add gradient and shadow to the font:</p><pre class="brush: jscript;">
Cufon.replace('.cufon-gradient-shadow', {
                	color: '-linear-gradient(blue, yellow)',
                        textShadow: '2px 2px #C0C0C0'
                    });
</pre><div
class="cufon-gradient-shadow">Cufon can even have gradient and shadow together.</div><p>4. Add gradient and shadow to a link:</p><pre class="brush: jscript;">
Cufon.replace('a.cufon-gradient-shadow-link', {
                	color: '-linear-gradient(#FF9900, #000000)',
                    textShadow: '2px 2px #C0C0C0',
                    hover: {
		textShadow: '2px 2px #C0C0C0',
		color: '-linear-gradient(#99CC00, #000000)'
	}
                    });
</pre><p><a
href="#" class="cufon-gradient-shadow-link">Cufon can apply gradient and shadow to links.</a></p><p>5. Set font, gradient and hover.</p><pre class="brush: jscript;">
Cufon.replace('a.cufon-easy', {
                    fontFamily: 'Sketch Rockwell',
                    color: '-linear-gradient(#FF6600, #33CCCC)',
                    hover: {
            		textShadow: '2px 2px red',
            		color: '-linear-gradient(black, white)'
	}
</pre><p><a
href="#" class="cufon-easy">Cufon is easy to set up.</a></p><p>6. Add gradient, shadow and transparency to a shadow:</p><pre class="brush: jscript;">
Cufon.replace('a.cufon-transparent', {
                	color: '-linear-gradient(#FFFFFF, #99CCFF)',
                    textShadow: '10px 10px rgba(0, 0, 0, 0.3)',
                    hover: {
		textShadow: '10px 10px rgba(0, 0, 0, 0.3)',
		color: '-linear-gradient(#FFFFFF, #969696)'
	}
                    });
</pre><p>CSS code</p><pre class="brush: css;">
.cufon-transparent { display: block; font-size: 40px; background: url(images/cufon-bg.jpg) repeat; }
</pre><p><a
href="#" class="cufon-transparent">Cufon can work with transparency in links.</a></p><p>You can find much more info on this amazing script on the <a
rel="nofollow" href="http://wiki.github.com/sorccu/cufon">official Cufón&#8217;s pages</a>.<br
/> They also have active forum, where you can ask all your questions regarding Cufón.</p><p><a
rel="nofollow" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&#038;hosted_button_id=N9A8UH9JPJ82G" class="buy-me-beer">Buy me a beer</a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/plugins/all-in-one-cufon/feed/</wfw:commentRss> <slash:comments>86</slash:comments> </item> <item><title>Youtube Video Box Plugin</title><link>http://www.sramekdesign.com/wordpress/plugins/youtube-video-box-plugin/</link> <comments>http://www.sramekdesign.com/wordpress/plugins/youtube-video-box-plugin/#comments</comments> <pubDate>Tue, 15 Dec 2009 06:47:01 +0000</pubDate> <dc:creator>Tom</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[embed]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[video]]></category> <category><![CDATA[videobox]]></category> <category><![CDATA[widget]]></category> <category><![CDATA[XHTML valid]]></category> <category><![CDATA[youtube]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=428</guid> <description><![CDATA[
With Youtube Videobox plugin you can add unlimited number of videos to your site in a painless way. All you need is to copy and paste code of the video into the Youtube Videobox widget.
The original video code from Youtube doesn&#8217;t pass W3C validation. My filtered video code will keep your site XHTML valid. Of [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fplugins%2Fyoutube-video-box-plugin%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fplugins%2Fyoutube-video-box-plugin%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=embed,plugin,video,videobox,widget,XHTML+valid,youtube" height="61" width="51" /><br
/> </a></div><p>With Youtube Videobox plugin you can add unlimited number of videos to your site in a painless way. All you need is to copy and paste code of the video into the Youtube Videobox widget.<br
/> The original video code from Youtube doesn&#8217;t pass W3C validation. My filtered video code will keep your site XHTML valid. Of course only in case the site was valid beforehand <img
src='http://www.sramekdesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p><h3>Latest version 0.9.1</h3><p><a
class="download-file" rel="nofollow" href="http://wordpress.org/extend/plugins/youtube-video-box-plugin/">Download</a></p><h3>Features</h3><ul><li>Plugin outputs XHTML valid code</li><li>Change sizes of the video comfortably through widget panel</li><li>Due to WP widget architecture you can add unlimited number of the widget instances</li></ul><h3>How-to</h3><ul><li>Download plugin from Wordpress repository.</li><li> Unzip and upload it to \wp-content\plugins\. Or you can go to the admin panel:<ul><li>Plugins &#8211;&gt; Add New</li><li>Type &#8220;youtube videobox&#8221; into the search field.</li><li>Install.</li></ul></li><li>Drag the widget instance to the widget panel of your choice</li><li>Add width, height and code of the video</li><li>If you want to display customized video player, you have to tick &#8220;Enable parameters&#8221;. Don&#8217;t do that if you want to keep code of the video XHTML valid.<div
id="attachment_47" class="wp-caption alignnone" style="width: 317px"><img
class="size-full wp-image-47" title="yt" src="http://tomsramek.com/wp-content/uploads/yt.jpg" alt="" width="307" height="233" /><p
class="wp-caption-text">In the your youtube.com, click the wheel and play around with the colors of the player.</p></div></li></ul><h4>Create widgets and put your videos anywhere</h4><p>Adding widgets is not limited only to sidebar. You can widgetize any part of your site. It&#8217;s incredibly easy!<br
/> This is CSS of the widget. Note that width of the widget is set to auto. This allows using setting different sizes of the video without setting new sizes of the widget in CSS.</p><pre class="brush: css;">
.widget            { width: auto; margin: 0px 0 10px 0; }
.widget p          { padding: 10px 10px 10px 10px; }
</pre><p>In functions.php you have to register your sidebar:</p><pre class="brush: php;">
&lt;?php
if (function_exists('register_sidebar')) {
//Video widget 1
    register_sidebar(array(
    'before_widget' =&gt; '&lt;div id=&quot;%1$s&quot; class=&quot;%2$s widget&quot;&gt;',
    'before_title' =&gt; '&lt;h3 class=&quot;widgettitle&quot;&gt;',
    'after_title' =&gt; '&lt;/h3&gt;',
    'after_widget' =&gt; '&lt;/div&gt;',
    'name' =&gt; Video widget 1));
//Video widget 2
    register_sidebar(array(
    'before_widget' =&gt; '&lt;div id=&quot;%1$s&quot; class=&quot;%2$s widget&quot;&gt;',
    'before_title' =&gt; '&lt;h3 class=&quot;widgettitle&quot;&gt;',
    'after_title' =&gt; '&lt;/h3&gt;',
    'after_widget' =&gt; '&lt;/div&gt;',
    'name' =&gt; Video widget 2));
}
?&gt;
</pre><p>The last thing we have to do is add widgets to our code.<br
/> Video widget 1 in the footer:</p><pre class="brush: php; html-script: true;">
&lt;div id=&quot;footer&quot;&gt;
&lt;?php if (function_exists('dynamic_sidebar') &amp;&amp; dynamic_sidebar('Video widget 1')): else : ?&gt;
&lt;!-- some code --&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
</pre><p>..and Video widget 2 in the sidebar:</p><pre class="brush: php; html-script: true;">
&lt;div id=&quot;sidebar&quot;&gt;
&lt;?php if (function_exists('dynamic_sidebar') &amp;&amp; dynamic_sidebar('Video widget 2')): else : ?&gt;
&lt;!-- some code --&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
</pre><p><a
rel="nofollow" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&#038;hosted_button_id=KT46YVVNQX4CL" class="buy-me-beer">Buy me a beer</a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/plugins/youtube-video-box-plugin/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Display current logged in user</title><link>http://www.sramekdesign.com/wordpress/display-current-logged-in-user/</link> <comments>http://www.sramekdesign.com/wordpress/display-current-logged-in-user/#comments</comments> <pubDate>Mon, 27 Jul 2009 14:58:18 +0000</pubDate> <dc:creator>Tom</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[log in]]></category> <category><![CDATA[log out]]></category> <category><![CDATA[user]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=386</guid> <description><![CDATA[
1. If you are logged out you will see &#8220;Please log in or Register&#8221;
else if you are logged in
2. you will see  &#8220;Welcome USERNAME&#8221;&#60;?php  if (is_user_logged_in()) {
$user = wp_get_current_user();
echo 'Welcome &#60;strong&#62;'.$user-&#62;display_name.'&#60;/strong&#62; !';
[...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fdisplay-current-logged-in-user%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fdisplay-current-logged-in-user%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=log+in,log+out,user" height="61" width="51" /><br
/> </a></div><p>1. If you are logged out you will see &#8220;Please <strong>log in</strong> or <strong>Register</strong>&#8221;</p><p>else if you are logged in</p><p>2. you will see  &#8220;Welcome <strong>USERNAME</strong>&#8221;</p><pre class="brush: php;">
&lt;?php  if (is_user_logged_in()) {
          $user = wp_get_current_user();
          echo 'Welcome &lt;strong&gt;'.$user-&gt;display_name.'&lt;/strong&gt; !';
                        } else { ?&gt;
          Please &lt;strong&gt;&lt;?php wp_loginout(); ?&gt;&lt;/strong&gt;
          or &lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-login.php?action=register&quot;&gt;&lt;strong&gt;Register&lt;/strong&gt;&lt;/a&gt;
          &lt;?php } ?&gt;
</pre>]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/display-current-logged-in-user/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Free theme Sidon</title><link>http://www.sramekdesign.com/wordpress/themes/sidon/</link> <comments>http://www.sramekdesign.com/wordpress/themes/sidon/#comments</comments> <pubDate>Thu, 23 Jul 2009 14:53:25 +0000</pubDate> <dc:creator>Tom</dc:creator> <category><![CDATA[Themes]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=377</guid> <description><![CDATA[NEW! update 1.4.1dropdown menu
nested comments
minor fixesSidon 1.3.13 column AdSense ready
2 columns widget ready
blue and white colors
XHTML valid TransitionalPreview
Download
]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fthemes%2Fsidon%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fthemes%2Fsidon%2F&amp;source=TomSramek&amp;style=normal" height="61" width="51" /><br
/> </a></div><p><img
class="aligncenter size-full wp-image-378" title="sidon-splash" src="http://www.sramekdesign.com/wp-content/uploads/2009/07/sidon-splash.jpg" alt="sidon-splash" width="650" height="263" /></p><h2>NEW! update 1.4.1</h2><ul><li>dropdown menu</li><li>nested comments</li><li>minor fixes</li></ul><p></br></p><h2>Sidon 1.3.1</h2><ul><li>3 column AdSense ready</li><li>2 columns widget ready</li><li>blue and white colors</li><li>XHTML valid Transitional</li></ul><p><a
href="http://sramekdesign.com/free-theme/sidon/">Preview</a><br
/> <a
href="http://wordpress.org/extend/themes/sidon" rel="nofollow">Download</a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/themes/sidon/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Display last posts</title><link>http://www.sramekdesign.com/wordpress/display-last-posts/</link> <comments>http://www.sramekdesign.com/wordpress/display-last-posts/#comments</comments> <pubDate>Sun, 29 Mar 2009 12:18:03 +0000</pubDate> <dc:creator>Tomas Sramek</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[category]]></category> <category><![CDATA[function]]></category> <category><![CDATA[wp_get_archives]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=289</guid> <description><![CDATA[
If you want to display five last posts from your Wordpress blog, use this function:&#60;ul&#62;
&#60;?php wp_get_archives('type=postbypost&#38;limit=5'); ?&#62;
&#60;/ul&#62;For more detailed info go here
]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fdisplay-last-posts%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fdisplay-last-posts%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=category,function,Wordpress,wp_get_archives" height="61" width="51" /><br
/> </a></div><p>If you want to display five last posts from your Wordpress blog, use this function:</p><pre class="brush: php;">
&lt;ul&gt;
  &lt;?php wp_get_archives('type=postbypost&amp;limit=5'); ?&gt;
&lt;/ul&gt;
</pre><p>For more detailed info go <a
href="http://codex.wordpress.org/Template_Tags/wp_get_archives">here</a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/display-last-posts/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Wordpress: display posts from certain category</title><link>http://www.sramekdesign.com/wordpress/wordpress-display-posts-from-certain-category/</link> <comments>http://www.sramekdesign.com/wordpress/wordpress-display-posts-from-certain-category/#comments</comments> <pubDate>Sun, 08 Mar 2009 09:46:06 +0000</pubDate> <dc:creator>Tomas Sramek</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[category]]></category> <category><![CDATA[loop]]></category> <category><![CDATA[query_posts]]></category> <category><![CDATA[show]]></category> <category><![CDATA[showposts]]></category> <category><![CDATA[WP_Query]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=185</guid> <description><![CDATA[
Recently my client&#8217;s design required displaying posts in sidebar only from one category. To solve this problem I decided to use class WP_Query.
The first we have to create instance of WP_Query:Then call method query(); to start the query. This is actually same as you would be using query_posts();
Parameter cat indicates which category&#8217;s posts are shown. [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fwordpress-display-posts-from-certain-category%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fwordpress-display-posts-from-certain-category%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=category,loop,query_posts,show,showposts,Wordpress,WP_Query" height="61" width="51" /><br
/> </a></div><p>Recently my client&#8217;s design required displaying posts in sidebar only from one category. To solve this problem I decided to use class WP_Query.</p><p>The first we have to create instance of WP_Query:</p><pre lang="php"><?php $recent = new WP_Query(); ?></pre><p>Then call method query(); to start the query. This is actually same as you would be using query_posts();<br
/> Parameter <strong>cat</strong> indicates which category&#8217;s posts are shown. Parameter <strong>showposts</strong> is the number of posts to be displayed.</p><pre lang="php"><?php $recent->query('cat=1&#038;showposts=5'); ?></pre><p>Now we can use loop:</p><pre class="brush: php;">
&lt;?php while($recent-&gt;have_posts()) : $recent-&gt;the_post(); ?&gt;
&lt;!-- Here goes some code --&gt;
&lt;?php endwhile; ?&gt;
</pre><p>Final code that displays last 5 posts&#8217; permalinks from category with ID=1 looks like this:</p><pre class="brush: php;">
&lt;h2&gt;Last posts&lt;/h2&gt;
&lt;?php $recent = new WP_Query(); ?&gt;
&lt;?php $recent-&gt;query('cat=1&amp;showposts=5'); ?&gt;
&lt;?php while($recent-&gt;have_posts()) : $recent-&gt;the_post(); ?&gt;
&lt;ul&gt;
	&lt;li&gt;
            &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;
            &lt;?php the_title(); ?&gt;
            &lt;/a&gt;
       &lt;/li&gt;
&lt;/ul&gt;
&lt;?php endwhile; ?&gt;
</pre><p>Using your own WP_Query instance and loop prevents you from problems that might cause plugins&#8217; loops and use of conditional tags.</p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/wordpress-display-posts-from-certain-category/feed/</wfw:commentRss> <slash:comments>15</slash:comments> </item> <item><title>Multilevel-navigation plugin: how to keep current item Home highlighted</title><link>http://www.sramekdesign.com/wordpress/multilevel-navigation-plugin-highlight-current-item-home/</link> <comments>http://www.sramekdesign.com/wordpress/multilevel-navigation-plugin-highlight-current-item-home/#comments</comments> <pubDate>Thu, 08 Jan 2009 12:46:48 +0000</pubDate> <dc:creator>Tomas Sramek</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[current item]]></category> <category><![CDATA[highlight]]></category> <category><![CDATA[homepage]]></category> <category><![CDATA[multilevel navigation plugin]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=116</guid> <description><![CDATA[
Multilevel-navigation plugin for Wordpress is beyond all doubts a great plugin that allows you to create beautiful dropdown menus and enrich the look of your wordpress theme.
The only problem while working with Multi level navigation plug-in is that it doesn&#8217;t keep current item &#8216;Homepage&#8217; highlighted. If you have encountered the same problem and would like [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fmultilevel-navigation-plugin-highlight-current-item-home%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fmultilevel-navigation-plugin-highlight-current-item-home%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=current+item,highlight,homepage,multilevel+navigation+plugin,plugin,Wordpress" height="61" width="51" /><br
/> </a></div><p><a
href="http://pixopoint.com/multi-level-navigation/" rel="nofollow">Multilevel-navigation plugin</a> for Wordpress is beyond all doubts a great plugin that allows you to create beautiful dropdown menus and enrich the look of your wordpress theme.<br
/> The only problem while working with Multi level navigation plug-in is that it doesn&#8217;t keep current item &#8216;Homepage&#8217; highlighted. If you have encountered the same problem and would like to keep the &#8216;home page&#8217; link highlighted, here is my quick and easy solution:</p><p><em><strong>This is how you can set color for &#8216;current&#8217; item:</strong></em></p><p>You have to use class li.current_page_parent:</p><pre class="brush: css;">
#suckerfishnav li.current_page_parent,
#suckerfishnav li.current_page_parent,
#suckerfishnav li.current_page_item {color:yellow;}
#suckerfishnav li.current_page_parent a:hover,
#suckerfishnav li.current_page_parent a,
#suckerfishnav li.current_page_item a {color:yellow;}
</pre><p><em><strong>And now  how to keep homepage item of menu highlighted:</strong></em></p><p>1.  In plugin&#8217;s settings disable viewing &#8216;Home&#8217; item. From now on you are not going to need it.<a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/multilevel-navigation-settings1.jpg"><img
class="aligncenter size-full wp-image-143" title="multilevel-navigation-settings1" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/multilevel-navigation-settings1.jpg" alt="multilevel-navigation-settings1" width="625" height="139" /></a></p><p>2.  Create new page and name it &#8216;Home&#8217; &#8230;or how you want to.</p><p>3.  If you want this page to be viewed as first you have to set order value of the page lower than other pages. Now the item &#8216;Home&#8217; should be on the first place in your menu.</p><p><a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/page-order.jpg"><img
class="aligncenter size-full wp-image-145" title="page-order" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/page-order.jpg" alt="page-order" width="650" height="405" /></a></p><p>4.  Go to Settings&#8211;&gt;Reading and set your posts page to be viewed by clicking on the &#8216;Home&#8217; link. Now every time you click &#8216;Home&#8217; item in your menu, you will get to your homepage.</p><p><a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/reading-settings.jpg"><img
class="aligncenter size-full wp-image-131" title="reading-settings" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/reading-settings.jpg" alt="reading-settings" width="650" height="297" /></a></p><p>5.  The last problem is the URL in the browser. It is viewed like this:</p><p><a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/url-home.jpg"><img
class="aligncenter size-full wp-image-147" title="url-home" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/url-home.jpg" alt="url-home" width="625" height="73" /></a></p><p>Probably you will want the URL after clicking on &#8216;Home&#8217; item to be www.yourdomain.com without the &#8216;/home/&#8217;. This issue we can easily solve with Page links to plugin. You can get it <a
href="http://txfx.net/code/wordpress/page-links-to/">here</a> or install it directly via &#8216;add new plugin&#8217; panel.</p><p>6.  The plugin adds option &#8216;page links to&#8217; to the page&#8217;s options. Just type in your domain&#8217;s URL and that&#8217;s it. Multilevel navigation plugin&#8217;s Home item issue is solved.</p><p><a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/page-links-to.jpg"><img
class="aligncenter size-full wp-image-150" title="page-links-to" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/page-links-to.jpg" alt="page-links-to" width="625" height="85" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/multilevel-navigation-plugin-highlight-current-item-home/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 9/15 queries in 0.022 seconds using disk

Served from: www.sramekdesign.com @ 2010-08-01 07:22:21 -->