<?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>The English Guy Web Design &#187; login</title>
	<atom:link href="http://www.theenglishguy.co.uk/tag/login/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theenglishguy.co.uk</link>
	<description>Web Design, WordPress/Drupal blog design &#38; theming, SEO, css. xhtml, php, coldfusion, jquery and more...</description>
	<lastBuildDate>Sun, 22 Aug 2010 20:07:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>post_class() and User Login</title>
		<link>http://www.theenglishguy.co.uk/2009/05/15/post_class-and-user-login/</link>
		<comments>http://www.theenglishguy.co.uk/2009/05/15/post_class-and-user-login/#comments</comments>
		<pubDate>Fri, 15 May 2009 13:43:27 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress theme]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[post_class]]></category>
		<category><![CDATA[user login]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=1725</guid>
		<description><![CDATA[A scenario occurred recently with a theme that I have been developing where it needed to have each post section, [...]]]></description>
			<content:encoded><![CDATA[<p>A scenario occurred recently with a theme that I have been developing where it needed to have each post section, each div, to be given the classname of the author who wrote the post.</p>
<p>This could be useful for targetting certain users, <em>admin</em> for example.</p>
<p>Generally with WordPress templates you have <em>index.php</em> for the homepage, and <em>single.php</em> for each individual post. Some themes, including mine, separate this even further and have another template <em>post.php</em> included from the <em>single.php</em> template.</p>
<p>Regardless of whether further templates are used, the layout tends to be like this:</p>
<blockquote><p>
&lt;div class=&#8221;post&#8221;&gt;<br />
&nbsp;&lt;div class=&#8221;post-title&#8221;&gt;&lt;h2&gt;Title&lt;/h2&gt;&lt;/div&gt;<br />
&nbsp;&lt;div class=&#8221;post-content&#8221;&gt;Content Here&lt;/div&gt;<br />
&nbsp;&lt;div class=&#8221;post-bottom&#8221;&gt;Posted by &#8230;&lt;/div&gt;<br />
&lt;/div&gt;
</p></blockquote>
<p>With the introduction of WP-2.7 (Strayhorn), the new function <strong>post_class()</strong> was added, a very useful function. So this part&#8230;</p>
<blockquote><p>
&lt;div class=&#8221;post&#8221;&gt;
</p></blockquote>
<p>&#8230;now becomes&#8230;</p>
<blockquote><p>
&lt;div &lt;?php post_class(); ?&gt;&gt;
</p></blockquote>
<p>The post_class() function adds in all the necessary classes for each post, such as the category (if you post in the <em>all</em> category, the post_class() function adds the <em>category-all</em> class to the post div).</p>
<p>To modify this to add the name of the article&#8217;s author as a class to the div holding the post, you add in this bit of code and modify the post_class() as follows:</p>
<blockquote><p>
&lt;?php $curauth = get_userdata(intval($post-&gt;post_author)); ?&gt;</p>
<p>&lt;div &lt;?php post_class($curauth-&gt;user_login) ?&gt;&gt;
</p></blockquote>
<p>So that is very straightforward and from that point onwards the theme can customise posts for known/given users, such as admin, this might be useful on multi-author blogs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2009/05/15/post_class-and-user-login/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom WordPress Login Page</title>
		<link>http://www.theenglishguy.co.uk/2008/04/21/custom-wordpress-login-page/</link>
		<comments>http://www.theenglishguy.co.uk/2008/04/21/custom-wordpress-login-page/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 19:10:10 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[custom login]]></category>
		<category><![CDATA[customise]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wp-login]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=1395</guid>
		<description><![CDATA[Not that the default wordpress login page is bad, but a lot of clients want it altered to suit their [...]]]></description>
			<content:encoded><![CDATA[<p>Not that the default <strong>wordpress login page</strong> is bad, but a lot of clients want it altered to suit their needs. Maybe a nice logo, or a font or colour change, but whatever the reason &#8211; it can be done!</p>
<p>My first example is keeping most of the default login page intact. I only altered the login box itself &#8211; you can find it on my own <a href="http://www.richarddows.co.uk/wp-login.php">personal blog</a>. As you can see the box is altered and the image from the famous painting &#8216;<a rel="tag" href="http://en.wikipedia.org/wiki/The_Son_of_Man">The Son of Man</a>&#8216; (which is part of my blog&#8217;s theme) is there; note that this isn&#8217;t there on IE versions of 6 and below. Example below (click to go to the actual login page):</p>
<p></p>
<div style="text-align:center;margin:0 auto;">
<a href='http://www.richarddows.co.uk/wp-login.php'><img src="http://www.theenglishguy.co.uk/wp-content/uploads/2008/04/rd_login.jpg" alt="" title="rd_login" width="400" height="254" class="alignnone size-full wp-image-1399" style="border:1px solid #000;" /></a>
</div>
<p></p>
<p>This only required a little alteration &#8211; making the form fit inside a restraining div I had added to the default <em>wp-login.php</em> page.</p>
<p>The second example is a bit more complex, but shows how easily the <strong>wordpress login page</strong> can be configured.</p>
<p>The theme itself is a four column theme, and so to keep the general feeling the theme was extended to the <strong>login page</strong> over at <a href="http://www.balancednewsblog.com/wp-login.php">Balanced News Blog</a> (the link is to the login page). The standard login page (<em>wp-login.php</em>) was modified by adding the header, menu, and sidebars so it fits in with the theme. As you can see though, the message part that is common to all login pages, giving a link back to the main page, has been removed. Example below (click to go to the actual login page):</p>
<p></p>
<div style="text-align:center;margin:0 auto;">
<a href='http://www.balancednewsblog.com/wp-login.php'><img src="http://www.theenglishguy.co.uk/wp-content/uploads/2008/04/bnb_login.jpg" alt="" title="bnb_login" width="400" height="258" class="alignnone size-full wp-image-1400" style="border:1px solid #000;" /></a>
</div>
<p></p>
<p>So as you can see, given the two examples, customising a login page for WordPress isn&#8217;t beyond a designer&#8217;s grasp. If you are interested in having your blog&#8217;s login page customised, drop me a line and let&#8217;s talk!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2008/04/21/custom-wordpress-login-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
