View Full Version : User Profile Fields In Postbit
men2dope
01-03-2015, 04:48 PM
Can somebody tell me how to add User Profile Fields into the Postbit???
KGodel
01-03-2015, 04:57 PM
Use the following
{vb:raw post.fieldX}
Where X is the number.
men2dope
01-03-2015, 05:05 PM
Use the following
{vb:raw post.fieldX}
Where X is the number.
Where do I place this code????
KGodel
01-03-2015, 05:11 PM
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.
men2dope
01-03-2015, 05:47 PM
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.
I tried to edit the following to include the fieldnumber.
<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.
KGodel
01-03-2015, 06:05 PM
I don't see where you added the field?
men2dope
01-03-2015, 06:06 PM
I don't see where you added the field?
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.
KGodel
01-03-2015, 07:11 PM
<vb:if condition="$post['fieldX']"><dt>Your Field Name Here</dt> <dd>{vb:raw post.fieldX}</dd></vb:if>
Should do it.
men2dope
01-03-2015, 07:22 PM
<vb:if condition="$post['fieldX']"><dt>Your Field Name Here</dt> <dd>{vb:raw post.fieldX}</dd></vb:if>
Should do it.
https://vborg.vbsupport.ru/external/2015/01/32.jpg
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?
KGodel
01-03-2015, 07:32 PM
Make sure you didn't change the code. As for the different line, that is a CSS issue that I can't help with.
ozzy47
01-03-2015, 07:56 PM
Add this to your additional.css
.postbitlegacy dl.userinfo_extra dt, .postbitlegacy dl.user_rep dt {
margin-right: 1px !important;
}
That is the best you are going to be able to do without increasing the actual width of the postbit it's self.
men2dope
01-03-2015, 09:05 PM
Add this to your additional.css
.postbitlegacy dl.userinfo_extra dt, .postbitlegacy dl.user_rep dt {
margin-right: 1px !important;
}
That is the best you are going to be able to do without increasing the actual width of the postbit it's self.
Thank you. Do you know how I can remove the vbBux/vbPlaza points, bank, total points and donation from the postbit?
https://vborg.vbsupport.ru/external/2015/01/31.jpg
ozzy47
01-03-2015, 09:17 PM
That is something you would have to as in the mods thread.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.