<?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>Cozmoslabs &#187; Recomended Reading</title>
	<atom:link href="http://www.cozmoslabs.com/category/recomended-reading/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cozmoslabs.com</link>
	<description>Web design and development experiment.</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:05:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress Profile Builder: a front-end user registration, login and edit-profile plugin</title>
		<link>http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin</link>
		<comments>http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 10:04:35 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[plugins]]></category>
		<category><![CDATA[Profile Builder]]></category>
		<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[custom field registration]]></category>
		<category><![CDATA[customize profile]]></category>
		<category><![CDATA[profile builder]]></category>
		<category><![CDATA[user fields]]></category>
		<category><![CDATA[user registration]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1341</guid>
		<description><![CDATA[You can now login, register and edit your profile directly from the font-end Profile Builder lets you customize your website by adding front-end forms for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, administrator can customize what basic fields are displayed on the front-end [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/' rel='bookmark' title='Profile Builder Pro is WordPress Registration Done Right'>Profile Builder Pro is WordPress Registration Done Right</a></li>
<li><a href='http://www.cozmoslabs.com/2252-profile-builder-version-1-1-6-has-arrived/' rel='bookmark' title='Profile Builder version 1.1.6 has arrived'>Profile Builder version 1.1.6 has arrived</a></li>
<li><a href='http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/' rel='bookmark' title='WordPress user registration template and custom user profile fields'>WordPress user registration template and custom user profile fields</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>You can now login, register and edit your profile directly from the font-end</h2>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2011/04/registration-form.jpg" alt="" title="registration-form" width="300" height="225" class="alignright size-full wp-image-1376" /><br />
<strong>Profile Builder</strong> lets you customize your website by adding front-end forms for all your users, giving them a more flexible way to modify their user-information or to register new users.</p>
<p>Also, administrator can customize what basic fields are displayed on the front-end (like First Name, Last Name, Website, etc.)</p>
<p>To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile). Now all you need to do is add the following shortcode(for the previous example): &#91;wppb-edit-profile&#93;. Publish your page and you are done!</p>
<p><span id="more-1341"></span></p>
<h3>WordPress User Registration, Login and Edit-Profile Shortcodes:</h3>
<ul>
<li><strong>&#91;wppb-login&#93; </strong>- for a log-in form.</li>
<li><strong>&#91;wppb-register&#93; </strong>- to add a registration form.</li>
<li><strong>&#91;wppb-edit-profile&#93;</strong> &#8211; to grant users a front-end acces to their personal information (requires user to be logged in).</li>
</ul>
<p><strong>Other features:</strong></p>
<ul>
<li>you can add the shortcodes directly inside a text widget and they will work </li>
<li>add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</li>
<li>select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</li>
<li>select which information-field to display on the WordPress user registration and WordPress edit profile pages on the font end. </li>
</ul>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/profile-builder/" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a title="Download" href="http://wordpress.org/extend/plugins/profile-builder/"><img alt="Download Profile-Builder" src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg"></a>
</div>
<p><strong>Screenshots:</strong><br />

<a href='http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/screenshot-1-2/' title='screenshot-1'><img width="150" height="150" src="http://www.cozmoslabs.com/wp-content/uploads/2011/04/screenshot-1-150x150.jpg" class="attachment-thumbnail" alt="screenshot-1" title="screenshot-1" /></a>
<a href='http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/screenshot-2/' title='screenshot-2'><img width="150" height="150" src="http://www.cozmoslabs.com/wp-content/uploads/2011/04/screenshot-2-150x150.jpg" class="attachment-thumbnail" alt="screenshot-2" title="screenshot-2" /></a>
<a href='http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/screenshot-3/' title='screenshot-3'><img width="150" height="150" src="http://www.cozmoslabs.com/wp-content/uploads/2011/04/screenshot-3-150x150.jpg" class="attachment-thumbnail" alt="screenshot-3" title="screenshot-3" /></a>
</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/' rel='bookmark' title='Profile Builder Pro is WordPress Registration Done Right'>Profile Builder Pro is WordPress Registration Done Right</a></li>
<li><a href='http://www.cozmoslabs.com/2252-profile-builder-version-1-1-6-has-arrived/' rel='bookmark' title='Profile Builder version 1.1.6 has arrived'>Profile Builder version 1.1.6 has arrived</a></li>
<li><a href='http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/' rel='bookmark' title='WordPress user registration template and custom user profile fields'>WordPress user registration template and custom user profile fields</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/feed/</wfw:commentRss>
		<slash:comments>231</slash:comments>
		</item>
		<item>
		<title>Professional WordPress Plugin Development review</title>
		<link>http://www.cozmoslabs.com/1326-professional-wordpress-plugin-development-review/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=professional-wordpress-plugin-development-review</link>
		<comments>http://www.cozmoslabs.com/1326-professional-wordpress-plugin-development-review/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 09:45:16 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Book Review]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[book review]]></category>
		<category><![CDATA[plugin development]]></category>
		<category><![CDATA[professional wordpress plugin development]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1326</guid>
		<description><![CDATA[It&#8217;s been a while since I&#8217;ve reviewed books on this blog and I think it&#8217;s about time to start doing that again. And I couldn&#8217;t have chosen a better book to start with then &#8220;Professional WordPress Plugin Development&#8221; written by Brad Williams, Ozh Richard and Justin Tadlock. This is the book I’ve been waiting for [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/671-multilingual-wordpress-wpml-review/' rel='bookmark' title='Multilingual WordPress &#8211; WPML Plugin Review'>Multilingual WordPress &#8211; WPML Plugin Review</a></li>
<li><a href='http://www.cozmoslabs.com/449-digital-experience-design-review-book/' rel='bookmark' title='&#8220;Digital Experience Design: Ideas, Industries, Interaction&#8221; &#8211; book review'>&#8220;Digital Experience Design: Ideas, Industries, Interaction&#8221; &#8211; book review</a></li>
<li><a href='http://www.cozmoslabs.com/120-interface-portability-in-web-development-the-next-big-step/' rel='bookmark' title='Front-end interface portability between CMS &#8211; the next BIG step in web-development?'>Front-end interface portability between CMS &#8211; the next BIG step in web-development?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2011/03/Professional_WordPress_Plugin_Development.jpg" alt="" title="Professional_WordPress_Plugin_Development" width="200" height="281" class="alignright size-full wp-image-1331" />It&#8217;s been a while since I&#8217;ve reviewed books on this blog and I think it&#8217;s about time to start doing that again. And I couldn&#8217;t have chosen a better book to start with then <strong><a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_ss_tl?ie=UTF8&#038;tag=cozmoslabs-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0470916222">&#8220;Professional WordPress Plugin Development&#8221;</a></strong> written by <a href="http://strangework.com/">Brad Williams</a>, <a href="http://planetozh.com/blog/">Ozh Richard </a>and <a href="http://justintadlock.com/">Justin Tadlock</a>.</p>
<p>This is the book I’ve been waiting for ever since I started to work with WordPress 3 years ago. As a theme designer and developer you really have a lot of documentation online. However, the instance you need to do some wild things with WordPress you realize there just isn’t enough information to go on. I’m talking about stuff like plugin security, proper way of handling plugin settings, ajax in WordPress, cron, the rewrite API and developing for multisite. </p>
<p><span id="more-1326"></span></p>
<h3>Professional WordPress Plugin Development review</h3>
<p>A lot of Codex pages are just stubs with almost no information what so ever. </p>
<p><strong>Here are some of the dark corners of WordPress this book brought light to them:</strong></p>
<ul>
<li>Addresses how to integrate into WordPress, save settings, create widgets and shortcodes, and implement uninstall</li>
<li>Learn the proper techniques for storing data, customizing user roles, and security best practices</li>
<li>Shares techniques for using custom post types and creating and using custom taxonomies</li>
<li>How to create plugins for WordPress Multisite networks</li>
<li>Integrate user and role management</li>
<li><strong>Explores the HTTP API, JavaScript and AJAX, Cron, the Rewrite API, and more</strong></li>
</ul>
<p>The authors went into so much detail that after reading it you really get start looking at WordPress as a full fledged application framework and not just a simple CMS to display your company portfolio. </p>
<p>Most other book to date that talked about WordPress Plugin Development went around coding examples and solving particular problems. That&#8217;s ok, but you&#8217;ll never have a birds eye view of the entire API ecosystem. This is where &#8220;<strong>Professional WordPress Plugin Development</strong>&#8221; shines. Each little api function that is available in WordPress is explained in a consistent way and also shows how it interacts with the rest of the system. </p>
<p>Another great thing is explaining <strong>WordPress plugin development best practices.</strong> If you don&#8217;t have a lot of experience with WordPress plugins and don&#8217;t have the time to really research how to do things you can end up writing code that can be handled by the WordPress API in such a fashion that&#8217;s future proof. Take for instance the Plugin Settings options &#8211; if you manage them through the API any future changes to the WordPress UI will be reflected in your plugin as well. </p>
<p>All in all this book is a <strong>MUST READ</strong> by all plugin developers and theme developers alike. If you ask me all the information in this book should be added in the Codex (although that wouldn&#8217;t be fair to the writers). So go ahead and <strong><a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_ss_tl?ie=UTF8&#038;tag=cozmoslabs-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0470916222">get your self a copy from Amazon</a></strong> and start reading it today. (You can get it as a Paperback or digital download &#8211; great for code copy&#038;paste)</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/671-multilingual-wordpress-wpml-review/' rel='bookmark' title='Multilingual WordPress &#8211; WPML Plugin Review'>Multilingual WordPress &#8211; WPML Plugin Review</a></li>
<li><a href='http://www.cozmoslabs.com/449-digital-experience-design-review-book/' rel='bookmark' title='&#8220;Digital Experience Design: Ideas, Industries, Interaction&#8221; &#8211; book review'>&#8220;Digital Experience Design: Ideas, Industries, Interaction&#8221; &#8211; book review</a></li>
<li><a href='http://www.cozmoslabs.com/120-interface-portability-in-web-development-the-next-big-step/' rel='bookmark' title='Front-end interface portability between CMS &#8211; the next BIG step in web-development?'>Front-end interface portability between CMS &#8211; the next BIG step in web-development?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1326-professional-wordpress-plugin-development-review/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cozy Child Theme</title>
		<link>http://www.cozmoslabs.com/1298-cozy-child-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cozy-child-theme</link>
		<comments>http://www.cozmoslabs.com/1298-cozy-child-theme/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 14:01:30 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1298</guid>
		<description><![CDATA[This elegant WordPress theme started as a custom project but ended up as a Child Theme for the Thematic Framework. It&#8217;s a warm design that makes you feel comfortable. In order to install it you have to download the Thematic Theme (from which this child theme inherits all of the functionality), upload both themes (Cozy [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This elegant WordPress theme started as a custom project but ended up as a Child Theme for the Thematic Framework.</p>
<p>It&#8217;s a warm design that makes you feel comfortable. </p>
<div id="attachment_1299" class="wp-caption alignnone" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2011/02/cozy_theme.png" alt="" title="cozy_theme" width="600" height="326" class="size-full wp-image-1299" /><p class="wp-caption-text">Cozy Child Theme for Thematic Framework</p></div>
<p><span id="more-1298"></span></p>
<p class="info-box">
In order to install it you have to download the <a href="http://wordpress.org/extend/themes/thematic">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (Cozy and Thematic) to your server in the themes folder AND THEN ACTIVATE the Cozy Theme.</p>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/cozy/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=13" title="Version 0.1 downloaded 549 times" ><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg" alt="Download Cozy Version 0.1" /></a>
</div>
<h3>The end of a good run</h3>
<p>This will probably be the last free child theme I&#8217;ll release for Thematic. The last couple of years have been filed with experiences I never thought possible and I&#8217;ve learned so much. However it&#8217;s time to move forward, leave Thematic behind and try a more sensible approach to theme development. I&#8217;m talking about creating Parent Themes and on top of them Child Themes and not try to solve every problem using Thematic (this is better explained by <a href="http://justintadlock.com/archives/2010/08/16/frameworks-parent-child-and-grandchild-themes">Justin Tadlock</a>) </p>
<p>This doesn&#8217;t mean I&#8217;ll stop releasing themes. On the contrary I look forward adding a couple new free designs that can be used by the community.</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1298-cozy-child-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>QandaPress, a Q&amp;A platform based on WordPress</title>
		<link>http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=qandapress-a-qa-platform-based-on-wordpress</link>
		<comments>http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 10:21:29 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[q&a]]></category>
		<category><![CDATA[q&a wordpress]]></category>
		<category><![CDATA[qandapress]]></category>
		<category><![CDATA[question&answers]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1246</guid>
		<description><![CDATA[During the last couple of months we received several requests from our friends and clients, mainly professional bloggers, who were permanently seeking solutions to expand their blog audience. They wanted a tool to help them grow their reader base and make the content become more socially engaging. One of the things that got to our [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/527-wordpress-as-a-social-platform/' rel='bookmark' title='WordPress as a social platform'>WordPress as a social platform</a></li>
<li><a href='http://www.cozmoslabs.com/1667-wordpress-automatic-updates-based-on-folder-name-is-that-a-problem/' rel='bookmark' title='WordPress Automatic Updates Based on Folder Name. Is That a Problem?'>WordPress Automatic Updates Based on Folder Name. Is That a Problem?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>During the last couple of months we received several requests from our friends and clients, mainly professional bloggers, who were permanently seeking solutions to expand their blog audience.<br />
They wanted a tool to help them grow their reader base and make the content become more socially engaging. One of the things that got to our ears was a Q&#038;A platform, with some built in game mechanics. A way in which the readers could interact by adding another type of content to the blog.</p>
<p>So the need was for a very simple way to create a Q&#038;A website using WordPress. And this is how <a href="http://qandapress.com"><strong>QandaPress</strong></a> was born.</p>
<div id="attachment_1270" class="wp-caption alignnone" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/qandapress.jpg" alt="" title="qandapress" width="600" height="436" class="size-full wp-image-1270" /><p class="wp-caption-text">QandaPress - Build your own Q&#038;A community </p></div>
<p>QandaPress makes it easy to build a community around your website. Here are some of its features:</p>
<ul>
<li>It is <strong>built on WordPress</strong>, so learning something new is out of the question. You will manage your Q&#038;A platform in a very familiar environment. </li>
<li><strong>Easy to monetize</strong>. Multiple ad zones where you can insert your own ads.</li>
<li><strong>Problem free.</strong> All technical details are taken care of. No need to manage another WordPress installation.</li>
<li><strong>Scalable</strong>. Everything is run on our own super-optimized servers. You don&#8217;t have to worry about downtime due to traffic spikes.</li>
</ul>
<p>You can find some other cool features on the <a href="http://qandapress.com">QandaPress website</a>. Feel free to use the comment section and tell us what you think about it and what other features you would like to be added.</p>
<p>Also the first persons who will <a href="http://qandapress.com/sign-up/">apply</a> for the QandaPress private beta by December 1&#8242;st, will get an all time 30% discount subscription rate.</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/527-wordpress-as-a-social-platform/' rel='bookmark' title='WordPress as a social platform'>WordPress as a social platform</a></li>
<li><a href='http://www.cozmoslabs.com/1667-wordpress-automatic-updates-based-on-folder-name-is-that-a-problem/' rel='bookmark' title='WordPress Automatic Updates Based on Folder Name. Is That a Problem?'>WordPress Automatic Updates Based on Folder Name. Is That a Problem?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Charisma, Free Genesis Child Theme</title>
		<link>http://www.cozmoslabs.com/1081-charisma-free-genesis-child-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=charisma-free-genesis-child-theme</link>
		<comments>http://www.cozmoslabs.com/1081-charisma-free-genesis-child-theme/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 10:37:21 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Charisma]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1081</guid>
		<description><![CDATA[Charisma is a free Genesis child theme that will work perfectly for your WordPress personal blog. When I started designing Charisma I had in mind an elegant, simple, well structured theme which highlights the content and gives the user a pleasurable reading experience. The home page has a beautiful slider, and below it lists the [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/1298-cozy-child-theme/' rel='bookmark' title='Cozy Child Theme'>Cozy Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Charisma is a <strong>free Genesis child theme</strong> that will work perfectly for your WordPress personal blog.</p>
<p>When I started designing Charisma I had in mind an elegant, simple, well structured theme which highlights the content and gives the user a pleasurable reading experience.</p>
<div id="attachment_1112" class="wp-caption alignnone" style="width: 610px"><img class="size-full wp-image-1112" title="charisma" src="http://www.cozmoslabs.com/wp-content/uploads/2010/06/charisma.jpg" alt="" width="600" height="389" /><p class="wp-caption-text">Charisma, Free Genesis Child Theme</p></div>
<p><span id="more-1081"></span></p>
<p>The home page has a beautiful slider, and below it lists the most recent post titles. I created a new widget area that appears only on the homepage and you can add the default featured articles widget or featured page widget from Genesis Theme Framework.</p>
<p>So why Genesis you might ask? To be honest I wanted to experiment with frameworks other then Thematic to see how they work. I&#8217;ve used bits from Hybrid in the past and this is how I&#8217;ve tested Genesis, by building a child theme for it.</p>
<p>To be honest I was pleasantly surprised.  The code is really easy to understand, there are plenty of tutorials on the support forums, the css is straight forward and the html really let&#8217;s you create any layout without any problems. I&#8217;ve also liked the widgets Genesis comes with by default. They speed up things quite a lot.</p>
<p class="info-box">Charisma was built on top of the Genesis framework, so it inherits all it&#8217;s functionality. In order to install it you have to buy the <a href="http://www.shareasale.com/r.cfm?b=242694&#038;u=468222&#038;m=28169&#038;urllink=&#038;afftrack=">Genesis Theme</a> (this is an affiliate link), upload both themes (Charisma and Genesis) to your server in the themes folder AND THEN ACTIVATE the Charisma theme.</p>
<div class="preview_download"><a href="http://www.cozmoslabs.com/project/charisma/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview" /></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=12" title="Version 1.0 downloaded 1387 times" ><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg" alt="Download Charisma Version 1.0" /></a></div>
<h2>Support</h2>
<p>If you have any question regarding this theme you can always visit the Cozmoslabs forums for help (<a href="http://www.cozmoslabs.com/forums/forum/charisma">www.cozmoslabs.com/forums/forum/charisma</a>).</p>
<p>However, for questions regarding the Genesis Theme Framework please make use of the <a href="http://www.studiopress.com/support/">excellent support StudioPress</a> provides.</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/1298-cozy-child-theme/' rel='bookmark' title='Cozy Child Theme'>Cozy Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1081-charisma-free-genesis-child-theme/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>WordPress user registration template and custom user profile fields</title>
		<link>http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-user-registration-template-and-custom-user-profile-fields</link>
		<comments>http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/#comments</comments>
		<pubDate>Mon, 31 May 2010 12:14:19 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[custom user profiles]]></category>
		<category><![CDATA[frontend user registration]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1012</guid>
		<description><![CDATA[UPDATE This tutorial, while providing a good introduction to the concept, hasn&#8217;t been updated since it was written. To this end we&#8217;ve written a free plugin that let&#8217;s you add all these front-end forms through the easy use of shortcodes: Profile Builder I&#8217;ve been playing a lot lately with the user registration template (I&#8217;ve used [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/' rel='bookmark' title='WordPress Profile Builder: a front-end user registration, login and edit-profile plugin'>WordPress Profile Builder: a front-end user registration, login and edit-profile plugin</a></li>
<li><a href='http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/' rel='bookmark' title='Profile Builder Pro is WordPress Registration Done Right'>Profile Builder Pro is WordPress Registration Done Right</a></li>
<li><a href='http://www.cozmoslabs.com/48-10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="update">
<h3 style="text-align:center;">UPDATE</h3>
<p>This tutorial, while providing a good introduction to the concept, hasn&#8217;t been updated since it was written. </p>
<p>To this end we&#8217;ve written a free plugin that let&#8217;s you add all these front-end forms through the easy use of shortcodes: <a href="http://www.cozmoslabs.com/wordpress-profile-builder/"><strong>Profile Builder</strong></a></p>
</div>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/05/ostrich.jpg" alt="" title="ostrich" width="300" height="200" class="alignright size-full wp-image-1036" /></p>
<p>I&#8217;ve been playing a lot lately with the <strong>user registration template</strong> (I&#8217;ve used it as a great starting point) from Justin Tadlock&#8217;s <a href="http://themehybrid.com/archives/2010/01/12-new-hybrid-theme-page-templates">ThemeHybrid</a> and extended it to support <strong>custom user profiles</strong>.</p>
<p>Unfortunately, user management in WordPress isn&#8217;t the sharpest tool in the shed. You have a lot of functionality for the users in the backend, but if you want to do extend that functionality to the front-end you&#8217;re in for a rough time.</p>
<p>There are some really nice tutorials that can help you add custom user profile fields in the backend, but if you try to do it to the frontend through a custom page template you&#8217;ll find your self validating a lot of fields and there&#8217;s even a twist to the entire process that makes things interesting.</p>
<p><span id="more-1012"></span></p>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/thematic-frontend-profile/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=11" title="Version 1.0 downloaded 5570 times" ><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg" alt="Download Thematic Frontend Profile Version 1.0" /></a>
</div>
<h3>Yet Another Thematic Childtheme</h3>
<p>For the purpose of this tutorial will create a new <a href="http://themeshaper.com/thematic/">Thematic</a> child theme. Most of the code will go into the functions.php file and the individual template pages. If you&#8217;re new to this just use the child theme that comes with Thematic.</p>
<p>So let us have a look at what we&#8217;re building.</p>
<h3>WordPress Extra Profile Fields</h3>
<p>First of all, we want <strong>some extra profile fields in the back-end</strong>. We do this by simply adding input fields to the following two hooks: <code>show_user_profile</code> and <code>edit_user_profile</code>. We need both hooks because we want the users to be able to edit their own extra profile fields <em>and</em> we also want the admin to be able to edit other user&#8217;s extra profile fields.</p>

<div class="wp_codebox"><table><tr id="p101211"><td class="code" id="p1012code11"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_extra_profile_fields'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_extra_profile_fields'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> show_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo esc_attr( get_the_author_meta( 'twitter', <span style="color: #006699; font-weight: bold;">$user-&gt;ID</span> ) ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>In addition to this, we also need to save our data. This is done by hooking to <code>personal_options_update</code> and <code>edit_user_profile_update</code>. Both hooks are needed for the same reason two hooks were needed when adding the extra input fields.</p>

<div class="wp_codebox"><table><tr id="p101212"><td class="code" id="p1012code12"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'personal_options_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> save_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>This is what your entire functions.php file should contain:</p>

<div class="wp_codebox"><table><tr id="p101213"><td class="code" id="p1012code13"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//</span>
<span style="color: #666666; font-style: italic;">//  Custom Child Theme Functions</span>
<span style="color: #666666; font-style: italic;">//</span>
&nbsp;
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_extra_profile_fields'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_extra_profile_fields'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> show_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Extra Profile Information'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>table <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-table&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo esc_attr( get_the_author_meta( 'twitter', <span style="color: #006699; font-weight: bold;">$user-&gt;ID</span> ) ); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;regular-text&quot;</span> <span style="color: #339933;">/&gt;&lt;</span>br <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Please enter your Twitter account.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;birth&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Year of birth'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
				<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
				<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1900</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">2000</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
					<span style="color: #000088;">$years</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;select name=&quot;birth&quot;&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Select Year&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$years</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
						<span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">==</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'selected=&quot;slelected&quot;'</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/select&gt;'</span><span style="color: #339933;">;</span>
				<span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Please select the year of your birth.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'What are your hobbies?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$hobbies</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;videogames&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;videogames&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Video Games'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabotaging Capitalism'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Watching TV'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>			
		<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Do you agree that WordPress is the greatest thing since bread came sliced?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$agree</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yes&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$agree</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'yes'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yes'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;no&quot;</span>  name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$agree</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'no'</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>			
		<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'personal_options_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> save_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'birth'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>The templates</h3>
<h4>Edit Profile Template</h4>
<p>All right. With this out of the way, we can start working on our awesome templates. Let&#8217;s start with the <strong>Edit Profile Template</strong>. First of all, we need a form with all the input fields (both the default ones and our extra fields).</p>

<div class="wp_codebox"><table><tr id="p101214"><td class="code" id="p1012code14"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-twitter&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span>Twitter<span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'twitter', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>twitter <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-submit&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updateuser&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updateuser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Update&quot;</span> <span style="color: #339933;">/&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'update-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;update-user&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Then, we need to update the user meta-data accordingly when needed. All can be summed up to the following snippet:</p>

<div class="wp_codebox"><table><tr id="p101215"><td class="code" id="p1012code15"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #666666; font-style: italic;">/* Get user info. */</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">;</span>
	get_currentuserinfo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* Load the registration file. */</span>
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* If profile was saved, update profile. */</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'update-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Notice that loading the registration file found in <code>wp-includes</code> is an absolute must.</p>
<p><strong>Here is the entire edit profile page template for your Thematic Child Theme.</strong></p>

<div class="wp_codebox"><table><tr id="p101216"><td class="code" id="p1012code16"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
 * Template Name: Edit Profile Page
 *
 */</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* Get user info. */</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">,</span> <span style="color: #000088;">$wp_roles</span><span style="color: #339933;">;</span>
	get_currentuserinfo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* Load the registration file. */</span>
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-admin/includes'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/template.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// this is only for the selected() function</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* If profile was saved, update profile. */</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'update-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">/* Update user password. */</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass1'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass2'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass1'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass2'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
				wp_update_user<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'ID'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_pass'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass1'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">else</span>
				<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'The passwords you entered do not match.  Your password was not updated.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">/* Update user information. */</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'first_name'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'first_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'last_name'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'last_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nickname'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'nickname'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nickname'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'display_name'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_email'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ttp://'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_url'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">else</span>
			update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_url'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://'</span> <span style="color: #339933;">.</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'aim'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'aim'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'yim'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'yim'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'jabber'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'jabber'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'description'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Extra Profile Information</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'birth'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
		<span style="color: #666666; font-style: italic;">/* Redirect so the page will show updated info. */</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			wp_redirect<span style="color: #009900;">&#40;</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the header.php</span>
    get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content above #container</span>
    thematic_abovecontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">// calling the widget area 'page-top'</span>
            get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-top'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post-&lt;?php the_ID(); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php thematic_post_class() ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
                <span style="color: #666666; font-style: italic;">// creating the post header</span>
                thematic_postheader<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;entry-content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
                    the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;div class='page-link'&gt;&quot;</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    edit_post_link<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;span class=&quot;edit-link&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>post <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> EDIT PROFILE STARTS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;warning&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You must be logged in to edit your profile.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>warning <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p class=&quot;error&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$error</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;edituser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-forms&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Name<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'First Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'first_name', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>first_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Last Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'last_name', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>last_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Nickname (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'nickname', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>nickname <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Display Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>select name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display_name&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #000088;">$public_display</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_nickname'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nickname</span><span style="color: #339933;">;</span>
						<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_username'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_login</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_firstname'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_lastname'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
							<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_firstlast'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span><span style="color: #339933;">;</span>
							<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_lastfirst'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$public_display</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #666666; font-style: italic;">// Only add this if it isn't duplicated elsewhere</span>
							<span style="color: #000088;">$public_display</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'display_displayname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$public_display</span><span style="color: #339933;">;</span>
						<span style="color: #000088;">$public_display</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array_map"><span style="color: #990000;">array_map</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'trim'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$public_display</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$public_display</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$item</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
						<span style="color: #339933;">&lt;</span>option id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$id</span>; ?&gt;&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo esc_attr(<span style="color: #006699; font-weight: bold;">$item</span>); ?&gt;&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> selected<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$item</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$item</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #009900;">&#125;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;/</span>select<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>display_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Contact Info<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-email&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'E-mail (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'user_email', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>email <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-website&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Website'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'user_url', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>website <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-aim&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AIM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'aim', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>aim <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-yim&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yahoo IM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'yim', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>yim <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-jabber&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jabber / Google Talk'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'jabber', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>jabber <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>About Yourself<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-description&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Biographical Info'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>textarea <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> rows<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;5&quot;</span> cols<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;30&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php <span style="color: #b1b100;">echo</span> the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'description'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>textarea<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>description <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-password&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass1&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'New Password'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass1&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass1&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>password <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-password&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass2&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Repeat Password'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass2&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass2&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>password <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Extra Profile Information<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-twitter&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'twitter', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>twitter <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-birth&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;birth&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Year of birth'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1900</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">2000</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$years</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
&nbsp;
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;select name=&quot;birth&quot;&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Select Year&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$years</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
								<span style="color: #000088;">$the_year</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$year</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$the_year</span> <span style="color: #009900;">&#41;</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'selected=&quot;slelected&quot;'</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">else</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #009900;">&#125;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/select&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>birth <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-hobbies&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'What are your hobbies?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #000088;">$hobbies</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies-type-list&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;videogames&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;videogames&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Video Games'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabotaging Capitalism'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Watching TV'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>hobbies <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-agree&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Do you agree that WordPress is the greatest thing since bread came sliced?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$agree</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yes&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$agree</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'yes'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yes'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;no&quot;</span>  name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$agree</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'no'</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>agree <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-submit&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$referer</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updateuser&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updateuser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php _e('Update', 'frontendprofile'); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'update-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;update-user&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#edituser --&gt;
</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> EDIT PROFILE ENDS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> 
            thematic_comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add a key/value of &quot;comments&quot; to enable comments on pages!</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// calling the widget area 'page-bottom'</span>
        get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-bottom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#content --&gt;
</span>	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#container --&gt;
</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content below #container</span>
    thematic_belowcontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the standard sidebar </span>
    thematic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling footer.php</span>
    get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>User Registration Page Template</h4>
<p>Next, let&#8217;s take a look at the <strong>Register Template</strong>. Similar to the Edit Profile Template, we need a form with all our input fields.</p>

<div class="wp_codebox"><table><tr id="p101217"><td class="code" id="p1012code17"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;error&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>error <span style="color: #339933;">--&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-forms&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://&lt;?php echo <span style="color: #006699; font-weight: bold;">$_SERVER</span>['HTTP_HOST'] . <span style="color: #006699; font-weight: bold;">$_SERVER</span>['REQUEST_URI']; ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-username&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Username (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['user_name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>username <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-email&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'E-mail (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['email'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>email <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-twitter&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['twitter'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>twitter <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-submit&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;addusersub&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'frontendprofile'); else _e('Register', 'frontendprofile'); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'add-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#adduser --&gt;</span></pre></td></tr></table></div>

<p><strong>Then, when a registration actually occurs, we need to:</strong></p>
<ul>
<li>create a user with all the default fields of meta-data;</li>
<li>separately add the extra meta-data fields;</li>
<li>mail the password to the new user.</li>
</ul>
<p>Reduced to a bare minimum, this is how the code looks like:</p>

<div class="wp_codebox"><table><tr id="p101218"><td class="code" id="p1012code18"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/* Load registration file. */</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* If user registered, input info. */</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'adduser'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$user_pass</span> <span style="color: #339933;">=</span> wp_generate_password<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$userdata</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'user_pass'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$user_pass</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_login'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_email'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_login'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'A username is required for registration.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> username_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_login'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry, that username already exists!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_email<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You must enter a valid email address.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> email_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry, that email address is already used!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$new_user</span> <span style="color: #339933;">=</span> wp_insert_user<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$userdata</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		wp_new_user_notification<span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_pass</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Notice the included error reporting features.</p>
<p>Another thing that we should mention is the <code>update_usermeta</code> function. We need to call it because <code>wp_insert_user</code> function doesn&#8217;t take into account extra fields. </p>
<p><strong>Here is the entire registration page template for your Thematic Child Theme.</strong></p>

<div class="wp_codebox"><table><tr id="p101219"><td class="code" id="p1012code19"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
 * Template Name: Register Page
 *
 */</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Load registration file. */</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Check if users can register. */</span>
<span style="color: #000088;">$registration</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'users_can_register'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* If user registered, input info. */</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'adduser'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$user_pass</span> <span style="color: #339933;">=</span> wp_generate_password<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$userdata</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'user_pass'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$user_pass</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_login'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'first_name'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'first_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'last_name'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'last_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'nickname'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nickname'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_email'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_url'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'aim'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'aim'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'yim'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'yim'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'jabber'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'jabber'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'role'</span> <span style="color: #339933;">=&gt;</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'default_role'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_login'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'A username is required for registration.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> username_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_login'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry, that username already exists!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_email<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You must enter a valid email address.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> email_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry, that email address is already used!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$new_user</span> <span style="color: #339933;">=</span> wp_insert_user<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$userdata</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		wp_new_user_notification<span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_pass</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span>   esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'birth'</span><span style="color: #009900;">&#93;</span>    <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span>    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span>   esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span>    <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the header.php</span>
    get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content above #container</span>
    thematic_abovecontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">// calling the widget area 'page-top'</span>
            get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-top'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post-&lt;?php the_ID(); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php thematic_post_class() ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
                <span style="color: #666666; font-style: italic;">// creating the post header</span>
                thematic_postheader<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;entry-content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
                    the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;div class='page-link'&gt;&quot;</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    edit_post_link<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;span class=&quot;edit-link&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>post <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> REGISTER FORM STARTS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;log-in-out alert&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You are logged in as &lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%2$s&lt;/a&gt;.  You don\'t need another account.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_author_posts_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$curauth</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_identity</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo wp_logout_url( get_permalink() ); ?&gt;&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php _e('Log out of this account', 'frontendprofile'); ?&gt;&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Logout &amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>log<span style="color: #339933;">-</span>in<span style="color: #339933;">-</span>out <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
					<a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'A user account for %1$s has been created.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user-name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">else</span> 
					<a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Thank you for registering, %1$s.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user-name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;br/&gt;Please check your email address. That\'s where you\'ll recieve your login password.&lt;br/&gt; (It might go into your spam folder)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;error&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>error <span style="color: #339933;">--&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$registration</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Users can register themselves or you can manually create users here.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Users cannot currently register themselves, but you can manually create users here.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$registration</span> <span style="color: #339933;">||</span> current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-forms&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://&lt;?php echo <span style="color: #006699; font-weight: bold;">$_SERVER</span>['HTTP_HOST'] . <span style="color: #006699; font-weight: bold;">$_SERVER</span>['REQUEST_URI']; ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Name<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-username&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Username (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['user_name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>username <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'First Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['first_name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>first_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Last Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['last_name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>last_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Nickname'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['nickname'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>nickname <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Contact Info<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-email&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'E-mail (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['email'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>email <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-website&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Website'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['website'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>website <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-aim&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AIM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['aim'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>aim <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-yim&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yahoo IM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['yim'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>yim <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-jabber&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jabber / Google Talk'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['jabber'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>jabber <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>About Yourself<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-description&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Biographical Info'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>textarea <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> rows<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;5&quot;</span> cols<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;30&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> wp_specialchars<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>textarea<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>description <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Extra Profile Information<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-twitter&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['twitter'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>twitter <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-birth&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;birth&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Year of birth'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1900</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">2000</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$years</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
&nbsp;
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;select name=&quot;birth&quot;&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Select Year&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$years</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
								<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$year</span><span style="color: #339933;">==</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'birth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'selected=&quot;slelected&quot;'</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">else</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #009900;">&#125;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/select&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>birth <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-hobbies&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'What are your hobbies?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #000088;">$hobbies</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies-type-list&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;videogames&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;videogames&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Video Games'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabotaging Capitalism'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Watching TV'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>hobbies <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-agree&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Do you agree that WordPress is the greatest thing since bread came sliced?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$agree</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yes&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'yes'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yes'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;no&quot;</span>  name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'no'</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>agree <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-submit&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$referer</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;addusersub&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'frontendprofile'); else _e('Register', 'frontendprofile'); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'add-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#adduser --&gt;
</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> REGISTER FORM ENDS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> 
            thematic_comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add a key/value of &quot;comments&quot; to enable comments on pages!</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// calling the widget area 'page-bottom'</span>
        get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-bottom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#content --&gt;
</span>	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#container --&gt;
</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content below #container</span>
    thematic_belowcontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the standard sidebar </span>
    thematic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling footer.php</span>
    get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h4>User Log-In Page Template</h4>
<p>The third and last template is the <strong>Log-In Template</strong>. Much of it was inspired by Justin Tadlock&#8217;s work and it basically consists of the form with the username and password fields and the <code>wp_signon()</code> function at the top that actually does all the dirty work.</p>

<div class="wp_codebox"><table><tr id="p101220"><td class="code" id="p1012code20"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
 * Template Name: Log In Page
 *
 */</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'log-in'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> wp_login<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user-name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> wp_signon<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'user_login'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user-name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'remember'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'remember-me'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the header.php</span>
    get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content above #container</span>
    thematic_abovecontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">// calling the widget area 'page-top'</span>
            get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-top'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post-&lt;?php the_ID(); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php thematic_post_class() ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
                <span style="color: #666666; font-style: italic;">// creating the post header</span>
                thematic_postheader<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;entry-content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
                    the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;div class='page-link'&gt;&quot;</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    edit_post_link<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;span class=&quot;edit-link&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>post <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> LOGIN STARTS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Already logged in ?&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$user_ID</span><span style="color: #339933;">;</span> <span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> get_userdata<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You are currently logged in as &lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%2$s&lt;/a&gt;.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_author_posts_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo wp_logout_url( get_permalink() ); ?&gt;&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php _e('Log out of this account', 'frontendprofile'); ?&gt;&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Log out &amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Successful login ?&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> get_userdata<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You have successfully logged in as &lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%2$s&lt;/a&gt;.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_author_posts_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Not logged in ?&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;error&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>error <span style="color: #339933;">--&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>form action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sign-in&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;login-form-username&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Username'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-name&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-name&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['user-name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>username <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;login-form-password&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Password'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> <span style="color: #339933;">/&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>password <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;login-form-submit&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php _e('Log in', 'frontendprofile'); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;remember-me checkbox&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;remember-me&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;remember-me&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;forever&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;remember-me&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Remember me'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;log-in&quot;</span> <span style="color: #339933;">/&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo get_option('siteurl');  ?&gt;/wp-login.php?action=lostpassword&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lost password?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>sign<span style="color: #339933;">-</span>in <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> LOGIN ENDS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> 
            thematic_comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add a key/value of &quot;comments&quot; to enable comments on pages!</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// calling the widget area 'page-bottom'</span>
        get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-bottom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#content --&gt;
</span>	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#container --&gt;
</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content below #container</span>
    thematic_belowcontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the standard sidebar </span>
    thematic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling footer.php</span>
    get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>Conclusions</h3>
<p>WordPress dose allow you to add any kind of fields to your user profile. It&#8217;s not very developer friendly and there&#8217;s a lot of validations that we need to do but it is possible and that&#8217;s all that matters if you ask me.</p>
<p>We need an UI in the core of WordPress for this, but probably we won&#8217;t have anything like this for quite a while. </p>
<p>The funny thing is that BuddyPress has a plugin that let&#8217;s you create <strong>extra user fields</strong> and displays them in the front end, but not in the backend. And we also have a plugin that is called Cimy User Extra Fields that creates the extra fields for the backend but it&#8217;s still more a developer&#8217;s tool and not that easy to use for the standard user. But there isn&#8217;t any real integration so that&#8217;s the bad thing. </p>
<p>The way this should work in an ideal word would be for us to have an UI in the backend and page templates that come with the default WordPress theme so developers can build on top of that (similar to the comments form).</p>
<h3>Extra Struff</h3>
<p>You can follow the tutorial to create your Extra User Fields or you can just preview / download the child theme directly and then make it fit your needs.</p>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/thematic-frontend-profile/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=11" title="Version 1.0 downloaded 5570 times" ><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg" alt="Download Thematic Frontend Profile Version 1.0" /></a>
</div>
<h3>Credits</h3>
<p><a href="http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/">http://dquinn.net</a><br />
<a href="http://blog.ftwr.co.uk/archives/2009/07/19/adding-extra-user-meta-fields/">http://blog.ftwr.co.uk</a><br />
<a href="http://rubenwoudsma.nl/wordpress-gebruikersprofiel-uitbreiden/">http://rubenwoudsma.nl</a><br />
<a href="http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields">http://justintadlock.com</a></p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/' rel='bookmark' title='WordPress Profile Builder: a front-end user registration, login and edit-profile plugin'>WordPress Profile Builder: a front-end user registration, login and edit-profile plugin</a></li>
<li><a href='http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/' rel='bookmark' title='Profile Builder Pro is WordPress Registration Done Right'>Profile Builder Pro is WordPress Registration Done Right</a></li>
<li><a href='http://www.cozmoslabs.com/48-10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/feed/</wfw:commentRss>
		<slash:comments>126</slash:comments>
		</item>
		<item>
		<title>Multilingual WordPress &#8211; WPML Plugin Review</title>
		<link>http://www.cozmoslabs.com/671-multilingual-wordpress-wpml-review/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=multilingual-wordpress-wpml-review</link>
		<comments>http://www.cozmoslabs.com/671-multilingual-wordpress-wpml-review/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 17:41:51 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[bilingual wordpress]]></category>
		<category><![CDATA[multilanguage]]></category>
		<category><![CDATA[multilingual]]></category>
		<category><![CDATA[multilingual wordpress]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=671</guid>
		<description><![CDATA[Photo by derSven ¶ One of the hardest things to do with WordPress is creating a multilingual blog / website that is easy to maintain and develop. My interest on the subject comes from the need of my customers for easy to maintain multilingual websites. This way they can extend their services to new markets. [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/228-multilanguage-solutions-wordpress-instalation/' rel='bookmark' title='Multilingual solutions for a wordpress installation'>Multilingual solutions for a wordpress installation</a></li>
<li><a href='http://www.cozmoslabs.com/1326-professional-wordpress-plugin-development-review/' rel='bookmark' title='Professional WordPress Plugin Development review'>Professional WordPress Plugin Development review</a></li>
<li><a href='http://www.cozmoslabs.com/665-members-wordpress-plugin-by-justin-tadlock/' rel='bookmark' title='Members: WordPress Plugin by Justin Tadlock'>Members: WordPress Plugin by Justin Tadlock</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage">
<img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/multilingual.jpg" alt="multilingual" title="multilingual" width="300" height="225" class="alignnone size-full wp-image-711" /></p>
<p>Photo by <a href="http://www.flickr.com/photos/dersven/" rel="nofollow">derSven ¶</a>
</div>
<p>One of the hardest things to do with WordPress is creating a <strong>multilingual blog / website</strong> that is easy to maintain and develop.</p>
<p>My interest on the subject comes from the need of my customers for easy to maintain multilingual websites. This way they can extend their services to new markets.</p>
<p>I&#8217;ve had this <a href="http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/">discussion in the past</a>, with a description of various plugins and methods to develop a multilingual WordPress blog / site.</p>
<p>In that article I&#8217;ve talked about the theory behind multilingual web-developement and mostly about the <strong>multilingual WordPress</strong> and four ways of implementing it:</p>
<ol>
<li><strong>The “Two-Tree” concept</strong> ( we use “language” categories )</li>
<li><strong>Automated translation</strong> (using google languages or babelfish)</li>
<li><strong>Manual translation</strong> using plugins ( I could only find one really good plugin that can do that so we’ll look into that)</li>
<li><strong>Semi-automated payed translation</strong>. (this is rather an ingenious concept and I believe the people who created the service will have a lot to gain from it)</li>
</ol>
<h3>Today we&#8217;ll talk about a new and really interesting <br/>WordPress multilingual plugin: <a href="http://wpml.org/?aid=8041&#038;affiliate_key=ZvLD8dbyMRus">WPML</a>.</h3>
<p>The interesting thing about this <strong>multilingual plugin</strong> is the way it organizes the information. It&#8217;s completely different from <a href="http://www.qianqin.de/qtranslate/">qTranslate</a> (that I presented in the previous multilingual blog post). Instead of using language tags (that separates the content in different languages), <strong>MPLM</strong> links one post in English to another post that will represent it&#8217;s translation in Spanish for example. This way you get to translate everything in a very clean way.</p>
<p><span id="more-671"></span></p>
<p>Beside this, there are more really cool features that help you get a complete translation done, like:</p>
<ul>
<li>Theme localization – Provide translation for texts that appear in your theme.</li>
<li>Professional translation – an optional service, built for people who want to have their site’s contents professionally translated.</li>
<li>Navigation – Control the appearance of site-wide navigation based on WordPress pages.</li>
<li>Sticky links – This is an essential function for running full websites with WordPress. It guarantees that links between pages can never break.</li>
<li>Home page link – All themes have links to the home page. This function will make that home page link point to the correct language.</li>
<li>Hard coded theme links – Many themes include hard-coded links. This will make these links language dependent so that the link text and the target match the display language.</li>
</ul>
<h2><strong>The Tutorial</strong> &#8211; Building a multilingual website from scratch with WordPress</h2>
<p>The best way to showcase the functionality of this plugin is creating a tutorial in which we&#8217;ll create our very own multilingual website.</p>
<p>For this I&#8217;ve installed a new <a href="http://www.cozmoslabs.com/projects/multilingual/">WordPress blog here</a>, installed our plugin <strong>(you can download and install it from <a href="http://wpml.org/?aid=8041&#038;affiliate_key=ZvLD8dbyMRus">here</a>)</strong> and the <a href="http://themeshaper.com/thematic/">Thematic</a> theme ( because I do like it a lot! )</p>
<p>So far so good. Next we&#8217;ll need to add some content to our new website. This is going to be a site about a fictional company called &#8220;Lettuce INC.&#8221; that produces 100% natural lettuce (Lactuca sativa). <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>We&#8217;ll have four pages:</strong> Home, About, Blog and Contact. Also we&#8217;ve selected the Home page to be a static one (as opposed to displaying our latest posts). You can do this from the admin panel, just go under <em>Settings → Reading</em>.</p>
<p><img class="aligncenter size-full wp-image-677" title="static_homepage" src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/static_homepage.png" alt="static_homepage" width="600" height="269" /></p>
<p>The available languages will be English and Romanian.</p>
<h3>Setting up WPML, the multilingual plugin for WordPress</h3>
<p>Before we can start translating anything we need to tell WPML what languages we&#8217;ll have on our site. So head over in the WordPress admin and select <em>WPLM → Languages</em>.</p>
<p><img class="aligncenter size-full wp-image-684" title="setup_wpml" src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/setup_wpml1.png" alt="setup_wpml" width="600" height="265" /></p>
<p>The next step lets us select the secondary languages for our site. I&#8217;ve selected Romanian.</p>
<p><img class="aligncenter size-full wp-image-686" title="select_lang" src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/select_lang.png" alt="select_lang" width="600" height="265" /></p>
<p>The third and final step to activating WPML consists of adding a language switched. This way the visitors will be able to easily select their preferred language. While available in the form of a widget, it&#8217;s also possible to insert it directly into the theme using the <em>icl_post_languages()</em> function, but this is outside the scope of the current tutorial.</p>
<p><img class="aligncenter size-full wp-image-688" title="language_switcher" src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/language_switcher.png" alt="language_switcher" width="600" height="265" /></p>
<h3>Translating our content</h3>
<p>Now that we&#8217;ve set up the plugin we can finally start translating our content. </p>
<p>We&#8217;ll start by translating the pages of our blog. To do so simply go to the edit pages admin panel in WordPress and there, we have a small &#8220;<strong>+</strong>&#8221; button that lets us translate individual pages.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/add_translation.jpg" alt="add_translation" title="add_translation" width="600" height="220" class="aligncenter size-full wp-image-694" /></p>
<p>This will create a new page for us where we can add the translated title, content, custom fields (if any) and basically anything needed for your page.</p>
<p><strong>Another way of generating the same result</strong> would be to open (or create a new page for that matter) any page and on the right side, <strong>above the Publishing box</strong>, we have the <strong>language box</strong>.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/language_box.jpg" alt="language_box" title="language_box" width="600" height="220" class="aligncenter size-full wp-image-695" /></p>
<h3>Translating the blog</h3>
<p>Similar to the pages we can translate blog posts.</p>
<p><strong>Also we can translate categories and tags.</strong> This is a really useful functionality that in my opinion makes this plugin complete.<br />
To do so we&#8217;ll go to the category page in the WordPress admin panel and click on the category that you want to translate. Then scroll to the bottom and in the Language box click &#8220;Add translation&#8221;.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/translate_category.jpg" alt="translate_category" title="translate_category" width="600" height="469" class="aligncenter size-full wp-image-697" /></p>
<h3>Translating various strings in WordPress like blog title, blog description or widgets</h3>
<p>Our next stop is the <strong>String Translation</strong> under the WPML tab.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/string_translation.jpg" alt="string_translation" title="string_translation" width="600" height="351" class="aligncenter size-full wp-image-701" /></p>
<p>You might want to &#8220;Save settings and rescan strings&#8221; first, just in case.</p>
<p>An interesting functionality here is the possibility to import/export .po files. The way this works is you export the English strings in .po format, insert them into PoEdit to translate them, export the Romanian .po files from PoEdit and then Import the translated file into WPML&#8230; <strong>Confused? </strong>Don&#8217;t worry&#8230; the only reason you might use this is if you need to hire someone else to translate your site but you don&#8217;t want to give them access to the WordPress backed to do the translation!</p>
<h3>Theme translation</h3>
<p>The only thing left for us now is to translate our theme. </p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/theme_translation.jpg" alt="theme_translation" title="theme_translation" width="600" height="351" class="aligncenter size-full wp-image-704" /></p>
<p>There are two way of doing this:</p>
<ul>
<li><strong>Translate the theme by WPML.</strong> <br />
WPML will add the theme&#8217;s texts to the string translation page, where you can enter translations.</li>
<li><strong>Using a .mo file in the theme directory.</strong> <br />
Include the theme&#8217;s .mo files in the theme&#8217;s folder and WPML will load the right file for each language.</li>
</ul>
<p>Both are good ways&#8230; I&#8217;ve mentioned in the beginning that I&#8217;ve chosen Thematic for a reason and that reason is that it&#8217;s localized in a lot of languages&#8230; 13 to be exact (lucky number <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). This means if your needed language is between those 13 then you don&#8217;t have to translate your theme.</p>
<h1>Conclusions</h1>
<h3>What I like</h3>
<ul>
<li>It&#8217;s the first and only really complete multilingual plugin for WordPress</li>
<li>You can easily translate any page, post, widget, theme text, blog string, plugin, etc.</li>
<li>Professional translation. This is how the WPML team makes money! They offer the possibility to automatically translate your blog without touching a single string. This is done by real translators (no robots at the end of the line) so you get really good quality .</li>
<li>Comments translation. So if you really want to take your multilingual blog to the next level then comments translation is the way to go.</li>
</ul>
<h3>What I didn&#8217;t like</h3>
<ul>
<li>Ok&#8230; Call me picky&#8230; but<strong> PLEASE transform the &#8220;Advanced »&#8221; link into a BIG BUTTON in the Languages Section in WPML.</strong> I&#8217;ve searched for something like 2 hours for it. I thought it was removed or something in the latest version! I mean that&#8217;s where all the good stuff is, like selecting the URL format and admin language!</li>
<li>The information on the WPML.org website is&#8230; terribly unorganized&#8230; there is a lot of good info there, just that it&#8217;s all over the place. There is a really informative <a href="http://forum.wpml.org/">forum</a>&#8230; but there is no link to the forum in the main menu! You have to click the main support page and there you have a link to the forum. Not user friendly at all.</li>
</ul>
<h3>Final thoughts</h3>
<p><strong>The <a href="http://wpml.org/?aid=8041&#038;affiliate_key=ZvLD8dbyMRus">WPML plugin</a> is genius!</strong> It&#8217;s the best multilingual plugin for WordPress there is. As you could see the only things that I didn&#8217;t like were simple UI issues! But the core of the plugin is rock solid and the functionality it provides it&#8217;s just unprecedented! I wish the WPML team best of luck and congratulations for this really, really good multilingual plugin for WordPress! Keep up the good work! </p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/228-multilanguage-solutions-wordpress-instalation/' rel='bookmark' title='Multilingual solutions for a wordpress installation'>Multilingual solutions for a wordpress installation</a></li>
<li><a href='http://www.cozmoslabs.com/1326-professional-wordpress-plugin-development-review/' rel='bookmark' title='Professional WordPress Plugin Development review'>Professional WordPress Plugin Development review</a></li>
<li><a href='http://www.cozmoslabs.com/665-members-wordpress-plugin-by-justin-tadlock/' rel='bookmark' title='Members: WordPress Plugin by Justin Tadlock'>Members: WordPress Plugin by Justin Tadlock</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/671-multilingual-wordpress-wpml-review/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>Early Morning Child Theme</title>
		<link>http://www.cozmoslabs.com/620-early-morning-child-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=early-morning-child-theme</link>
		<comments>http://www.cozmoslabs.com/620-early-morning-child-theme/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 10:54:25 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[thematic child theme]]></category>
		<category><![CDATA[wordpress theme design]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=620</guid>
		<description><![CDATA[This elegant WordPress theme was inspired by the colors of the early morning as I see them from my window. It&#8217;s light, elegant and pleasantly surprising. This theme doesn&#8217;t scream at you, instead it takes a step back and lets the user read. Please don&#8217;t spoil it by putting ads on it! You also have [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1287-all-child-themes-got-updated/' rel='bookmark' title='All Child Themes got updated'>All Child Themes got updated</a></li>
<li><a href='http://www.cozmoslabs.com/1298-cozy-child-theme/' rel='bookmark' title='Cozy Child Theme'>Cozy Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This elegant WordPress theme was inspired by the colors of the early morning as I see them from my window. It&#8217;s light, elegant and pleasantly surprising.</p>
<p>This theme doesn&#8217;t scream at you, instead it takes a step back and lets the user read. Please don&#8217;t spoil it by putting ads on it!</p>
<div id="attachment_624" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/early-morning1.jpg" alt="Early Morning - A refreshing child theme for Thematic" title="early-morning" width="600" height="326" class="size-full wp-image-624" /><p class="wp-caption-text">Early Morning - A refreshing child theme for Thematic</p></div>
<p><span id="more-620"></span></p>
<h2>You also have some nifty options:</h2>
<ul>
<li>You can upload your own logo</li>
<li>It comes with it&#8217;s own custom designed Twitter widget, so your visitors can see what you&#8217;re doing from your blog</li>
<li>If green isn&#8217;t your style, it comes with 5 background options that you can select from the <strong>Early Morning Theme Options</strong> (Green, Turquoise, Brick Red, Gray and Black)</li>
<li>Has a one column page template and archive template</li>
<li>It&#8217;s been tested and works on Firefox 3.5, Safari 4, Opera 9, Chrome, IE7, IE8</li>
</ul>
<p class="info-box">
In order to install it you have to download the <a href="http://themeshaper.com/thematic/">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (Early Morning and Thematic) to your server in the themes folder AND THEN ACTIVATE the Early Morning Theme.
</p>
<div class="preview_download">
<a href="http://www.cozmoslabs.com/projects/early/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=7" title="Version 0.4 downloaded 9963 times" ><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg" alt="Download Early Morning Version 0.4" /></a>
</div>
<div class="preview_download">
Inspired by: <a href="http://www.adrianpelletier.com/">Adrian Pelletier</a>
</div>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1287-all-child-themes-got-updated/' rel='bookmark' title='All Child Themes got updated'>All Child Themes got updated</a></li>
<li><a href='http://www.cozmoslabs.com/1298-cozy-child-theme/' rel='bookmark' title='Cozy Child Theme'>Cozy Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/620-early-morning-child-theme/feed/</wfw:commentRss>
		<slash:comments>171</slash:comments>
		</item>
		<item>
		<title>WordPress as a social platform</title>
		<link>http://www.cozmoslabs.com/527-wordpress-as-a-social-platform/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-as-a-social-platform</link>
		<comments>http://www.cozmoslabs.com/527-wordpress-as-a-social-platform/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 06:46:22 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[social network]]></category>
		<category><![CDATA[social platform]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=527</guid>
		<description><![CDATA[WordPress started in 2003. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day. But you already knew that! By itself this blogging tool used to be just that: a way to put [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/' rel='bookmark' title='QandaPress, a Q&amp;A platform based on WordPress'>QandaPress, a Q&#038;A platform based on WordPress</a></li>
<li><a href='http://www.cozmoslabs.com/1664-what-is-wordpress/' rel='bookmark' title='What Is WordPress?'>What Is WordPress?</a></li>
<li><a href='http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_548" class="wp-caption alignright" style="width: 310px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/06/wordpress_social-300x202.gif" alt="Wordpress as a social platform" title="wordpress_social" width="300" height="202" class="size-medium wp-image-548" /><p class="wp-caption-text">Wordpress as a social platform</p></div>
<p>WordPress started in 2003. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day. But you already knew that! </p>
<p>By itself this blogging tool used to be just that: a way to put your thoughts out there, so anyone with a internet connection could read it.  But WordPress is not just about blogging, at least not anymore. While still limited in terms of &#8220;out of the box&#8221; functionality compared with other CMS out there, WordPress managed to shine thought it&#8217;s plugins and themes.</p>
<p><span id="more-527"></span></p>
<p>Right now WordPress can be a <a href="http://bbpress.org/">forum</a>, <a href="http://mu.wordpress.org/">multi blogs platform</a>, <a href="http://buddypress.org/">social media platform</a>, <a href="http://en.blog.wordpress.com/2009/03/11/p2-the-new-prologue/">microblog</a>, <a href="http://bmpress.org/">social bookmarking</a> and these are just a few of the possibilities.</p>
<p>WordPress is slowly making it&#8217;s way into the corporate world as well: Yahoo, CNN, New York Times, Ford, Nike are just a few of big names that implemented it for it&#8217;s ease of use, fast development times, cost reduction and easy maintenance of the platform. Oh&#8230; and <a href="http://markjaquith.wordpress.com/2008/08/18/us-government-agencies-using-wordpress/">U.S. Government Agencies are also using WordPress</a>.</p>
<p>So where do we go from here? Recently it was announced WordPress to <a href="http://www.wptavern.com/to-merge-or-not-to-merge">merge</a> with WordPress MU. This will probably appear with the 3.0 launch. This seams to be just one of the big steps towards a social web platform. The next step will probably be to integrate more social media features from <a href="http://buddypress.org/">BuddyPress</a>. </p>
<p>The power of a blog is in its network of users. Since web users are becoming accustomed to a culture of participation, publishers will look to include tools that will better facilitate the conversation. Tools like user profile pages and groups from BuddyPress will make a good additions to blogs. An issue could be the &#8220;yet another account and password&#8221; problem but solutions like <a href="http://oauth.net/">oAuth</a> or using accounts from other more prestigious social networks (login in with your <a href="http://www.baekdal.com/articles/Technology/socializing-baekdal/">facebook or google account</a>) will help the transition from simple comments to complex communication. </p>
<p>While all these extra features mean nothing for end users that just wants to blog (and for which the WordPress was created initially) they will mean the world for power bloggers, web-developers and web entrepreneurs by transforming expensive and time consuming activities into cheap and fast ones. Implementing ideas, interconnecting social networks, creating learning platforms, building multilingual information hubs, using community feedback to build a better business, all this will get easier to implement (for the web-developer) and use (for the end user).</p>
<p>Another interesting thing happening in the WordPress community is the adoption of GPL licensing for payed theme clubs that previously used proprietary licenses. In my opinion, this is because <a href="http://ma.tt/">Matt Mullenweg</a> started to pressure non-GPL theme clubs and designers. He did this by voicing his opinion, removing all non-GPL themes and theme designers that have <a href="http://www.wptavern.com/forum/themes-templates/446-one-peeved-off-theme-maker.html">even the slightest contact</a> with non-GPL themes from the <a href="http://wordpress.org/extend/themes/">Theme Repository</a> and by making it easy to install themes directly from the backend of WordPress. While this can be debated indefinitely one thing is sure: it&#8217;s good for the end user and the community! For WordPress as a platform this is even better since most of these themes are good quality and people can now reuse the professionally developed code in future projects without the fear of legal repercussions.</p>
<p>WordPress definitely has the opportunity to become a great social platform. The same way blogging changed the publishing world it&#8217;s fair to say that social networking will change the blogging platform to facilitate communication and collaboration. It&#8217;s appropriate. </p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/' rel='bookmark' title='QandaPress, a Q&amp;A platform based on WordPress'>QandaPress, a Q&#038;A platform based on WordPress</a></li>
<li><a href='http://www.cozmoslabs.com/1664-what-is-wordpress/' rel='bookmark' title='What Is WordPress?'>What Is WordPress?</a></li>
<li><a href='http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/527-wordpress-as-a-social-platform/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Content design &#8211; what makes a good landing page</title>
		<link>http://www.cozmoslabs.com/382-content-design-what-makes-a-good-landing-page/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=content-design-what-makes-a-good-landing-page</link>
		<comments>http://www.cozmoslabs.com/382-content-design-what-makes-a-good-landing-page/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 08:09:14 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=382</guid>
		<description><![CDATA[Photo by divemasterking2000 I want a redesign. I need it to be forward thinking with easy access to most sections of the site. Although this sounds like I&#8217;m trying to sell something to a client, please bare with me. Creating an effective landing page (in my case the front page) is a must. This is [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/111-wp-greet-box-my-design-and-thematic-the-good-the-bad-and-the-ugly/' rel='bookmark' title='WP Greet Box, my Design and Thematic &#8211; The Good, the Bad and the Ugly'>WP Greet Box, my Design and Thematic &#8211; The Good, the Bad and the Ugly</a></li>
<li><a href='http://www.cozmoslabs.com/13-working-on-the-blog-design/' rel='bookmark' title='Working on the blog design'>Working on the blog design</a></li>
<li><a href='http://www.cozmoslabs.com/48-10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/landing.jpg" alt="landing" title="landing" width="300" height="204" class="alignnone size-full wp-image-395" /></p>
<p>Photo by <a href="http://www.flickr.com/photos/divemasterking2000/3397470104/" rel="nofollow">divemasterking2000</a></p>
</div>
<p>I want a redesign. I need it to be forward thinking with easy access to most sections of the site. Although this sounds like I&#8217;m trying to sell something to a client, please bare with me. Creating an effective landing page (in my case the front page) is a must. This is not a tutorial, but a discussion, a way to put into perspective several elements of effective web-design. I&#8217;ll analyze a few blogs and web-sites that make good use of their front page and try to draw some conclusions that will help me in my own quest towards a full redesign. </p>
<p>There are several flaw in the current design, conceptual and technical. Technically there are some issues with IE that simply annoyed me to the point that I just ignored them. I want to integrate threaded comments and the footer isn&#8217;t exactly what I would like it to be. Also, I never got a chance to update to the latest Thematic version on which this blog is built because I didn&#8217;t need any of the new features. The content I had was simply happy with the current design.</p>
<p>From an usability point of view there are bigger problems with the design. Right now the articles are accessible through a right column with nothing but text and to be honest it looks like a big blurb. I want a better way to differentiate my categories, WordPress Themes and the services page.</p>
<p>To make it clearer this is what <strong>I want to achieve with this new redesign</strong>:<br />
<span id="more-382"></span></p>
<ul>
<li>Better navigation</li>
<li>Easy access to all of the content</li>
<li>Article suggestion at the end of each post</li>
<li>Pixel perfect in all modern browsers</li>
<li>Instant understanding of what this blog is about by new visitors (tough an about widget perhaps?)</li>
<li>A more useful footer. This should be a place where one can find other info site related and introduce the visitor further inside the website</li>
</ul>
<h3>Inspiration</h3>
<p>I&#8217;ve browsed around for ideas. Seeing and analyzing how others have solved their problems will help me come up with my own solutions for the content I have. There are quite a lot of websites and blogs that have really good content design and this is really important if you want your users to stay more on your website.</p>
<p><strong>1.</strong> <a href="http://boagworld.com/" rel="nofollow">http://boagworld.com/</a> &#8211; Boagworld is the blog of Paul (the Wurzel) Boag who lives in the heart of rural Dorset. He produces a weekly podcast with Marcus (pop star) Lillington on all things relating to building and running websites.</p>
<p><img class="aligncenter size-full wp-image-387" title="boadworld" src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/boadworld.jpg" alt="boadworld" width="480" height="511" /></p>
<p>What I found interesting were 4 areas:</p>
<ol>
<li><strong>The main menu.</strong> It&#8217;s one of the first things you see when you enter the website. The fact that it has only 4 elements (and one of them the search box) means that they removed a possible home link or a contact link thus giving more importance to the remaining 3 links</li>
<li><strong>The banner.</strong> I really like this! Not just the graphics, but the idea behind it. This is the first thing I read once I entered the website. It has a clear message and you instantly know what to expect from this site: A podcast for those who design, develop and maintain websites. The RSS and iTunes buttons are a really nice touch also.</li>
<li><strong>The blog post introduction.</strong> Made to draw your attention, it dose so not through graphics, but using a short and differently styled text that makes you curious. What do they have to say next?</li>
<li><strong>Latest Shows.</strong> This is probably the second thing you see when you view the page, right after the banner. The way this was orchestrated is simply beautiful. We normally read from top left to bottom right, thus after you find out what this blog is about (which is a podcast) you immediately find the latest shows. There is absolutely no effort from the user to find what he&#8217;s looking for.</li>
</ol>
<p><strong>2.</strong> <a href="http://lifehacker.com/" rel="nofollow">Lifehacker.com</a> &#8211; Tips and Downloads for getting things done.</p>
<p><img class="aligncenter size-full wp-image-392" title="lifehacker" src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/lifehacker.jpg" alt="lifehacker" width="480" height="259" /></p>
<p>This is one type of design that is not really common online. Most themes and designs follow the <em>header->menu->content->sidebar</em> design. This on the other hand has several differences:</p>
<ol>
<li><strong>Top Featured Articles.</strong> Lifehacker dosen&#8217;t lose time introducing you to the latest and hottest news and articles. </li>
<li><strong>Article Listing.</strong>  There isn&#8217;t anything spectacular here. Each article excerpt has an image to the right and little text, but since there are so many articles here, the short info makes it easy to scan through and view just the ones that interest you.</li>
<li><strong>Latest Comment.</strong> Instead of putting ads in the right bottom corner, they chose to engage the users in the conversation. While most blogs display just the number of comments, they show you the latest comment on that article.</li>
</ol>
<p><strong>2.</strong> <a href="http://themeshaper.com/" rel="nofollow">Themeshaper.com</a> &#8211; a WordPress-powered thinking machine disguised as a Blog, home of Thematic, the popular and free WordPress Theme Framework.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/themeshaper.jpg" alt="themeshaper" title="themeshaper" width="480" height="477" class="aligncenter size-full wp-image-394" /></p>
<p>I really like the new Themeshaper redesign. As Ian said in <a href="http://themeshaper.com/themeshaper-redesigned-reloaded/">a blog post</a>, there are several reasons why this design works! This kind of complex landing page makes for a really good introduction and urges the user to go deeper into the website. </p>
<ol>
<li><strong>Featured product.</strong> This is the biggest thing on this page. It&#8217;s the first thing you see when you enter the website and you&#8217;re compelled to read about the product. There must be something good there, otherwise this wouldn&#8217;t be so big!</li>
<li><strong>The short description.</strong> Meant to introduce new users to the site it dose a good job attracting attention. The color difference make it stand alone and clear, even when there&#8217;s so much info around it</li>
<li><strong>The good, the bad and the ugly.</strong> Or more exactly &#8220;Must Read Ideas&#8221;, &#8220;Blog Design Tips&#8221; and &#8220;Recent Items From the Blog&#8221;. These are your introduction into the large article archive. From here you can navigate to different sections of the web-site and get your share of useful information. </li>
</ol>
<p>As you can see what I&#8217;m really interested is a different content design, a landing page that will help users better navigate the entire web-site. The three web-sites I&#8217;ve presented are just a few. If you are looking for more great ways to arrange your content I would suggest taking a good look over:</p>
<ul>
<li><a href="http://www.darrenhoyt.com/" rel="nofollow">darrenhoyt.com </a></li>
<li><a href="http://www.outlawdesignblog.com/" rel="nofollow">outlawdesignblog.com</a></li>
<li><a href="http://www.problogger.net/" rel="nofollow">problogger.net</a> &#8211; there is a lot of content here, but somehow it&#8217;s manageable&#8230; the way color is used makes this possible</li>
</ul>
<p>Now that I&#8217;ve done my homework is time to actually start arranging my content. I will come up with a wire frame shortly and hopefully you&#8217;ll be able to give me some feedback. </p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/111-wp-greet-box-my-design-and-thematic-the-good-the-bad-and-the-ugly/' rel='bookmark' title='WP Greet Box, my Design and Thematic &#8211; The Good, the Bad and the Ugly'>WP Greet Box, my Design and Thematic &#8211; The Good, the Bad and the Ugly</a></li>
<li><a href='http://www.cozmoslabs.com/13-working-on-the-blog-design/' rel='bookmark' title='Working on the blog design'>Working on the blog design</a></li>
<li><a href='http://www.cozmoslabs.com/48-10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/382-content-design-what-makes-a-good-landing-page/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

