DjangoBB

Django based forum engine

  • You are not logged in.

#1 July 8, 2010 19:27:08

adamm
Registered: 2010-07-08
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

Ability to display First / Last name instead of username

If you had the ability to display the first name / lastname of the registered user for posts, logged in, etc... instead of the username it'd be great. It'd give a lot of customization.

Offline

#2 July 9, 2010 09:34:23

alafin
DjangoBB Developer
From: Ukraine
Registered: 2009-10-26
Posts: 26
Reputation: +  1  -
Profile   Send e-mail  

Ability to display First / Last name instead of username

Offline

#3 Nov. 22, 2012 21:42:05

semenov
Registered: 2012-11-22
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

Ability to display First / Last name instead of username

I would like to reopen this topic with a broader view on the problem.

In our projects, we often keep things simple and set username to be equal to user email. After all, this is how many famous sites work, starting from Google and Amazon.

This approach renders DjangoBB practically unusable when used as an (optional) plugin to the existing site (not as a standalone project). First when people register at the site, they don't want to invent useless logins, they want to login with their email, plain and simple. But then when some of them discover that there's also a forum, they don't want to be recognized by their emails in the forum, they want fancy nicknames. Moreover, in non-English speaking forums, people want non-English nicknames, which are not really suitable to be used in URLs because instead of making URLs better and human-readable they actually make them even worse (for instance: http://someproject.org/forum/user/%D0%A0%D0%BE%D0%B7%D0%BE%D0%B2%D0%B0%D1%8F%20%D0%9A%D0%BE%D1%84%D1%82%D0%BE%D1%87%D0%BA%D0%B0/)

(Another case if that's a corporate/business forum, then the administration doesn't want people to pick nicknames, but it also doesn't want to use usernames or emails. They want First Name + Last Name, like adamm said above.)

So ideally, what is needed:
1) A way for users to set their nickname (not username). This should be optional and enabled in settings.py so that this change doesn't break the existing workflow (which obviously works well for many). Ideally, if enabled, it should not allow a user to post until he/she sets his nickname.
2) All templates which display usernames should be fixed to use {{ user|get_forum_display_name }} or something like that, which will pick nickname (if specified) or username (otherwise), or even First Name + Last Name for adamm (if a special option is set).
3) The pages (django views) which depend on usernames in URL (like User Profile) should also accept User IDs. There should be an option in settings.py which will change the behaviour. Or at least, these views should accept nicknames instead of usernames if the option mentioned in (1) is enabled. In any case, if username=email, we need to have a way to avoid passing those emails in URLs.

Does this make sense?

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version