inherit
256084
0
Apr 11, 2020 4:03:43 GMT -8
mysticrystal
74
August 2018
mysticrystal
|
Post by mysticrystal on Sept 13, 2018 18:30:59 GMT -8
So I have a RP forum and each new member is given the rank of 'Pending' but I was wondering if there is a way to have all members name be italicized if they are in the pending group.
|
|
inherit
140147
0
Apr 30, 2024 0:07:08 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,007
May 2009
nscalerr
|
Post by Nscalerr 🐺 on Sept 14, 2018 3:28:45 GMT -8
Hi mysticrystalThis is possible, do some mods to the mini-profile template in Admin Home > Themes > Layout Templates > Mini-Profile. Adding the following code to where you would like it to show should yield the results you are after. {if $[user.rank.name] == 'pending'}<em>$[user.rank.name]</em>{/if}
|
|
inherit
256084
0
Apr 11, 2020 4:03:43 GMT -8
mysticrystal
74
August 2018
mysticrystal
|
Post by mysticrystal on Sept 14, 2018 12:30:14 GMT -8
It doesn't seem to be working but it might be because I have a theme that changes the mini profile. I have an area for the mini profile that shows the group they are in. Can I make it where if they don't have a group (and are pending instead) it will show their rank instead of their group? I posted the mini profile code that I currently have if it will help. And just so there are no confusions, I'm trying to italicize the person's name if they are not in a group.
<div class="$[miniprofile_class]" style="width:150px;text-align:center; margin-center:-0px; border:transparent;">
<!-- This is the MP3 link at the top of the mini-profile -->
<div style= "margin-bottom:-4px;"> {foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "MP3-Link"}
<div><object width="150" height="18" data="http://flash-mp3-player.net/medias/player_mp3_mini.swf" type="application/x-shockwave-flash">
<param value="http://flash-mp3-player.net/medias/player_mp3_mini.swf" name="movie">
<param value="#000000" name="bgcolor">
<param value="mp3=$[user.mini_custom_field.value]&bgcolor=000000&loadingcolor=585858&buttoncolor=585858&slidercolor=585858;" name="FlashVars">
</object></div>
{/if}
{/foreach} </div>
<div class="miniprofilestructure" style="height:300px">
<div class="miniprofilebgimg" style="height:250px; background-image: url('https://image.ibb.co/ibQzCe/imageedit_28_4303538631.jpg');{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Character Image"}background-image: url('$[user.mini_custom_field.value]');{/if}{/foreach}background-size:155px;"></div>
<div class="miniprofileframe"></div>
<div class="miniprofilebg">
<div class="miniprofilename" style="float:left;">
{if !$[user.is_member]} Guest {else} $[user]{/if}</div>
<br><br> <div class="onlinestatustext" style="float:left;"><br>$[user.group.name]</div></div>
<div class="miniprofileinfo" style="width:150px; height:300px; text-align:center; margin-center:-0px; border:transparent;">
{if !$[user.is_member]} Guest {else} $[user]{/if} <BR> {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Species"}$[user.mini_custom_field.value] {/if}{/foreach} <BR> $[user.group.stars]
<br><BR><BR>
<div style="margin-top:-20px;margin-bottom:10px;">
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Graphic Storage Link"}
<span class= "$[user.mini_custom_field.content_class]">
<a href="$[user.mini_custom_field.value]"><font color=#777A76>Storage</font></a>
</span> <BR>
{/if}{/foreach}
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Studio Link"}
<span class= "$[user.mini_custom_field.content_class]">
<a href="$[user.mini_custom_field.value]"><font color=#777A76>Studio</font></a>
</span> <BR>
{/if}{/foreach}
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "Point Log Link"}
<span class= "$[user.mini_custom_field.content_class]">
<a href="$[user.mini_custom_field.value]"><font color=#777A76>Tracker</font></a>
</span>
{/if}{/foreach} </div>
<span class="minicustomfield" style="float:center;">
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Gender"}$[user.mini_custom_field.value]{/if}{/foreach}
</span>
<BR> <span class="minicustomfield" style="float:center;">
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Age"}$[user.mini_custom_field.value]{/if}{/foreach}
</span> <BR> <span class="minicustomfield" style="float:center;">
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Height"}$[user.mini_custom_field.value] {/if}{/foreach} <b>|</b> {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Weight"}$[user.mini_custom_field.value] {/if}{/foreach}
</span>
<BR> <span class="minicustomfield" style="float:center;">
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Realm"}$[user.mini_custom_field.value]{/if}{/foreach}
</span>
<BR>
<span class="minicustomfield" style="float:center;">
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Rank"}$[user.mini_custom_field.value]{/if}{/foreach}
</span> <BR>
<BR><span class="minicustomfield" style="float:center;">
<b>OOC:</b> {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "OOC Name"}$[user.mini_custom_field.value]{/if}{/foreach}
</span> <BR> <span class="minicustomfield" style="float:center;">
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Mana Points"}$[user.mini_custom_field.value] <b>MP</b>{/if}{/foreach}
</span>
</div></div> </div>
|
|
inherit
140147
0
Apr 30, 2024 0:07:08 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,007
May 2009
nscalerr
|
Post by Nscalerr 🐺 on Sept 14, 2018 18:03:38 GMT -8
A link to your forum would also help and how is the word, 'pending' being added to the mini profile, as it is a rank or group name ?
|
|
inherit
140147
0
Apr 30, 2024 0:07:08 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,007
May 2009
nscalerr
|
Post by Nscalerr 🐺 on Sept 14, 2018 19:08:26 GMT -8
This will italicize a user's name if they are NOT in a group.
{if !$[user.group]}<em>$[user.username]</em>{/if}
|
|
inherit
256084
0
Apr 11, 2020 4:03:43 GMT -8
mysticrystal
74
August 2018
mysticrystal
|
Post by mysticrystal on Sept 14, 2018 20:07:34 GMT -8
Thank you! It works
|
|