Previous Thread
Next Thread
Print Thread
Rate Thread
Give users a shiny color for EK soccer
#317138 06/01/2008 6:27 PM
Joined: Feb 2007
Posts: 329
Yarp™
OP Offline
Yarp™
Joined: Feb 2007
Posts: 329
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.

Sponsored Links
Re: Give users a shiny color for EK soccer
blaaskaak #317142 06/02/2008 1:02 AM
Joined: Apr 2001
Posts: 96
Power User
Offline
Power User
Joined: Apr 2001
Posts: 96

You mean "football" don't you? wink


GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Re: Give users a shiny color for EK soccer
jgeoff #317145 06/02/2008 4:29 AM
Joined: Feb 2007
Posts: 329
Yarp™
OP Offline
Yarp™
Joined: Feb 2007
Posts: 329
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

Re: Give users a shiny color for EK soccer
blaaskaak #317146 06/02/2008 9:20 AM
Joined: Nov 2003
Posts: 482
Enthusiast
Offline
Enthusiast
Joined: Nov 2003
Posts: 482
..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:

Re: Give users a shiny color for EK soccer
sirdude #317147 06/02/2008 10:08 AM
Joined: Feb 2007
Posts: 329
Yarp™
OP Offline
Yarp™
Joined: Feb 2007
Posts: 329
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__);

Sponsored Links
Re: Give users a shiny color for EK soccer
blaaskaak #317151 06/02/2008 11:34 AM
Joined: Nov 2003
Posts: 482
Enthusiast
Offline
Enthusiast
Joined: Nov 2003
Posts: 482
where's the linky poo™ ? :shrug:

Re: Give users a shiny color for EK soccer
sirdude #317153 06/02/2008 12:44 PM
Joined: Jan 2000
Posts: 5,795
Likes: 8
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,795
Likes: 8
Yeh... more linky poo, less shrug...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: Give users a shiny color for EK soccer
Gizmo #317154 06/02/2008 1:14 PM
Joined: Feb 2007
Posts: 329
Yarp™
OP Offline
Yarp™
Joined: Feb 2007
Posts: 329
No linky pooh yet, like I said, I doubt if anyone is interested laugh

Re: Give users a shiny color for EK soccer
blaaskaak #317156 06/02/2008 2:16 PM
Joined: Nov 2003
Posts: 482
Enthusiast
Offline
Enthusiast
Joined: Nov 2003
Posts: 482
i prefer

set USER_NAME_COLOR = '#'.substr(0,6,md5('Yarp'.rand(0,69)));

Re: Give users a shiny color for EK soccer
sirdude #317157 06/02/2008 2:35 PM
Joined: Feb 2007
Posts: 329
Yarp™
OP Offline
Yarp™
Joined: Feb 2007
Posts: 329
i prefer

set USER_NAME_COLOR = $backgroundcolor where yarpie=true

wink

Sponsored Links
Re: Give users a shiny color for EK soccer
blaaskaak #317165 06/04/2008 10:11 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
as we are not in it - I will not be adding this to our football forums LOL

What is EK btw?


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: Give users a shiny color for EK soccer
Ian_W #317166 06/04/2008 11:00 AM
Joined: Nov 2003
Posts: 482
Enthusiast
Offline
Enthusiast
Joined: Nov 2003
Posts: 482
Euro 2008 ? prolly the dutchies do Euro Kup :hihi: instead of Cup..

just a wild ass guess wink

Re: Give users a shiny color for EK soccer
sirdude #317168 06/04/2008 6:52 PM
Joined: Feb 2007
Posts: 329
Yarp™
OP Offline
Yarp™
Joined: Feb 2007
Posts: 329
EK=Europees Kampioenschap...

European Championship...

Whatever, we got about a 100 orange names now on our forums laugh

Re: Give users a shiny color for EK soccer
blaaskaak #317170 06/05/2008 4:20 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
Hope you do well in Euro 2008 smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
jgeoff
jgeoff
NJ
Posts: 96
Joined: April 2001
Forum Statistics
Forums63
Topics37,529
Posts293,721
Members13,834
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 130
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 28
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,795
Greg Hard 4,625
Top Posters(30 Days)
isaac 3
Top Likes Received
isaac 33
Gizmo 8
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200228.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.058s Queries: 43 (0.024s) Memory: 3.3555 MB (Peak: 3.5845 MB) Data Comp: Zlib Server Time: 2020-02-29 07:30:23 UTC
Valid HTML 5 and Valid CSS