TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-02-2009, 02:33 AM   #1 (permalink)
The Wanderer
 
Join Date: Aug 2009
Posts: 15
Thanks: 11
tearsofthesun is on a distinguished road
Default username color options

Here is an example: http://www.vilegaming.com/league.x/standings1/3

how can i let my user have the option to change their name colors like so?
only options i want are red,blue,white btw :)

i have no idea what kind of tutorial i could find this in, maybe someone could break down the simple steps for me? i try to google for "username color options" and etc but could not find any.

thanks!
tearsofthesun is offline  
Reply With Quote
Old 09-02-2009, 04:40 AM   #2 (permalink)
The Acquainted
 
JaoudeStudios's Avatar
 
Join Date: Jul 2009
Location: Surrey
Posts: 105
Thanks: 1
JaoudeStudios is on a distinguished road
Default

There are plenty of javascript colour pickers.

Get the user to choose a colour and the javascript colour picker will put the colour value in an input field, let the user submit the form and save the value to the database. Then use this colour in an inline style around their username or change your css stylesheet to php and get the value out of the database and use it there.

I see 4 simple steps.
1. Get the colour value
2. Save the colour value in db
3. Get the colour value from db
4. Use the colour value
__________________
JaoudeStudios.com | JaoudeStudios.com Forum | JaoudeStudios.com Blog
OpenSource is the road ahead...!
JaoudeStudios is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
username checker khile MySQL & Databases 14 07-27-2009 04:25 AM
username and password cecilia Absolute Beginners 5 06-28-2009 02:08 AM
vBulletin: Problem with register : "That username is already in use or does..." Fpac.afrikano Feedback 1 11-29-2008 03:58 PM
Rogue MySQL Process / Service aristoworks MySQL & Databases 4 11-30-2007 08:29 PM
MySQL: Selecting a username? WinSrev MySQL & Databases 11 11-28-2007 07:11 PM


All times are GMT. The time now is 10:17 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design