MyBB Hacks

Full Version: Additional Settings For Custom Profile Fields [1.2]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Thank you for the response. =)

Also, I'm trying to edit my User CP -> Edit Profile template. I'm trying to separate some of the custom fields. I've tried a few of the variables mentioned in this thread, but I can't seem to get them to display anything (viewing the page, nothing shows up where I inserted the variable).

My question is, what variable is used to display a Custom Field that is editable by the user?
For displaying the input fields in separated area, you need at least put {INPUT} in the Custom Input setting, then put {$xtpf_inp['fidX']} manually in your usercp_profile template, where X is the profile field id.
Works great. Thank you.
How can I have a blank option in optional select box? Does this plugin solve this problem too?
I want to have an optional select box and if user didn't select any item it remains blank. If I place a blank line in custom field option, MyBB removes the blank line and selects first non-blank item as default!
Not actually a blank option, but maybe we can hide it.

Try this:
Download the update in the first post (just replace the plugin file).
Use Formatting Map List to manipulate it.

Using Sex field as example:
  • Selectable Options?:
    This is the MyBB default value for this setting:

    Code:
    Undisclosed
    Male
    Female
    Other

  • Formatting Map List
    "Change" the Undisclosed value into a "blank option":

    Code:
    Undisclosed{|}
    Male
    Female
    Other

  • Display Format

    Code:
    {VALUE}


You'll get this result (hopefully):
[attachment=847] [attachment=848]

For the output, it won't be displayed if the "blank option" is selected and there is no value supplied in Blank Replacement Value.
Can you check this plugin in fresh installations?

For some reason, the plugin is showing me a PHP error in profiles other that mine (while online).

It says:
Invalid value supplied for foreach()...
Not for me (fresh installation):
[attachment=850]

Could you please post the full error message?
I need to make a mandatory custom field uneditable after registration. Does this plugin help? How can I do that?
Thanks
This plugin can't do that. If you really want it, maybe you can modify this:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=1189&pid=1035
(06-12-2012 07:35 AM)RateU Wrote: [ -> ]Not for me (fresh installation):


Could you please post the full error message?

Here it is:
[attachment=852]

Adding a is_array() check fixed it, but no sure if it is the best way of doing it.
(06-17-2012 12:24 AM)Sama34 Wrote: [ -> ]Here it is:


Adding a is_array() check fixed it, but no sure if it is the best way of doing it.
What version do you use?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Reference URL's