![]() |
User Profile Fields In Postbit
Can somebody tell me how to add User Profile Fields into the Postbit???
|
Use the following
Code:
{vb:raw post.fieldX} |
Quote:
|
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. |
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. |
I don't see where you added the field?
|
Quote:
|
Code:
<vb:if condition="$post['fieldX']"><dt>Your Field Name Here</dt> <dd>{vb:raw post.fieldX}</dd></vb:if> |
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? |
Make sure you didn't change the code. As for the different line, that is a CSS issue that I can't help with.
|
All times are GMT. The time now is 03:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|