MyBB Community Forums

Full Version: Get input from custom field in userCP + questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So im implementing a customizable user profile system. Here are several questions.

1. How do I add a color picker next to my custom profile fields.
2. How do I get an input from a custom field (say for example, I want to get input from custom field 4 (which is the background image url) in userCP. How can I make this possible?)

I'm asking this so I can achieve this through my "edit profile" page and have a customizable profile system on my website. (yes, this is a big project and a breakthrough)

[Image: 951bbe16e4c9f4e825440010bee6ce63.png]
(12-04-2014, 06:53 AM)Phantomer Wrote: [ -> ]1. How do I add a color picker next to my custom profile fields.

I think you'd have to write a custom plugin to add this functionality.

(12-04-2014, 06:53 AM)Phantomer Wrote: [ -> ]2. How do I get an input from a custom field (say for example, I want to get input from custom field 4 (which is the background image url) in userCP. How can I make this possible?)

If you want to access a custom field in a template, you would need to use the following template variable:

{$mybb->user['fidX']}

Where X would be the field id for that profile field.