View Full Version : Real Name everywhere possible?
mikeee
10-10-2011, 06:48 PM
I added a new field for real names. Is there a way to display that instead of username? Im not looking to make it an option, just force real names.
Sage Knight
10-11-2011, 06:56 AM
Hm, you can make a mandatory profile field & edit the templates to hide the username on the postbit and just move the profile field above the avatar (legacy postbit)
mikeee
10-12-2011, 10:37 PM
Thanks. I have the custom field already, and they're required and filled out. column name is fullname in table user. But When I edit templates, its not recognizing that column on all pages. I can get postbit to do it, but not the welcome message or who's online or PM.
--------------- Added 1318463134 at 1318463134 ---------------
Actually, maybe an easier solution would be to be able to login using another field other than username.
... I can get postbit to do it, but not the welcome message or who's online or PM.
I added a fullname column to my user table and changed bbuserinfo.username to bbuserinfo.fullname in the header template, and I got it to show up in the welcome message. Is that different than what you did?
Actually, maybe an easier solution would be to be able to login using another field other than username.
You might be able to do that, but the pages would still be displaying the user name.
mikeee
10-13-2011, 03:00 AM
I added a fullname column to my user table and changed bbuserinfo.username to bbuserinfo.fullname in the header template, and I got it to show up in the welcome message. Is that different than what you did?
You might be able to do that, but the pages would still be displaying the user name.
the header worked and displayed fullname, however, the rest of the pages only show the username. I searched in templates for bbuserinfo.username, and it didnt come up with all the pages that display the username, such as postit, PM search, etc...
If I could login with fullname, then I can run a query to switch all usernames with fullnames and then let VB display the fullname. I just want them to login with their initials, which is how I had it setup at registration.
--------------- Added 1318478705 at 1318478705 ---------------
In whosOnlineBit - it shos userinfo.musername (notice the M username), what value do I change it to in order to display fullname?
If I could login with fullname, then I can run a query to switch all usernames with fullnames and then let VB display the fullname. I just want them to login with their initials, which is how I had it setup at registration.
If you could switch username with fullname, the fullname would become the username and it would be displayed and used to login in and you wouldn't have to change anything (and username would then be unused I guess). But I don't know if that would work or not - I don't know if the username is used anywhere else in the database. And you would have a problem if two people had the same real name.
In whosOnlineBit - it shos userinfo.musername (notice the M username), what value do I change it to in order to display fullname?
I'm pretty sure musername always comes from the function fetch_musername, and you can create a plugin to modify that value. Use hook fetch_musername and code like this:
if ($usernamefield == 'username')
$user['musername'] = $vbulletin->usergroupcache["$displaygroupid"]['opentag'] . $user['fullname'] . $vbulletin->usergroupcache["$displaygroupid"]['closetag'];
(but I haven't actually tried it).
mikeee
10-14-2011, 02:12 AM
that worked for postbit but made names disapear in whosonline.
how do I get login to work with fullname (custom column) rather than username? That would solve all my issues. And thank you for all your help. Much appreciated!
I came across this, do you think this can be modified to use the fullname field instead of the email field?
https://vborg.vbsupport.ru/showthread.php?t=264192&highlight=login+email
--------------- Added 1318647411 at 1318647411 ---------------
anyone know if it's possible to login with any other field other than username?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.