<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Tag: username</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: username</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 06:37:52 +0000</pubDate>

<item>
<title>bharatk on "1.0 alpha 2/Wordpress 2.6.2 : usernames with spaces"</title>
<link>http://bbpress.org/forums/topic/10-alpha-2wordpress-262-usernames-with-spaces#post-20020</link>
<pubDate>Sat, 18 Oct 2008 12:21:59 +0000</pubDate>
<dc:creator>bharatk</dc:creator>
<guid isPermaLink="false">20020@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks Chris.&#60;/p&#62;
&#60;p&#62;I'm really not too fussed whtehe or not there are spaces as they work.&#60;/p&#62;
&#60;p&#62;The spaces probably activated my raticular activating system and impulsed me to write this topic
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "1.0 alpha 2/Wordpress 2.6.2 : usernames with spaces"</title>
<link>http://bbpress.org/forums/topic/10-alpha-2wordpress-262-usernames-with-spaces#post-20001</link>
<pubDate>Fri, 17 Oct 2008 18:51:52 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">20001@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I say &#34;why restrict the characters in the login?&#34;  I would vote to leave them in.  Most people won't use them, especially if they've been around for a while and are used to no spaces in usernames.  But why arbitrarily limit the characters in the username?
&#60;/p&#62;</description>
</item>
<item>
<title>bharatk on "1.0 alpha 2/Wordpress 2.6.2 : usernames with spaces"</title>
<link>http://bbpress.org/forums/topic/10-alpha-2wordpress-262-usernames-with-spaces#post-19998</link>
<pubDate>Fri, 17 Oct 2008 17:19:16 +0000</pubDate>
<dc:creator>bharatk</dc:creator>
<guid isPermaLink="false">19998@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Just for information and perhaps integrity debates, I would like to tell you all that I currently only allow registration from WordPress.&#60;/p&#62;
&#60;p&#62;I noticed a few messages about usernames with spaces and have found that WordPress allows registration with usernames with spaces, and bbPress does allow login with the same.&#60;/p&#62;
&#60;p&#62;However, I have found that the general normal condition on the Net is that usernames do not have spaces.&#60;/p&#62;
&#60;p&#62;This could be seen as a great advantage of WordPress and bbPress or it could disturb the status quo.&#60;/p&#62;
&#60;p&#62;Everyone's feedback would be appreciated.
&#60;/p&#62;</description>
</item>
<item>
<title>myu on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19522</link>
<pubDate>Sun, 28 Sep 2008 04:04:30 +0000</pubDate>
<dc:creator>myu</dc:creator>
<guid isPermaLink="false">19522@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Will it be possible to upgrade to 1.0 when there're people registering with utf8 usernames?&#60;br /&#62;
(I'm still testing and editing with 0.9, and will need utf8 names)&#60;br /&#62;
Or will it be better to use 1.0 alpha?
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19511</link>
<pubDate>Sat, 27 Sep 2008 13:24:17 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19511@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Great!
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19506</link>
<pubDate>Sat, 27 Sep 2008 09:44:11 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19506@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;it works! =p thanks ;)
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19496</link>
<pubDate>Sat, 27 Sep 2008 07:39:21 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19496@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;@ meitershaker&#60;/p&#62;
&#60;p&#62;There was a bug in the display name implementation. First, update to the very latest trunk. There is a chance that you might have a user meta item for some users called 'display_name'. This will be stomping on the real setting in the user table. Use this SQL query to clear out the bad data.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;DELETE FROM bb_usermeta WHERE meta_key = &#38;#39;display_name&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Once you've updated to the latest trunk and done that, you should be able to use any UTF-8 character in display names.
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19448</link>
<pubDate>Thu, 25 Sep 2008 13:47:50 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19448@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;@ sam&#60;br /&#62;
&#34;In any case, the solution in the future is to change your display name after registration. Display names are UTF-8 friendly. &#34;&#60;/p&#62;
&#60;p&#62;doesn't work!! &#60;/p&#62;
&#60;p&#62;me, 2 weeks ago:&#60;br /&#62;
&#34;but for choose a name to display on public (option in profil), a name with accents doesn't work ... &#34;
&#60;/p&#62;</description>
</item>
<item>
<title>myu on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19447</link>
<pubDate>Thu, 25 Sep 2008 13:30:07 +0000</pubDate>
<dc:creator>myu</dc:creator>
<guid isPermaLink="false">19447@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks for reply.&#60;br /&#62;
Me, I personally don't mind using alphabet for username, but have to think of target audience. Got me worried a bit.  :)&#60;/p&#62;
&#60;p&#62;I hope in the future version there's some sort of conversion mechanism for people that's already registered using utf-8 encoded username. (pretty please..)
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19432</link>
<pubDate>Thu, 25 Sep 2008 00:45:13 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19432@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;@myu&#60;/p&#62;
&#60;p&#62;It has to do with people using different character encoding for their database tables other than UTF-8. I'm probably overstating the threat as the same problem exists on all data input and we filter it out the problem there. I was also just reviewing WordPress injection attacks of days gone by, so it was on my mind.&#60;/p&#62;
&#60;p&#62;In any case, the solution in the future is to change your display name after registration. Display names are UTF-8 friendly.
&#60;/p&#62;</description>
</item>
<item>
<title>myu on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19401</link>
<pubDate>Tue, 23 Sep 2008 14:23:37 +0000</pubDate>
<dc:creator>myu</dc:creator>
<guid isPermaLink="false">19401@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;sambauers,&#60;br /&#62;
may I ask why non-ascii chars for user name can make the threats of SQL injection etc greater?
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19400</link>
<pubDate>Tue, 23 Sep 2008 11:39:21 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19400@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It should be noted that using non ascii characters in bbPress is not supported and you could open yourself to a whole range of potential SQL injection threats by doing so.&#60;/p&#62;
&#60;p&#62;WordPress has never supported non-ascii characters in usernames and has compensated by allowing display names, bbPress 1.0 now allows display names as well for the same reason.
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19381</link>
<pubDate>Mon, 22 Sep 2008 14:37:49 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19381@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;my problem is already here :( little help please :p
&#60;/p&#62;</description>
</item>
<item>
<title>amirhabibi on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19135</link>
<pubDate>Wed, 10 Sep 2008 14:06:56 +0000</pubDate>
<dc:creator>amirhabibi</dc:creator>
<guid isPermaLink="false">19135@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;meitershaker: ;-) be patient!!
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19051</link>
<pubDate>Sun, 07 Sep 2008 17:45:25 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19051@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;amir: yes :p&#60;/p&#62;
&#60;p&#62;ps: et plus précisément de la 1.0 trunk :p
&#60;/p&#62;</description>
</item>
<item>
<title>amirhabibi on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19050</link>
<pubDate>Sun, 07 Sep 2008 17:41:53 +0000</pubDate>
<dc:creator>amirhabibi</dc:creator>
<guid isPermaLink="false">19050@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;meitershaker : are you talking about the 1.0 alpha ?
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19039</link>
<pubDate>Sun, 07 Sep 2008 11:10:46 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19039@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;great it works! but for choose a name to display on public (option in profil), a name with accents doesn't work ...
&#60;/p&#62;</description>
</item>
<item>
<title>amirhabibi on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19037</link>
<pubDate>Sun, 07 Sep 2008 08:52:46 +0000</pubDate>
<dc:creator>amirhabibi</dc:creator>
<guid isPermaLink="false">19037@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks for your replies. After reading / testing your links, I found a quick working fix. Here's the plugin code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: UTF-8 usernames
Plugin URI:
Description: This plugin enable utf-8 characters in usernames. Mbstring must be enabled in the php.ini.
Author: Amir Habibi
Author URI: &#60;a href=&#34;http://www.residence-mixte.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.residence-mixte.com/&#60;/a&#62;
Version: 0.1
*/ 

function sanitize_user_mbstring( $raw_username, $username, $strict = false ) {
	$raw_username = $username;
	$username = strip_tags($username);
	// Kill octets
	$username = preg_replace(&#38;#39;&#124;%([a-fA-F0-9][a-fA-F0-9])&#124;&#38;#39;, &#38;#39;&#38;#39;, $username);
	$username = preg_replace(&#38;#39;/&#38;#38;.+?;/&#38;#39;, &#38;#39;&#38;#39;, $username); // Kill entities

	// Usage of &#38;#39;mb_ereg_replace&#38;#39; instead of &#38;#39;preg_replace&#38;#39; to preserve accents.
	if ( $strict )
		$username = mb_ereg_replace(&#38;#39;&#124;[^a-z0-9 _.\-@]&#124;i&#38;#39;, &#38;#39;&#38;#39;, $username);

	return apply_filters(&#38;#39;sanitize_user_mbstring&#38;#39;, $username, $raw_username, $strict);

}

add_action(&#38;#39;sanitize_user&#38;#39;, &#38;#39;sanitize_user_mbstring&#38;#39;, 0, 3);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;To work, you must have mstring enabled in your php.ini.&#60;/p&#62;
&#60;p&#62;Hope this will help !&#60;/p&#62;
&#60;p&#62;chrishajer : our board is in french
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19031</link>
<pubDate>Sun, 07 Sep 2008 05:24:58 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">19031@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;There's also plugins like this which can easily be modified:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bbpress.ru/files/plugins/CyrNickname.zip&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.ru/files/plugins/CyrNickname.zip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://trac.bbpress.org/attachment/ticket/452/usernames_i18n_fix.php&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/attachment/ticket/452/usernames_i18n_fix.php&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19030</link>
<pubDate>Sun, 07 Sep 2008 05:17:24 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">19030@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;This is the latest discussion I heard about the issue:&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What is the primary language of your forum?
&#60;/p&#62;</description>
</item>
<item>
<title>amirhabibi on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19020</link>
<pubDate>Sat, 06 Sep 2008 21:04:32 +0000</pubDate>
<dc:creator>amirhabibi</dc:creator>
<guid isPermaLink="false">19020@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi! When you try to register a name containing accents, the accents are stripped.&#60;br /&#62;
Any solution ?&#60;br /&#62;
(0.9.0.2 &#38;#38; the bug is visible on this forum)
&#60;/p&#62;</description>
</item>
<item>
<title>RossB on "letter limit on user names"</title>
<link>http://bbpress.org/forums/topic/letter-limit-on-user-names#post-18519</link>
<pubDate>Thu, 21 Aug 2008 01:07:00 +0000</pubDate>
<dc:creator>RossB</dc:creator>
<guid isPermaLink="false">18519@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Righto - thanks, Chris. So, probably best to change both to the same number.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "letter limit on user names"</title>
<link>http://bbpress.org/forums/topic/letter-limit-on-user-names#post-18500</link>
<pubDate>Wed, 20 Aug 2008 12:57:42 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">18500@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#34;Size&#34; is the display width of the field in characters.  &#60;/p&#62;
&#60;p&#62;&#34;Maxlength&#34; prevents you from typing in more than that many characters.  The browser honors that and prevents more than that characters from being entered in the field.  There are ways around this, but if you're not in a hostile environment, and it's all people from your organization, then lowering the maxlength just serves as a reminder to use a shorter name.
&#60;/p&#62;</description>
</item>
<item>
<title>RossB on "letter limit on user names"</title>
<link>http://bbpress.org/forums/topic/letter-limit-on-user-names#post-18496</link>
<pubDate>Wed, 20 Aug 2008 09:39:45 +0000</pubDate>
<dc:creator>RossB</dc:creator>
<guid isPermaLink="false">18496@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;_ck_, &#60;/p&#62;
&#60;p&#62;May I seek some clarification re your post above, please?&#60;/p&#62;
&#60;p&#62;With that line in the register.php template, to reduce the max letter limit lower than 30, would I change both references to &#34;30&#34;?  That is:&#60;/p&#62;
&#60;p&#62;size=&#34;30&#34; AND maxlength=&#34;30&#34;?&#60;br /&#62;
Or just maxlength=&#34;30&#34;.&#60;/p&#62;
&#60;p&#62;Cheers&#60;br /&#62;
Ross
&#60;/p&#62;</description>
</item>
<item>
<title>RossB on "letter limit on user names"</title>
<link>http://bbpress.org/forums/topic/letter-limit-on-user-names#post-18429</link>
<pubDate>Mon, 18 Aug 2008 17:28:07 +0000</pubDate>
<dc:creator>RossB</dc:creator>
<guid isPermaLink="false">18429@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;OK! That sounds like a good solution - thanks Chris.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "letter limit on user names"</title>
<link>http://bbpress.org/forums/topic/letter-limit-on-user-names#post-18409</link>
<pubDate>Mon, 18 Aug 2008 13:25:34 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">18409@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;You can also add &#60;/p&#62;
&#60;p&#62;&#60;code&#62;overflow: hidden;&#60;/code&#62;&#60;br /&#62;
&#38;nbsp;&#60;br /&#62;
to the .threadauthor section of your CSS.  That just hides any portion of their username that is wider than the space in your template.  This forum template is like that.
&#60;/p&#62;</description>
</item>
<item>
<title>RossB on "letter limit on user names"</title>
<link>http://bbpress.org/forums/topic/letter-limit-on-user-names#post-18401</link>
<pubDate>Mon, 18 Aug 2008 08:29:12 +0000</pubDate>
<dc:creator>RossB</dc:creator>
<guid isPermaLink="false">18401@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks, _ck_.  Appreciate your prompt response.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "letter limit on user names"</title>
<link>http://bbpress.org/forums/topic/letter-limit-on-user-names#post-18396</link>
<pubDate>Mon, 18 Aug 2008 05:33:59 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">18396@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;That's another one of those silly things that got carried over from WordPress. The database limits it to 60 characters and the default template limits it to 30 characters but it's still overly long.&#60;/p&#62;
&#60;p&#62;Fortunately in bbPress (unlike WordPress) the registration form is done in a template and not in the core, so the easiest way is just to modify the register.php template under my-templates (or copy it from bb-templates) and change the line that looks like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;td&#38;gt;&#38;lt;input name=&#38;quot;user_login&#38;quot; type=&#38;quot;text&#38;quot; id=&#38;quot;user_login&#38;quot; size=&#38;quot;30&#38;quot; maxlength=&#38;quot;30&#38;quot; value=&#38;quot;&#38;lt;?php if (1 != $user_login) echo $user_login; ?&#38;gt;&#38;quot; /&#38;gt;&#38;lt;/td&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And instead of 30, make it the size limit you want.&#60;/p&#62;
&#60;p&#62;However people that are sneaky and bypass the registration form can still make it 60 characters (ie. spammers). But they will stick out, so you'll notice it right away.&#60;/p&#62;
&#60;p&#62;This can be fixed via a plugin but it would be way too much code to justify the fix. The template method is best.
&#60;/p&#62;</description>
</item>
<item>
<title>RossB on "letter limit on user names"</title>
<link>http://bbpress.org/forums/topic/letter-limit-on-user-names#post-18393</link>
<pubDate>Mon, 18 Aug 2008 04:36:17 +0000</pubDate>
<dc:creator>RossB</dc:creator>
<guid isPermaLink="false">18393@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Can a letter limit be set for forum user names (say, 16 letters) to prevent people choosing very long user names?&#60;/p&#62;
&#60;p&#62;Cheers&#60;br /&#62;
Ross
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "This username does not exist"</title>
<link>http://bbpress.org/forums/topic/this-username-does-not-exist#post-18103</link>
<pubDate>Sun, 10 Aug 2008 00:46:31 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">18103@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Sorry, fresh out of ideas after that.  I suspect that bbPress needs to be reinstalled after downgrading WordPress, but I don't know why that failed for you.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
