<?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>DFdou&#039;s Blog &#187; custom-username-validation</title>
	<atom:link href="http://nwhy.org/tag/custom-username-validation/feed" rel="self" type="application/rss+xml" />
	<link>http://nwhy.org</link>
	<description>Life is short,Be yourself.</description>
	<lastBuildDate>Wed, 25 Aug 2010 05:26:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Drupal-用户名格式自定义模组custom_username_validation</title>
		<link>http://nwhy.org/drupal-custom-username-validation.html</link>
		<comments>http://nwhy.org/drupal-custom-username-validation.html#comments</comments>
		<pubDate>Mon, 24 Nov 2008 05:38:57 +0000</pubDate>
		<dc:creator>DFdou</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[custom-username-validation]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.street13.org/?p=1981</guid>
		<description><![CDATA[Drupal默认的用户名对格式的限制很少，只要通过一下要求即可： “不可以使用除了英文句号(.)、英文波折号(-)与下划线(_)之外的标点符号。” 所以，长度为1的用户名也可以存在…… 早上在Drup... ]]></description>
			<content:encoded><![CDATA[<p>Drupal默认的用户名对格式的限制很少，只要通过一下要求即可：<br />
“不可以使用除了英文句号(.)、英文波折号(-)与下划线(_)之外的标点符号。”<br />
所以，长度为1的用户名也可以存在……<br />
早上在Drupalchina跟Drupaltaiwan看了下，都是要通过自己去定义访问规则来解决这个问题，<br />
最可怕的是没有得到任何实质性的解决办法。<br />
由于不熟悉，只好在Drupal.org的modules里慢慢找，结果找到了这个。<br />
<a  href="http://drupal.org/project/custom_username_validation">custom_username_validation模组</a><br />
允许定义用户名的php正则表达式和出错信息。<br />
看该模组的介绍，制作者是个好人哪，～以下是该模组的介绍：<br />
“For a customer, i needed to validate the username against a german phone number, so i wrote this little module that allows to define a validation pattern for the username on registration. it's also possible to customize the error message on validation failure.”</p>
<h4  class="related_post_title">Some Related Posts</h4><ul class="related_post"><li>2009/06/01 -- <a  href="http://nwhy.org/drupal-themes.html" title="Drupal Themes">Drupal Themes</a> (0)</li><li>2009/03/16 -- <a  href="http://nwhy.org/drupal-smtp-htmlmail-module.html" title="Drupal-Smtp模组+HTML Mail模组">Drupal-Smtp模组+HTML Mail模组</a> (0)</li><li>2009/02/21 -- <a  href="http://nwhy.org/drupal-permission-judgment.html" title="Drupal-一些权限的判断">Drupal-一些权限的判断</a> (1)</li><li>2009/02/20 -- <a  href="http://nwhy.org/drupal-recoverygov.html" title="Drupal-白宫新网站Recovery.gov">Drupal-白宫新网站Recovery.gov</a> (0)</li><li>2009/02/05 -- <a  href="http://nwhy.org/drupal-blogtoit.html" title="http://blog.to.it介绍">http://blog.to.it介绍</a> (0)</li><li>2009/01/12 -- <a  href="http://nwhy.org/drupalorg-redesign-donate.html" title="Drupal.org redesign code sprints &#8212; donate now">Drupal.org redesign code sprints &#8212; donate now</a> (0)</li><li>2008/11/03 -- <a  href="http://nwhy.org/drupal-best-cms.html" title="Drupal wins 2008 Best PHP Open Source CMS from Packt Publishing">Drupal wins 2008 Best PHP Open Source CMS from Packt Publishing</a> (0)</li><li>2008/08/14 -- <a  href="http://nwhy.org/drupal-api-truncate_utf8.html" title="Drupal常用API函数介绍 字符串截取函数truncate_utf8()">Drupal常用API函数介绍 字符串截取函数truncate_utf8()</a> (1)</li><li>2008/08/06 -- <a  href="http://nwhy.org/drupal-%e4%b8%8d%e4%bd%bf%e7%94%a8view%e8%be%93%e5%87%ba%e9%a1%b5%e9%9d%a2%e5%86%85%e5%ae%b9.html" title="Drupal 不使用View输出页面内容">Drupal 不使用View输出页面内容</a> (0)</li><li>2008/08/06 -- <a  href="http://nwhy.org/drupal-node-tpl-php.html" title="Drupal模板页node.tpl.php/样式定制">Drupal模板页node.tpl.php/样式定制</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://nwhy.org/drupal-custom-username-validation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
