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,778
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: GPLv3
Uploader: ZiNgA BuRgA
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #21
RE: Display Name / User Nickname Plugin
(12-06-2010 09:46 AM)gloss Wrote:  i just have no clue why it's not working.
Quote:Please explain the issue clearly with all relevant details.  "It doesn't work" is about as useful as saying "I'm an idiot".
http://mybbhacks.zingaburga.com/announcements.php?aid=2

My Blog
12-06-2010 10:09 AM
Find all posts by this user Quote this message in a reply
gloss Offline
Junior Member
**
Posts: 3
Joined: Dec 2010
Post: #22
RE: Display Name / User Nickname Plugin
I upload the plugin, activate it, and nothing happens. That's about the best explaining I can do.
12-06-2010 06:40 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #23
RE: Display Name / User Nickname Plugin
Nothing is meant to happen.  There's no magic involved.

Okay then, tell me if any of the following show up:
- try editing a user's username in the AdminCP - is there a space for their login name?
- try editing your own username from the UserCP
- try registering an account, is there a separate username/login name?

My Blog
12-06-2010 07:07 PM
Find all posts by this user Quote this message in a reply
shinekwt Offline
Junior Member
**
Posts: 2
Joined: Jul 2010
Post: #24
RE: Display Name / User Nickname Plugin
Hi,

thanks for this great plugin and i had installed it without any issue. I have one issue with this plugin.

when i register a new account, its shows the place for Display name option  :-)
[Image: k4xttl.jpg]

But when i try to change my own profile name i cant find any option for Display name :-(
[Image: 2lmvy2f.jpg]

Can anyone please help me to fix the edit profile display name option pleaseee
02-07-2011 07:24 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #25
RE: Display Name / User Nickname Plugin
Change Username = Change Display Name.

Effectively, you can no longer change your login name once you enable the plugin.

My Blog
02-07-2011 07:47 PM
Find all posts by this user Quote this message in a reply
shinekwt Offline
Junior Member
**
Posts: 2
Joined: Jul 2010
Post: #26
RE: Display Name / User Nickname Plugin
hai,

Thanks for your quick replay. I activated the Display Usernames / Nicks Plugin (1.04) but i dont wana change my user name. Just wana add a nick name only of my present account. Is it possible ???
02-07-2011 08:01 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #27
RE: Display Name / User Nickname Plugin
As I said previously, changing "username" is changing the "nickname".  Your login name is something different.
Please, just try using the feature and see its effects.

My Blog
02-07-2011 09:43 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #28
RE: Display Name / User Nickname Plugin
I have this running on test board - works fine and as expected. I did trot round the board a bit (login pages on Error no permissions was one) changing username to login name, but thats a minor niggle and its documented in the plugin and on this thread.


[Image: leelink.gif]
MYBB1.6 & XThreads
02-08-2011 04:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #29
RE: Display Name / User Nickname Plugin
Updated to v1.05:
- fix compatibility issues with MyBB 1.6 ACP logins

Thanks to RateU for reporting the issue!

My Blog
02-15-2011 09:58 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #30
RE: Display Name / User Nickname Plugin
oh, I thought that was deliberate. Thanks for the update.


[Image: leelink.gif]
MYBB1.6 & XThreads
02-15-2011 12:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply


Forum Jump: