The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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! |
#2
|
||||
|
||||
![]()
this may help you
Code:
<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> It is code from this mod https://vborg.vbsupport.ru/showthrea...ighlight=wired |
#3
|
||||
|
||||
![]()
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? ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|