The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Profile Field on Postbit
On my forums, I have a custom profile field called Nickname (because everyone is required to register with their real names since we all know each, but not well enough that we'd know who's who just from their nicknames). I was hoping someone would be so kind as to create a postbit template modification for me that would display the user's nickname between parenthesis after their username on their posts. For example, if the user's username is John Doe and his nickname profile field is johnny, it would display as "John Doe (johnny)".
I know this is a very simple modification, but I'm just not familiar with the vB code and I've never really learned PHP, although I can understand it because of knowing other programing languages. Edit: I also wouldn't mind having it the same way as how "Real name" is here between location and posts, but I would really prefer it to be between parenthesis. Thank you very much in advance, Met |
#2
|
|||
|
|||
Open your postbit or postbit_legacy template, depending on which you're using.
Find this code: Code:
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> Code:
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> ($post[fieldX]) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|