View Full Version : Adding new fields
killerford
08-31-2012, 02:12 PM
I've been trying to add new field's so they add to people's profiles but they aren't showing in the profile area in posts. Why?
ForceHSS
08-31-2012, 02:13 PM
Post all options you are using with screenshots
killerford
08-31-2012, 02:50 PM
http://img534.imageshack.us/img534/7416/42071503.png
http://img208.imageshack.us/img208/1554/88624011.png
peugeot405
08-31-2012, 02:56 PM
at the bottom under display page you've set the profile field to show on options: thread viewing. It will on be shown on the settings page, not in profile.
To show on profile you have to set it on edit profile. Then it will show on profile page and on the settings page under edit profile.
killerford
08-31-2012, 10:07 PM
Would that make them show on the postbit?
peugeot405
08-31-2012, 10:29 PM
to show it on postbit you have 2 options:
add following code in postbit or postbit legacy: <vb:if condition="$post['fieldxx']">
<dt>{vb:rawphrase location_perm}</dt>
<dd>{vb:raw post.fieldxx}</dd>
</vb:if>.
Replace xx with the field number.
use the following mod: GamerCards Block in Profile Sidebar and Postbit (https://vborg.vbsupport.ru/showthread.php?t=232033)
killerford
09-01-2012, 09:38 AM
to show it on postbit you have 2 options:
add following code in postbit or postbit legacy: <vb:if condition="$post['fieldxx']">
<dt>{vb:rawphrase location_perm}</dt>
<dd>{vb:raw post.fieldxx}</dd>
</vb:if>.
Replace xx with the field number.
use the following mod: GamerCards Block in Profile Sidebar and Postbit (https://vborg.vbsupport.ru/showthread.php?t=232033)
How would I add more than one field? Do I add that code over and over again or just add more of this code (<dd>{vb:raw post.fieldxx}</dd>) under the current one?
peugeot405
09-01-2012, 01:49 PM
that is correct.
You add the code
<vb:if condition="$post['fieldxx']">
<dt>title</dt>
<dd>{vb:raw post.fieldxx}</dd>
</vb:if>
for every custom field, changing the title and the xx to math the custom field you add.
note: the code above is the basic code, there are more extended codes depending on what type of custom field you are using (single-line textbox, multiple-line textbox, single selection radio buttons, single-selection menu, multiple-selection menu, multiple-selection checkbox).
Here are some threads about the subject:
Using your User Profile Fields in your postbit templates (https://www.vbulletin.com/forum/showthread.php/362345-Using-your-User-Profile-Fields-in-your-postbit-templates)
Using your User Profile Fields in your postbit templates (w/ all plugin method) (https://vborg.vbsupport.ru/showthread.php?t=250418)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.