The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can I show 'real name' instead of 'userid'
In all posts, is it possible to show the 'real name' (a custom user profile field - required on registration) instead of 'userid' ?
Since our forum is an alumni forum, it will help greatly in more accurately identifying the poster to everybody else. |
#2
|
|||
|
|||
Yes you can, although it will take a lot of setting up. The userid is called in a lot of places, so I believe you will have to replace all instances of that as well.
|
#3
|
|||
|
|||
Why not have them register with their first initial and last name or something of that sort. You could even adjust the ones that are already registered.
|
#4
|
||||
|
||||
Quote:
In addition we also urged members to type in displayed names alongwith batch year(year the person passed out from school) eg: Siddhartha Chaliha '91. This helped in users passing out the same year quickly identify posts made by their classmates. I know we can have a custom field called 'batch year' in VB too, and postbit it, but the user name is the one that really stands out, apart from it being displayed on the 'who made last post' etc columns. |
#5
|
||||
|
||||
Is the phrase to be changed (in all templates) [userid] or $post[username]?
Can someone let me know the phrase which represents the user login id? |
#6
|
||||
|
||||
It's not a phrase.
$post[username] is the username - yours is sidman $post[userid] is the userid number - yours is 279918 Those two variables may only be used for posts in a thread. If you are changing it in thee members profile, you will have to use $userinfo[username] and $userinfo[userid]. |
#7
|
||||
|
||||
Thanks Lynne!
Much obliged!:up: One more Q then? If I have created a custom user field in Admin CP, called it "Real Name", varname is $vbphrase[field8_title] and text is Real Name, then to change a post to show a user's real name instead of where it shows the user's login id (in blue, bold and underlined), what do I have to do - Change all $post[username] to $post[field8_title]? Will this be enough to do the job - atleast in the user posts? |
#8
|
||||
|
||||
Code:
$post[field8] |
#9
|
||||
|
||||
I've managed to change the code to now show the users "real name" as against his/her "username" (or login id).
Would anyone know the variables to change to show the user's 'real name' in the main thread display? (esp the last post column?) Many of our users visit threads if they know it's a friend/close peer (same batch) who's made a post - and the thing about login id's are that they're, by nature, not very clear. |
#10
|
||||
|
||||
It would be in the forumhome_lastpostby template. They use $lastpostinfo in there, so try $lastpostinfo[field8]. If that doesn't work, you'll probably have to write a plugin to grab the info.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|