The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Load specific custom field in registration page?
Hello! Currently the default Register template uses {vb:raw customfields_option} to load all custom fields into the Register page. I want to load specific individual custom fields where I see fit on the Register page, instead of the ALL custom fields in one block. What is the vb raw code to load a single specific custom field for the new user to fill in?
Thanks! |
#2
|
|||
|
|||
Hello, I am unable to test this to ensure it works - however if you haven't tired already:
Reviewing register.php: Code:
if ($profilefield['required'] == 2) { // not required to be filled in but still show $profile_variable =& $customfields_other; } else // required to be filled in { if ($profilefield['form']) { $profile_variable =& $customfields_option; } else { $profile_variable =& $customfields_profile; } } Code:
<vb:if condition="$profilefield[required] != 2">{vb:raw customfields_option}</vb:if> |
#3
|
||||
|
||||
That didn't work for me. Any other ideas? Thanks, by the way.
|
#4
|
|||
|
|||
The next idea would be to edit the register.php. In the same snippet of code, remove:
Code:
if ($profilefield['required'] == 2) { // not required to be filled in but still show $profile_variable =& $customfields_other; } Code:
if ($profilefield['required'] != 2) { if ($profilefield['form']) { $profile_variable =& $customfields_option; } else { $profile_variable =& $customfields_profile; } } |
#5
|
||||
|
||||
Hmmm... unfortunately, there is nothing loading when I try your method. No errors, no fields, nothing. Also, I am not sure if it matters, but these fields I am trying to display are not required fields.
|
#6
|
|||
|
|||
Oh I was believing they were required custom fields. Both of my snippets above were as if they were required during registration.
|
#7
|
||||
|
||||
So, does anyone know how to help me?
|
#8
|
||||
|
||||
Help? Anyone?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|