The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Showing a different username
Hi! I have a $userid, and I want to change the username displayed for that id without changing the username. For example, I have a user named "abcd". For the user, I want to show "Mike" instead of abcd. I guess what I'm asking for is a display name/nickname? I should still be able to log in as abcd, but the name displayed should be different.
So far I retrieved some data from a database, and I'm trying to change the name displayed. Thank you for all your help. Have a great holiday season. |
#2
|
|||
|
|||
I figured it out-- I just created a hook to fetch_userinfo and changed the $user['username'] to whatever I wanted based on the $user['userid'].
However, it doesn't work everywhere though. There are still some places where the username still says the original unmodified one... Any ideas? Edit: sorry for the double post |
#3
|
|||
|
|||
I think your problem may be that the user name for a post is saved in the post table. I'm sure that's done for efficiency, so that post information can be displayed without going to the user table. But it's a problem for what you're doing because you need to either find the places where posts are displayed and change to the nickname, or else find where the post user name is saved and change to saving the nickname (or add a column for it (and in that case you'd also need to fix the existing posts).
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|