Additional Settings For Custom Profile Fields [1.2]
Gstone Offline
Member
***
Posts: 55
Joined: May 2012
Post: #41
RE: Additional Settings For Custom Profile Fields
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?
05-26-2012 04:05 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #42
RE: Additional Settings For Custom Profile Fields
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.

05-27-2012 05:59 AM
Find all posts by this user Quote this message in a reply
armin3000 Offline
Junior Member
**
Posts: 3
Joined: May 2012
Post: #43
RE: Additional Settings For Custom Profile Fields
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!
(This post was last modified: 06-11-2012 08:39 AM by armin3000.)
06-11-2012 08:38 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #44
RE: Additional Settings For Custom Profile Fields
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):
       

For the output, it won't be displayed if the "blank option" is selected and there is no value supplied in Blank Replacement Value.

06-12-2012 04:40 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #45
RE: Additional Settings For Custom Profile Fields
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()...

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 06-12-2012 07:15 AM by Sama34.)
06-12-2012 07:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #46
RE: Additional Settings For Custom Profile Fields
Not for me (fresh installation):
   

Could you please post the full error message?

06-12-2012 07:35 AM
Find all posts by this user Quote this message in a reply
armin3000 Offline
Junior Member
**
Posts: 3
Joined: May 2012
Post: #47
RE: Additional Settings For Custom Profile Fields
I need to make a mandatory custom field uneditable after registration. Does this plugin help? How can I do that?
Thanks
06-14-2012 03:56 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #48
RE: Additional Settings For Custom Profile Fields
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-15-2012 06:22 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #49
RE: Additional Settings For Custom Profile Fields
(06-12-2012 07:35 AM)RateU Wrote:  Not for me (fresh installation):


Could you please post the full error message?

Here it is:
   

Adding a is_array() check fixed it, but no sure if it is the best way of doing it.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 06-17-2012 12:24 AM by Sama34.)
06-17-2012 12:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #50
RE: Additional Settings For Custom Profile Fields
(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?

06-17-2012 05:22 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: