[Template] Centered/Boxed Mini Profile
Feb 18, 2013 15:54:29 GMT -8
aRMY83, mnhub, and 2 more like this
Post by Mands on Feb 18, 2013 15:54:29 GMT -8
The much loved V4 centered/boxed mini profile
Screenshot of V4 version
Screenshot of V5 version
As you can see, clearly not much difference between them. Now what you need to do is the following:-
Admin Panel > Themes > Colours & Styles > Style Sheet Tab and add the following to the bottom of the style sheet
/*Begin MiniProfile CSS*/
td.left-panel {
text-align: center;
}
.mpinfo, .mptitle, .mpcontent, .mp {
border: 1px solid #fff;
}
.mptitle {
background-color: @title_bar_background_color;
color: @title_text_color;
}
.mpinfo, .mpcontent {
background-color: posts_odd_background_color;
}
.mpinfo {
width: 50%;
}
/*End MiniProfile CSS*/
Now save that and go to
Themes > Layout Templates > Mini Profile
Replace the code already in place with the following:-
<div class="$[miniprofile_class]" style="border: 2px inset #797979; border-radius:0px;width: 75%;margin:5px;margin-left:10px;">
<table width="97%" align="center" class="mptable">
<tr>
<td class="mptd mptitle">
{if $[user.is_guest]}
Guest
{else}
$[user]
{/if}
</td>
</tr>
<tr>
<td class="mptd mpcontent">
{if $[user.group]}
$[user.group.name]<br />$[user.group.stars]
{elseif $[user.rank]}
$[user.rank.name]<br />
{if $[user.rank.stars]}
$[user.rank.stars]
{/if}
{/if}
{if $[user.custom_title]}
<br />$[user.custom_title]
{/if}
</td>
</tr>
</table>
{if $[user.avatar]}
<br /><div class="avatar">$[user.avatar]</div><br />
{/if}
{if $[user.personal_text]}
<table width="97%" align="center" class="mptable">
<tr>
<td class="mptd mptitle">
Personal Text
</td>
</tr>
<tr>
<td class="mptd mpcontent">
$[user.personal_text]
</td>
</tr>
</table><br />
{/if}
<table width="97%" align="center" class="mptable">
<tr>
<td class="mptd mptitle" colspan="2">
Member Info
</td>
</tr>
<tr>
<td class="mptd mpinfo">
Status:
</td>
<td class="mptd mpinfo">
{if $[user.is_online]}Online{else}Offline{/if}
</td>
</tr>
{if $[user.gender]}
<tr>
<td class="mptd mpinfo">
Gender:
</td>
<td class="mptd mpinfo">
{if $[user.gender.text] == "Male"}Male <img src="http://i47.tinypic.com/24x4f47.jpg" alt="Male" />{else}Female <img src="http://i50.tinypic.com/x3e1zo.jpg" alt="Female" />{/if}
</td>
</tr>
{/if}
<tr>
<td class="mptd mpinfo">
Posts:
</td>
<td class="mptd mpinfo">
$[user.posts]
</td>
</tr>
</table>
</div>
Unfortunately the above code has to be added to ALL themes.
As far as I can tell the code you add to the style sheet doesn't have to be added to each theme. At least it didn't appear to be required in each theme for mine. But maybe just check it to be sure.
Credit goes to Shorty for this code. I am just posting it for others to use.
Screenshot of V4 version
Screenshot of V5 version
As you can see, clearly not much difference between them. Now what you need to do is the following:-
Admin Panel > Themes > Colours & Styles > Style Sheet Tab and add the following to the bottom of the style sheet
/*Begin MiniProfile CSS*/
td.left-panel {
text-align: center;
}
.mpinfo, .mptitle, .mpcontent, .mp {
border: 1px solid #fff;
}
.mptitle {
background-color: @title_bar_background_color;
color: @title_text_color;
}
.mpinfo, .mpcontent {
background-color: posts_odd_background_color;
}
.mpinfo {
width: 50%;
}
/*End MiniProfile CSS*/
Now save that and go to
Themes > Layout Templates > Mini Profile
Replace the code already in place with the following:-
<div class="$[miniprofile_class]" style="border: 2px inset #797979; border-radius:0px;width: 75%;margin:5px;margin-left:10px;">
<table width="97%" align="center" class="mptable">
<tr>
<td class="mptd mptitle">
{if $[user.is_guest]}
Guest
{else}
$[user]
{/if}
</td>
</tr>
<tr>
<td class="mptd mpcontent">
{if $[user.group]}
$[user.group.name]<br />$[user.group.stars]
{elseif $[user.rank]}
$[user.rank.name]<br />
{if $[user.rank.stars]}
$[user.rank.stars]
{/if}
{/if}
{if $[user.custom_title]}
<br />$[user.custom_title]
{/if}
</td>
</tr>
</table>
{if $[user.avatar]}
<br /><div class="avatar">$[user.avatar]</div><br />
{/if}
{if $[user.personal_text]}
<table width="97%" align="center" class="mptable">
<tr>
<td class="mptd mptitle">
Personal Text
</td>
</tr>
<tr>
<td class="mptd mpcontent">
$[user.personal_text]
</td>
</tr>
</table><br />
{/if}
<table width="97%" align="center" class="mptable">
<tr>
<td class="mptd mptitle" colspan="2">
Member Info
</td>
</tr>
<tr>
<td class="mptd mpinfo">
Status:
</td>
<td class="mptd mpinfo">
{if $[user.is_online]}Online{else}Offline{/if}
</td>
</tr>
{if $[user.gender]}
<tr>
<td class="mptd mpinfo">
Gender:
</td>
<td class="mptd mpinfo">
{if $[user.gender.text] == "Male"}Male <img src="http://i47.tinypic.com/24x4f47.jpg" alt="Male" />{else}Female <img src="http://i50.tinypic.com/x3e1zo.jpg" alt="Female" />{/if}
</td>
</tr>
{/if}
<tr>
<td class="mptd mpinfo">
Posts:
</td>
<td class="mptd mpinfo">
$[user.posts]
</td>
</tr>
</table>
</div>
Unfortunately the above code has to be added to ALL themes.
As far as I can tell the code you add to the style sheet doesn't have to be added to each theme. At least it didn't appear to be required in each theme for mine. But maybe just check it to be sure.
Credit goes to Shorty for this code. I am just posting it for others to use.