Making Ranks Colored

Darthmaul

Goldbergstein
Joined
Jul 28, 2009
Messages
11,173
Reaction score
4
FP$
6,302
Okay, so on a forum you have the ranks. Now i have noticed on a few forums that these ranks are colored. I was wondering how to do that, if anyone knows. Thanks a ton!
 
It would be helpful if you could tell us what hosting you are using so we can tell you exactly tell you where you need to go to edit the settings 😉
 
What do you mean? Ohh, i am using a paid host and have full access to my files
 
Sorry I can't help you I'm only familiar with forumotion CP layout but I'm sure someone else can tell you 😉
 
Lol, sounds fine. I know how to do it there, but i need it on phpbb on me paid host.
 
Are you talking about usernames or the ranks under their avatar such as "Super Poster"?

Being a bit clearer does help.
 
Never seen a phpBB forum with it like that before.

In viewtopic_body.html find the following
Code:
{postrow.RANK_TITLE}

Replace that with this following bit of code
Code:
<!-- IF postrow.POST_AUTHOR_COLOUR --><span style="color: {postrow.POST_AUTHOR_COLOUR}">{postrow.RANK_TITLE}</span><!-- ELSE -->{postrow.RANK_TITLE}<!-- ENDIF -->

That should work.
 
Okay, so what will that do? Make the color of the group also the color of the rank?
 
Code:
<!-- 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 -->
That the right thing to edit?
 
Code:
<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>  <!-- IF postrow.POST_AUTHOR_COLOUR --><span style="color: {postrow.POST_AUTHOR_COLOUR}">{postrow.RANK_TITLE}</span><!-- ELSE -->{postrow.RANK_TITLE}<!-- ENDIF --><!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->

That right?
 
I am guessing that as you haven't said it worked or not that it does actually work?
 
Back
Top Bottom