The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How Does $customfields Work?
I have moved $customfields around in the modifyprofile template within VB3 admin and then looked at the output on profile.php.
The thing that I do not understand is that it comes with its own formatting. For example I put $customfields[required] anywhere in the template and it comes out as showing the required custom fields for that user on the profile.php page. I then did a "view source within IE 6 and this $customfields[required] variable displays with tables and rows and columns. Can someone explain to me where $customfields[required] is getting the formatting and how it is making a database call for just that user and putting that user's info in a nice table? Thanks in advance. |
#2
|
||||
|
||||
well, its defined in profile.php
A hint for finding out the correct templates: You can turn on 'show template names in comments' setting from within your acp vBulletin options, it makes debugging a lot easier |
#3
|
|||
|
|||
Hi Thanks for the reply. I found this in profile.php:
Code:
// Get Custom profile fields $customfields = array(); fetch_profilefields(0); |
#4
|
||||
|
||||
you may want to take a look at fetch_profilefields()
it's defined in includes/functions_user.php |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|