inherit
136315
0
Nov 19, 2014 14:39:06 GMT -8
weaselgun
15
January 2009
fangfire
|
Post by weaselgun on Jan 23, 2017 12:54:22 GMT -8
I'm looking to redo how threads look and I wanted to remove the current signatures and replace that area with custom profile fields. (Character stuff will be in these fields.) But I do not understand how to implement this?
I've moved the: " {foreach $[user.custom_field]}$[user.custom_field.name]: <br />{/foreach}" into the signature area on Themes > Layout Templates > Post List
{if $[post.created_by.signature]}
<div class="signature">$[user.custom_field.value]</div>
{/if}
but the value of the field won't show up. (I don't need the name of the field, just value for now)
Is this something that cannot be done or am I just going about it the wrong way? Thanks!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 23, 2017 13:01:54 GMT -8
Hi, weaselgun . You'd want to use something like this. Or if you only want the values of specific custom fields:
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 23, 2017 13:04:00 GMT -8
Also worth noting that because of the presence of {if $[post.created_by.signature]} the fields will only show when the user's signature area is filled out in their Edit Profile page.
There's also a shorter way to do the if statements if you're going to be using the same HTML for every custom field.
|
|
inherit
136315
0
Nov 19, 2014 14:39:06 GMT -8
weaselgun
15
January 2009
fangfire
|
Post by weaselgun on Jan 23, 2017 13:08:27 GMT -8
BrianThank you so much that worked!! Is there a way to make it so people can use colors for the text/bold/italics? what's it called, bbcode? Can that be enabled so its not plain text?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 23, 2017 13:15:21 GMT -8
In Members > Custom Profile Fields you can change the options of a custom field to allow light BBCode. Full BBCode isn't available, so font colors unfortunately won't be usable. We have two types of BBCode on ProBoards: Regular BBCode and Light BBCode. Regular BBCode allows you to do everything you can in posts, whether it be regular font styling options, tables, divs, images, or whatever. Light BBCode limits you to just a select amount of basic styling options for text: Bold, underline, italic, strikethrough, superscript, subscript, and links. This is so that small areas consisting of text like the News Feed or the Shoutbox don't become cluttered with objects that they cannot contain. Custom fields are typically rendered in text-only areas so they only support light BBCode at the most.
|
|