![]() |
Showing Custom Profile Fields On Postbit And Postbit Legacy
So all day today I was trying to figure this out, so I decided to show it you guys as well. This is my first code or what ever you want to call it lol.
Anyways, First make the custom profile field you want to show. To do that Admin CP > User Profile Fields > Add New User Field. Fill out what fits right for your profile field. Just remember the field number. Once you did that, go to Admin CP > Languages And Phrases > Phrase Manager > Add New Phrase. Fill it out as: Phrase Type: GLOBAL Product: vBulletin Varname: (What ever you want it to be) Text: (Example: If your custom profile field was favorite athletes this should be Favorite Athletes) Once you did that go to Admin CP > Styles and Templates > Style Manager > (Skin you're editing) > Edit Templates > Postbit Templates > Postbit Legacy Find: Code:
<span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if> Code:
<if condition="$post['fieldx']"><div class="postinfo">$vbphrase[varnamehere]: $post[fieldx]</div></if> Please don't be too harsh with this lol. I know there are newbies out there like me that didn't know how to do this. Any problems, post it in here. Click Install, and please visit my forum. http://sport-gods.com/forums/index.php |
First post reserved.
|
any screenshots ?
|
Quote:
|
I use it in my forum, thanks.
This works in the regular postbit too. |
Quote:
|
Screen shot added.
|
Quote:
What font did you use in your screenshot. :D |
Quote:
|
This works great.
Has anyone figured out how to use the dropdown profile fields for this. It seems that it reports in postbit as a number rather then the assigned word. I tried the single selection dropdown, but really want the multi-selection dropdown for my application. |
is there a way you can add pictures ? instead of words ?
|
nevermind i figured it out but thank you
|
Wondering if someone can help me? Only the phrase is showing up in the postbit - the text entered by members only shows up on their profile, and the postbit shows the phrase and the number 1 next to it.
So my phrase is: On my Christmas wish list What is on the postbit is: On my Christmas wish list: 1 The field number is 15, so I don't think that has anything to do with it? |
Quote:
|
I did 3 of these and only 1 comes up right, the other 2, only the text entered by the user in the user settings shows up
|
Really helpfull this one today ! Thank you.
|
dsnt works
|
Working now
|
:up:
Thanks for the useful information. Just what I was looking for. |
A very helpful tutorial thanks!
|
Hi guys, searched the internet all day long and i think this is what im looking for. have followed all the steps but notice my code is different as im on vB 4.
anyone able to suggest what i should change the code here to match the vB 4 code. thanks for your help, |
There is an Article in the VB4 Articles section on how to do this for VB4- https://vborg.vbsupport.ru/showthread.php?t=250418
|
All times are GMT. The time now is 04:59 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:
|