Post by Mad Madison on May 11, 2018 21:34:29 GMT -8
Been trying to fiddle with this one here for a while now. For the longest time I thought it must be something wrong with how I'm making the custom profile fields, maybe I've been naming them wrong? But I've been copy pasting the names over so the are exactly what the code is asking for in the {if $[user.mini_custom_field.name] == "CUSTOM PROFILE FIELD NAME"} bit, but it's still not working as it should. These are my custom profile fields.
I was hoping someone here could spot my issue? Here is my code:
User Profile
<div class="alive"><table style="width:100%;height:100%"><tr><td>
<div class="alive2">$[user.name]</div>
<div class="alive1"><div class="ui-tabMenu" style="margin-top:-6px;">
<ul class="ui-helper-clearfix" style="background-color:transparent;border:none;">
<center><table><tr>{foreach $[menu]}<td><li{if $[menu.active]} class="ui-active"{/if} style="background-color:transparent;border:none!important;"><a href="$[menu.href]">$[menu.text]</a></li></td>{/foreach}</tr></table></center>
</ul>
</div></div>
</td></tr></table></div>
<div class="alivebar"><table style="width:100%;"><tr><td>
<div class="alivebar1">{if $[user.personal_text.message]}$[user.personal_text]{else}personal text goes here{/if}</div>
</td><td style="width:350px;">
$[options]
$[send_message_button]
$[edit_profile_button]
$[follow_button]
$[invite_button]
</td></tr></table></div>
<div style="padding:10px;" class="container show-user">
$[content]
</div>
{if $[user.signature]}
<div class="alivesig">
$[user.signature]
</div>
{/if}
Summary
$[form.header]
<table style="width:100%;"><tr>
<td style="width:260px;"><div class="alivebigavatar">
<div style="width:250px;height:350px;border-radius:0px;padding:0px;background-image: url('http://i.imgur.com/6TtwsWc.png');{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "250x350 Avatar"}background-image: url('$[user.mini_custom_field.value]');{/if}{/foreach}background-size:cover;"></div>
</div></td>
<td style="width:10px;"></td>
<td style="width:115px;">
<div class="alivelonk" style="margin-top:0px;height:114px;"><table style="height:100%;width:100%;"><tr><td>APP</td></tr></table></div>
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Application"}<a href="$[user.mini_custom_field.value]"><div class="alivelonk" style="margin-top:-114px;height:114px;"><table style="height:100%;width:100%;"><tr><td>APP</td></tr></table></div></a>{/if}{/foreach}
<div class="alivelonk"><table style="height:100%;width:100%;"><tr><td>PLOT</td></tr></table></div>
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Plotter"}<a href="$[user.mini_custom_field.value]"><div class="alivelonk" style="margin-top:-113px;"><table style="height:100%;width:100%;"><tr><td>PLOT</td></tr></table></div></a>{/if}{/foreach}
<div class="alivelonk"><table style="height:100%;width:100%;"><tr><td>TRACK</td></tr></table></div>
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Tracker"}<a href="$[user.mini_custom_field.value]"><div class="alivelonk" style="margin-top:-113px;"><table style="height:100%;width:100%;"><tr><td>TRACK</td></tr></table></div></a>{/if}{/foreach}
</td>
<td style="width:10px;"></td>
<td>
<div class="alivebig"><table style="height:100%;width:100%;"><tr><td>{if $[user.group]}$[user.group.name]{else}UNSORTED{/if}</td></tr></table></div>
<table style="width:100%;"><tr><td>
<a href="$[recent_posts_link.href]"><div class="alivesmall"><table style="height:100%;width:100%;"><tr><td>USER POSTS</td></tr></table></div></a>
<div class="alivesmall"><table style="height:100%;width:100%;"><tr><td>LAST ON
<div class="alivesmall1">$[user.last_online]</div></td></tr></table></div>
</td><td style="width:10px;"></td><td>
<a href="$[recent_threads_created_link.href]"><div class="alivesmall"><table style="height:100%;width:100%;"><tr><td>USER THREADS</td></tr></table></div></a>
<div class="alivesmall"><table style="height:100%;width:100%;"><tr><td>JOINED ON
<div class="alivesmall1">$[user.registered_on]</div></td></tr></table></div>
</td></tr></table>
<div class="alivebig" style="margin-top:10px;"><table style="height:100%;width:100%;"><tr><td>PLAYED BY <b>OOC NAME</b></td></tr></table></div>
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "OOC Name"}
<div class="alivebig" style="margin-top:-99px;"><table style="height:100%;width:100%;"><tr><td>
PLAYED BY <b>$[user.mini_custom_field.value]</b>
</td></tr></table></div>
{/if}{/foreach}
</td>
<td style="width:10px;"></td>
<td style="width:175px;">
<div class="aliveavatar">$[user.avatar]</div>
<div class="alivenum"><table style="height:100%;width:100%;"><tr><td>
<div class="alivenum1">$[user.posts]</div>
POST{if $[user.posts] != 1}S{/if}
</td></tr></table></div>
</td>
</tr></table>
<div class="content-box" style="padding: 10px;margin-top:10px;margin-bottom: -10px;"><h1 style="margin-bottom: 5px;">ACHIEVEMENTS</h1><div class="awards $[user.id]"></div></div>
$[form.footer]