Log in

View Full Version : Custom usertitle colors based on forum style


Citizen
11-10-2005, 05:27 AM
I have 3 different skins, but the custom usertitles look horirble on the two non-default skins. Is there any hack that allows me to have usertitle formatting based on what style they use?

Chris M
11-10-2005, 09:26 AM
Use replacement codes :)

Chris

Citizen
11-11-2005, 02:39 PM
What are replacement codes?

Chris M
11-14-2005, 03:34 PM
In your Admin CP there will be a link in the nav bar, under the Style Manager area, called "Replacement Variable Manager"...

Beside your style name there will be a link to "Add New Replacement Variable" - Click it, and add something like:
{usertitlecolour}
Then add the replacement code for it, like:
#FF0000

Now just use a span tag around the usertitle where it is shown (posts and profiles):
Posts:
<span style="color: {usertitlecolour};">$post[usertitle]</span>
Profiles:
<span style="color: {usertitlecolour};">$userinfo[usertitle]</span>
:)

Chris

Citizen
11-15-2005, 12:51 AM
Thanks chris!