bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

Diacritic letters i username? Like Göran

(9 posts)
  • Started 7 months ago by goranlin
  • Latest reply from amirhabibi
  • This topic is not resolved
  1. goranlin
    Member

    My name is Göran but when I test bbPress and use my name as username I am called Gran and when I try to use Göran to get around the problem I get Goumlran as my name. How can I solve this? I want users to be able to use their real names including all Swedish letters.

    Posted 7 months ago #
  2. This should fix it: http://bbpress.org/plugins/topic/usernames-i18n-fix/

    I need to find out if this is fixed by default in 0.8.4

    Posted 7 months ago #
  3. That plugin is old and won't work with 0.8.4 (and maybe not with 0.8.3.1)

    Once 0.8.4 is released this should work as a plugin for both WordPress and bbPress:

    <?php
    /*
    Plugin Name: Lax user names
    Plugin URI:
    Description: Makes all user name sanitisation non-strict
    Author: Sam Bauers
    Version: 0.0.1
    Author URI: http://unlettered.org/
    */
    
    function i18n_sanitize_user($username, $raw_username = false, $strict = false) {
    	if ($strict) {
    		return sanitize_user($raw_username);
    	} else {
    		return $username;
    	}
    }
    
    add_filter('sanitize_user', 'i18n_sanitize_user');
    ?>
    Posted 7 months ago #
  4. goranlin
    Member

    Thanks for answering but I do not understand how to use it. Should I save a php-file with this code and name it Laxusernames.php? Where shall I place it and how does it start?
    Please advice me!

    Posted 3 months ago #
  5. Place it in a folder called "my-plugins" (create it if it doesn't exist). Then go to the admin area and activate the plugin.

    Posted 3 months ago #
  6. goranlin
    Member

    Thank you for trying but it does not work. I placed the plugin in the folder bb-plugins and activated it. Before your answer I tried as "Göran Åsnäs" which was tranformed to "Gran sns" and after activating the plugin I tried as "Örjan Ågrän" which was tranformed to "rjan grn". No success at all. I run bbPress 0.9.0.2 upgraded from an earlier version yesterday. My forum is at http://www.goranlindgren.se/forum/

    This must affect a lot of users, I know at least one other Swedish forum having the same problem and there must be many in other countries as well.

    Help would be very useful and appreciated!

    Posted 3 months ago #
  7. csseur3
    Member

    Hello,

    the "Lax user names" plugin of Sam doesn't work in bbPress 1.0 alpha 1

    Posted 1 month ago #
  8. Try these?

    http://bbpress.ru/files/plugins/CyrNickname.zip

    http://trac.bbpress.org/attachment/ticket/452/usernames_i18n_fix.php

    The concept is fairly straightforward.
    And "sanitize_user" is still used in bbPress 1.0

    Posted 4 weeks ago #
  9. amirhabibi
    Member

    Hope this will help :

    http://bbpress.org/forums/topic/accents-in-username#post-19037

    Posted 4 weeks ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.