inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Aug 18, 2020 19:22:29 GMT -8
wanna pm me a link so i can register a test acct? I sent you a URL to my forum and my name on discord if that helps at all. Thank you Kami.
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Aug 18, 2020 19:58:46 GMT -8
I gave you some basic permissions Kami so you can help out with the code. I linked you to a page where it's filled out.
|
|
Kami
Forum Cat
Posts: 40,021
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,021
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 18, 2020 20:37:38 GMT -8
So what I'm seeing is that the table is repeating due to the {foreach} loop, which makes sense because you have multiple fields and it's repeating even though it's blank. Let me double check a few things and get back to you. Attachments:
|
|
Kami
Forum Cat
Posts: 40,021
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,021
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 18, 2020 20:39:04 GMT -8
Can you put in your ENTIRE profile template in pastebin and link it? pastebin.com/
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Aug 18, 2020 20:52:47 GMT -8
|
|
Kami
Forum Cat
Posts: 40,021
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,021
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 18, 2020 20:58:04 GMT -8
OK so after looking into this a bit more I feel like we could clean this up as a whole.
1. Biggest problem, your conditions are missing a quotation mark: {if $[user.custom_field.name] == "Talent Desc 3"} <-- this should have a closing quote, and this error is repeated for ALL of your fields.
2. it looks like your actual structure doesn't change at all between rows, except for the "Linguistics" field, so we can actually simplify your table entirely to reduce this to 2 foreach loops. Skeleton HTML to get you started:
<table> {foreach $[user.custom_field} <tr><td><div class="talent stat"><div class="talent_stat_ft">{if $[user.custom_field.name] == "Field 1" || $[user.custom_field.name] == " Field 3" || and so on for the odd numbers}$[user.custom_field.value]</div></div>{/if}</td><td>{if $[user.custom_field.name] == "Field 2" || $[user.custom_field.name] == " Field 4" || and so on for the even numbers} <div class="talent stat"><div class="talent_stat_ft">$[user.custom_field.value]</div></div>{/if}</td></tr> {/foreach} </table> <div style="padding-left:10px;"> {foreach $[user.custom_field]} {if $[user.custom_field.name] == "Linguistics"} <div style="width:345px; border-left:3px solid #fff; border:3px solid #056d77"> <div class="talent_desc" style="background-color:#056d77!important;"> <div class="talent_desc_ft" style="color:#fff!important; border:none!important"> $[user.custom_field.value] </div> </div> </div> {/if} {/foreach}
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Aug 18, 2020 21:14:59 GMT -8
Okay kami I will fix these in about an hour. I have to take a break for other obligations for a short spell. Thank you so much!
|
|
Kami
Forum Cat
Posts: 40,021
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,021
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 18, 2020 21:25:16 GMT -8
im heading to bed but if you run into issues i'll pop in tomorrow to take a look (:
as a note: this code will make it so the table perpetually appears. to avoid it looking weird, make sure you specify a width for the table so that the TDs will fill the space appropriately.
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Aug 18, 2020 23:07:11 GMT -8
im heading to bed but if you run into issues i'll pop in tomorrow to take a look (: as a note: this code will make it so the table perpetually appears. to avoid it looking weird, make sure you specify a width for the table so that the TDs will fill the space appropriately. I've got it all sorted. I added some margins which seemed the only way to get it to compensate for the line breaks and fixed it. Thank you so much for your help! This absolutely did solve my problem!
|
|
Kami
Forum Cat
Posts: 40,021
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,021
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 19, 2020 7:14:30 GMT -8
im heading to bed but if you run into issues i'll pop in tomorrow to take a look (: as a note: this code will make it so the table perpetually appears. to avoid it looking weird, make sure you specify a width for the table so that the TDs will fill the space appropriately. I've got it all sorted. I added some margins which seemed the only way to get it to compensate for the line breaks and fixed it. Thank you so much for your help! This absolutely did solve my problem! Ah yeah I forgot I had you remove the margins earlier. Glad you got it sorted, and I'm happy to help (: Most things can be done with templates tbh, you just gotta know how to finagle things ^_^
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Aug 19, 2020 13:38:04 GMT -8
I've got it all sorted. I added some margins which seemed the only way to get it to compensate for the line breaks and fixed it. Thank you so much for your help! This absolutely did solve my problem! Ah yeah I forgot I had you remove the margins earlier. Glad you got it sorted, and I'm happy to help (: Most things can be done with templates tbh, you just gotta know how to finagle things ^_^ my knowledge of coding is ever evolving..so thank you for helping me get there.
|
|