Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 07 Mar 2010, 04:10
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Possible to use "Real Name" instead of Username?

Is it possible in Vbulletin for users to have their real name as userIDs instead of some made up username? That way when they post in Forums their real name is shown instead of some made up name (just like a facebook or myspace etc)

Can we register them with real names?

Basically in the registration form, we would change "username" to real name, but I would think Vbulletin would have a problem because obviously two people can have the same name and it wouldn't allow it.

Is there any way around this? I know that we can allow people to use their email to login, but I don't see how I can get around the duplicate usernames.

Thanks in advance.
Reply With Quote
  #2  
Old 07 Mar 2010, 06:21
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
What difference does it make?

You only need to change the phrase username to realname just to keep things clean. Couple of templated edits, asking for people to enter their real name instead of a user name. Done.

Forum will not allow 2 people with same username or realname it makes little difference. They would have to add a middle initial or something.

However I think its a BAD move to get people to post their full name !
Unless you are a BY invitation only site, and even do it is begging security issues
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #3  
Old 07 Mar 2010, 08:14
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Thank you for your response. I guess its back to the drawing board!
Reply With Quote
  #4  
Old 08 Mar 2010, 02:39
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
their real name is shown instead of some made up name (just like a facebook or myspace etc)
You are mistaken. Neither FB nor Myspace force users to use 'real' names. Many do, but many make up names as well. There's nothing currently preventing your users from using 'real sounding' names. You're looking for a technical solution for a problem that doesn't exist.
Reply With Quote
  #5  
Old 08 Mar 2010, 06:01
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Hello thank you for your response.

I was doing some research into this and I saw there was a hack a long time ago about being able to use aliases ie login with "xxxx" but "yyyy" is displayed everywhere.

I saw that the hack was for an old version, is there anything like this available for 4.0?

Basically I would want people to be able to use their own names as opposed to some usernames when displayed. Thank you.
Reply With Quote
  #6  
Old 08 Mar 2010, 07:32
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
May I ask why you want people to use their real Names ?
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #7  
Old 08 Mar 2010, 07:49
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
I use am interested in adding a social feed to my site (similar to facebook), and I would prefer if real names were to show up rather than usernames so its easier for people to keep track of each other.
Reply With Quote
  #8  
Old 05 Sep 2010, 07:58
shutterfreak shutterfreak is offline
 
Join Date: Sep 2010
Login name different from display name

I believe what the topic started meant, was a means to always render a display name (screen name) on the boards, and use the login name only for logging onto the boards. The display name can be the real name or any other handle a member uses on the Net.

I bet this will be much simpler to implement than hunting for all occurrences of user name and replacing them with something else. The problem is: how?

I think a solution is to modify the user table and add a displayname column and an unique index on this column. The vBulletin authentication and access control code would then the only consumer of the username field.

FWIW I also came across the vBulletin 2/3 hack to display a profile field instead of the user name. However the hack cannot readily be applied on vBulletin 4 since I believe the template engine changed in vBulletin 4 (the variable names and the syntax are different).

--------------- Added 05 Sep 2010 at 20:54 ---------------

I made it work on vBulletin 4.0.6. This patch basically authenticates the login name instead of the user name. It requires adding one column to the user table and an edit of a core vBulletin file. Hence the following warning:

WARNING: DO NOT ATTEMPT THE FOLLOWING IF YOU ARE NOT ACQUAINTED WITH SQL AND PHP.

Step 1: add an indexed loginname column to the user table and to the strikes table:
ALTER TABLE user ADD loginname varchar(100) NOT NULL DEFAULT '';
CREATE INDEX loginname ON user(loginname);
ALTER TABLE strikes ADD loginname varchar(100) NOT NULL DEFAULT '';
CREATE INDEX loginname ON strikes(loginname);

The index is needed for performance reasons.

Step 2: set the loginname value for all users to the current username value:
UPDATE user SET loginname = username;
Step 3: set the username for one test user you can log on with to the display name. In my case, the display name is stored as field5 in the userfield table. Updating only the user name from a test user with user ID = 1234 can be done in my case with the following SQL query:
UPDATE user SET username = (SELECT field5 from userfield where userid = 1234) where userid = 1234;
Step 4: go to your webserver and locate the file "includes/functions_login.php".
4.1. Copy that file to functions_login.php.orig so you can revert your edit should something go wrong
4.2. Apply the following patch to functions_login.php:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 5: Login with this test user to verify you can still log onto the vBulletin platform.

Step 6: Go to the Admin CP > Maintenance > Rebuild thread information and then run Rebuild forum information to update the user name in threads. This may take a while on bigger boards.

I have checked with a regular user and a moderator on the boards with this hack in place. It works for both (the user can post, and the moderator can moderate the threads).

Please note that I still have to more thoroughly check all vBulletin functionality with this hack in place. Review from more experienced vBulletin developers/coders is appreciated!

I hope it is OK to post this hack here. Who knows it might get into the vBulletin code base?

Last edited by shutterfreak; 09 Sep 2010 at 22:14. Reason: Added "rebuild forum information" to step 6
Reply With Quote
  #9  
Old 06 Sep 2010, 21:58
shutterfreak shutterfreak is offline
 
Join Date: Sep 2010
Almost fully implemented now

I managed to almost entirely implement the login name / display name dissociation on vBulletin. To get the user registration bit done, I had to edit the 'register' template, which now contains the following <div> section after the login name <div>:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This means I also had to create an AJAX script named "clientscript/vbulletin_ajax_loginverif.js" (basis is "clientscript/vbulletin_ajax_nameverif.js", edits reflect 'loginname' instead of 'username', new method name, reference to the "reg_verif_login_div" <div> element, replace the URL parts wih "do=verifyloginname", ...).

Then I had to edit ajax.php (mainly copying verifyusername() to verifyloginname() and edit accordingly), class_dm_user.php, user.php and adminfunctions_user.php in order to add the 'loginname' bits where needed.

Finally I also had to add a couple new phrases for the login text snippets:
Register Phrases Containing 'loginname'
  1. enter_your_loginname
Notices Phrases Containing 'loginname'
  1. loginname_is_valid
GLOBAL Phrases Containing 'loginname'
  1. loginname
Error Messages Phrases Containing 'loginname'
  1. fieldmissing_loginname
  2. loginname_contains_semi_colons
  3. loginnametaken
  4. loginnametaken_edit_here
  5. loginnametoolong
  6. loginnametooshort
  7. sameloginnamepass
I then edited the default text for the 'enter_your_username' phrase so it does not mention the login process anymore.

I still have to add a couple options as well, but right now I copied them from the username settings.

Eventually I should create a patch against a fresh 4.0.6 install.

Best regards,

Olivier
Reply With Quote
  #10  
Old 06 Sep 2010, 23:43
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
I'm not sure why you're posting in this thread, as the virtual names hack you're working on doesn't bear any resemblance to what the OP was asking for. Maybe you should be posting over in the programming forum so people could assist with that aspect.

I'm sure if I think about it I can think of several administrative options with virtual names. Like - how many people could use the same name? I guess there's no technical reason everyone on the board couldn't just use the same virtual name.

Oh, and don't even think of releasing this as a mod until there are no template edits.
Reply With Quote
  #11  
Old 07 Sep 2010, 05:22
shutterfreak shutterfreak is offline
 
Join Date: Sep 2010
Originally Posted by Videx View Post
I'm not sure why you're posting in this thread, as the virtual names hack you're working on doesn't bear any resemblance to what the OP was asking for. Maybe you should be posting over in the programming forum so people could assist with that aspect.
The OP asked for a possibility to use 2 tokens for identifying a member: the "user name" and the "real name". From what I made from the OP's question, and given the fact that vBulletin does not make the distinction between a login name and a display name, I understand that the OP wants to separate the user authentication bit (with "user name" in his post) from the way a member is known on a vBulletin board (with "real name" in his post).

In my approach I'm basically doing precisely this. However I use "login name" instead of "user name", and I use "user name" instead of "real name".

Technically the same approach.

Originally Posted by Videx View Post
I'm sure if I think about it I can think of several administrative options with virtual names. Like - how many people could use the same name? I guess there's no technical reason everyone on the board couldn't just use the same virtual name.
My approach uses the same type of validation to check for existing user names (e.g., valid characters, cleanup etc as provided by vBulletin for the username field). In addition I check the login name for uniqueness.

In the case of the OP there still ought to be a unique identifier or vBulletin and the members of that board will be confused about which of the 5 "John Doe" members a certain participant is. For the OP this could e.g. be realized by:
  1. enforcing unique login names
  2. allowing non-unique display names (the names by which a member can be identified while participating on the boards)
  3. making an avatar photo mandatory at registration

I do not claim to be a vBulletin expert. If you are willing to share your insights, please do so.

Originally Posted by Videx View Post
Oh, and don't even think of releasing this as a mod until there are no template edits.
There is no way to implement this without adding the 2nd user name field (login name in my case) to the 'register' template bit. Indeed, how can vBulletin know that this field needs to be rendered (and when)?

Unless you refer to user profile fields. And then the "hack" will be much more complicated to implement IMHO as you'll have to hunt for all places where a vBulletin user name is rendered and replace it with a new profile field. Plus, you won't have the possibility to do a lot of validation checks of that field.

So according to you, because of this simple template edit, this can't be posted as a mod?

Maybe we misunderstood each other here.

Last edited by shutterfreak; 07 Sep 2010 at 06:03. Reason: Added extra clarification
Reply With Quote
  #12  
Old 07 Sep 2010, 06:28
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Oh, you wouldn't be the first to release a mod which required so many template edits that I just wouldn't mess with them. Although that Template Modification System was real nice.

I think the OP was just asking how he could force users to use real names. He didn't ask about virtual names (or second user names) at all. VB has always used numbers to identify members. So in theory there's no reason you couldn't have say, 10 alternate aliases in your Settings and you could change them as the mood strikes you. Not for my forum, but I can picture lots of people installing a virtual name mod if it was easy enough.
Reply With Quote
  #13  
Old 07 Sep 2010, 07:21
shutterfreak shutterfreak is offline
 
Join Date: Sep 2010
Originally Posted by Videx View Post
Oh, you wouldn't be the first to release a mod which required so many template edits that I just wouldn't mess with them. Although that Template Modification System was real nice.
Fortunately I managed to limit the template edits to 1: a mere addition of some HTML & template preprocessor code, no replacements

I see no reason yet why this should change.

Originally Posted by Videx View Post
I think the OP was just asking how he could force users to use real names. He didn't ask about virtual names (or second user names) at all. VB has always used numbers to identify members. So in theory there's no reason you couldn't have say, 10 alternate aliases in your Settings and you could change them as the mood strikes you. Not for my forum, but I can picture lots of people installing a virtual name mod if it was easy enough.
You're right about the internal identifiers used in vBulletin: they're all numbers. This is 'never' exposed to the users. for this reason I infer that the OP thought about the 'username' field as the identifier he wanted to be the real name of a participant.
Reply With Quote
  #14  
Old 22 Mar 2011, 19:37
Mostjolly's Avatar
Mostjolly Mostjolly is offline
 
Join Date: Apr 2008
Real name: Nhat
Facebook is king because they make it easy to find friends (and find friends is by their real name), if FB uses usernames... good luck searching your friends with that..

I could find any friends on facebook, not quite with mayspace cause majority of times people uses like babyboo, sweeteyes.. how the hell I know who they are? but if they put Mike Joes, Nancy Mitchell (one of my friend) then hell yeah I'll join a forum cause my friends is on there.. get the point?? Beside using real names creates a more personal identity for connection & interacting with friends..

Yelp and Facebook is ahead of their game just with the "Real Name" concepts..
__________________
.

Last edited by Mostjolly; 22 Mar 2011 at 19:44.
Reply With Quote
  #15  
Old 19 Jun 2013, 12:23
F. Krueger F. Krueger is offline
 
Join Date: Aug 2010
Originally Posted by TimberFloorAu View Post
May I ask why you want people to use their real Names ?
Our vBulletin is for an extended family connection.
We have over 1000 extended family members.

When you are dealing with family you dont need to be as worried when its verified users only.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Real "read/not read" threads and "new messages in forum" highlighting v1.2 JohnWoo vBulletin 3.0 Full Releases 43 16 Sep 2006 03:54
Real "read/not read" threads and "new messages in forum" highlighting 1.1 JohnWoo vBulletin 2.x Full Releases 30 22 Mar 2004 00:10



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:04.

Layout Options | Width: Wide Color: