Skip to:
Content
Pages
Categories
Search
Top
Bottom

Academic blogs – how to rewrite urls to hide usernames?


  • Lemmy
    Participant

    @lemmyc

    Hi,
    I’m using Buddypress for an academic blogging system. We don’t want students’ usernames to be visible in the system to other users, alongside their real names. The display names are populated by LDAP values.
    I have disabled @mentions, which use the username values. All I need to do now (I think) is change the urls of members’ profile pages, which currently use the studentID. e.g:
    http://domainname.ac.uk/members/zhe11341841/

    Is it possible to rewrite these to use another unique identifier, such as member ID? e.g.
    http://domainname.ac.uk/members/751

    Thanks!

Viewing 1 replies (of 1 total)

  • Lemmy
    Participant

    @lemmyc

    The Edit Author Slug plugin seems to be the answer to my prayers. I can adapt it to set user_nicename to firstname + lastname. And if that identifier is already taken, it returns firstnamelastname-2, and so on.

    I should be able to switch @mentions back on when this is set up, as noone has used it in my system so far.

    But which hook should I use to set my custom user_nicename on the creation of a user? More homework required…

Viewing 1 replies (of 1 total)
  • The topic ‘Academic blogs – how to rewrite urls to hide usernames?’ is closed to new replies.
Skip to toolbar