<?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>CSSJockey.com &#187; Programming</title>
	<atom:link href="http://www.cssjockey.com/topics/coding/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cssjockey.com</link>
	<description>Unique &#38; Practical Web Presence</description>
	<lastBuildDate>Sat, 06 Mar 2010 16:04:08 +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>An easy way to create login panel with jQuery and CSS</title>
		<link>http://www.cssjockey.com/coding/jquery-css-login-panel</link>
		<comments>http://www.cssjockey.com/coding/jquery-css-login-panel#comments</comments>
		<pubDate>Tue, 09 Feb 2010 08:01:29 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web-design-tips]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=967</guid>
		<description><![CDATA[A small script to introduce a sliding login box into your website, just as you see in Twitter login page. The script comprises jQuery and CSS techniques to display this arty feature. Checkout the code below and try it yourself or simply download the ready to use files.]]></description>
			<content:encoded><![CDATA[<div id="attachment_971" class="wp-caption aligncenter" style="width: 597px"><a href="http://www.cssjockey.com/wp-content/uploads/2010/02/creating-login-panel-with-css-jquery-post.jpg"><img src="http://www.cssjockey.com/wp-content/uploads/2010/02/creating-login-panel-with-css-jquery-post.jpg" alt="Creating Login Panel with jQuery and CSS" title="Creating Login Panel with jQuery and CSS" width="587" height="203" class="size-full wp-image-971" /></a><p class="wp-caption-text">Creating Login Panel with jQuery and CSS</p></div>
<p>Among many studies conducted to find out just what influences people’s perception of a website’s credibility, one interesting finding is that users really do judge a book by its cover… or rather, a website by its design. </p>
<p>Rapid changes in design trends are driving focus towards its usability. More and more features are being zipped into a plain and simple design for users to get bountiful results without spending more than a jiffy. The back-end coding is the key device to achieve this simplicity in design.</p>
<p>Keeping this mind, I’ve designed a small script to introduce a sliding login box into your website, just as you see in Twitter login page. The script comprises jQuery &#038; CSS techniques to display this arty feature. Checkout the code below and try it yourself or simply download the ready to use files.</p>
<p><a target="_blank" href="http://www.cssjockey.com/files/downloads/code/login-box/" title="View Demo"><strong>View Demo</strong></a> | <a href="http://www.cssjockey.com/files/downloads/code/login-box/login-box.zip" title="Download Code"><strong>Download Code</strong></a></p>
<h3>xHTML Code</h3>
<pre name="code" class="HTML">
<!-- xHTML Code -->
<div id="demo-header">

<!-- Code for Login Link -->
<a id="login-link" href="#login" title="Login">Clients Area</a>

<!-- Code for login panel -->
<div id="login-panel">
<form action="" method="post">
<label>Username:
<input name="username" type="text" value="" /> </label> 
<label>Password:
<input name="password" type="password" value="" /> </label>
<input type="submit" name="submit" value="Sign In" />
<small>Press ESC to close</small>
</form>

<!-- login-panel ends here -->
</div>

<!-- demo-header ends here -->
</div>
</pre>
<h3>CSS Code</h3>
<pre name="code" class="CSS">
<style type="text/css">
#demo-header{
    width: 980px;
    margin: 0 auto;
    position: relative;
}
#login-link{
    position: absolute;
    top: 0px;
    right: 0px;
    display: block;
    background: #2a2a2a;
    padding: 5px 15px 5px 15px;
    color: #FFF;
}
#login-panel{
    position: absolute;
    top: 26px;
    right: 0px;
    width: 190px;
    padding: 10px 15px 5px 15px;
    background: #2a2a2a;
    font-size: 8pt;
    font-weight: bold;
    color: #FFF;
    display: none;
}
label{
    line-height: 1.8;
}
</style>
</pre>
<h3>jQuery Code</h3>
<pre name="code" class="HTML">
<!-- Call jQuery in <head></head> tags of the document -->
<script type="text/javascript" src="jquery.js"></script>
<!-- jQuery to apply actions to the link -->
<script type="text/javascript">
$(document).ready(function(){
    $("#login-link").click(function(){
        $("#login-panel").slideToggle(200);
    })
})
<!-- jQuery to apply actions to the ESC key -->
$(document).keydown(function(e) {
    if (e.keyCode == 27) {
        $("#login-panel").hide(0);
    }
});
</script>
</pre>
<p class="textcenter"><strong>What more features can I zip for you? Do let me know in the comments.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/coding/jquery-css-login-panel/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Useful Regular Expressions in Programming</title>
		<link>http://www.cssjockey.com/coding/useful-regular-expressions-in-programming</link>
		<comments>http://www.cssjockey.com/coding/useful-regular-expressions-in-programming#comments</comments>
		<pubDate>Mon, 07 Dec 2009 16:54:48 +0000</pubDate>
		<dc:creator>Rupak Dhiman</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=909</guid>
		<description><![CDATA[Today we are here to discuss, learn and share a few regular expressions used by many programmers across different programming platforms. The beauty of using these regular expressions is the freedom to use them with any programming language, provided, it involves strings interpolation, be it web applications or stand-alone applications.  Moreover, once you have a good understanding of these regular expressions, you can modify them according to your needs and requirements.]]></description>
			<content:encoded><![CDATA[<p>Today we are here to discuss, learn and share a few regular expressions used by many programmers across different programming platforms. The beauty of using these regular expressions is the freedom to use them with any programming language, provided, it involves strings interpolation, be it web applications or stand-alone applications.  Moreover, once you have a good understanding of these regular expressions, you can modify them according to your needs and requirements.</p>
<h3>What is Regular Expression?</h3>
<p>Regular Expression is a type of sub language used with main stream programming languages like PHP, ASP, JAVA, and many more. As a matter of fact, it can be used with any programming language. You can think of regular expressions as wild cards on steroids. You are probably familiar with wild card notations such as *.txt to find all text files in a file manager. </p>
<p>The regular expression equivalent is . *\.txt$.</p>
<h3>What is its use?</h3>
<p>Regular expression is used to match strings of text, such as particular characters, words, or patterns of characters, e.g., I wish to search a word which starts with the letter ‘c’ and is followed by O twice and can end with any alphabet or a numerical. I can use these regular expressions to get exact matches like cool, cook, cooked, cooking, cooper, cooperate, etc.</p>
<h3>What&#8217;s in it for me?</h3>
<p>Regular expressions are very useful as they involve interpolation with strings, numerical, alphabets and special symbols like $ @ % * etc. In my opinion no application can be built without using regular expressions in some way. There are many features and uses of regular expressions and we will proceed to discuss a few regular expressions that are a &#8220;Must Know&#8221; for any programmer. We shall tests these expressions in the following scenarios using PHP:</p>
<ol>
<li>Validating Username.</li>
<li>Validating Password.</li>
<li>Validating Email Address.</li>
<li>Matching a URL.</li>
</ol>
<h3>Validate Username</h3>
<pre name="code" class="PHP">
// regular expression for validating username
$valid_username = "/^[a-z0-9_-]{3,16}$/";  

// input from user through a textbox
$user = $_POST['user'];  

// using ‘preg_match’ to validate user input against the expression.
if(preg_match($valid_username, $user)){
	$message= "Username Valid! You may proceed.";
}else{
	$message = "Inavlid Username.";
	$message .= "Username should contain only alphabets, numbers, underscores or hyphens.";
	$message .= "Should be between 3 to 16 characters long.";
}
</pre>
<p>In the above code the regular expression will look for a specific pattern of username which contains characters such as letters (a-z); number (0-9); an underscore or a hyphen. Later, it would verify that the username is minimum 3 characters long without exceeding the upper limit of 16 characters. This verification is performed by {3,16} expression.  Then we will end the string by a ‘$’.</p>
<p><a target="_blank" href="http://www.cssjockey.com/files/downloads/code/regular_expressions/user.php" title="Validate Username">Live Demo</a></p>
<h3>Validate a password</h3>
<pre name="code" class="PHP">
$valid_password = "/^[a-z0-9_-]{6,18}$/";
$pass = $_POST['pass'];
if(preg_match($valid_password, $pass)){
        $message = "Valid Password. You may proceed.";
}else{
        $message = "Invalid Password.";
        $message .= "Password should contain only alphabets, numbers, underscore or hyphen.";
        $message .= "Should be between 6 to 18 characters long.";
    }
</pre>
<p>Password is almost similar to matching a username the only difference here is that we need minimum of 6 characters.</p>
<p><a target="_blank" href="http://www.cssjockey.com/files/downloads/code/regular_expressions/pass.php" title="Validate Password">Live Demo</a></p>
<h3>Validate an email</h3>
<pre name="code" class="PHP">
$valid_email = "/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ ";
$email = $_POST['email'];
if(preg_match($valid_email, $email)){
        $message = "Valid Email. You may proceed.";
}else{
        $message = "Please enter a Valid Email.";
}
</pre>
<p>This is one of the most common, widely used and important regular expression for validating an email address. This matches a string that has all the parts required for an e-mail address. To explain in detail, it will look for one or more lowercase letters, numbers, underscores, dots, or hyphens first followed by @ sign, next it will look up for a domain name which can consist of one or more lowercase letters, numbers, underscores, dots, or hyphens and then it would look for extension which would vary from 2 to 6 characters that can be country specific like .ca, .net, .uk, .com or .co.uk.</p>
<p><a target="_blank" href="http://www.cssjockey.com/files/downloads/code/regular_expressions/email.php" title="Validate Email">Live Demo</a></p>
<h3>Regular expression to match a URL</h3>
<pre name="code" class="PHP">
$valid_url = "/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/";

$url= $_POST['url'];
if(preg_match($valid_url, $url)){
        $message = "Valid URL. You may proceed.";
}else{
        $message = "Please enter a Valid URL.";
}
</pre>
<p>This one compares the URL where it will first look for http://, https:// or check for it presence at all. Next it looks up the domain name which consists of one or more numbers, letters, dots, or hyphens followed by another dot then two to six letters or dots. The later section &#8220;?([\da-z\.-]+)\&#8221; is optional files and directories. Then the inside part &#8220;.([a-z\.]{2,6})([\/\w \.-]*)&#8221; matches any number of forward slashes, letters, numbers, underscores, spaces, dots, or hyphens. Then we say that this group can be matched as many times as we want. Pretty much this allows multiple directories to be matched along with a file at the end. I have used the star instead of the question mark because the star says zero or more, not zero or one. If a question mark was to be used there, we could match only one file/directory. Then a trailing slash is matched, but it can be optional. Finally we end with the end of the line.</p>
<p><a target="_blank" href="http://www.cssjockey.com/files/downloads/code/regular_expressions/url.php" title="Validate URL">Live Demo</a></p>
<p>Stay tuned and updated for more useful regular expressions to come in future readings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/coding/useful-regular-expressions-in-programming/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>An easy way to create light-box with jQuery &amp; CSS</title>
		<link>http://www.cssjockey.com/tips-tricks/an-easy-way-to-create-light-box-with-jquery-css</link>
		<comments>http://www.cssjockey.com/tips-tricks/an-easy-way-to-create-light-box-with-jquery-css#comments</comments>
		<pubDate>Fri, 23 Oct 2009 18:30:52 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[jQuery Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[web-design-tips]]></category>
		<category><![CDATA[webdesign-tips]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=768</guid>
		<description><![CDATA[As you already know that I've been working on improving the performance of my website and I needed a simple solution to create light-box effect for Live-Chat on this website. I could have used one of the available jQuery plug-ins out there however, the idea was to optimize the code with minimal use of heavy third-party scripts and CSS.]]></description>
			<content:encoded><![CDATA[<div id="attachment_768" class="wp-caption aligncenter" style="width: 597px"><a href="http://www.cssjockey.com/files/downloads/code/jquery_css_lightbox/index.htm" target="_blank"><img class="aligncenter size-full wp-image-782" title="how-to-create-light-box-with-css-jquery" src="http://www.cssjockey.com/wp-content/uploads/2009/10/how-to-create-light-box-with-css-jquery.jpg" alt="how-to-create-light-box-with-css-jquery" width="587" height="220" /></a><p class="wp-caption-text">Simple light-box effect with jQuery and CSS</p></div>
<p>As you already know that I&#8217;ve been working on <a title="Recent Performance Updates on CSSJockey.com" href="http://www.cssjockey.com/general-news/performance-upgrade">improving the performance</a> of my website and I needed a simple solution to create light-box effect for <a title="Live Chat" href="http://www.cssjockey.com/live-chat">Live-Chat</a> on this website. I had many options to choose from available <a title="Google Search for light-box" href="http://www.google.com/#hl=en&amp;source=hp&amp;q=jquery+lightbox&amp;aq=f&amp;aqi=g10&amp;oq=&amp;fp=a70abe15f561671b" target="_blank">jQuery plug-ins</a> however, the idea was to optimize the code with minimal use of heavy third-party scripts and CSS. Moreover, Only thing I needed was a light-box effect without any other functionality.</p>
<p>So I created the light-box effect with a few lines of code using CSS and jQuery.</p>
<p><a title="View Live Demo" href="http://www.cssjockey.com/files/downloads/code/jquery_css_lightbox/index.htm" target="_blank"><strong>View Live Demo</strong></a></p>
<p>Let&#8217;s start coding <img src='http://www.cssjockey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>xHTML Code</h2>
<p>Place this code within &lt;body&gt;&lt;/body&gt; tags where ever you like.</p>
<pre name="code" class="html">&lt;a id="show-panel" href="#"&gt;Show Panel&lt;/a&gt;

&lt;div id="lightbox-panel"&gt;
&lt;h2&gt;Lightbox Panel&lt;/h2&gt;
&lt;p&gt;You can add any valid content here.&lt;/p&gt;
&lt;p align="center"&gt;
&lt;a id="close-panel" href="#"&gt;Close this window&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;&lt;!-- /lightbox-panel --&gt;

&lt;div id="lightbox"&gt; &lt;/div&gt;&lt;!-- /lightbox --&gt;</pre>
<p>First line of the above code is a link with id &#8220;show-panel&#8221; which will display the &#8220;light-box&#8221; and the &#8220;lightbox-panel&#8221; DIVs, similarly on line 7 we have a link with ID &#8220;close-panel&#8221; to hide these DIVs. This will be handled by jQuery of course.</p>
<p><strong class="red">#lightbox-panel</strong> will hold the content to be dispalyed and <strong class="red">#lightbox</strong> will add a transparent background behind our content panel.  Let&#8217;s write some CSS code to stylize these two DIVs before we add the functionality to our links with jQuery.</p>
<h2>CSS Code</h2>
<p>You can add this code within the document&#8217;s &lt;head&gt;&lt;/head&gt; tag or in any linked style sheet.</p>
<pre name="code" class="css">* /Lightbox background */
#lightbox {
 display:none;
 background:#000000;
 opacity:0.9;
 filter:alpha(opacity=90);
 position:absolute;
 top:0px;
 left:0px;
 min-width:100%;
 min-height:100%;
 z-index:1000;
}
/* Lightbox panel with some content */
#lightbox-panel {
 display:none;
 position:fixed;
 top:100px;
 left:50%;
 margin-left:-200px;
 width:400px;
 background:#FFFFFF;
 padding:10px 15px 10px 15px;
 border:2px solid #CCCCCC;
 z-index:1001;
}</pre>
<p><strong>Note:</strong> The z-index value for #lightbox-panel should be greater than z-index value of #lightbox to display it above the transparent background and both should have the property display as none so they should not show up by default or if the users have Javascript disabled in their browsers.</p>
<p>Let&#8217;s put some life to our code with jQuery.</p>
<h2>jQuery Code</h2>
<p>You can add this code within the document&#8217;s &lt;head&gt;&lt;/head&gt; tag and we are done.</p>
<pre name="code" class="javascript">&lt;script type="text/javascript" src="PATH_TO/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
 $(document).ready(function(){
 $("a#show-panel").click(function(){
 $("#lightbox, #lightbox-panel").fadeIn(300);
 })
 $("a#close-panel").click(function(){
 $("#lightbox, #lightbox-panel").fadeOut(300);
 })
 })
&lt;/script&gt;</pre>
<h4>Pretty simple, huh!!</h4>
<p>Could it get easier than this?</p>
<p>Once you click the link with ID <strong class="red">&#8220;show-panel&#8221;</strong> it will display both the DIVs with some nice fade effect and if you click the link with ID <strong class="red">&#8220;close-panel&#8221;</strong> it will hide these DIVs.</p>
<p>I hope you enjoyed this little trick to create simple light-box effect with CSS and jQuery and You are most welcome to share your inputs and code in the comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/tips-tricks/an-easy-way-to-create-light-box-with-jquery-css/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>How to read minified CSS with ease?</title>
		<link>http://www.cssjockey.com/tips-tricks/uncompress-minified-css</link>
		<comments>http://www.cssjockey.com/tips-tricks/uncompress-minified-css#comments</comments>
		<pubDate>Mon, 12 Oct 2009 14:07:54 +0000</pubDate>
		<dc:creator>Abhinav Sood</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=766</guid>
		<description><![CDATA[Today we have a quick tip for those who feel depressed and cry when they see the holy grail of CSS in one single line in their themes. Recently I started hearing from a lot of people complaining about their theme developers using minified CSS in their themes for maximizing performance without any consideration for their ease of use or customization...]]></description>
			<content:encoded><![CDATA[<p>Today we have a quick tip for those who feel depressed and cry when they see the holy grail of CSS in one single line in their website / theme stylesheets.</p>
<p>Recently I started hearing from a lot of people complaining about their theme developers using minified CSS in their themes for maximizing performance without any consideration for their ease of use / customization. People keep asking me if there are tools that convert minified CSS back to normal human-readable form and recently someone even asked me to do a job – normalize some minified stylesheets (of course I didn’t do it and rob him off!)</p>
<p>Whether or not developers should minify CSS when giving out themes / websites has been a subject of debate for a long time but why developers choose to minify some parts of their stylesheets has often been overlooked. Performance issues for larger projects, minifying the reset styles (you don’t have to change them anyway!) and non-developer license are just some of the reasons!</p>
<p>Anyway, coming back to the subject of this post – How can you read minified CSS with ease?<br />
(No, we are not going to install any 3rd party software!)</p>
<p>Simply validate the CSS (only the minified part if you have other files attached as well) in question using the <a title="W3C.org CSS Validator" href="http://jigsaw.w3.org/css-validator/">W3C’s CSS Validation</a> service!</p>
<p>The output of the validation check is:</p>
<ol>
<li>whether or not, your CSS validates to standards set by W3C.</li>
<li>Normal, Properly Formatted and Easily Readable version of your minified / compressed CSS</li>
</ol>
<p>You need to keep the formatted and decompressed CSS? Just copy it from the validation output and replace your version. Voila!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/tips-tricks/uncompress-minified-css/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CSS Tips &#8211; Get Consistent Results in All Browsers</title>
		<link>http://www.cssjockey.com/tips-tricks/css-get-consistent-results-in-browsers</link>
		<comments>http://www.cssjockey.com/tips-tricks/css-get-consistent-results-in-browsers#comments</comments>
		<pubDate>Thu, 23 Apr 2009 20:50:47 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[webdesign-tips]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=696</guid>
		<description><![CDATA[<b>Web standards</b> are prevailing guidelines used on the World Wide Web to ensure web sites and information is accessible to all in the most efficient manner. Most Web browsers have different default settings for the base margins and padding...]]></description>
			<content:encoded><![CDATA[<p>Web standards are prevailing guidelines used on the World Wide Web to ensure web sites and information is accessible to all in the most efficient manner. Most Web browsers have different default settings for the base margin and padding.</p>
<p>This means that if you don&#8217;t set a margin and padding on your body and xHTML tags, you could get inconsistent results on the page depending upon which browser your users are using to view the page. A simple way to solve this is to set all the margin and padding on the xHTML and body tags to 0:</p>
<pre class="css" name="code">
html, body {
margin: 0px;
padding: 0px;
}
</pre>
<p>This will keep your design structure in the same place on all browsers.</p>
<h3>Borders</h3>
<p>You may be thinking &#8220;but no browsers have a border around the body element by default&#8221;. This is not strictly true. Internet Explorer has a transparent or invisible border around elements. Unless you set the border to 0, that border will mess up your web-page layouts. So add the following to your body and xhtml styles:</p>
<pre class="css" name="code">
html, body {
margin: 0px;
padding: 0px;
border: 0px;
}
</pre>
<div class="info">Here&#8217;s a nice and detailed article on CSS Reset: <a href="http://sixrevisions.com/css/css-tips/css-tip-1-resetting-your-styles-with-css-reset/" target="_blank">Resetting Your Styles with CSS Reset</a> Stay tuned for more web-design tips.
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/tips-tricks/css-get-consistent-results-in-browsers/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Deep Integrating WordPress 2.7.1 and bbPress 0.9.0.4</title>
		<link>http://www.cssjockey.com/wordpress/deep-integrating-wordpress-271-and-bbpress-0904</link>
		<comments>http://www.cssjockey.com/wordpress/deep-integrating-wordpress-271-and-bbpress-0904#comments</comments>
		<pubDate>Sat, 11 Apr 2009 19:21:25 +0000</pubDate>
		<dc:creator>Abhinav Sood</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[bbPress]]></category>
		<category><![CDATA[deep-integration]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=674</guid>
		<description><![CDATA[As WordPress and bbPress both come from the same camp, successfully integrating both of them to share logins as well as template functions has been a buzzing issue for developers. In this guide, we’ll explain the process of integrating the latest stable versions of both WordPress (2.7.1) and bbPress (0.9.0.4) step by step in a comprehensive way.]]></description>
			<content:encoded><![CDATA[<p>As <strong>WordPress</strong> and <strong>bbPress</strong> both come from the same camp, successfully integrating both of them to share logins as well as template functions has been a buzzing issue for developers. In fact, because both WordPress and bbPress have an almost similar file management structure, it makes all the more sense to integrate bbPress as forums into WordPress rather than using phpBB or SMF or any other boards.</p>
<p>Various resources over the web are trying to explain the process of (deep) integrating WordPress and bbPress without any issues, but mostly they are broken or outdated. In this guide, we’ll explain the process of integrating the latest stable versions of both <strong>WordPress (2.7.1)</strong> and <strong>bbPress (0.9.0.4)</strong> step by step in a comprehensive way.</p>
<h3>Step 1: Downloading the Latest Stable Versions</h3>
<p>Download the latest stable version of WordPress from <a title="WordPress Latest Version" href="http://wordpress.org" target="_blank">Wordpress.org</a> and the latest version of bbPress from <a title="bbPress Latest Version" href="http://bbpress.org" target="_blank">bbPress.org</a></p>
<h3>Step 2: Extracting the files</h3>
<p>Extract the WordPress files into the root directory of your web server (or where you want to install it). Create a new database on your host using your phpMyAdmin or host’s cPanel.</p>
<p>Now, create a folder named forums inside the WordPress directory so that it forms a sub-directory of your WordPress website (for example www.<strong>YourDomain</strong>.com/forums). Now your FTP directory listing should look somewhat like this:</p>
<div style="padding-left:100px;">
<div id="attachment_687" class="wp-caption aligncenter" style="width: 426px"><a href="http://www.cssjockey.com/wp-content/uploads/2009/04/ftp_structure.jpg"><img class="size-full wp-image-687" title="FTP Structure after creating the Forums Folder" src="http://www.cssjockey.com/wp-content/uploads/2009/04/ftp_structure.jpg" alt="FTP Structure after creating the Forums Folder" width="416" height="295" /></a><p class="wp-caption-text">FTP Structure after creating the Forums Folder</p></div>
</div>
<p>Extract the bbPress files into this forums directory.</p>
<h3>Step 3: Installing WordPress and bbPress</h3>
<p>Now install WordPress by visiting your website URL in your favorite browser (www.YourDomain.com) and Create a Configuration File using the name of the freshly created database and database username and password. You’ll be done through, quite easily.</p>
<p>To install bbPress as your forums software go to www.YourDomain.com/forums. When the installation page appears click on the Let’s Get Started link to begin with the configuration. Enter the same database name, user name and password as you used for your WordPress install. Don’t check the advanced settings. Just save your database configuration settings.</p>
<h3>Step 4: Integrating WordPress into bbPress</h3>
<p>The next option is basically where the integration process actually starts. Place a check against the add integration settings. Then place a check against the add cookie integration settings. This enables you to use shared logins.</p>
<blockquote><p>This is also where the complication comes in, in the integration of WordPress 2.7.1 and bbPress 0.9.0.4. Cookie generation and management mechanism in WordPress 2.7.1 is very different from WordPress 2.5. However bbPress still uses the cookies compatible with previous versions of WordPress. We’ll use a plugin as a work around to downgrade the cookies generated by WordPress to sync with bbPress. Follow the steps below.</p></blockquote>
<h3>Step 5: Filling in the WordPress integration details</h3>
<p>In WordPress address, enter http://www.YourDomain.com</p>
<p>In Blog address, enter http://www.YourDomain.com</p>
<p>Now go to https://api.wordpress.org/secret-key/1.1/ to generate WordPress Cookie secret keys. They’ll look somewhat like this:</p>
<pre name="code" class="PHP">
define('AUTH_KEY', '3{=J|rF]CLK3XNzzKc+*Bn@2yeMh#y{c$PqfAgmW*WgPevIOEAi6Gl{b1');
define('SECURE_AUTH_KEY', '-P`&amp;G!_+5|1uu`&gt;8y9!$f;.T&lt;6-Oa');
define('LOGGED_IN_KEY', '3xIsD$9TmGg;FAu.[V,nqb%lE/`N~)h4rE&gt;cO`]@h vkN?`&gt;fA0w;|FFb|_3NW40');
define('NONCE_KEY', '{qBV?O[wCsW5 Y+1^ ].%Y-Mp[0*m`$A@M3:;OHm=&gt;&amp;R*$I4Zlv7^n*+G`ib.#?a');
</pre>
<p>In your root directory, open the wp-config.php file. Look for 4 lines starting similarly… Replace them with the generated keys. Perform this step carefully.</p>
<p>Now copy the value of '<strong>AUTH_KEY</strong>' that is</p>
<pre name="code" class="PHP">
3{=J|rF]CLK3XNz&lt;DGr|K&gt;zKc+*Bn@2yeMh#y{c$PqfAgmW*WgPevIOEAi6Gl{b1
</pre>
<p style="text-lign: center;">(whatever is generated for you) and go back to your browser. Paste it into the WordPress Cookie Secret Key field.</p>
<p>Now go to http://www.YourDomain.com/wp-admin/options.php and look for a field named secret. Copy the value of this field and paste it into the next field of bbPress configuration – WordPress Database Secret. Finally place a check mark against the Add user database integration settings. You don’t need to use the advanced settings. Just Save WordPress Integration Settings and proceed to the next step.</p>
<h3>Step 6: Finishing bbPress install with Site Settings</h3>
<p>Enter the Site Name and Site Address (mostly, it’ll be automatically guessed for you). Select admin in the username drop-down to map it as the Key Master. Type the name for your first forum and save site settings to finish setting up the forums.</p>
<blockquote><p><strong>Registration – Setting up User Roles</strong></p>
<p>When a user registers on your bbPress forum, your WordPress blog doesn’t know about it (and vice versa). The user will be created, but WordPress won’t know what user role to apply.</p>
<p>In the “WordPress Integration” section of the “Settings” area in your bbPress admin you will find a “User Role Map” where you can set which roles will be applied to users who register on your forums. Users who register on your WordPress blog will have the appropriate role applied to their account when they first login to bbPress.</p>
<div id="attachment_688" class="wp-caption aligncenter" style="width: 597px"><a href="http://www.cssjockey.com/wp-content/uploads/2009/04/bbpress_user_role_map.jpg"><img class="size-full wp-image-688" title="Setting Up User Roles When Integrating WordPress With bbPress" src="http://www.cssjockey.com/wp-content/uploads/2009/04/bbpress_user_role_map.jpg" alt="Setting Up User Roles When Integrating WordPress With bbPress" width="587" height="260" /></a><p class="wp-caption-text">Setting Up User Roles When Integrating WordPress With bbPress</p></div>
<p>If you don’t setup a role map, then this will not work. When you do setup a role map (or change it) any users who are missing either role will be updated, but existing roles will not be affected.</p></blockquote>
<h3>Step 7: Modifying the wp-config.php file</h3>
<p>Add these lines of code</p>
<pre name="code" class="PHP">
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '/');
</pre>
<p>Just before this line:</p>
<pre name="code" class="PHP">
// ** MySQL settings - You can get this info from your web host ** //
</pre>
<p>This would generally be near the top of the wp-config.php file at around lines 16 to 18.</p>
<h3>Step 8: Modifying the bb-config.php file</h3>
<p>Create a new blank file path.php and insert the following lines of code into it:</p>
<pre name="code" class="php">
&lt;?php
$p = getcwd();
echo $p;
?>
</pre>
<p>Upload it into your root directory and access it from your browser at www.YourDomain.com/path.php. It would show you the absolute path to your website and would be something like this: <strong>/home/xyz/public_html/sitename/</strong></p>
<p>Copy this path as we will paste this in the bb-config.php file.</p>
<p>In the forums directory, edit the bb-config.php file and insert these lines of code in line 2 immediately after the opening PHP tag ( &lt;?php )</p>
<pre name="code" class="PHP">
if ( !defined('ABSPATH') &#038; !defined('XMLRPC_REQUEST')) {
define('WP_USE_THEMES', false);
include_once( 'PASTE ABSOLUTE PATH HERE/wp-blog-header.php' );
header("HTTP/1.1 200 OK");
header("Status: 200 All rosy");
}
</pre>
<p>Then, near the bottom of the file – add these 2 lines of code just before the /* Stop editing */ line</p>
<pre name="code" class="PHP">
$bb-&gt;custom_user_table = 'wp_users';
$bb-&gt;custom_user_meta_table = 'wp_usermeta';
</pre>
<p>Save your bb-config.php file and exit.</p>
<h3>Step 9: Installing a magical plugin</h3>
<p><a title="Ann Oyama" href="http://superann.com/2009/02/26/wordpress-26-27-bbpress-09-cookie-integration-plugin/" target="_blank">Ann Oyama</a> developed a WordPress plugin that enables WordPress to generate cookies that work with bbPress 0.9 so that a single shared sign in can be accomplished between the two! <a title="Ann Oyama" href="http://wordpress.org/extend/plugins/wordpress-26-and-bbpress-09-integration/" target="_blank"><strong>Download</strong></a> this plugin at WordPress.org</p>
<p>Basically the cookies generated by the latest version of WordPress are downgraded to the cookies generated by previous versions of WordPress. Upload the plugin to <strong>wp-content\plugins\</strong> and activate it from your WordPress admin dashboard.</p>
<p>After you activate the plugin, you’ll be asked to log in again into your WordPress admin dashboard. Instead of logging in once again – type</p>
<p><strong>www.YourDomain.com/wp-login.php?action=logout</strong></p>
<p>When you’re logged out, clear your browser’s cache and cookies.  Restart your browser.</p>
<h3>Step 10: There’s no step 10. Bingo!</h3>
<p>You’ve successfully <strong>deep</strong> <strong>integrated your WordPress 2.7.1 with bbPress 0.9.0.4</strong>. You can now use WordPress template tags in your bbPress theme and style it similar to your WordPress theme… and you’ve a single sign-on shared login set up and running! I hope you find this guide helpful. If you face any problems, feel free to drop us a comment. We&#8217;ll try our level best to help you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/wordpress/deep-integrating-wordpress-271-and-bbpress-0904/feed</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
		<item>
		<title>Enable Auto-Complete Search in WordPress Blog!</title>
		<link>http://www.cssjockey.com/web-design-tutorials/enable-auto-complete-search-in-wordpress-blog</link>
		<comments>http://www.cssjockey.com/web-design-tutorials/enable-auto-complete-search-in-wordpress-blog#comments</comments>
		<pubDate>Mon, 09 Mar 2009 21:41:04 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=626</guid>
		<description><![CDATA[<strong>"One sometimes finds what one is not looking for."</strong>
This quote by <strong>Alexander Fleming </strong>explains all what I am going to share with you today. I am pretty sure that you are aware of <strong>Google Search Suggest</strong> and <strong>Yahoo Search Assist</strong> feature. This feature helps you effortlessly find exactly what you’re looking for and no doubt, it lists a few suggestions to keep the user looking for more and more.]]></description>
			<content:encoded><![CDATA[<h3 style="text-align: center;">&#8220;One sometimes finds what one is not looking for&#8221;</h3>
<p>This quote by <strong>Alexander Fleming </strong>explains all what I am going to share with you today. I am pretty sure that you are aware of <strong>Google Search Suggest</strong> and <strong>Yahoo Search Assist</strong> feature. This feature helps you effortlessly find exactly what you’re looking for. No doubt, it lists a few suggestions to keep the user looking for more and more.</p>
<p>As you type something in the search box, it automatically offers search terms and phrases in real time. How nice will it be to have the same feature on your website or blog. In this post, I am going to explain an easy way to add <strong>search suggestion feature</strong> on your WordPress blog or website.</p>
<h3>Things You’ll Need</h3>
<p><strong>jQuery</strong>:  You can download the lates version from <a title="jQuery" href="http://jquery.com/" target="_blank">jQuery.com</a><br />
<strong>Autocomplete Plugin</strong>: Download this plug-in by Jörn Zaefferer from <a title="jQuery Auto Complete Plug-in" href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" target="_blank">http://bassistance.de</a></p>
<h3>Now let&#8217;s play with some code</h3>
<p>Include this code within <strong>&lt;head&gt;..&lt;/head&gt;</strong> tag.</p>
<pre name="code" class="HTML">
&lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.autocomplete.pack.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="js/jquery.autocomplete.css" media="screen" /&gt;
</pre>
<p>Here I am assuming you are using &#8220;<strong>js</strong>&#8221; folder to keep all your java scripts and supported files. You may need to update the location of these files based on your folder setup.</p>
<p><strong>Here&#8217;s the actual jQuery code to enable this feature on an input box:</strong></p>
<pre name="code" class="HTML">
&lt;script type="text/javascript"&gt;
var data = "Search Terms Separated With Spaces".split(" ");
$("#myInputBox").autocomplete(data);
&lt;/script&gt;
</pre>
<p>Variable <strong>&#8220;data&#8221;</strong> hold the terms that you would like the user to see in the search suggestion list and <strong>$(&#8220;#myInputBox&#8221;)</strong> is the <strong>id</strong> of the search input box.</p>
<p>Let&#8217;s check out how we can automatically call WordPress tags in our search suggestions, using WordPress <strong>wpdb</strong> class:</p>
<pre name="code" class="PHP">
&lt;?php
global $wpdb;
$search_tags = $wpdb-&gt;get_results('SELECT name FROM $wpdb-&gt;terms');
foreach ($search_tags as $mytag){
echo $mytag-&gt;name. ' ';
}
?&gt;
</pre>
<p>Here I am using WordPress <strong>wpdb</strong> class to fetch all tags assigned to the posts.</p>
<p>Here&#8217;s the complete code to enable this feature on your WordPress blog. Just replace the folder name with actual folder and the jQuery selector <strong>$(&#8220;#myInputBox&#8221;)</strong> with the actual id of search input box.</p>
<pre name="code" class="HTML">
&lt;script type="text/javascript" src="&lt;?PHP bloginfo('template_url'); ?&gt;/REPLACE_THIS_WITH_THE_ACTUAL_FOLDER/jquery.autocomplete.pack.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/REPLACE_THIS_WITH_THE_ACTUAL_FOLDER/jquery.autocomplete.css" media="screen" /&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function(){
var data = '&lt;?php global $wpdb; $search_tags = $wpdb-&gt;get_results("SELECT name FROM $wpdb-&gt;terms"); foreach ($search_tags as $mytag){ echo $mytag-&gt;name. " "; } ?&gt;'.split(" ");
$("#ID_OF_SEARCH_INPUT_BOX").autocomplete(data);
})
&lt;/script&gt;
</pre>
<p><a title="Download" href="http://www.cssjockey.com/files/downloads/code/auto-complete/auto-complete-code.zip" target="_blank">Download</a> this file which contains the above mentioned code.</p>
<p>If you face any issues or need help implementing this code on your blog, feel free to post your queries in our <a title="CJ Google Group" href="http://groups.google.com/group/cssjockey" target="_blank">forum</a>. Don&#8217;t forget to add your inputs in the comments section below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/web-design-tutorials/enable-auto-complete-search-in-wordpress-blog/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>An easy way to create Loading Bar!</title>
		<link>http://www.cssjockey.com/web-design-tutorials/an-easy-way-to-create-loading-bar</link>
		<comments>http://www.cssjockey.com/web-design-tutorials/an-easy-way-to-create-loading-bar#comments</comments>
		<pubDate>Tue, 03 Mar 2009 21:50:17 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[loading]]></category>
		<category><![CDATA[website design]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=573</guid>
		<description><![CDATA[Recently, while browsing I landed on a page on StackOverflow.com where people were discussing about how I implemented this loading bar on CSSJockey.com. I could sense a lot of confusion in the discussion so thought I would take the mystery out as I love to share best practices. Here's how you can create a loading bar in few steps..]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong>&#8220;People count up the faults of those who keep them waiting&#8221;</strong><br />
Seems like I kept them busy decoding this loading bar <img src='http://www.cssjockey.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div id="attachment_574" class="wp-caption aligncenter" style="width: 597px"><img class="size-full wp-image-574" title="An easy way to create loading bar!" src="http://www.cssjockey.com/wp-content/uploads/2009/03/how-to-create-a-loading-bar.jpg" alt="How to create a loading bar" width="587" height="100" /><p class="wp-caption-text">How to create a loading bar</p></div>
<p>Recently, while browsing I landed on a page on <a title="How is the loading script on this website implemented?" href="http://stackoverflow.com/questions/598071/how-is-the-loading-script-on-this-website-implemented" target="_blank">StackOverflow.com</a> where people were discussing about how I implemented this loading bar on CSSJockey.com. I could sense a lot of confusion in the discussion so thought I would take the mystery out as I love to <strong>share best practices</strong>. Here&#8217;s how you can create a loading bar in few steps..</p>
<h3>Things You&#8217;ll Need</h3>
<ol>
<li>A nice loading image: If you are good in creating animated GIF images that&#8217;s nice, otherwise you can create a loading image with this cool <a title="Ajax Load - Create Animated Gif Loading Images" href="http://www.ajaxload.info/" target="_blank">Ajax Loading Gif Generator</a>.</li>
<li>jQuery: We are creating this loading bar using jQuery so download <a title="jQuery" href="http://www.jquery.com" target="_blank">jQuery latest version here</a>.</li>
</ol>
<h3>jQuery Code within &lt;head&gt;..&lt;/head&gt; tags</h3>
<pre name="code" class="HTML">
&lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(window).load(function(){
      $("#loading").hide();
})
&lt;/script&gt;
</pre>
<h3>HTML Code within &lt;body&gt;..&lt;/body&gt;tags</h3>
<pre name="code" class="HTML">
&lt;div id="loading"&gt;
Loading content, please wait..
&lt;img src="loading.gif" alt="loading.." /&gt;
&lt;/div&gt;
</pre>
<p>Make sure you add this code just below the starting &lt;body&gt; tag so it should be downloaded first.</p>
<h3>CSS Code for loading DIV</h3>
<pre class="css" name="code">
#loading {
    position:absolute;
    width:300px;
    top:0px;
    left:50%;
    margin-left:-150px;
    text-align:center;
    padding:7px 0 0 0;
    font:bold 11px Arial, Helvetica, sans-serif;
}
</pre>
<p>Use your imagination and create something nice &amp; unique.</p>
<p><strong><a title="Live Demo" href="http://www.cssjockey.com/files/downloads/code/loading/index.php" target="_blank">View Demo</a></strong> | <strong><a title="Download" href="http://www.cssjockey.com/files/downloads/code/loading/loading.zip" target="_blank">Download Source Code<br />
</a></strong></p>
<p>Your comment, suggestion and feedback is highly appreciated.</p>
<p>There&#8217;s more to come to stay tuned&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/web-design-tutorials/an-easy-way-to-create-loading-bar/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Google Juice: Update Services and Optimize Link Structure</title>
		<link>http://www.cssjockey.com/seo/google-juice-ping-update-services-optimize-link-structure</link>
		<comments>http://www.cssjockey.com/seo/google-juice-ping-update-services-optimize-link-structure#comments</comments>
		<pubDate>Tue, 27 Jan 2009 13:36:36 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Wallpapers]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=480</guid>
		<description><![CDATA[This post is second in the <em>Google Juice: Hard To Get But Tasty To Drink</em> series. Here we tell you about Pinging various Site Update Services and Optimizing Link Structures which will help you get your web pages listed in Google search results within 30 minutes.]]></description>
			<content:encoded><![CDATA[<p>Hello again. So, after reading the <a title="Getting Google Juice within 30 minutes" href="http://www.cssjockey.com/seo/search-engine-optimization-google-juice-hard-to-get-but-tasty-to-drink" target="_self">Part 1</a> do you still think getting that tasty Google Juice is all that difficult? No, it isn&#8217;t. You just need to be right with the basics. After talking about WordPress Plugins to assist you in SEO, today we’re going to talk about how to ping <strong>Site Update Services</strong> from your WordPress website and about tuning your web site’s link structure (permalinks).</p>
<h3>Pinging Site Update Services</h3>
<p>As this <a title="WordPress Codex" href="http://codex.wordpress.org/Update_Services" target="_blank">Wordpress Codex</a> page explains,</p>
<blockquote><p><strong>Update Services</strong> are tools you can use to let other people know you&#8217;ve updated your blog. Wordpress automatically notifies popular Update Services that you&#8217;ve updated your blog by sending a <a title="http://www.xmlrpc.com/" href="http://www.xmlrpc.com/">XML-RPC</a> <a title="Glossary" href="http://codex.wordpress.org/Glossary#PingBack">ping</a> each time you create or update a post. In turn, Update Services process the ping and updates their proprietary indices with <em>your</em> update. Now people browsing sites like Technorati or Sphere can find your most recent posts!</p></blockquote>
<p>There are several <strong>site update services</strong> up and running which you can add in <strong>WP-admin &gt;&gt; Settings &gt;&gt; Writing</strong>, in the <strong>update services</strong> section. Add one service URI per line. Once you update your Wordpress website with a new post or new page, these services will automatically be pinged. Then these pings are processed and associated indices (plural of index) are updated with your update.</p>
<p>You can have a list of active update services from this <a title="WordPress Codex" href="http://codex.wordpress.org/Update_Services" target="_blank">Wordpress Codex</a> page and copy them into your <strong>update services</strong> section (<strong>WP-admin &gt;&gt; Settings &gt;&gt; Writing</strong>). As easy as that!</p>
<h3>Tuning your website’s permalink structure</h3>
<p>Having title of the post or keywords from the post in the URI of your web page is obviously better than having numbers, question marks and other symbols. Not only humans can identify the subject of the page from its URI but search engines also find it easier to identify and assort web pages in this manner. A link like this: <a title="Nice Links" href="../seo/search-engine-optimization-google-juice-hard-to-get-but-tasty-to-drink" target="_blank">http://www.cssjockey.com/seo/search-engine-optimization-google-juice-hard-to-get-but-tasty-to-drink</a> tells you and Google bots clearly what the page is going to be about. However the WordPress default, which for the same page is <a title="Bad Link Structure" href="../blog/?p=469" target="_blank">http://www.cssjockey.com/blog/?p=469</a> (click to see that it’s actually the same!), which is not at all intuitive.</p>
<p>You can easily figure it out that if you are Google’ing from a specific keyword then obviously the results will list URI with these keywords in the link higher than the URI containing numbers and/or symbols.</p>
<p>Note that this tip is very effective for static websites as well. Always name and link your website and web pages with the title of the page, or keywords relating to the subject of the page instead of serial numbers.</p>
<h3>Customizing permalinks in Wordpress</h3>
<p>You can learn further more about what permalinks are and how to use them on <a title="WordPress Codex - Using Permalinks" href="http://codex.wordpress.org/Using_Permalinks" target="_blank">Using Permalinks</a> page of Wordpress Codex. The Wordpress default link structure, also known as Ugly permalinks structure is the least SEO friendly link structure. However changing your permalinks is easy.</p>
<p>On CSS Jockey and my other websites, I am using <strong>/%category%/%postname% </strong>structure which has remained pretty fruitful for me. You can optimize your own links by following these steps:</p>
<ol>
<li>Login to Wordpress Admin Area</li>
<li> Open the Settings Menu and Click Permalinks</li>
<li> Click Custom Structure and customize the link structure.</li>
</ol>
<p>Refer to the <a title="WordPress Codex - Using Permalinks" href="http://codex.wordpress.org/Using_Permalinks" target="_blank">Using Permalinks</a> page to see various tags that you can use.</p>
<p>Please note that websites hosted on Windows based hosts (Microsoft IIS Servers) experience issues setting up SEO friendly pretty permalinks. So in case you’re on such a one, stick to the ugly or almost pretty permalinks to avoid issues, or migrate to a Linux based host.</p>
<p>Pinging maximum number of Site Update Services and tuning your link structure play a good deal to get you listed in Google search results or other search engines in less than 30 minutes! Try implementing these magic tricks on your website and let me know how well did they work out for you.</p>
<p>And for the next part in this series, we are going to discuss how to use various social networks to promote our websites and blogs. We&#8217;ll talk about what all services you can use and how they are important for you and your website. Till then, see you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/seo/google-juice-ping-update-services-optimize-link-structure/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
