The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Profile Fields In Postbit
Can somebody tell me how to add User Profile Fields into the Postbit???
|
#2
|
||||
|
||||
Use the following
Code:
{vb:raw post.fieldX} |
#3
|
|||
|
|||
Where do I place this code????
|
#4
|
||||
|
||||
Go to the ACP > Styles and Templates > Style Manager
Find your style. In the drop down box, select "Edit Templates". Scroll down and find "Postbit Templates". Double click. You will see a list of templates. Find "postbit_legacy". This is a template file, it's pretty much HTML with some variables like the one above. Edit the template and insert your field wherever you want it to be. |
Благодарность от: | ||
MarkFL |
#5
|
|||
|
|||
Quote:
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if> <vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if> <vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if> It doesn't appear at all. |
#6
|
||||
|
||||
I don't see where you added the field?
|
#7
|
|||
|
|||
I have a custom style:metro I went to the postbit_legacy and tried to add the code with no success, so I went and copied one of the actual codes and still nothing worked at all.
|
#8
|
||||
|
||||
Code:
<vb:if condition="$post['fieldX']"><dt>Your Field Name Here</dt> <dd>{vb:raw post.fieldX}</dd></vb:if> |
#9
|
|||
|
|||
Quote:
Thank you so much, Now I have two questions in regards to this. One of them being the space between My Race: and African American? How do I pull the answers closer to the : Also Location and Age is not showing at all, I believe those profile fields were deleted, do you have any idea on how I could get them to work again? |
#10
|
||||
|
||||
Make sure you didn't change the code. As for the different line, that is a CSS issue that I can't help with.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|