The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
How to put custom profile field into postbit
I'm not sure if this should be in this section or under the Template Mods section.
Basically you want to open up the postbit template. AdminCP > Styles & Templates > Style Manager > Edit Templates > Posbit Then search for "joindate" which will take you to the section of the postbit template that you'll want to edit. You can choose for yourself where exactly you want to put the additional profile field information. For me I wanted it above the Join Date so find. Code:
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if> Code:
<vb:if condition="$post['fieldX']"><dt>XXXXXXXXX</dt> <dd>{vb:raw post.fieldX}</dd></vb:if> Replace the two X's with the field number of your profile field. This information can be found by going to AdminCP > User Profile Fields > User Profile Field Manager. Make sure the number is the the field number and NOT the display number. Next, replace the information in between the <dt> tags (XXXXXXXXX) with whatever you want it to say in the Postbit. I don't know how to use the {vb:rawphrase XXXXXX} stuff, so I just put basic text in between the <dt> tags and it worked ok. On my forums, I wanted to add a "Car" profile field that details what kind of car each person drives. A screenshot. Of course, this template usually needs to be reverted when upgrading vB, so it's not the best solution, but it works. (Apologies if this has been posted since the release of vB4, I hadn't seen it yet). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|