inherit
229327
0
Oct 14, 2024 13:21:40 GMT -8
brenski
93
February 2016
brenski
|
Post by brenski on Mar 1, 2019 10:55:15 GMT -8
Forum URL: atari.boards.netHi I've seen solutions to replacing signatures with the contents of the Custom Profile Fields, but is it possible to have BOTH. ie retain the signature AND insert (below this) the contents of the Custom Profile Fields
if possible, what code do I need to add, and where do i place this? thanks
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Mar 1, 2019 11:08:16 GMT -8
brenski, have you implemented any of the solutions you've seen? Can you provide link(s) to them please.
|
|
inherit
229327
0
Oct 14, 2024 13:21:40 GMT -8
brenski
93
February 2016
brenski
|
Post by brenski on Mar 1, 2019 11:19:43 GMT -8
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Mar 1, 2019 11:38:26 GMT -8
brenski , do you want the custom fields to show only when the signature field is filled out by the member? Or show regardless?
|
|
inherit
229327
0
Oct 14, 2024 13:21:40 GMT -8
brenski
93
February 2016
brenski
|
Post by brenski on Mar 1, 2019 13:29:30 GMT -8
i suppose the ideal solution is something like
signature+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ custom field 1 / custom field 1 / custom field 3 / custom field 4
ids that doable?
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Mar 1, 2019 13:34:33 GMT -8
brenski, let's start with my question above... do you want the custom fields to show only when a member has a signature or show regardless if they have a signature or not? This makes a difference in the code.
|
|
inherit
229327
0
Oct 14, 2024 13:21:40 GMT -8
brenski
93
February 2016
brenski
|
Post by brenski on Mar 1, 2019 13:40:20 GMT -8
ah, sorry. i see.
is it possible to have it show whether or not there is a signature?
ie if signature present, then Custom Profile Field = immediately below signature
if no signature present, then Custom Profile Field = same location (minus signature obviously)
is that possible?
thanks
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Mar 1, 2019 13:45:25 GMT -8
brenski , start with this and then we can go from there. (You may wish to use a test theme on your forum while getting this all sorted.)
Go to Admin > Structure > Layout Templates, then Thread > Post List tab. Find this: {if $[post.created_by.signature]} <div class="signature">$[post.created_by.signature]</div> {/if}
And replace it with this: {if $[post.created_by.signature]} <div class="signature">$[post.created_by.signature]</div><br /> {/if} <div>{foreach $[post.created_by.custom_field]} <div>$[post.created_by.custom_field.value]</div> {/foreach} </div>
Let me know how this works for you.
|
|
inherit
229327
0
Oct 14, 2024 13:21:40 GMT -8
brenski
93
February 2016
brenski
|
Post by brenski on Mar 1, 2019 13:53:29 GMT -8
Scott - great stuff. looks good. thanks loads for this. is there anyway to have all fields on one line - maybe separated by "■" ?
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Mar 1, 2019 14:16:33 GMT -8
Scott - great stuff. looks good. thanks loads for this. is there anyway to have all fields on one line - maybe separated by "■" ? Try changing out the code I gave you above with this: code.txt (403 B) Sorry had to put it in a text file as some hex characters auto-rendered when trying to post.
|
|
inherit
229327
0
Oct 14, 2024 13:21:40 GMT -8
brenski
93
February 2016
brenski
|
Post by brenski on Mar 1, 2019 14:22:02 GMT -8
Scott - thanks - legendary stuff. looks perfect. cheers would it be a simple case of using
at some point to change the colour?
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Mar 1, 2019 14:32:13 GMT -8
brenski, slightly more to it as color is dictated by the CSS, but not difficult.
|
|
inherit
229327
0
Oct 14, 2024 13:21:40 GMT -8
brenski
93
February 2016
brenski
|
Post by brenski on Mar 1, 2019 14:39:32 GMT -8
Scott - ah ok. probably well above my level then
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Mar 1, 2019 15:05:11 GMT -8
brenski, when you want color just let us know.
|
|
inherit
229327
0
Oct 14, 2024 13:21:40 GMT -8
brenski
93
February 2016
brenski
|
Post by brenski on Mar 1, 2019 15:08:43 GMT -8
Scott great. a simple green for the above would be nice. or - if not too difficult, a split signature = orange custom profile fields = green thanks
|
|