Post by Aenwyn on Jul 27, 2024 9:42:28 GMT -8
Hello! I am not sure if I can post this here, or in the code category, so feel free to move the thread if necessary.
This is my code for my mini-profiles. Now, I have no idea how to apply it to unsorted members. They don't have a mini profile at all right now.
Site: inhername.proboards.com
Example of unsorted lacking mini-profile: inhername.proboards.com/thread/50/leoric-pryor-wip
I'd want to make the unsorted profile look like a guest profile, I just don't know what {else} or {if} I need, or what I should name the group.
Thanks!
Code in spoiler
This is my code for my mini-profiles. Now, I have no idea how to apply it to unsorted members. They don't have a mini profile at all right now.
Site: inhername.proboards.com
Example of unsorted lacking mini-profile: inhername.proboards.com/thread/50/leoric-pryor-wip
I'd want to make the unsorted profile look like a guest profile, I just don't know what {else} or {if} I need, or what I should name the group.
Thanks!
Code in spoiler
{if $[user.group.name] == "Administrator" || $[user.group.name] == "Moderator" || $[user.group.name] == "Code support" || $[user.group.name] == "Member"}<div style="position:relative;z-index:5px;"><div style="width:200px;height:380px;padding:5px;background-color:#ffffff;border:solid 1px #dddddd;">
<div style="width:190px;padding-right:10px;height:20px;background-color:#1e1f1e;margin-bottom:5px;line-height:72px;text-align:right;"></div>
<div class="$[miniprofile_class]" style="padding:0px;width:200px;height:300px;border-radius:0px;border:none;background-image: url('https://i.ibb.co/xHb1gGS/dummy-250x375.png');{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "250x375 Avatar"}background-image: url('$[user.mini_custom_field.value]');{/if}{/foreach}background-size:cover;">
<div class="minihover">
<div class="minihover2"><table><tr><td><div style="height:1px;width:100%;background-color:#dddddd;"></div></td><td style="width:87px;padding-left:25px;"><div class="miniavatar">$[user.avatar_medium]</div></td>
<td><div style="height:1px;width:100%;background-color:#dddddd;"></div></td></tr></table>
<br>
<br>
<table><tr><td style="width:83px;"> <div class="ministuff" style="width:158px;">{if $[user.posts] == -1}N/A{else}$[user.posts]{/if} POST{if $[user.posts] != 1}S{/if}</div></td></tr>
<td><div class="ministuff" style="width:158px;">
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "OOC Name"}
$[user.mini_custom_field.value]{/if}
{/foreach}
</div></td></table>
<div class="ministuff" style="width:158px;">{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Wanted Ad"}
<a href="$[user.mini_custom_field.value]"><div class="miniapp" style="margin-top:0px;">Wanted Ad</div></a>{/if}
{/foreach}</div></div>
</div>
</div><div style="width:200px;padding-right:0px;height:50px;background-color:#1e1f1e;margin-bottom:5px;margin-top:5px;line-height:50px;text-align:center;"> <span class="mininame">$[user]</span></div>
</div></div>{/if}
{if $[user.group.name] == "Rodale" || $[user.group.name] == "Almeran"}<div style="position:relative;z-index:5px;"><div style="width:200px;height:380px;padding:5px;background-color:#ffffff;border:solid 1px #dddddd;">
<div style="width:190px;padding-right:10px;height:20px;background-color:#1e1f1e;margin-bottom:5px;line-height:72px;text-align:right;"></div>
<div class="$[miniprofile_class]" style="padding:0px;width:200px;height:300px;border-radius:0px;border:none;background-image: url('https://i.ibb.co/xHb1gGS/dummy-250x375.png');{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "250x375 Avatar"}background-image: url('$[user.mini_custom_field.value]');{/if}{/foreach}background-size:cover;">
<div class="minihover">
<div class="minihover2"><table><tr><td><div style="height:1px;width:100%;background-color:#dddddd;"></div></td><td style="width:87px;padding-left:25px;"><div class="miniavatar">$[user.avatar_medium]</div></td>
<td><div style="height:1px;width:100%;background-color:#dddddd;"></div></td></tr></table>
<br>
<table><tr><td style="width:83px;"><div class="ministuff">{if $[user.posts] == -1}N/A{else}$[user.posts]{/if} POST{if $[user.posts] != 1}S{/if}</div></td><td><div class="ministuff">
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "OOC Name"}
$[user.mini_custom_field.value]{/if}
{/foreach}
</div></td></tr></table>
<div class="ministuff" style="width:158px;">{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Occupation"}
$[user.mini_custom_field.value]{/if}
{/foreach}</div>
<table><tr><td style="width:83px;"><div class="ministuff">
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Age"}
$[user.mini_custom_field.value]{/if}
{/foreach}</div></td>
<td><div class="ministuff">
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Rank"}
$[user.mini_custom_field.value]{/if}
{/foreach}</div></td></tr></table>
<table><tr><td style="width:83px;"><div class="ministuff">
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Relationship Status"}
$[user.mini_custom_field.value]{/if}
{/foreach}</div></td>
<td><div class="ministuff">
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Magic"}
$[user.mini_custom_field.value]{/if}
{/foreach}</div></td></tr></table><div class="ministuff" style="width:158px;">{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Application"}
<a href="$[user.mini_custom_field.value]"><div class="miniapp" style="margin-top:0px;">application</div></a>{/if}
{/foreach}</div></div>
</div>
</div><div style="width:200px;padding-right:0px;height:50px;background-color:#1e1f1e;margin-bottom:5px;margin-top:5px;line-height:50px;text-align:center;"> <span class="mininame">$[user]</span></div>
</div></div>
{elseif $[user.is_guest]}<div style="position:relative;z-index:5px;"><div style="width:200px;height:380px;padding:5px;background-color:#ffffff;border:solid 1px #dddddd;">
<div style="width:190px;padding-right:10px;height:20px;background-color:#1e1f1e;margin-bottom:5px;line-height:72px;text-align:right;"></div>
<div class="$[miniprofile_class]" style="padding:0px;width:200px;height:300px;border-radius:0px;border:none;background-image: url('https://imgur.com/ryNF9dR.jpeg');"></div>
<div style="width:200px;padding-right:0px;height:50px;background-color:#1e1f1e;margin-bottom:5px;margin-top:5px;line-height:50px;text-align:center;"> <span class="mininame">$[user]</span></div>{/if}