Skip to:
Content
Pages
Categories
Search
Top
Bottom

Diacritic letters i username? Like Göran


  • Göran
    Member

    @goranlin

    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.

Viewing 8 replies - 1 through 8 (of 8 total)

  • _ck_
    Participant

    @_ck_

    This should fix it: https://bbpress.org/plugins/topic/usernames-i18n-fix/

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


    Sam Bauers
    Participant

    @sambauers

    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');
    ?>


    Göran
    Member

    @goranlin

    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!


    Sam Bauers
    Participant

    @sambauers

    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.


    Göran
    Member

    @goranlin

    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!

    Hello,

    the “Lax user names” plugin of Sam doesn’t work in bbPress 1.0 alpha 1


    _ck_
    Participant

    @_ck_

    Try these?

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

    https://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

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.