<?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>Ionut Staicu - Webdeveloper Blog &#187; Wordpress</title>
	<atom:link href="http://dev.iamntz.com/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://dev.iamntz.com</link>
	<description>Stuff about CSS, XHTML, Javascript and jQuery</description>
	<lastBuildDate>Thu, 26 May 2011 05:43:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Show only posts with certain custom field in WordPress</title>
		<link>http://dev.iamntz.com/186/show-only-posts-with-certain-custom-field-in-wordpress</link>
		<comments>http://dev.iamntz.com/186/show-only-posts-with-certain-custom-field-in-wordpress#comments</comments>
		<pubDate>Tue, 12 May 2009 14:57:28 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=186</guid>
		<description><![CDATA[Today I spent a few hours on trying to figure how the hell should I display only posts with certain custom field. For those who don’t know, a custom field allows you to add some extra information in each post. &#8230; <a href="http://dev.iamntz.com/186/show-only-posts-with-certain-custom-field-in-wordpress">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I spent a few hours on trying to figure how the hell should I display only posts with certain custom field. For those who don’t know, a custom field allows you to add some extra information in each post. That information allows you to do various stuff like displaying a custom image on each post and so on. For example, the thing I tried to do today was to make a gender selector for the current project.</p>
<p>The usual way for displaying posts in WordPress is this:</p>
<pre lang="php">
if (have_posts()) :
 while (have_posts()) : the_post();
</pre>
<p>What I did is this:</p>
<pre lang="php">
$gender = htmlentities($_GET['gender'], ENT_QUOTES, 'UTF-8');
switch($gender ){
	case "f":
		query_posts('meta_key=gender&#038;meta_value=f');
	break;

	case "m":
		query_posts('meta_key=gender&#038;meta_value=m);
	break;
	default :

	break;
}
</pre>
<p>After that i continued with regular code:</p>
<pre lang="php">
if (have_posts()) :
 while (have_posts()) : the_post();
</pre>
<p>That&#8217;s all!</p>
<p>Of course, i could use an unlisted tag or category, but i also made a neat custom field manager in the &#8220;post.php&#8221; page that makes administration of those custom fields a breeze. </p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/186/show-only-posts-with-certain-custom-field-in-wordpress/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WP-Print &#8211; show me the link ONLY!</title>
		<link>http://dev.iamntz.com/179/wp-print-show-me-the-link-only</link>
		<comments>http://dev.iamntz.com/179/wp-print-show-me-the-link-only#comments</comments>
		<pubDate>Mon, 06 Apr 2009 19:48:21 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=179</guid>
		<description><![CDATA[I had to use a WP-Print for a recent WordPress project and, because the way i work, i started to search for plugins AFTER the psd was converted into html and a big part of code was already up &#038; &#8230; <a href="http://dev.iamntz.com/179/wp-print-show-me-the-link-only">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had to use a WP-Print for a recent WordPress project and, because the way i work, i started to search for plugins AFTER the psd was converted into html and a big part of code was already up &#038; running. So, i downloaded latest version of WP-Print and I tried to use a basic setup:</p>
<pre lang="php">
<?php
 print_link();
?>
</pre>
<p>The problem is that the plugin display the whole link tag (<code>a href="..."</code>) and I only needed the <code>href</code> value. I edited wp-print.php (which is inside of you wp-content/plugins/wp-print folder) and i looked for <code>print_link()</code> function. </p>
<p>I saw the function accept three parameters: with first two you can set some extra text and the third (which is boolean) is for setting the way how function behave. So, you can call the function like the previous example or like this:</p>
<pre lang="php">
<?php
 echo print_link('', '', false);
?>
</pre>
<p><!--adsense--><br />
For showing the way you want. But, because i wanted only the link to that page, i edited wp-print.php and i changed the return of the function when the last parameter was boolean:</p>
<pre lang="php">
if($echo) {
	echo $output."\n";
} else {
	return $output;
}
</pre>
<p>Became:</p>
<pre lang="php">
if($echo) {
	echo $output."\n";
} else {
	return $print_link;
}
</pre>
<p>So now, i can use it like this:</p>
<pre lang="html">
<li><a href="<?php echo print_link('', '', false); ?>" class="myPrint">PRINT !</a></li>
</pre>
<p>Easy, isn&#8217;t it? <img src='http://dev.iamntz.com/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/179/wp-print-show-me-the-link-only/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ntz Antispam WordPress Plugin</title>
		<link>http://dev.iamntz.com/158/ntz-antispam-plugin</link>
		<comments>http://dev.iamntz.com/158/ntz-antispam-plugin#comments</comments>
		<pubDate>Mon, 02 Mar 2009 13:53:58 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=158</guid>
		<description><![CDATA[Wassup guys? I&#8217;ve worked a LOT lately and i didn&#8217;t have time to do too much things. I know i had promised you some free WordPress themes, but right now I really don&#8217;t know when i will launch them. Anyhow, &#8230; <a href="http://dev.iamntz.com/158/ntz-antispam-plugin">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wassup guys?</p>
<p>I&#8217;ve worked a LOT lately and i didn&#8217;t have time to do too much things. I know i had promised you some free WordPress themes, but right now I really don&#8217;t know when i will launch them. </p>
<p>Anyhow, few months ago i posted a <a href="http://dev.iamntz.com/87/very-effective-antispam-trick-on-blogs">very effective spam trick</a>. Because that method was somehow hard to apply and everytime you update wordpress or change your theme you had to redo some steps, i though is better to make a plugin for this.</p>
<p>Is a small plugin, is free to use and redistribute (even i ask you to do so!).</p>
<h2>How to use?</h2>
<ol>
<li>Extract in your wp-content/plugins folder</li>
<li>Activate from your admin area </li>
<li>Watch your spam queue. ZERO. Nothing, NADA!</li>
</ol>
<h2>How effective is this ?</h2>
<p>I use this trick for over six months. Before I use this, i had around 50 spams/day catched by Akismet. After i put this, i have MAXIMUM five spams/week. Very impressive, isn&#8217;t it?</p>
<p>Dowload from here:<br />
<!--adsense--><br />
[download id="1"]</p>
<p>You don&#8217;t have to pay a dime. Anyhow, any link love is well appreciated <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Update:</p>
<p>I also can be found <a href="http://wordpress.org/extend/plugins/ntzantispam/">HERE</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/158/ntz-antispam-plugin/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7 final to be released</title>
		<link>http://dev.iamntz.com/123/wordpress-27-final-to-be-released</link>
		<comments>http://dev.iamntz.com/123/wordpress-27-final-to-be-released#comments</comments>
		<pubDate>Wed, 03 Dec 2008 12:53:38 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=123</guid>
		<description><![CDATA[If you use wordpress, you may be happy. The 2.7 will go final in two days from now. The good news is this: old browsers are not supported anymore. Yes, IE6 is included in &#8220;old browser&#8221; category! I already update &#8230; <a href="http://dev.iamntz.com/123/wordpress-27-final-to-be-released">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you use wordpress, you may be happy. The <a href="http://en.blog.wordpress.com/2008/12/03/27-gets-here-in-two-days/">2.7 will go final</a> in two days from now. The good news is this: old browsers are not supported anymore. Yes, IE6 is included in &#8220;old browser&#8221; category!</p>
<p>I already update this blog to 2.7 RC because i just messed up feed.</p>
<p>What i did? Well.. In my &#8220;have more money than Bill Gates&#8221; race, i wanted to put some ads in RSS feeds. I set up this in adsense account but&#8230; The problem is that i screw things up <img src='http://dev.iamntz.com/wp-includes/images/smilies/angry.gif' alt=':(' class='wp-smiley' />  Ads are displayed, but in reader you can see a small excerpt. I spend over two hours to find a fix (including removing the ads!) but with no luck. So&#8230; If you know how to fix and you want to help me, be my guest!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/123/wordpress-27-final-to-be-released/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Very *effective* antispam trick on blogs</title>
		<link>http://dev.iamntz.com/87/very-effective-antispam-trick-on-blogs</link>
		<comments>http://dev.iamntz.com/87/very-effective-antispam-trick-on-blogs#comments</comments>
		<pubDate>Tue, 21 Oct 2008 11:13:56 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=87</guid>
		<description><![CDATA[Most of bloggers have a problem with spam. Of course, there is Akismet, but sometimes Akismet is not good enough because he doesn&#8217;t catch all spam messages. So, with this in mind, i wanted only to get rid of all &#8230; <a href="http://dev.iamntz.com/87/very-effective-antispam-trick-on-blogs">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Most of bloggers have a problem with spam. Of course, there is Akismet, but sometimes Akismet is not good enough because he doesn&#8217;t catch all spam messages. So, with this in mind, i wanted only to get rid of all automated messages.</p>
<p>So, look what i did:</p>
<p>First of all, i go with „robots fills ALL fields with something” in my mind. I&#8217;ve added only TWO lines of code: one in <code>comments.php</code> from your theme folder and one in <code>wp-comments-post.php</code> from your root folder.</p>
<p>Ok, how you do it?</p>
<p>First of all you need a ftp client and a text editor. <a href="http://e-texteditor.com">E-texteditor</a> is 2 in 1 so you can download a trial version for doing this. Ofcourse, you can use the old and ugly notepad (or whatever your OS has default). </p>
<p>Open <code>comments.php</code> (which is in your <code>wp-content/themes/your_theme_name</code> folder) then find this line:</p>
<pre lang="html">
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
</pre>
<p>Some things can vary (like <code>ID</code> of the form), but 90% in cases you won&#8217;t need to look for something else <img src='http://dev.iamntz.com/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Just AFTER this line you add:</p>
<pre lang="html">
<p style="position:absolute; left:-9999px;">Don't fill this!
<input type="text" name="name2" />
</pre>
<p>We put a form here and hide it. I didn&#8217;t use <code>display:none</code> because i wanted to be sure that field will be showed up, even is on the left side of the screen (you should actually turn you head to left to see it <img src='http://dev.iamntz.com/wp-includes/images/smilies/tongue.gif' alt=':P' class='wp-smiley' />  ) So the bot will actually SEE that form and will fill. Normal user won&#8217;t.</p>
<p>Save and upload (or just save if you work directly on ftp) then open <code>wp-comments-post.php</code> from your root folder. Just after the </p>
<pre lang="php">
<?php
/**
 * Handles Comment Post to WordPress and prevents duplicate comment posting.
 *
 * @package WordPress
 */
</pre>
<p>beginning part, just add this:</p>
<pre lang="php">
if( $_POST['name2']!= ''){
	die('Spammer!');
}
</pre>
<p>Save and upload.</p>
<p>Next you need to... Hmm... You don't need to do anything else ! Now empty your Akismet queue and wait to see if you get any other spam messages <img src='http://dev.iamntz.com/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Note that is possible to not catch ALL spams, but those are automated you won't get it anymore <img src='http://dev.iamntz.com/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' />  Also, when you upgrade wordpress make sure you make those changes again. And finally, BACK UP FIRST!</p>
<p>Update.</p>
<h1>READ THIS!</h1>
<p>Verry annoying thing that i had recently noticed: even if this small plugin do a great job for spamm *comments*, will NOT work on trackback spam. </p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/87/very-effective-antispam-trick-on-blogs/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Advanced Carousel</title>
		<link>http://dev.iamntz.com/39/advanced-carousel</link>
		<comments>http://dev.iamntz.com/39/advanced-carousel#comments</comments>
		<pubDate>Thu, 31 Jul 2008 21:40:25 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=39</guid>
		<description><![CDATA[Ok, as ai said you before, i want to make a tutorial about a more advanced carousel than previous was. I won&#8217;t explain HTML and CSS code (is very simple and intutive): Previous Next CSS file: * {margin:0;padding:0;} .clearfix:after {content:".";display:block;height:0;clear:both;visibility:hidden} &#8230; <a href="http://dev.iamntz.com/39/advanced-carousel">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, as ai said you before, i want to make a tutorial about a more advanced carousel than previous was. </p>
<p>I won&#8217;t explain HTML and CSS code (is very simple and intutive):</p>
<pre lang="html" line="1">
<div class="carousel">
<div class="ctrls">
		<a href="#" class="prev">Previous</a>
		<a href="#" class="next">Next</a>
	</div>
<ul class="clearfix">
<li><img src="http://farm4.static.flickr.com/3164/2719962411_77cf9e1699_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3159/2720786298_d33f97bfcd_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3280/2719962373_f49bb3e2a2_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3001/2720787742_d2f263372c_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3046/2720787680_8f358f938e_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3108/2719963843_f2e963af8f_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3141/2719965289_83902cf96c_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3164/2719962411_77cf9e1699_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3159/2720786298_d33f97bfcd_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3280/2719962373_f49bb3e2a2_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3001/2720787742_d2f263372c_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3046/2720787680_8f358f938e_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3108/2719963843_f2e963af8f_t.jpg" alt="" /></li>
<li><img src="http://farm4.static.flickr.com/3141/2719965289_83902cf96c_t.jpg" alt="" /></li>
</ul>
</div>
</pre>
<p>CSS file:</p>
<pre lang="css" line="1">
* {margin:0;padding:0;}

.clearfix:after {content:".";display:block;height:0;clear:both;visibility:hidden}
.clearfix {display:inline-block}
/* Hide from IE Mac \*/
.clearfix {display:block}
/* End hide from IE Mac */
* html .clearfix {height:1px}
.carousel {
	position: relative;
	overflow:hidden;
	height:500px;
	width:540px;
	margin:50px auto
}
	.carousel .ctrls {
		margin:10px
	}
	.carousel ul {
		position: absolute;
		width:8000px;
	}
		.carousel li {
			float:left;
			width:98px;
			height:98px;
			border: 1px solid #fff;
			list-style:none;
			margin-right:10px;
			text-align: center;
		}
</pre>
<p>The good part of this carousel is that you can have as many as you want in your page. You can have both fixed and fluid width and will work with no problem. Or at least no problem: on fluid layout, some images can be cutted. So, the best use is fixed width. Also, you can have autoscroll (with timers, i will say more later), but is not recommended because you may encounter some performance troubles.</p>
<p>After we include last version of <a href="http://jquery.com/">jQuery</a>, we have to do these things:</p>
<p>1) Iterate trough all <code>.carousel</code> containers (if you want to pick another name, this is the place and this is also the time!) and set the width. </p>
<pre lang="javascript" line="1">
$('.carousel').each(function(){
	var _this=this;
	var elWidth = $(_this).find('li:eq(0)').width()+12;
	$(_this).find('ul').width(elWidth*$(_this).find('li').length).css('left', 0);
});
</pre>
<p>We assume that all <code>LI</code> have same width, 10px margin and a border. So we adjust the width with 12 px (2px from border). If you have a wider margin (or none) change it, otherwise you will have some serious problems <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>The previous/next buttons we will control with a separate function, because we don&#8217;t have double scroll on double click, right? We put the function INSIDE of the <code>each</code> loop:</p>
<pre lang="javascript" line="1">
function carouselCtrls () {
	$(_this).find('a.prev').unbind().click(function(){
		$(this).unbind();
		if(parseInt($(_this).find('ul').css('left'))<0) {
			$(_this).find('ul').animate({
				left: '+='+elWidth
			}, function(){
				carouselCtrls();
			});
		}
		return false;
	});
	$(_this).find('a.next').unbind().click(function(){
		$(this).unbind();
		var maxWidth = (parseInt($(_this).find('ul').width())-$(_this).width()-10)-(-parseInt($(_this).find('ul').css('left')));
		if(maxWidth>0){

		$(_this).find('ul').animate({
			left: '-='+elWidth
		}, function(){
				carouselCtrls();
			});
		}else {
			$(_this).find('ul').animate({left:0},function(){
				carouselCtrls();
			});
		}
		return false;
	});
	};
</pre>
<p><!--adsense--><br />
Let see how it works (i will explain only one link because the other one works same &#8211; but reverted):<br />
<span id="more-39"></span></p>
<ol>
<li>Unbind any action from current link. This is because some users use double click on web (yes, there is some users like that!). So, once clicked, you can&#8217;t click again on the same link. Will won&#8217;t work. Seriously!</li>
<li>We verify if the carousel is scrolled, and if it is, to be scrolled enough to not be outside the area</li>
<li>Animate the carousel and call the control function after the animation is complete. After the animation is complete, you can click on the next/prev button</li>
</ol>
<p>So, the final code looks like this:</p>
<pre lang="javascript" line="1">
$('.carousel').each(function(){
	var _this=this;
	var elWidth = $(_this).find('li:eq(0)').width()+12;
	$(_this).find('ul').width(elWidth*$(_this).find('li').length).css('left', 0);
	carouselCtrls();

	function carouselCtrls () {
	$(_this).find('a.prev').unbind().click(function(){
		$(this).unbind();
		if(parseInt($(_this).find('ul').css('left'))<0) {
			$(_this).find('ul').animate({
				left: '+='+elWidth
			}, function(){
				carouselCtrls();
			});
		}
		return false;
	});
	$(_this).find('a.next').unbind().click(function(){
		$(this).unbind();
		var maxWidth = (parseInt($(_this).find('ul').width())-$(_this).width()-10)-(-parseInt($(_this).find('ul').css('left')));
		if(maxWidth>0){

		$(_this).find('ul').animate({
			left: '-='+elWidth
		}, function(){
				carouselCtrls();
			});
		}else {
			$(_this).find('ul').animate({left:0},function(){
				carouselCtrls();
			});
		}
		return false;
	});
	};
});
</pre>
<p><!--adsense--><br />
And that&#8217;s all!<br />
You can see a demo <a href="http://iamntz.com/experiments/carousel/">HERE</a>. In few days i will show you how to make a pagination on this carousel and how to make an autoscroll carousel <img src='http://dev.iamntz.com/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' />  Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/39/advanced-carousel/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Wordnewz WordPress theme</title>
		<link>http://dev.iamntz.com/35/wordnewz-wordpress-theme</link>
		<comments>http://dev.iamntz.com/35/wordnewz-wordpress-theme#comments</comments>
		<pubDate>Thu, 03 Jul 2008 13:36:16 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=35</guid>
		<description><![CDATA[Well.. is done The Wordnewz is finally done. As i said, there is two version of theme: free and premium. Read below to see the differences. Preview: Free theme : You have to edit all files to make some changes. &#8230; <a href="http://dev.iamntz.com/35/wordnewz-wordpress-theme">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well.. is done <img src='http://dev.iamntz.com/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' />  The Wordnewz is finally done.</p>
<p>As i said, there is two version of theme: free and premium. Read below to see the differences.</p>
<p>Preview:<br />
<a href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/YourSite.png"><img src="http://s126.photobucket.com/albums/p95/i0nutzb/Blog/th_YourSite.png" alt="" /></a> <a href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/YourSiteUSbattleagainstteensmokings.png"><img src="http://s126.photobucket.com/albums/p95/i0nutzb/Blog/th_YourSiteUSbattleagainstteensmokings.png" alt="" /></a></p>
<p>Free theme :</p>
<ul>
<li>You have to edit all files to make some changes. For ads you need to edit files from ads folder. For index settings you need to change index.php
<ul>
<li>For featured slider: find
<pre lang="php">&lt; ?php $my_query = new WP_Query('tag=featured&amp;showposts=3');</pre>
<p><strong>featured</strong> &#8211; enter tag slug and how many slides you want</li>
<li>For small excerpts find:
<pre lang="php">$my_query = new WP_Query('category_name=economy&amp;showposts=3');</pre>
<p>Change category_name according to your category slug</li>
</ul>
</li>
<li>Images is added width <a href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/customFields.png">custom fields</a> with 130x130px for index and 200x150px for inner slider</li>
<li><strong>Plugin settings</strong></li>
<li><a href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/printThis.png">Print This</a></li>
<li><a href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/emailThis.png">Email this</a></li>
<li>Excerpt length: 150</li>
</ul>
<p><a href="http://blog.iamntz.com/files/wordnewz-free.zip">Download here</a>.</p>
<p><strong>What about premium version?</strong></p>
<p>When you purchase the premium version you will have:</p>
<ul>
<li>Technical support</li>
<li>Install/configure wordpress theme and plugins</li>
<li>Small changes of theme (colours, sizes, etc)</li>
<li><a href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/YourSiteWordnewzOptionsWordPress.png">Admin panel for theme</a></li>
<li>RSS for each category
<ul>
<li> mail: slice [@] iamntz. [] com</li>
<li>y!messenger: i0nutzb</li>
<li>skype: i0nutzb</li>
</ul>
</li>
<p>The price for premium theme is $50 and for more details you can contact me here:</p>
<p>For now i don&#8217;t have an automatic way for purchasing, but i will reply you ASAP.</ul>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/35/wordnewz-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress get_posts() function</title>
		<link>http://dev.iamntz.com/33/wordpress-get_posts-function</link>
		<comments>http://dev.iamntz.com/33/wordpress-get_posts-function#comments</comments>
		<pubDate>Sun, 29 Jun 2008 22:42:28 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Good to know]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=33</guid>
		<description><![CDATA[Today i spent some time trying to figure how to get existing (and also used) tags from wordpress and using in admin panel as a combo box, for my brand new theme Wordnewz. The return of get_tags() function was some &#8230; <a href="http://dev.iamntz.com/33/wordpress-get_posts-function">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today i spent some time trying to figure how to get existing (and also used) tags from wordpress and using in admin panel as a combo box, for my brand new theme Wordnewz.</p>
<p>The return of get_tags() function was some kind of array but, because of my skills (not) in PHP i spend WAY too much time to go figure what to do. The initial result of get_tags() function is:</p>
<pre lang="php">Array
(
    [0] => stdClass Object
        (
            [term_id] => 28
            [name] => Featured
            [slug] => featured
            [term_group] => 0
            [term_taxonomy_id] => 29
            [taxonomy] => post_tag
            [description] =>
            [parent] => 0
            [count] => 6
        )
)
</pre>
<p>And i only needed [name] and [slug]. Ofcourse, like a smart guy that i am, i pointed my browser on wordpress codex where i found&#8230; NOTHING. Nothing about this function&#8230; Great. Let&#8217;s try various stuff and google it for any ideas. And i found a PHP function <a href="http://php.net/get_object_vars">get_object_vars</a> for easy conversion. After this, all was GREAT. I use it like this:</p>
<pre lang="php" line="1">
$allTags = get_tags();
foreach($allTags as $thisTags) {
		$thisTag = get_object_vars($thisTags);
		echo '
<option value="'.$thisTag['slug'].'">'.$thisTag['name'].'</option>

\n';
}
</pre>
<p>And it WORKS like a charm. I posted this thing because i didn&#8217;t found too much references for <strong>stdClass Object</strong> or <strong>get_tags()</strong> WordPress function.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/33/wordpress-get_posts-function/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>And another one!</title>
		<link>http://dev.iamntz.com/32/and-another-one</link>
		<comments>http://dev.iamntz.com/32/and-another-one#comments</comments>
		<pubDate>Fri, 27 Jun 2008 18:43:24 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=32</guid>
		<description><![CDATA[After last two wordpress themes that i released in last weeks was a success (i expected to have less feedback than i had), i was thinking to make another theme. This time will be a free-premium theme. What it mean &#8230; <a href="http://dev.iamntz.com/32/and-another-one">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After last two <strong>wordpress themes</strong> that i released in last weeks was a success (i expected to have less feedback than i had), i was thinking to make another theme. This time will be a free-premium theme. What it mean this? The theme will be launched as a free theme and will have some features available only if you pay (almost anything from site will be customizable from admin panel).</p>
<p>Anyway, it&#8217;s a theme great for using in a news site, fixed width, two sidebars, using custom fields and various plugins.</p>
<p>Here is a preview of current progress:</p>
<p><a href="http://i126.photobucket.com/albums/p95/i0nutzb/Portfolio/wordnewz.png"><img src="http://i126.photobucket.com/albums/p95/i0nutzb/Portfolio/wordnewz.png" alt="" width="449" height="459" /></a></p>
<p>I think will be done by the end of this week, when i will release both free and premium version of the theme.</p>
<p>Stay tuned for more.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/32/and-another-one/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Another free WordPress theme &#8211; Rounded.Cube</title>
		<link>http://dev.iamntz.com/30/free-wordpress-theme-2</link>
		<comments>http://dev.iamntz.com/30/free-wordpress-theme-2#comments</comments>
		<pubDate>Mon, 23 Jun 2008 08:50:09 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=30</guid>
		<description><![CDATA[Yesterday i was pretty bored: weekend, alone, and all bad things and i say to make another free wordpress theme. I opened Photoshop and i start to draw. You can see the results on the next screenshot or here. Some &#8230; <a href="http://dev.iamntz.com/30/free-wordpress-theme-2">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday i was pretty bored: weekend, alone, and all bad things and i say to make another <strong>free wordpress theme</strong>. I opened Photoshop and i start to draw. You can see the results on the next screenshot or <a href="http://www.dordzbor.ro/">here</a>.</p>
<p><a title="Free wordpress theme" href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/f677a1b3-4e8a-46a5-aa80-2857777c22b.png"><img src="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/f677a1b3-4e8a-46a5-aa80-2857777c22b.png" alt="Free wordpress theme" width="600" height="558" /></a></p>
<p>Some of the main features:</p>
<ul>
<li>Widgetizable;</li>
<li>Xhtml 1.1 / CSS 2.1 Valid;</li>
<li>2 columns;</li>
<li>trackbacks and pingbacks are separated from comments;</li>
<li>and more things that you can discover if you try this great and <strong>free wordpress theme</strong> <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' /> </li>
</ul>
<p>You can download the teme <a href="http://blog.iamntz.com/wp-content/plugins/wp-downloadMonitor/download.php?id=2">HERE</a>.</p>
<p>But wait! There is more nice things to come! More free wordpres theme to come and if you want a premium theme, don&#8217;t wait and <a href="http://dev.iamntz.com/about">contact me</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/30/free-wordpress-theme-2/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>And the free wordpress theme is here</title>
		<link>http://dev.iamntz.com/28/and-the-free-wordpress-theme-is-here</link>
		<comments>http://dev.iamntz.com/28/and-the-free-wordpress-theme-is-here#comments</comments>
		<pubDate>Sun, 08 Jun 2008 00:11:24 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=28</guid>
		<description><![CDATA[Finally! I finished my first free wordpress theme. What it make it so special? Well&#8230; The theme is with two and with three column: if you don&#8217;t have widgets on a sidebar, that sidebar is hidden and content is stretched. &#8230; <a href="http://dev.iamntz.com/28/and-the-free-wordpress-theme-is-here">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Finally!</p>
<p>I finished my first <strong>free wordpress theme</strong>. What it make it so special? Well&#8230; The theme is with two and with three column: if you don&#8217;t have widgets on a sidebar, that sidebar is hidden and content is stretched. Nice, huh?<br />
Anyway, you can download the theme with a single <a href="http://blog.iamntz.com/wp-content/plugins/wp-downloadMonitor/download.php?id=1">CLICK</a>. If you (don&#8217;t) like it or if you have a problem, let me know.</p>
<p>Enjoy <img src='http://dev.iamntz.com/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Edit:</p>
<p>For now i can&#8217;t put a functional demo. But you can see the screenshot i put it yesterday <a href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/take9.jpg">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/28/and-the-free-wordpress-theme-is-here/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Free WordPress Theme II</title>
		<link>http://dev.iamntz.com/27/free-wordpress-theme-ii</link>
		<comments>http://dev.iamntz.com/27/free-wordpress-theme-ii#comments</comments>
		<pubDate>Sat, 07 Jun 2008 22:55:43 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=27</guid>
		<description><![CDATA[Yesterday i told you that i will provide a free wordpress theme. At least one! Today i want to tell you something about progress: Theme name: Weekend. I made a quick search on google, i didn&#8217;t find any theme with &#8230; <a href="http://dev.iamntz.com/27/free-wordpress-theme-ii">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday i told you that i will provide a <strong>free wordpress theme</strong>. At least one!</p>
<p>Today i want to tell you something about progress:</p>
<p><strong>Theme name</strong>: Weekend. I made a quick search on google, i didn&#8217;t find any theme with this name so&#8230;  <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Theme status: </strong>90%. I&#8217;m stuck on dynamic sidebars but is nothing serious; Also, the whole theme is CSS 2.1 &amp; XHTML 1.0 strict valid. You know that is for freaks, right?</p>
<p><strong>Launch ETA</strong>: few hours, up to one day. This is mean one thing: tomorrow you can download the <strong>Weekend Theme</strong>!</p>
<p>Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/27/free-wordpress-theme-ii/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free WordPress Theme</title>
		<link>http://dev.iamntz.com/26/free-wordpress-theme</link>
		<comments>http://dev.iamntz.com/26/free-wordpress-theme#comments</comments>
		<pubDate>Fri, 06 Jun 2008 22:42:18 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=26</guid>
		<description><![CDATA[Well&#8230; Is true, in few days i will release my very first free wordpress theme Some blue, some gray and some pink (or red, i&#8217;m not too sure). Today i spent few hours for design (i don&#8217;t know if i &#8230; <a href="http://dev.iamntz.com/26/free-wordpress-theme">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well&#8230; Is true, in few days i will release my very first <strong>free wordpress theme</strong> <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' />  Some blue, some gray and some pink (or red, i&#8217;m not too sure). Today i spent few hours for design (i don&#8217;t know if i telling you this before, but even i&#8217;m a good coder &#8211; and some people think i really am &#8211; i&#8217;m not the best designer in the world. Actually&#8230; I&#8217;m not designer at all <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' />  ) and i hope that i will have some time in next few days for coding.</p>
<p>Anyways, here is a sneak preview of my first theme:</p>
<p><a href="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/take9.jpg"><img src="http://i126.photobucket.com/albums/p95/i0nutzb/Blog/take9.jpg" alt="" width="491" height="596" /></a></p>
<p>What do you think?<br />
ps: some extra nice features will be also available (you can pick how many sidebars you will use and also their positions &#8211; top/bottom/right/left ). Just stay close <img src='http://dev.iamntz.com/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/26/free-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>NtzAutoQuote</title>
		<link>http://dev.iamntz.com/20/ntzautoquote</link>
		<comments>http://dev.iamntz.com/20/ntzautoquote#comments</comments>
		<pubDate>Tue, 27 May 2008 11:46:15 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=20</guid>
		<description><![CDATA[On my other blog, i made a JS script that allows to add selected text on the comment box (after pressing Q). After redesign, i didn&#8217;t wanted to use that same old way, so i wrote a little plugin. Actually, &#8230; <a href="http://dev.iamntz.com/20/ntzautoquote">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On my other blog, i made a JS script that allows to add selected text on the comment box (after pressing Q). After redesign, i didn&#8217;t wanted to use that same old way, so i wrote a little plugin. Actually, you need some awesome imagination to name this plugin <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Anyway, you can download this plugin from <a href="http://iamntz.com/experiments/ntzAutoQuote.zip">here</a> and activate in the old fashion way (admin-&gt; pluggins -&gt; look for NtzAutoquote and press activate). How to use it? Very simple: select the text you want to quote and press <strong>Q</strong> key. In this way, you avoid to write over and over again &lt;blockquote&gt; &lt;/blockquote&gt; when you want to quote some comments.</p>
<p>You want a demo? Try it right here! Select ANY text that you want, press Q and check out the textarea on the comment form <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' />  With all these, there is a limitation tough: you can have only one textarea on your page. I did it in this way because some theme developers don&#8217;t keep the name/id&#8217;s on forms when they develop themes. If you have more than one textarea, ask here and i will be glat to help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/20/ntzautoquote/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oups, i did it (first time, not again)</title>
		<link>http://dev.iamntz.com/19/oups-i-did-it-first-time-not-again</link>
		<comments>http://dev.iamntz.com/19/oups-i-did-it-first-time-not-again#comments</comments>
		<pubDate>Tue, 27 May 2008 01:28:47 +0000</pubDate>
		<dc:creator>Staicu IonuČ›-Bogdan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev.iamntz.com/?p=19</guid>
		<description><![CDATA[Well&#8230; I put my non-designer skills on work and this is what i got. A nice and clean (or at leas i hope so) brand new layout for this great blog. I spend last night on CSS Galleries for inspiration, &#8230; <a href="http://dev.iamntz.com/19/oups-i-did-it-first-time-not-again">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well&#8230; I put my non-designer skills on work and this is what i got. A nice and clean (or at leas i hope so) brand new layout for this great blog.</p>
<p>I spend last night on CSS Galleries for inspiration, the whole day for design and this night (actually few hours) for slicing and implementing the new masterpiece <img src='http://dev.iamntz.com/wp-includes/images/smilies/biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>So. What do you say guys? Should i start to design too?</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.iamntz.com/19/oups-i-did-it-first-time-not-again/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

