cotonti.com : Colored username? https://www.cotonti.com Laatste forum onderwerpen Cotonti en Mon, 16 Mar 2026 01:14:11 -0000 Dyllon Its on the back burner for now. Im a little too busy with school and work at the moment.

]]>
Thu, 22 Mrt 2012 15:49:04 -0000
Kingsley {blabla_USERMAINGRP} blabla depending on what tpl it is used..

 

@ dyllon

how's the social plugin coming along?

]]>
Thu, 22 Mrt 2012 15:19:48 -0000
pieter Or you can do it with CSS

Make a class for each color. And use the rankname in it.

rankname1_color
rankname2_color
.....

And add the class to the username with the rankname variable init. (class={rankname}_color)

I don't know the tag to display the rankname (I used above {rankname} as example)

]]>
Thu, 22 Mrt 2012 07:18:07 -0000
Dyllon I don't know what your intentions are in terms of changing the colors, but if you are familiar with PHP this is the function you would have to alter:

system/functions.php Line 1710

function cot_build_user($id, $user, $extra_attrs = '')
{
	global $cfg;

	if (!$id)
	{
		return empty($user) ? '' : $user;
	}
	else
	{
		return empty($user) ? '?' : cot_rc_link(cot_url('users', 'm=details&id='.$id.'&u='.$user), $user, $extra_attrs);
	}
}
]]>
Thu, 22 Mrt 2012 02:48:27 -0000
young mone How would i be able to have users in a rank have colored usernames? 

]]>
Wo, 21 Mrt 2012 22:04:40 -0000