View Full Version : What is the code to display the initial input elements of custom profile fields?
AFemaleProdigy
01-24-2012, 08:08 PM
What is the code to display a specific custom profile field input element within a template? For example: Custom profile field xyz is a drop down menu. I want to show that drop down menu in a template.
I know to display the resulting answer to the input we use {vb:raw userinfo.field12} but that is not what I need.
I need the actual input (drop down menu) that comes before that final output. I think it would involve the table "profilefield" and/or the field "profilefieldid", but I don't quite know how to write that out.
Any suggestions? Thanks!
LifesGreatestGift
01-24-2012, 08:26 PM
this may help you
<form action="profile.php" method="post">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="do" value="{vb:raw updateextra}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<h2 class="blockhead">Edit Custom Fields</h2>
<div class="blockbody formcontrols">
<h3 class="blocksubhead">Fields</h3>
{vb:raw userinfo.field12}
</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="submit" class="button" value="{vb:rawphrase save_changes}" accesskey="s" />
<input type="reset" class="button" value="{vb:rawphrase reset_fields}" accesskey="r" />
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="updateprofile" />
</div>
</div>
</form>
Its not 100% but it gives you some code to play around with.
It is code from this mod
https://vborg.vbsupport.ru/showthread.php?t=229881&highlight=wired
AFemaleProdigy
01-24-2012, 08:44 PM
Thanks, but I don't think that shows me what I need. I am having a hard time wording what I need.
What you posted is showing me what the user already has stored for their custom profile fields (userinfo.field12).
I need to display the custom profile field input variable BEFORE the user has saved any selections. More specifically, this will be on the new user registration page.
By default, vB registration page will show all the custom profile fields in a group. I need to move the different custom profile fields individually to other locations on the page. So I need the code for individual custom profile fields. Right now, register template uses "{vb:raw customfields_option}" to show all custom profile fields. I need to break it up.
Does that make sense? :confused:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.