<?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 WordPress Guru &#187; Admin</title>
	<atom:link href="http://wpguru.co.za/category/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpguru.co.za</link>
	<description>Tips &#38; Pointers on Making a Killer CMS with WordPress</description>
	<lastBuildDate>Mon, 01 Aug 2011 10:26:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Changing the WordPress admin logo</title>
		<link>http://wpguru.co.za/admin/changing-the-wordpress-admin-logo/</link>
		<comments>http://wpguru.co.za/admin/changing-the-wordpress-admin-logo/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 13:00:28 +0000</pubDate>
		<dc:creator>MarkB</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[logo]]></category>

		<guid isPermaLink="false">http://wpguru.co.za/?p=114</guid>
		<description><![CDATA[Here's a quick tip for you to change the logo in the WordPress admin area. This is handy when deploying a site for a client and you want them to feel like they're using their own custom built CMS system. ]]></description>
			<content:encoded><![CDATA[<div id="attachment_130" class="wp-caption alignright" style="width: 271px"><img class="size-medium wp-image-130" title="Custim Admin WordPress Logo" src="http://wpguru.co.za/wp-content/uploads/adminlogo1-261x300.jpg" alt="" width="261" height="300" /><p class="wp-caption-text">Image by Ludwig Gatzke</p></div>
<p>Here&#8217;s a quick tip for you to change the logo in the WordPress admin area. This is handy when deploying a site for a client and you want them to feel like they&#8217;re using their own custom built CMS system.</p>
<p>First step is to upload the image you want to use. You can do this via FTP or using the WordPress media library. Once you have the URL to your image, open your theme&#8217;s functions.php file and add the following code:</p>
<pre class="brush: php; title: ; notranslate">// custom admin login logo
function custom_login_logo() {
 echo '&lt;style type=&quot;text/css&quot;&gt;
 h1 a { background-image: url('.get_bloginfo('template_directory').'/images/custom-login-logo.png) !important; }
 &lt;/style&gt;';
}
add_action('login_head', 'custom_login_logo');</pre>
<p>Change the URL to the background image to the URL of the file you uploaded and presto!</p>
<p>Use this method? Help share this post and tell us how you used it.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpguru.co.za/admin/changing-the-wordpress-admin-logo/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using jQuery to liven up your WordPress login</title>
		<link>http://wpguru.co.za/admin/using-jquery-to-liven-up-your-wordpress-login/</link>
		<comments>http://wpguru.co.za/admin/using-jquery-to-liven-up-your-wordpress-login/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 10:24:46 +0000</pubDate>
		<dc:creator>MarkB</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[thickbox]]></category>
		<category><![CDATA[wp-admin]]></category>

		<guid isPermaLink="false">http://wpguru.co.za/?p=56</guid>
		<description><![CDATA[When I'm coding a project for a client, I always try make using the site as easy as possible. Whether it be using custom fields to automate the use of images in a post, or coding wp-admin pages to make the writing of posts &#038; pages easier for them to do. Less is more... So in applying this principle, I'm going to show a really quick method of simplifying the clients login process using a jQuery lightbox.]]></description>
			<content:encoded><![CDATA[<div id="attachment_148" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-148" title="secure" src="http://wpguru.co.za/wp-content/uploads/secure-300x251.jpg" alt="" width="300" height="251" /><p class="wp-caption-text">Image by: maistora</p></div>
<p>When I&#8217;m coding a project for a client, I always try make using the site as easy as possible. Whether it be using custom fields to automate the use of images in a post, or coding wp-admin pages to make the writing of posts &amp; pages easier for them to do. Less is more… So in applying this principle, I&#8217;m going to show a really quick method of simplifying the clients login process using a jQuery lightbox.</p>
<p><a href="/wp-content/demos/login/">Here&#8217;s a demo</a> of what we&#8217;re going to do.</p>
<p>Just in case you&#8217;ve been coding in a box for the last 10 years, jQuery is a great JS library that has a number of nifty usages. One of its popular plugins is the ‘thickbox‘ and its what we&#8217;re going to use now to create a simple means of logging in for you/your clients.</p>
<h3>Prepare your site</h3>
<p>In your header.php file you need to include 3 files: jquery.js, thickbox.js and thickbox.css. Then upload the included loading.gif animation to your images folder. The includes for these files would look like this:</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;? bloginfo('template_directory'); ?&gt;/jquery-latest.pack.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;? bloginfo('template_directory'); ?&gt;/thickbox-compressed.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;? bloginfo('template_directory'); ?&gt;/thickbox.css&quot; media=&quot;screen&quot; /&gt;</pre>
<p>NOTE: call the jquery file before the thickbox.js file.</p>
<p>Then open your thickbox.js file and edit the path to your theme&#8217;s images folder. It&#8217;ll look something like this:</p>
<pre class="brush: jscript; title: ; notranslate">var tb_pathToImage = &quot;/wp-content/themes/yourtheme/images/loadingAnimation.gif&quot;;</pre>
<p>Ok, now your site is thickbox&#8217;d. Nice.</p>
<h3>Make it happen</h3>
<p>Of the many usages of the thickbox, the one we&#8217;re going to use now is the thickbox for Inline Content. In essence, you&#8217;re going to have your login form somewhere on your page (preferably in an element that is included on every page on your site like your sidebar) but its going to be hidden by an inline CSS style:</p>
<pre class="brush: php; title: ; notranslate">&lt;div id=&quot;form&quot; style=&quot;display:none;&quot;&gt;</pre>
<p>Somewhere else on your page, you&#8217;re going to have a link (like in your topnav) that when clicked, will open that hidden div/form in the thickbox. This link will have, instead of a URL as its href target, some magic thickbox commands that will summon your hidden login form. The link would be as follows:</p>
<pre class="brush: php; title: ; notranslate">&lt;a href= &quot;#TB_inline?height=200&amp;width=200&amp;inlineId=form&quot; title=&quot;Login to the WP Guru site&quot;&gt;Login&lt;/a&gt;</pre>
<p>What&#8217;s happening here is that the link is calling an inline div that&#8217;ll be displayed in a thickbox with the sizes specified and you&#8217;re identifying the inline div ID that will be called. Note that class=”thickbox” is critical to the thickbox&#8217;s successful usage.</p>
<h3>The login form</h3>
<p>The actual login form can be simplified down to its core elements so that you have nice neat code made up of only what you need. You can of course tweak this to be just what YOU need. The actual login form is found around line 378 in the wp-login.php file (v2.5).</p>
<pre class="brush: php; title: ; notranslate">&lt;div id=&quot;form&quot; style=&quot;display:none;&quot;&gt;
 &lt;form name=&quot;loginform&quot; id=&quot;loginform&quot; action=&quot;http://wpguru.co.za/wp-login.php&quot; method=&quot;post&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;phpMyAdmin&quot; value=&quot;01d7dd3a1764f33b9145cd20ad99db24&quot; /&gt;
 &lt;p&gt;
 &lt;label&gt;Username&lt;br /&gt;
 &lt;input type=&quot;text&quot; name=&quot;log&quot; id=&quot;user_login&quot; value=&quot;&quot; size=&quot;20&quot; tabindex=&quot;10&quot; /&gt;&lt;/label&gt;
 &lt;/p&gt;
 &lt;p&gt;
 &lt;label&gt;Password&lt;br /&gt;
 &lt;input type=&quot;password&quot; name=&quot;pwd&quot; id=&quot;user_pass&quot; value=&quot;&quot; size=&quot;20&quot; tabindex=&quot;20&quot; /&gt;&lt;/label&gt;
 &lt;/p&gt;
 &lt;?php do_action('login_form'); ?&gt;
 &lt;p&gt;&lt;label&gt;&lt;input name=&quot;rememberme&quot; type=&quot;checkbox&quot; id=&quot;rememberme&quot; value=&quot;forever&quot; tabindex=&quot;90&quot; /&gt; Remember Me&lt;/label&gt;&lt;/p&gt;
 &lt;p&gt;
 &lt;input type=&quot;submit&quot; name=&quot;wp-submit&quot; id=&quot;wp-submit&quot; value=&quot;&lt;?php _e('Log In'); ?&gt;&quot; tabindex=&quot;100&quot; /&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;/&quot; /&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;testcookie&quot; value=&quot;1&quot; /&gt;
 &lt;/p&gt;
 &lt;/form&gt;
&lt;/div&gt;</pre>
<p>You can of course style up the div that contains your form with your site logo etc to make the whole login process seem even more bespoke.</p>
<p>TIP: You can set the overlay color of your jQuery thickbox (default set to 75% black) to match your site, in line #39 of your thickbox.css file.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpguru.co.za/admin/using-jquery-to-liven-up-your-wordpress-login/feed/</wfw:commentRss>
		<slash:comments>93</slash:comments>
		</item>
	</channel>
</rss>

