The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I show a custom profile field
Hello, How do I get custom profile field to show up under the username when they post?
I've just added a new mandatory profile field that members have to fill in. But how can I make this field is always visible in posts, showing under their username? thank you in advance :up: |
#2
|
|||
|
|||
There's an article on how to do this: https://vborg.vbsupport.ru/showthread.php?t=250418 . (It's a vb4 article but I believe it will still work if you use vb3 template syntax).
The short answer is that if your profile field is text or single selection (menu or radio button), then you just need to put $post[fieldX] in your postbit or postbit_legacy template. |
#3
|
||||
|
||||
Hmmm - I don't think vB 4.x syntax will work with vB 3.x
The following code may be of help though: Code:
<if condition="$post['fieldX']"> <strong>Field Name:</strong> $post[fieldX]</if> HTH J. |
#4
|
|||
|
|||
You're right, that's why I mentioned that you'd need to use vb3 template syntax. I wanted to point out the article anyway because if you want to use a multiple selection profile field it gets a little more complicated.
|
Благодарность от: | ||
JacquiiDesigns |
#5
|
|||
|
|||
thank you for your answers, should be a lot of people that have done this with their forums right? Will try this code during the day.
|
#6
|
||||
|
||||
Quote:
Just as an FYI - here's a list vB 3.x template conditionals. I've bookmarked it and have used it as a resource dozens of times. Should be helpful J. |
#7
|
|||
|
|||
Use This Coding
Code:
<if condition="$post['fieldX']"> <strong>Field Name:</strong> $post[fieldX]</if> And Use This Code In Your admincp --> Styles & Templates --> Search in Templates --> postbit_lagacy And Add This Coding Where You Want To Look i Hope This Is Usefull For You |
#8
|
||||
|
||||
Quote:
J. |
#9
|
|||
|
|||
admincp --> Styles & Templates --> Search in Templates --> postbit_lagacy And Add This Coding This Is New Information
|
#10
|
||||
|
||||
oh. okay.
Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|