Page 1 of 1

Get usercolor on Rank text

Posted: 26 Jul 2011, 20:09
by Stoker
Get usercolor on Rank text
Written by Stoker

This guide will teach you how to get usercolor on the rank text.

Open styles/prosilver/template/viewtopic_body.html
Find:

Code: Select all

<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
Inline find:

Code: Select all

{postrow.RANK_TITLE}
Replace with:

Code: Select all

<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="font-size:12px; color: {postrow.POST_AUTHOR_COLOUR}" <!-- ENDIF -->>{postrow.RANK_TITLE}</b>
Open styles/subsilver2/template/viewtopic_body.html
Find:

Code: Select all

<td class="postdetails">{postrow.RANK_TITLE}</td>
Replace with:

Code: Select all

<td class="postdetails"><b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="font-size:12px; color: {postrow.POST_AUTHOR_COLOUR}" <!-- ENDIF -->>{postrow.RANK_TITLE}</b></td>
About the:

Code: Select all

font-size:12px;
You can increase, decrease or remove this if You want.

Get usercolor on Rank text

Posted: 16 Nov 2011, 10:34
by Blackwolf
Awesome snippet....just found it....Thanks