The MU forums have moved to

How to allow a dot ( . ) on wp mu blog creation (blog name). (5 posts)

  1. SPCC
    Posted 15 years ago #

    When a blog is created on my blogging site in need them to be able to have a dot (.) in their blog name

    for example:

    With Wordpress Mu when a user places a dot in the blog name the blog does not function correctly. Once i remove the dot and make the url it works fine.

    I need to uses dot's because i am using the LDAP plugin which creates blogs for users form the username in Active Directory, and at my organisation all our AD usernames are firstname.lastname

    Is their a work around for this to allow a dot (.) to be used?

  2. tdjcbe
    Posted 15 years ago #

  3. SPCC
    Posted 15 years ago #

    The blogs are being created fine with the dot in the username but when you browse to the url for example the css and theme does not display correctly.

    Here is a screen shot of what is happening -

    Being that our AD usernames have the dot in the middle and we are unable to change that, is there anyway around this issue. Either by allowing wordpress to use the dot or by maybe changing the ldap plugin to create blogs with a different name instead of using the username?

    I am using the ldap plugin from

    I need so advice on the bestway to get around this issue and how i would actually do it.


  4. SPCC
    Posted 15 years ago #

    I have fixed the issue by

    Line 33 of the wpmu_ldap.functions.php from

    $domain = strtolower( wp_specialchars( $newUserName ) );

    to replace it with the following line:

    $domain = strtolower( wp_specialchars( $ldapUserData[LDAP_INDEX_GIVEN_NAME].$ldapUserData[LDAP_INDEX_SURNAME] ) );

    this creates a blog without the dot (.) in the username. for example instead of first.lastname it now creates firstlastname.

  5. mrdomain
    Posted 15 years ago #


    Can you please look at my problem here

    I nearly have the same problem with you.For example When somebody signs up with "name.surname" and then click next "namesurname" will be shown in the blog name field.

    And what is ldap plugin used for ?

About this Topic