74 replies · 5,614 views · started 19 years ago · 1 min read
TL;DR · summary of 74 replies
alesh needs help implementing code that allows users to choose their own nickname colors, but is having trouble with the database setup.
The thread suggests creating a new row in the users table for storing the color preference, but alesh is unsure if this is correct and how to implement it properly.
The issue of changing all nicknames to one color instead of individual user preferences remains unresolved.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
i wanna make tht users have colorful nicknames, but i realy dnt knw where 2 start....
4 e.g. i want tht just my nickname is in red color..........
i knw its posible but i need help!!!!!
okay i knw tht 1st i have 2 make a new row in users table and a 1 new db table, but then starts a problem ...whts next.. etc. lol
cn sum1 tell me where 2 start, how 2 start, how 2 conect db with script etc.. pls????
i dnt asking tht u put a whole coding here.....im just asking tht if sum1 is good enough 2 explain the whole thng 2 me....
pls!!!!!
thanx in advance!!!
Pozdrav heh
You want to all nicknames are for example in red color?
Pozdrav heh
You want to all nicknames are for example in red color?
pozZzz i tebi susjed!
no i dnt wanna all nicknames in just 1 color, thts easy and i knw how 2 do it...
i want tht wht hypetype said but i got a lil problem with writing the code and with modifing it into the script.....
jus write the code. n put it in there c panel to choose the colors of there name.
this may b of help u will need tables to record the colors rgb or what ever u wana use but this will display it
ths only example to get u going
$usercolor=mysql_fetch_array(mysql_query("SELECT color FROM ibwf_users WHERE uid='".$uid."'"));
if($usercolor==""){$usercolor[0]="#000000";}
$main.="<a href="index.php?action=action&sid=$sid" style="color:$usercolor[0]">$item[1]</a>
this may b of help u will need tables to record the colors rgb or what ever u wana use but this will display it
ths only example to get u going
$usercolor=mysql_fetch_array(mysql_query("SELECT color FROM ibwf_users WHERE uid='".$uid."'"));
if($usercolor==""){$usercolor[0]="#000000";}
$main.="<a href="index.php?action=action&sid=$sid" style="color:$usercolor[0]">$item[1]</a>
hmmmm okay now... 1st i need a new row in users table right? and then new table with colors????
<?php
$usercolor=mysql_fetch_array(mysql_query("SELECT color FROM ibwf_users WHERE uid='".$uid."'"));
if($usercolor==""){$usercolor[0]="#000000";}
$show.="<a href=\"index.php?action=action&sid=$sid\" style=\"color:$usercolor[0]\">$item[1]</a>";
if(!$usercolor==""){
$rnubmer=rand(1,10);
$show.="<a href=\"index.php?action=action&sid=$sid\" style=\"color:$usercolor[$rnubmer]\">$item[1]</a>";
}
?>
Give me the link of script, and tell me in whic part of code you have found where it should it be and I will make it, I think that you must mannualy change every part where is nick shown...I don't know which script is it...
i converted my site into xhtml from basic wml lava script..... and i modified it sumthng like tht funmobile script....
i mean i took idea from it.... cuz i wanted tht users cn change themes by urself etc and tht script got the easiest way 2 do tht.....
okay now i understand i have 2 change the whole script where it shows nicknames but i got trouble 2 put tht code into tany part where it shows nicknames......
i converted my site into xhtml from basic wml lava script..... and i modified it sumthng like tht funmobile script....
i mean i took idea from it.... cuz i wanted tht users cn change themes by urself etc and tht script got the easiest way 2 do tht.....
okay now i understand i have 2 change the whole script where it shows nicknames but i got trouble 2 put tht code into tany part where it shows nicknames......