Display Name / User Nickname Plugin
Author Message
This plugin allows users to have differing display and login names.  The former is displayed publicly to everyone (what is seen in posts), whereas the latter is only used for login purposes.

This plugin primarily patches MyBB's login, registration and lost password routines, so "username" often refers to the user's display name (perhaps this should be clarified a bit...).
Thus, to allow users to change their display name, simply give them their usergroup the ability to change username.

Known limitations/issues:
  • Only tested on (and intentionally designed for) MySQL - dunno if it works on other DB engines
  • During un/installation, the plugin will close the board whilst it performs processing to prevent potential issues with database integrity
  • It relies on a few things in the supplied English messages.lang.php and may not work correctly with other languages - this only really affects activation emails
  • Various English phrases are hard coded in
  • Login names aren't quite as vigorously checked as MyBB checks user names - this is to somewhat give users more flexibility, but a potential issue is that when this plugin is deactivated, everyone's username will be set to the login name.  This will generally be a minor issue however.
  • Like login names, display names must be unique (no two people can have the same display name at the same time)
  • Quotes in posts may become a little confusing/misleading if people change their display name often - you may wish to consider my vB Quote plugin which can get around this issue
  • Often "Username" is referred to, although whether it refers to a login name or a display name may be unclear.  For example, when a user tries to log in, it asks for their username and password.  Perhaps I might change this to "login name and password" in a later version.
  • I haven't done a lot of testing on this, so you probably should do some before you use it (and do so at your own risk)



Changelog:
v1.10
- compatibility fixes for MyBB 1.8
- template modifications are now performed on activate/deactivate instead of install/uninstall.  Please note that deactivating the plugin may cause things to go into a weird state, so please don't leave it in that state for long (it's only intended to allow you to fix templates)
- Please see this note if you are upgrading from MyBB 1.6 to 1.8

v1.05
- fix compatibility issues with MyBB 1.6 ACP logins

v1.04
- fixed bug: couldn't update login name

v1.03
- updated control_object function again (no functional difference, but may be required to keep compatibility with my other plugins)
- fixed a potential issue during uninstallation if there's a conflict between login and display names of different users

v1.02
- updated control_object function with more accurate version; functionally indifferent, but may be required to be compatible with my other plugins

v1.01
- fixed bug in regards to activation emails

v1.00
- initial release
(This post was last modified: 12-08-2014 05:27 PM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: dispname.php (17.65 KB)
Plugin Version: 1.10
Last Updated: 12-08-2014, 05:21 PM

Downloads: 3,918
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: GPLv3
Uploader: ZiNgA BuRgA
julioms87 Offline
Junior Member
**
Posts: 2
Joined: Apr 2015
Post: #51
RE: Display Name / User Nickname Plugin
Please, when people try to recover their passwords they a receive a e-mail with only the display name, not the login name on the field login name.... its annoying because some people forget their logins.

Thanks!
04-04-2015 03:37 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #52
RE: Display Name / User Nickname Plugin
MyBB version?  Also, what language and login method (username/email/username+email)?
The email should start with the display name, but the details should contain the actual login name.

My Blog
04-08-2015 05:25 PM
Find all posts by this user Quote this message in a reply
julioms87 Offline
Junior Member
**
Posts: 2
Joined: Apr 2015
Post: #53
RE: Display Name / User Nickname Plugin
Version 1.8.4,
Default Language > Brazilian Portuguese,
Login Method > login name.

The e-mail start with display name and on the details the username is the same as the display name.

Ill send you details in private.

Thanks.
04-11-2015 03:45 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #54
RE: Display Name / User Nickname Plugin
(04-11-2015 03:45 AM)julioms87 Wrote:  Default Language > Brazilian Portuguese,
(03-13-2010 10:52 PM)ZiNgA BuRgA Wrote:  Known limitations/issues:
  • It relies on a few things in the supplied English messages.lang.php and may not work correctly with other languages - this only really affects activation emails
  • Various English phrases are hard coded in

It's expected to be problematic if the language isn't English.
If you want to try to fix it, you'll need to make changes to the code - find instances of

PHP Code:
'Username: {1}', 'Username: '

and

PHP Code:
"Username: {1}", "Username: "

and change them appropriately so that they match the text in your language.


My Blog
(This post was last modified: 04-11-2015 08:29 PM by ZiNgA BuRgA.)
04-11-2015 08:27 PM
Find all posts by this user Quote this message in a reply
blackmarket Offline
Junior Member
**
Posts: 1
Joined: Jan 2017
Post: #55
RE: Display Name / User Nickname Plugin
(04-11-2015 08:27 PM)ZiNgA BuRgA Wrote:  
(04-11-2015 03:45 AM)julioms87 Wrote:  Default Language > Brazilian Portuguese,
(03-13-2010 10:52 PM)ZiNgA BuRgA Wrote:  Known limitations/issues:
  • It relies on a few things in the supplied English messages.lang.php and may not work correctly with other languages - this only really affects activation emails
  • Various English phrases are hard coded in

It's expected to be problematic if the language isn't English.
If you want to try to fix it, you'll need to make changes to the code - find instances of

PHP Code:
'Username: {1}', 'Username: '

and

PHP Code:
"Username: {1}", "Username: "

and change them appropriately so that they match the text in your language.


Anyway of release a fix to be compatible with MYBB 1.8.10?
01-16-2017 08:36 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #56
RE: Display Name / User Nickname Plugin
Is it incompatible?  What are the problems?

My Blog
(This post was last modified: 04-02-2017 06:37 PM by ZiNgA BuRgA.)
04-02-2017 06:36 PM
Find all posts by this user Quote this message in a reply
Preimpression Offline
Junior Member
**
Posts: 1
Joined: Mar 2023
Post: #57
RE: Display Name / User Nickname Plugin
I'm facing incompatibility when using this plugin as well as the Enhanced Account Switcher plugin. Every time I try to switch to an account that has a Display Name/Nickname, it logs me out instead.

Do you know how I would fix this?
03-24-2023 10:32 AM
Find all posts by this user Quote this message in a reply
mariaflores Offline
Junior Member
**
Posts: 4
Joined: Jun 2023
Post: #58
RE: Display Name / User Nickname Plugin
Is there a solution to the inconsistency issue with the "Display Name / User Nickname Plugin" across forum sections? Need guidance for seamless user experience.
06-14-2023 05:17 PM
Find all posts by this user Quote this message in a reply
Ulysse Offline
Junior Member
**
Posts: 1
Joined: Jul 2023
Post: #59
RE: Display Name / User Nickname Plugin
Hello, I installed your plugin and it works well
I miss only one thing, on usercp page, I cannot change the username (display name)
I can only change it in the admin page
Is there something wrong or is it done for security reason ?
Thanks
07-27-2023 02:55 AM
Find all posts by this user Quote this message in a reply


Forum Jump: