How would I be able to include custom user profile fields in users post box under location?
custom profile field in user post
Collapse
X
-
AdminCP -> Styles & Templates->Style Manger -> Modify -> [expand list] -> Postbit Templates -> [expand] -> postbit -> [edit]
you will see the 'registered' and 'location' parts towards the top of this template. just addCode:<vb:if condition="$post['field[B]X[/B]']"><dt>[B]Filed Name[/B]</dt> <dd>{vb:raw post.field[B]X[/B]}</dd></vb:if>
Code:<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
Admin CP -> User Profile Fields -> Modify
mouse-over the [edit] links for each field, the number is at the end of the url that shows in the bottom of your browser window. -
I tried
Code:<vb:if condition="$post['field5']"><dt>field5</dt> <dd>{vb:raw post.field5}</dd></vb:if>
Code:<vb:if condition="$post['field5']"><dt>Current Car</dt> <dd>{vb:raw post.field5}</dd></vb:if>
My board: Auto Forum powered by vBulletin.Comment
-
Add it to postbit_legacy template if you're using legacy styleComment
-
Add it to postbit_legacy template if you're using legacy styleMy board: Auto Forum powered by vBulletin.Comment
-
Related Topics
Collapse
-
by TheBishI followed the instructions here to modify my postbit with custom user profile fields... https://www.vbulletin.com/forum/blog...-to-s/3971574-[vb5]-user-profile-fields-in-the-postbit-templates...1 Photo
-
Channel: Support Issues & Questions
-
-
by FleidingUsing this wonderful post I have added one of my custom profile fields to the postbit, but I'm having a small issue once I slightly edited the code.
I changed this:
Code:<vb:if
-
Channel: Support Issues & Questions
-
-
by klongdesignsSo I'm trying to add the user's location (field2) into the conversation_userinfo template. I'm using a hook to hook into this and have the following code in the new template:
Code:{vb:data userInfo,
-
Channel: Support Issues & Questions
-
Comment