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). |
#2
|
|||
|
|||
This is WICKED... I was wondering how to do this....
What I am really looking to do is to add a custom field in the postbit that would list the FORUMS a moderator leads.. that also might LINK to the forum they lead... |
#3
|
|||
|
|||
I'm sure it's possible, but I don't know how to do it.
|
#4
|
|||
|
|||
Hello mates,
First of all, thank you very much for this tutorial. I have one question though: I have a custom profile filed that is a "Multiple-Selection Menu", so this field can have several values. How can I address these values in this example "{vb:raw post.fieldX}"? Thank you for your help. --------------- Added [DATE]1263496357[/DATE] at [TIME]1263496357[/TIME] --------------- Quote:
|
#5
|
|||
|
|||
Well the post.fieldX should still have X as the field number, no matter what kind of field it is (fill in the blank, pick from a selection list, etc). However, I'm not sure what you should put between the <dt> tags.
|
#6
|
|||
|
|||
thanks for the refresher!
|
#7
|
|||
|
|||
Has anyone updated to vB4.0.1 after doing this? Did you have to revert the template?
|
#8
|
|||
|
|||
I tried this on 4.0.1 and it isn't working....
|
#9
|
|||
|
|||
What part of it wasn't working? What happened?
|
#10
|
|||
|
|||
I also tried this on 4.0.1 & I cannot get it to work. It will allow me to do some fields, but it will not allow me to do a field with Multiple Selection Menu. Is it a different code for this?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|