2019-04-05, 09:04 AM
EDIT: ok, i realize i wasn't really clear at first, so here's an example of what i mean with pictures.
on member.php, i have a div that contains some custom profile fields, because i want them in a specific place & order (rather than all of them being in "additional info").
here's what i want it to look like:
as you can see, this user has not filled out the "aliases" and "sexuality" sections.
here's what it looks like right now:
because there's no value available, the dd containers simply collapse.
i've placed these profile fields using this code:
hi, i couldn't find any info on this for the past hour or so of searching, so new thread!
i am making a member profile layout that places specific custom profile fields in specific areas outside of "additional fields", so i have to call them with the "userfields" tag. this means that the rule that makes them invisible when a user hasn't filled them out does not apply, and i end up with empty broken cells in my DL, where the field name i've written out in plain text shows up but its accompanying cell with the actual value collapses, because there's no value available.
i could just hide all the fields that aren't filled out or add a default size for the DL cells, but in order to preserve my design, i'd prefer to add placeholder text to all custom profile fields that aren't filled out--like "No information", etc.--so the DL simply does not collapse, and i'm left with a neat acknowledgement that the user simply hasn't provided that information, but that it has a place. something like what happens when the date-of-birth option isn't filled out, or is hidden, and it shows up as "not specified", rather than simply hiding the field altogether.
unfortunately everything i've found for this is either outdated or doesn't apply to the member.php or textbox/textarea fields, and although i'm comfortable editing core files i'm not quite experienced enough to do an adaption that large on my own! i would also prefer to avoid adding large plugins for this one thing, if possible.
any ideas on how to do this? i've seen it for every mybb forum i've used in the past but have no idea how it's achieved, it seems so simple... thanks!
on member.php, i have a div that contains some custom profile fields, because i want them in a specific place & order (rather than all of them being in "additional info").
here's what i want it to look like:
as you can see, this user has not filled out the "aliases" and "sexuality" sections.
here's what it looks like right now:
because there's no value available, the dd containers simply collapse.
i've placed these profile fields using this code:
<dt class="trow1">Full Name:</dt> (the actual name of the userfield, which i've entered manually)
<dd class="trow2">{$userfields['fid5']}</dd> (the value; if none is available I.E. user hasn't filled it out yet, there is nothing to hold the cell's height up, and it collapses)
hi, i couldn't find any info on this for the past hour or so of searching, so new thread!
i am making a member profile layout that places specific custom profile fields in specific areas outside of "additional fields", so i have to call them with the "userfields" tag. this means that the rule that makes them invisible when a user hasn't filled them out does not apply, and i end up with empty broken cells in my DL, where the field name i've written out in plain text shows up but its accompanying cell with the actual value collapses, because there's no value available.
i could just hide all the fields that aren't filled out or add a default size for the DL cells, but in order to preserve my design, i'd prefer to add placeholder text to all custom profile fields that aren't filled out--like "No information", etc.--so the DL simply does not collapse, and i'm left with a neat acknowledgement that the user simply hasn't provided that information, but that it has a place. something like what happens when the date-of-birth option isn't filled out, or is hidden, and it shows up as "not specified", rather than simply hiding the field altogether.
unfortunately everything i've found for this is either outdated or doesn't apply to the member.php or textbox/textarea fields, and although i'm comfortable editing core files i'm not quite experienced enough to do an adaption that large on my own! i would also prefer to avoid adding large plugins for this one thing, if possible.
any ideas on how to do this? i've seen it for every mybb forum i've used in the past but have no idea how it's achieved, it seems so simple... thanks!