UBB.Dev
Posted By: blaaskaak Give users a shiny color for EK soccer - 06/02/2008 2:27 AM
Okay, I'll post this as a suggestion, even though I have it al coded up but I don't think I really need to share this code laugh

We offer our users to get a shiny orange username, just a silly option for those who want to lighten up their forumname during the EK soccer 2008.

If anyone else wants this, drop a line.
Posted By: jgeoff Re: Give users a shiny color for EK soccer - 06/02/2008 9:02 AM

You mean "football" don't you? wink
Posted By: blaaskaak Re: Give users a shiny color for EK soccer - 06/02/2008 12:29 PM
yeah, that one. Isn't that one called soccer in the US?

Whatever, 11 guys on one side, 11 on the other, chasing a ball. Silly, I know smile
Posted By: sirdude Re: Give users a shiny color for EK soccer - 06/02/2008 5:20 PM
..eh -- you mean to just extend html->user_color to be fully group based and have optional colors for each group?

or to go full out and have a 'group image' option too, so the board does it automagically ?

:shrug:
Posted By: blaaskaak Re: Give users a shiny color for EK soccer - 06/02/2008 6:08 PM
ehw, no laugh

The click the link, they become orange. Nothing more, nothing less laugh

Code
	$html = new html;

// Check the referer
if (!$config['DISABLE_REFERER_CHECK']) {
$html -> check_refer();
}

// --------------------------------------------------
// Let's make things orange

$userid = $user['USER_ID'];
$query = "
update {$config['TABLE_PREFIX']}USER_PROFILE
set USER_NAME_COLOR = '#F37924'
where USER_ID = ?
";
$dbh -> do_placeholder_query($query,array($userid),__LINE__,__FILE__);
Posted By: sirdude Re: Give users a shiny color for EK soccer - 06/02/2008 7:34 PM
where's the linky poo™ ? :shrug:
Posted By: Gizmo Re: Give users a shiny color for EK soccer - 06/02/2008 8:44 PM
Yeh... more linky poo, less shrug...
Posted By: blaaskaak Re: Give users a shiny color for EK soccer - 06/02/2008 9:14 PM
No linky pooh yet, like I said, I doubt if anyone is interested laugh
Posted By: sirdude Re: Give users a shiny color for EK soccer - 06/02/2008 10:16 PM
i prefer

set USER_NAME_COLOR = '#'.substr(0,6,md5('Yarp'.rand(0,69)));
Posted By: blaaskaak Re: Give users a shiny color for EK soccer - 06/02/2008 10:35 PM
i prefer

set USER_NAME_COLOR = $backgroundcolor where yarpie=true

wink
Posted By: Ian_W Re: Give users a shiny color for EK soccer - 06/04/2008 6:11 PM
as we are not in it - I will not be adding this to our football forums LOL

What is EK btw?
Posted By: sirdude Re: Give users a shiny color for EK soccer - 06/04/2008 7:00 PM
Euro 2008 ? prolly the dutchies do Euro Kup :hihi: instead of Cup..

just a wild ass guess wink
Posted By: blaaskaak Re: Give users a shiny color for EK soccer - 06/05/2008 2:52 AM
EK=Europees Kampioenschap...

European Championship...

Whatever, we got about a 100 orange names now on our forums laugh
Posted By: Ian_W Re: Give users a shiny color for EK soccer - 06/06/2008 12:20 AM
Hope you do well in Euro 2008 smile
© UBB.Developers