<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Dimox.net</title>
	
	<link>http://dimox.net</link>
	<description>CSS, HTML, jQuery, WordPress</description>
	<lastBuildDate>Sun, 24 Mar 2013 14:55:57 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Dimox_net" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="dimox_net" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Beautiful Tags For a Website Using Only CSS</title>
		<link>http://dimox.net/beautiful-tags-for-a-website-using-only-css/</link>
		<comments>http://dimox.net/beautiful-tags-for-a-website-using-only-css/#comments</comments>
		<pubDate>Wed, 16 Jan 2013 11:58:05 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=32</guid>
		<description><![CDATA[Great web designer Orman Clark once shared with his readers very beautiful <a href="http://www.premiumpixels.com/freebies/tagtastic-tag-cloud-psd/">tag cloud design</a>, which may help to make you website more attractive.

Such a tag can be marked up with just one image, however, modern technologies allow to mark it up <strong>entirely with CSS</strong>, without using this image. And now I will show you how to do it.]]></description>
			<content:encoded><![CDATA[<p>Great web designer Orman Clark once shared with his readers very beautiful <a href="http://www.premiumpixels.com/freebies/tagtastic-tag-cloud-psd/">tag cloud design</a>, which may help to make you website more attractive.</p>
<p>Such a tag can be marked up with just one image, however, modern technologies allow to mark it up <strong>entirely with CSS</strong>, without using this image. And now I will show you how to do it.</p>
<p>It should be noted that the result will look excellent in the following browsers: Google Chrome, Firefox, Safari and Opera. Tag will be without a gradient in Internet Explorer 9, but here it also looks not bad. But in IE8 and below it looks unseemly.</p>
<p>HTML code for a tag is a simple link:</p>
<pre name="code" class="html">
&lt;div class=&quot;tags&quot;&gt;
	&lt;a href=&quot;#&quot;&gt;tag1&lt;/a&gt;
	&lt;a href=&quot;#&quot;&gt;tag2&lt;/a&gt;
	&lt;a href=&quot;#&quot;&gt;tag3&lt;/a&gt;
&lt;/div&gt;
</pre>
<p>Firstly we declare the link as inline block, remove underline and prevent text from wrapping in a new line.</p>
<p>Now we will begin to &#8220;draw&#8221; the right side of the rectangle. We specify a gradient background, a border colors, add the effects of external and internal shadow for the block and shadow to text, as well as padding and margin (margin of 10px to the right specified in order to leave space for the adjacent tag triangle):</p>
<pre name="code" class="css">
.tags a {
	display: inline-block;
	height: 21px;
	margin: 0 10px 0 0;
	padding: 0 7px 0 14px;
	white-space: nowrap;
	position: relative;

	background: -moz-linear-gradient(top, #fed970 0%, #febc4a 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fed970), color-stop(100%,#febc4a));
	background: -webkit-linear-gradient(top, #fed970 0%,#febc4a 100%);
	background: -o-linear-gradient(top, #fed970 0%,#febc4a 100%);
	background: linear-gradient(to bottom, #fed970 0%,#febc4a 100%);
	background-color: #FEC95B;

	color: #963;
	font: bold 11px/21px Arial, Tahoma, sans-serif;
	text-decoration: none;
	text-shadow: 0 1px rgba(255,255,255,0.4);

	border-top: 1px solid #EDB14A;
	border-bottom: 1px solid #CE922E;
	border-right: 1px solid #DCA03B;
	border-radius: 1px 3px 3px 1px;
	box-shadow: inset 0 1px #FEE395, 0 1px 2px rgba(0,0,0,0.21);
}
</pre>
<p>We get the following:</p>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAAAbCAIAAAB6Ja/mAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABLFJREFUeNrsWUtsG1UUvZ7xB+c7E7exUZMi43yAIFSrhkURrRSgC0B8GhvEtsKqkLpkhVhX7GlWI1Vs2BBTCSlFSkgCq0h1EiUFJaRubJd8mtSxPWO7jj/jmeG9mfF4/FHlqGFT+8pKno/vuff6vPvezPgZJJ1Ba5vBYFD+KgMjUkQQhOzMp4LQ8tIQYOm0Wd7+gTD1YHmQLvl83pr8EVreJP5oL/hbx6mXei8xJEnirimVSvBksy2NwWB60X1pd/nPDp4nCMKIIFEUQRLb0oBUIAlO4HnUK2az2aiiotRWRtahqPYK2obLgrW7Rtc98sVa65q2NLVGVLqmyRf7KDC5shARj0FpJuYsWxOcW95gJleYyY1VtukytDjP8irb8ReUQaYQvSCxJzQ9hdWZfbb/AkhZoM96v/NC+m/gD6KRHIx95P/MCWwQxHwTZejinIQdfxtWNHywwdyJof/0W6NetwUj0W1mllNcXJffGHfK2Pxfc1syZHP4vP0UGwv8fNAnfyp/RL13zc4F7i8nABKLTMzhexfmJu/2XR6lV2TwcJo5kMFa1lmnUoakVV5Y1cfx9rM1qQG41dBUEEvsGqLCW5xW5MktKHlXChMv+7+97p8YZYP3cVezjwOznGviugKGZ8N4FUS251JjPhmBRCGKEAOJc5EUjoMnxQ6SyX31Y08/wNiH/qvvU6qDvRGoZ6ll6AqrjlOfOrKNdFEqdBq5SsCTXFDy7u0adsDhAjgIF0AybeZSadTW7C83w2UvljPDyOv+wSeBGzdZFXECJamNJ5UnHQ24dTz5Qhy4KEhlh4agnlULQhWlLjWX5gFGnI41OEw6hwdhc6eK+9QF1fwVSq6Jj2FKPiMve4vcDjaP/3O3reyVusfdXZpaJjz+r92JeeZ2CIgXVK4252peSQ2rjbFDQ7COpQd1cRqklp8YIR+Xi8/VcU9kQcnTFV7a5dD4YQa1SR9tpVx2GhLhtT8gNs/9fov5/qdoIc6mCwADFCxyu7vlFJibTGZBynNxbf5FtRm1XmgE1rGkBmWXKfWpKboTIBR9iN2iW/GnfeVn3IZdp4mpWyG8DV/8YnzwXxA6vVeGmdubzBLCOj1ffeksLcCbr9Khf+YYgGG7C46SyRwM9J9/7WAueI8JWujTWl4ThXptc4mJ2XzjJjWFUo+yy/Y0YolQ5YlNF+eDutRup+9iaWo+hObSNXIGYK+a2+hSjJ4XMplM78a1ZqUhrXDqAuT2wHoGv82E4GgHD8w2oM+pPvFFEHKqJzLFWfHseUUlFjkwU/B4Ho8VECHpDUxh16CYAPo8CFlIb1Yc9CwluOKpWU2cmtQdg9A9gsH1aeZOweNzuTsS9d8v8mDP9sl0d3d3WZp1/3N+b5viAr+y2i0Q/Y7PO7SO569emq19RZqWeVCg7N5vJipvUTMeZZu75XvuHy9LWdif+Z/vhlvG2j9KVJkgiCRJqD+bt6WprLmSEIrG7ANDBEGo0qBRaCd1lE63uDQmi5kaGBbO3TAajZUThVQqlcvl0LhlT6OQFCaTyWKxdHV1Wa1WkiQNoigiRYrFIs/zrXxKh6TBpwhGIxII64KsfXqpVwd0p5f/CTAAZ1sHc5iw6MwAAAAASUVORK5CYII=" width="94" height="27" alt="Beautiful Tag" class="aligncenter" /></p>
<p>Now we will create the left triangle using the <code>:before</code> pseudo selector. Originally it&#8217;s a square (with the same borders, shadows and gradient, but rotated by 45 degrees), which will be transformed into a triangle:</p>
<pre name="code" class="css">
a:before {
	content: '';
	position: absolute;
	top: 5px;
	left: -6px;
	width: 10px;
	height: 10px;

	background: -moz-linear-gradient(45deg, #fed970 0%, #febc4a 100%);
	background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#fed970), color-stop(100%,#febc4a));
	background: -webkit-linear-gradient(-45deg, #fed970 0%,#febc4a 100%);
	background: -o-linear-gradient(45deg, #fed970 0%,#febc4a 100%);
	background: linear-gradient(135deg, #fed970 0%,#febc4a 100%);
	background-color: #FEC95B;

	border-left: 1px solid #EDB14A;
	border-bottom: 1px solid #CE922E;
	border-radius: 0 0 0 2px;
	box-shadow: inset 1px 0 #FEDB7C, 0 2px 2px -2px rgba(0,0,0,0.33);
}
</pre>
<p>And it looks like this:</p>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAAbCAIAAAAI6s1QAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABVlJREFUeNrsWV1s21QUPnbiZOlv0rRNp7VDIf2BFaFmKzwM2KQCk2CIvyUgXicihLQnXpAQzxPvrE+WJl54oWUSU4fU0hYeUKX1R91ALV3WJKM/a5s2sZO2+XNsc6/tOE7sppvYU5sjy705Pufc08/fOdf2JURRBI2IBYHjLQRByGd5YC7DiOf5/dEPef7Yw0SCtdZpfe17kmrAUGmJIwhCJpOxxX+AYy8il1qf/rWm+bnGi7TJZCpnUz6fh72lKkwEQZ30Xlyb/aOG40iSNJddRoQCUajCBGLWRLI8xyHeWCwWs4GFIFZRknDIKbwpa+EFIKtsKmlEGKb47cuOM2eBYxE6pCA0Iq1cd/IZHRZbFSyyyCCMiw4jdWB4MI+HB+cmwxVtnvZAMceYsuDs7CI9OEcPLs4zT5yGGuf/HAUxq627EkYHrgeSO9kIIvOMblt2fnSDaT0P4j44Tvu+9UHyb+A2I+E09L4X+MgNzDQImSdIQxPnWYhZLUFjjNC5QkeXAXy4SN+Jor+OV3t8XivWRFboMVY28Vx6ecAt6Sb+Gl+WVM42v6/VzkSHf9pskq5Kl+xvfeFihx/MxgBiU3S0zf8mjA/ebbrU45iTlNsj9KakLPc67ZbTENXFJzuvjeNrZcqmBmDng0PTGG5Ppz20zKpJHlZ0B2FUmZPSKhAinw98cy1wpYeZfoCZz2wNj7GeK9dkZWgshCslvDKe6PVLGohlI0hDmPC8JjuOg2+WC0TKe/X9/laA3suBq2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Ghhrt0AAAAASUVORK5CYII=" width="98" height="27" alt="Beautiful Tag" class="aligncenter" /></p>
<p>It is worth noting that the webkit draws gradients in the opposite direction, so a negative value is specified for it: <code>-45deg</code>. Also, you may notice that there is not 45 but 135 degrees is specified in the prefix-free gradient property. I do not know why, but it should be such to display properly.</p>
<p>To make a triangle from a square, we use the <code>transform</code> property with the value <code>rotate(45deg)</code>. But this is not enough &#8211; we also need to make it with an obtuse angle. This is achieved by scaling the Y-axis using the <code>scale</code> value for the <code>transform</code> property:</p>
<pre name="code" class="css">
a:before {
	-webkit-transform: scale(1, 1.5) rotate(45deg);
	-moz-transform: scale(1, 1.5) rotate(45deg);
	-ms-transform: scale(1, 1.5) rotate(45deg);
	transform: scale(1, 1.5) rotate(45deg);
}
</pre>
<p>We get almost complete design of a tag:</p>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAbCAMAAAC9SNpyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwBQTFRFqqSJ//774ahB/ui+mWZC98Vd/sBP/rhZ8LdPmZF+vLFzmY5qmY1o7po61545/tVrz5Qvqpxb/NNx/sdX/rxL8LVL2dnZ/////tBk/s9imWYzqmYz/sVW/slb/std/shZ/s1h/sZY/sxf/tyZ3KA7/f39zXsz/v7+3Y4zvK5t/tN+mWZY/shfmWZZvK1r/shTzXkz/sBMvK9x/rxN3Yoz/r1OvK9vmXlL/rtL/rxM/taJ8vLy/rlavKxh/tqXvGYz+/v79vb28PDw/s9zvKtrzXwz/stpmY5pzcucmWY8/tyP7s1hvKxl3clbzbxfvK9k/stW/tuB/slV/tp63chZ/slh/qtD/s9b/uCf/t6cqotV7p4/7bJJ7pw9/tFq/sFR/tFvmXte3cxf2J85vLmf3ZAz/r9QmY9t/sxr/tdy2traqnsz7uCf/s1fqpxi7rxLmWY+mWZE3cZY3ctd5ubm36VA//z2/tBjmXdG9fX1mYtK/rlL/tl43Ywz+vr6/uKgmW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HTsQhY6uckP7lLtU60Fl6IHB7bGajmJiYU1aNG1UAztjTaJu2VDXE21Swg0UqxQZpjNU2le4DznQUDtm1dJtjEfeNC1+4/+ojcGUjrOpoZdZqqMuYeODmC3u5j3Zp5a6qjLbdiPAOqtARbJDGBeCaozdwo6NwSOpRm0ny/0iDewEQdW1dAYA+D+RrIRgSOKp1JzC8u0s/uQYMfglD16gqy6mTBkPxGeQ/5Ru7rgDgAwilo3BIRtbspFyGUI0x4srV4LgQhmnAcZwrqlAZwiDLj2OQ+LlyDRi/Ggx1cMVQn28M4bh7mcfpKByi1k0x3ZZbpixG3z4Q3aYV/2NU+s+0efwZc/lz2bC1HuKNsSJ/KxlZ86qYGwyGXIMgkBC17l3SDXPzxF/CQELEymO3bBb+nvtbED4uIe8TceGOnPOJPwVh3LlV9M0oVr9evuy7IJydPoW+49ET25LyMLl62ZP8IsXfeFsRq4NSgwsEINhfF1R07xKrhbxB/hFgAHpUtP3hXLGWAAAAAElFTkSuQmCC" width="100" height="27" alt="Beautiful Tag" class="aligncenter" /></p>
<p>The last remaining thing &#8211; make a hole in our tag. The <code>:after</code> pseudo selector will help with this. Simply we create a small square and round off his corners so that it turns into a circle. And add a shadow to make it look three-dimensional:</p>
<pre name="code" class="css">
a:after {
	content: '';
	position: absolute;
	top: 7px;
	left: 1px;
	width: 5px;
	height: 5px;
	background: #FFF;
	border-radius: 4px;
	border: 1px solid #DCA03B;
	box-shadow: 0 1px 0 rgba(255,255,255,0.2), inset 0 1px 1px rgba(0,0,0,0.21);
}
</pre>
<p>Hooray! In the end, we got identical tag design, as is shown in the first picture to this post:</p>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAbCAMAAAC9SNpyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwBQTFRFmWY96OTemWZF7bJJ/sZS7pw9/thx67pg7Ozs/tFq57JK98Zq/sBPqqSJ//77+vTo4ahB/ui+mWZC/sxs9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ligncenter" /></p>
<p>Finally, you can add an effect to change the text on mouseover:</p>
<pre name="code" class="css">
.tags a:hover {
	color: #FFF;
	text-shadow: -1px -1px 0 rgba(153,102,51,0.3);
}
</pre>
<p><a href="http://jsfiddle.net/Dimox/pmXcw/">Live demo is here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/beautiful-tags-for-a-website-using-only-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Share42.com – Free Social Sharing Buttons Script</title>
		<link>http://dimox.net/share42-com-free-social-sharing-buttons-script/</link>
		<comments>http://dimox.net/share42-com-free-social-sharing-buttons-script/#comments</comments>
		<pubDate>Thu, 13 Sep 2012 16:49:21 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[share42]]></category>
		<category><![CDATA[social sharing]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=30</guid>
		<description><![CDATA[Nowadays we are involved in different processes connected to the Internet. There are many numerous interesting websites and all of them have a specific purpose.

I present to you my website <a href="http://share42.com/">Share42.com</a> called <strong>Social Sharing Button Script</strong>. It provides a free service for generating a script. So, eventually, visitors on your websites or various social networks will be able to post links and additional information to your articles in various types of social media.]]></description>
			<content:encoded><![CDATA[<p>Nowadays we are involved in different processes connected with the Internet. There are many numerous interesting websites and all of them have a specific purpose.</p>
<p>I present to you my website <a href="http://share42.com/">Share42.com</a> called <strong>Social Sharing Button Script</strong>. It provides free service for generating a script. So, eventually, visitors of your websites or various social networks will be able to post links and additional information to your articles in various types of social media.</p>
<p><a href="http://share42.com/"><img src="https://lh3.googleusercontent.com/-cb1kdsoodWI/UFIHVlumJUI/AAAAAAAABZk/Uy2CjR4KsHc/s300/share42.png" alt="Share42.com - Free Social Sharing Buttons Script" class="aligncenter" /></a></p>
<p>There are many available options on Share42.com.</p>
<ul>
<li>Firstly, you are able to choose a size (32&#215;32, 24&#215;24 or 16&#215;16) and icons from listed on the website. You can notice <strong>more then 40 buttons</strong> there.</li>
<li>You can also choose the desired features of icon panels, website charset.</li>
<li>You are able to check how it will look like on this service.</li>
<li>
<p>If you are satisfied with all the set characteristics, you should install a definite script on your website. This process is very easy, just pay attention to the following steps:</p>
<ul>
<li>After downloading it, you should unpack its archive. Then just upload folder of Share42 to your website via FTP or web hosting control panel.</li>
<li>Afterwards, you specify the path to it, select the most appropriate type of website, insert template of a specific code just before the main text goes.</li>
<li>If you want to give a style to it, then just add a special code from Share42.com and put it in CSS file.</li>
</ul>
</li>
<li>That&#8217;s the way it is going to be properly done.</li>
</ul>
<h3>Why choosing Share42.com:</h3>
<ul>
<li>Beautiful design of icons, which are made to fit each other.</li>
<li>Optimized code of script with a small size.</li>
<li>Easy way in installing, so after downloading the script you are able to connect it to your website.</li>
<li>No additional extra links are noticed because all links are made via JavaScript and outbound links do not increase in number.</li>
<li>You won&#8217;t find an extra HTML code, so it is generated with JavaScript.</li>
<li>You avoid the situation when another third-party site takes part in installation of the script.</li>
<li>The universal character of this service provides its working on any type of those websites that have FTP access.</li>
<li>Only one image or sprite can reduce the number of requests to that server that hosts your website.</li>
</ul>
<p>You can see the live demo of the Share42.com script on the current website (sticky panel at the left side of this post).</p>
<p>If you find Share42 useful and required for your website, you have a chance to thank me and donate via PayPal.</p>
<p>You have a great possibility to give your website a unique look and an appropriate style. <strong>You choose those icons</strong> of social media that will be noticed on your website. All in all, <strong>this is an easy way to promote your site and make it more popular</strong> with the help of Social Sharing Button Script on Share42.com.</p>
<p>Don&#8217;t hesitate and <a href="http://share42.com/">give it a try</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/share42-com-free-social-sharing-buttons-script/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>WordPress Top Authors List Without a Plugin</title>
		<link>http://dimox.net/wordpress-top-authors-list-without-a-plugin/</link>
		<comments>http://dimox.net/wordpress-top-authors-list-without-a-plugin/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 14:50:11 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[function]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=29</guid>
		<description><![CDATA[WordPress engine allows to create sites with big number of users of different levels. And authors, which have corresponding right, can fill the site content. On such a multi-user sites will be useful to have a list with top authors.

In this post I will show you one of the ways how to display <strong>list of the top authors without using a plugin</strong>.]]></description>
			<content:encoded><![CDATA[<p>WordPress engine allows to create sites with big number of users of different levels. And authors, which have corresponding right, can fill the site content. On such a multi-user sites will be useful to have a list with top authors.</p>
<p>In this post I will show you one of the ways how to display <strong>list of the top authors without using a plugin</strong>.</p>
<p>You can use the following small function:</p>
<pre name="code" class="php" line="1">
function top_authors($number = 10) {
	$uc = array();
	$blogusers = get_users();
	if ($blogusers) {
		echo '&lt;ul&gt;';
		foreach ($blogusers as $bloguser) {
			$post_count = count_user_posts($bloguser-&gt;ID);
			$uc[$bloguser-&gt;ID] = $post_count;
		}
		arsort($uc);
		$i = 0;
		foreach ($uc as $key =&gt; $value) {
			$i++;
			if ($i &lt;= $number) {
				$user = get_userdata($key);
				$author_posts_url = get_author_posts_url($key);
				$post_count = $value;
				if ($post_count &gt; 0) {
					echo '&lt;li&gt;&lt;a href=&quot;' . $author_posts_url .'&quot;&gt;' . $user-&gt;display_name . '&lt;/a&gt; (' . $post_count . ')&lt;/li&gt;';
				}
			}
		}
		echo '&lt;/ul&gt;';
	}
}
</pre>
<p>Paste this function in the <strong>functions.php</strong> file of your theme and then put the following code in a place of your theme, where you want to see the top authors list:</p>
<pre name="code" class="php">&lt;?php if (function_exists('top_authors_list')) top_authors_list(10); ?&gt;</pre>
<p>10 here is the number of authors you want to show in the list.</p>
<p>That&#8217;s all.</p>
<p>As a result you will see the list of top authors with their names and number of published posts. Author&#8217;s name is linked to his archive page where is a list of all his posts.</p>
<p>List of top authors is sorted by number of posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/wordpress-top-authors-list-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress Comments Pagination Without a Plugin</title>
		<link>http://dimox.net/wordpress-comments-pagination-without-a-plugin/</link>
		<comments>http://dimox.net/wordpress-comments-pagination-without-a-plugin/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 14:21:50 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[pagination]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=27</guid>
		<description><![CDATA[There is a possibility to create a <strong>pagination in WordPress comments without using any plugins</strong>. WordPress has a built-in function <code>paginate_comments_links()</code> for this, which is appeared in WordPress 2.7.

It works on the basis of the function for a <a href="http://dimox.net/wordpress-pagination-without-a-plugin-wp-pagenavi-alternative/">pagination on archive pages</a> (as you know, it also may work without a plugin), therefore very similar to it.]]></description>
			<content:encoded><![CDATA[<p>There is a possibility to create a <strong>pagination in WordPress comments without using any plugins</strong>. WordPress has a built-in function <code>paginate_comments_links()</code> for this, which is appeared in WordPress 2.7.</p>
<p>It works on the basis of the function for a <a href="http://dimox.net/wordpress-pagination-without-a-plugin-wp-pagenavi-alternative/">pagination on archive pages</a> (as you know, it also may work without a plugin), therefore very similar to it.</p>
<p>Code of the function:</p>
<pre name="code" class="php" line="1">
function wp_comments_corenavi() {
   $pages = '';
   $max = get_comment_pages_count();
   $page = get_query_var('cpage');
   if (!$page) $page = 1;
   $a['current'] = $page;
   $a['echo'] = false;

   $total = 0; //1 - display the text &quot;Page N of N&quot;, 0 - not display
   $a['mid_size'] = 3; //how many links to show on the left and right of the current
   $a['end_size'] = 1; //how many links to show in the beginning and end
   $a['prev_text'] = '&amp;laquo; Previous'; //text of the &quot;Previous page&quot; link
   $a['next_text'] = 'Next &amp;raquo;'; //text of the &quot;Next page&quot; link

   if ($max &gt; 1) echo '&lt;div class=&quot;commentNavigation&quot;&gt;';
   if ($total == 1 &amp;&amp; $max &gt; 1) $pages = '&lt;span class=&quot;pages&quot;&gt;Page ' . $page . ' of ' . $max . '&lt;/span&gt;'.&quot;\r\n&quot;;
   echo $pages . paginate_comments_links($a);
   if ($max &gt; 1) echo '&lt;/div&gt;';
}
</pre>
<p>You need to paste this code the <strong>functions.php</strong> file of your theme. As you see the function also contains just five options.</p>
<p>To show the comments pagination on your site, paste the following code in <strong>comments.php</strong> of your theme near the <code>wp_list_comments()</code> function:</p>
<pre name="code" class="php">
&lt;?php if(function_exists('wp_comments_corenavi')) wp_comments_corenavi(); ?&gt;
</pre>
<p>HTML code of the function will looks like this:</p>
<pre name="code" class="html" line="1">
&lt;div class=&quot;commentNavigation&quot;&gt;
	&lt;span class=&quot;pages&quot;&gt;Page 7 of 14&lt;/span&gt;
	&lt;a class=&quot;prev page-numbers&quot; href=&quot;http://site.name/post/comment-page-6/#comments&quot;&gt;&amp;laquo; Previous&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/post/comment-page-1/#comments'&gt;1&lt;/a&gt;
	&lt;span class=&quot;page-numbers dots&quot;&gt;...&lt;/span&gt;
	&lt;a class='page-numbers' href='http://site.name/post/comment-page-4/#comments'&gt;4&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/post/comment-page-5/#comments'&gt;5&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/post/comment-page-6/#comments'&gt;6&lt;/a&gt;
	&lt;span class='page-numbers current'&gt;7&lt;/span&gt;
	&lt;a class='page-numbers' href='http://site.name/post/comment-page-8/#comments'&gt;8&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/post/comment-page-9/#comments'&gt;9&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/post/comment-page-10/#comments'&gt;10&lt;/a&gt;
	&lt;span class=&quot;page-numbers dots&quot;&gt;...&lt;/span&gt;
	&lt;a class='page-numbers' href='http://site.name/post/comment-page-14/#comments'&gt;14&lt;/a&gt;
	&lt;a class=&quot;next page-numbers&quot; href=&quot;http://site.name/post/comment-page-8/#comments&quot;&gt;Next &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
</pre>
<p>And you can use a CSS classes for styling this navigation. That&#8217;s it.</p>
<p>One more thing. Don&#8217;t forget to activate the option &#8220;<strong>Break comments into pages</strong>&#8221; in WordPress admin area.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/wordpress-comments-pagination-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress Pagination Without a Plugin (WP-PageNavi alternative)</title>
		<link>http://dimox.net/wordpress-pagination-without-a-plugin-wp-pagenavi-alternative/</link>
		<comments>http://dimox.net/wordpress-pagination-without-a-plugin-wp-pagenavi-alternative/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 11:00:54 +0000</pubDate>
		<dc:creator>Dimox</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[pagination]]></category>

		<guid isPermaLink="false">http://dimox.net/?p=23</guid>
		<description><![CDATA[Almost every blogger, who maintains a blog on WordPress, familiar with the WP-PageNavi plugin, which displays the pagination like on the image above.

But not everyone knows (including me until recently), what <strong>WordPress has a built-in function (starting from version 2.1) which implements virtually the same functional</strong>. And compared with the WP-PageNavi plugin this function very small in size.]]></description>
			<content:encoded><![CDATA[<p>Almost every blogger, who maintains a blog on WordPress, familiar with the WP-PageNavi plugin, which displays the pagination like on the image above.</p>
<p>But not everyone knows (including me until recently), what <strong>WordPress has a built-in function (starting from version 2.1) which implements virtually the same functional</strong>. And compared with the WP-PageNavi plugin this function very small in size.</p>
<p>Here&#8217;s what this function looks like:</p>
<pre name="code" class="php" line="1">
function wp_corenavi() {
	global $wp_query, $wp_rewrite;
	$pages = '';
	$max = $wp_query-&gt;max_num_pages;
	if (!$current = get_query_var('paged')) $current = 1;
	$a['base'] = str_replace(999999999, '%#%', get_pagenum_link(999999999));
	$a['total'] = $max;
	$a['current'] = $current;

	$total = 1; //1 - display the text &quot;Page N of N&quot;, 0 - not display
	$a['mid_size'] = 5; //how many links to show on the left and right of the current
	$a['end_size'] = 1; //how many links to show in the beginning and end
	$a['prev_text'] = '&amp;laquo; Previous'; //text of the &quot;Previous page&quot; link
	$a['next_text'] = 'Next &amp;raquo;'; //text of the &quot;Next page&quot; link

	if ($max &gt; 1) echo '&lt;div class=&quot;navigation&quot;&gt;';
	if ($total == 1 &amp;&amp; $max &gt; 1) $pages = '&lt;span class=&quot;pages&quot;&gt;Page ' . $current . ' of ' . $max . '&lt;/span&gt;'.&quot;\r\n&quot;;
	echo $pages . paginate_links($a);
	if ($max &gt; 1) echo '&lt;/div&gt;';
}
</pre>
<p>This code must be placed in the <strong>functions.php</strong> file of your template. The function have just five options, they are separated by line breaks.</p>
<p>To show the navigation, paste the following code in your template:</p>
<pre name="code" class="php">
&lt;?php if (function_exists('wp_corenavi')) wp_corenavi(); ?&gt;
</pre>
<p>As a result the HTML code will looks like this:</p>
<pre name="code" class="html" line="1">
&lt;div class=&quot;navigation&quot;&gt;
	&lt;span class=&quot;pages&quot;&gt;Page 7 of 27&lt;/span&gt;
	&lt;a class='prev page-numbers' href='http://site.name/page/6/'&gt;&amp;laquo; Previous&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/page/1/'&gt;1&lt;/a&gt;
	&lt;span class='page-numbers dots'&gt;...&lt;/span&gt;
	&lt;a class='page-numbers' href='http://site.name/page/4/'&gt;4&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/page/5/'&gt;5&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/page/6/'&gt;6&lt;/a&gt;
	&lt;span class='page-numbers current'&gt;7&lt;/span&gt;
	&lt;a class='page-numbers' href='http://site.name/page/8/'&gt;8&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/page/9/'&gt;9&lt;/a&gt;
	&lt;a class='page-numbers' href='http://site.name/page/10/'&gt;10&lt;/a&gt;
	&lt;span class='page-numbers dots'&gt;...&lt;/span&gt;
	&lt;a class='page-numbers' href='http://site.name/page/27/'&gt;27&lt;/a&gt;
	&lt;a class='next page-numbers' href='http://site.name/page/8/'&gt;Next &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
</pre>
<p>As you can see it contains all the necessary classes to stylize navigation with CSS (the current page, dots, links to previous and next page).</p>
<p>I&#8217;ve tested this function on WordPress 2.3.3 and 3.1 and also tested variants with active and inactive permalinks. Everything works as expected. I think it will work also in a new versions of WordPress.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimox.net/wordpress-pagination-without-a-plugin-wp-pagenavi-alternative/feed/</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
	</channel>
</rss>
