User names, @mentions, full-stops/periods, LDAP
-
WP 2.9.2 (not MU) + BP 1.2
Some quirky problem around user names.
We’re using Simple LDAP plugin and user IDs are therefore being set from our AD, which has a standard format
FirstName.Lastname
I noticed that the URLs of BP profile pages were being generated wrongly. Instead of
members/FirstName.LastName
it was replacing the full-stop with a space, so
members/FirstName LastName
naturally didn’t work in a HREF
However hacking the URL in the location bar to
members/FirstName%20LastName
did arrive at the intended profile page.
We couldn’t work out exactly how BP was handling this sanitizing of usernames, but a quick
s/ /./
in bp_core_get_user_domain did the trick and now the links work fine.
This hack isn’t ideal, of course. Another side effect, probably related, is that @mentions also don’t seem to work. The ‘unique identifier’ specified by BP also contains a space:
@Firstname Lastname is a unique identifier for …
Naturally with the space in it, it isn’t, and of course @mentions in BP updates don’t work.
Thoughts?
- The topic ‘User names, @mentions, full-stops/periods, LDAP’ is closed to new replies.