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: mydomain.com/blog.name
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 mydomain.com/blogname 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?
The blogs are being created fine with the dot in the username but when you browse to the url for example mydomain.com/blog.name the css and theme does not display correctly.
Here is a screen shot of what is happening - http://spcc.ezyhostingshop.com/images/blogs%20screendump.jpg
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 http://wpmudevorg.wordpress.com/project/LDAP-Authentication-Plug-in
I need so advice on the bestway to get around this issue and how i would actually do it.
Thanks
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.
mrdomain
Member
Posted 16 years ago #
SPCC
Can you please look at my problem here
http://mu.wordpress.org/forums/topic.php?id=9901
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 ?