The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
"Real Name" does not appear in user fields
Hi!
I'm the Admin on the Pipesmoker Unlimited forum, currently running vBulletin 4.2.1 In the ACP, in the User Profile Manager, I have added a new user profile field: "Real Name" I want the "Real Name" to appear under the user names on forum level (under the avatar). "Location" IS displayed but not "Real Name". How do I make "Real Name" appear?? Note: I have read this thread: click But what puzzles me is that "Location" is present in the user fields, but not present when you check the templates. What I need is to have both "Location" and "Real name" in the user fields together with their post count etc. |
#2
|
|||
|
|||
You are looking at a vb5 article. Try this one instead: https://vborg.vbsupport.ru/showthread.php?t=250418
|
#3
|
|||
|
|||
Thanks.
I will have a look. |
#4
|
|||
|
|||
You want to go to Styles & Templates > Style Manager, then in the dropdown menu for the style you want to edit ("default" if you have only one style), choose "Edit Templates". Then in the template list find "Postbit Templates" and double click it to expand the list. Then double click postbit_legacy" to edit it.
|
#5
|
|||
|
|||
Okay, found what you pointed to.
But I am still at a loss! Where exactly do I put the following in the article: <vb:if condition="$post['fieldx']"><dt>My FieldX</dt> <dd>{vb:raw post.fieldx}</dd></vb:if> Where I of course change "fieldx" to the actual field name and the green field to whatever I want. I want the "Real name" to stand AFTER "Location" and BEFORE "Posts"... also, I need a : after "Real name" I did try to insert the code but the "Real name" didn't appear in the user field (I have my real name on my profile page). |
#6
|
|||
|
|||
Like the article says under "Method 1", find this:
Code:
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd> and after it, put something like this: Code:
<vb:if condition="$post['fieldx']"><dt>My FieldX</dt> <dd>{vb:raw post.fieldx}</dd></vb:if> that puts it after the post count. If you want it to appear somewhere else, it should be easy enough to look at the template code around that same place and find where to move it. |
#7
|
|||
|
|||
Okay, makes sense... I'll give it a try.
|
#8
|
||||
|
||||
Quote:
Code:
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd> <vb:if condition="$post['fieldx']"><dt>My FieldX</dt> <dd>{vb:raw post.fieldx}</dd></vb:if> |
#9
|
|||
|
|||
Quote:
Like Mike said. It actually doesn't matter if it's right after or on the next line, but it's easier to read if you put it on it's own line. I think you might actually be less likely to mess up the template if you add that line than if you try to copy the entire thing. Also, although I usually choose to just answer people's question rather than telling them to search or to figure it out, in this case it should be easy enough that I think you'd benefit by taking a minute and finding where it goes. If you mess up the template you can always select it and choose "revert" (assuming there haven't been any other changes made to it, of course). |
Благодарность от: | ||
BULLDOG |
#10
|
|||
|
|||
Thanks guys! It worked!
"Case closed" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|