Colorful Users Nicknames
Started on the old forum in August 2007 · view the original in the archive · old links redirect here
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.
okay here its only example... cuz sql query is nt the same 4 all the links and im not doing all 4 u.... lol
make new row in users table
`boja` varchar(7) NOT NULL default '#0000FF'
then make changes like this everywhere u wish 2 c users chosen color
$nickboja = mysql_fetch_array(mysql_query("SELECT boja FROM ibwf_users WHERE id='$item[2]'"));
$lnk = "<a href=\"inbox.php?action=readpm&pmid=$item[1]&ses=$ses\"><font color=\"$nickboja[0]\">$iml $item[0]</font></a>";
echo "$lnk
";
this is from inbox.php ..... ($action=="main")
when u do all the changes in entire script (and theres alot), make a page where users cn chose their fav color...or make it in user cpanel....
anyway i saw many diferent ways 2 do the same, even in core and in *.css file, but i wanted just like this and i like it lol
eeeeerrr....
Ma neka ga nek place External image (may be gone) nego da te pitam znas li slucajno kako odraditi da u postovima ispod nicka pojavljuje se avatar od istog. Jbg nikako da ustimam, a inace sam preuredio funmobile skriptu evo pogledaj http://united1x2.com/forum
Ma neka ga nek place External image (may be gone) nego da te pitam znas li slucajno kako odraditi da u postovima ispod nicka pojavljuje se avatar od istog. Jbg nikako da ustimam, a inace sam preuredio funmobile skriptu evo pogledaj http://united1x2.com/forum
pa virni u profil pa se poigraj sa avatarom i "who"
eeeeerrr....
Ma danima pokusavam al ne ide pa ne ide jbg, sve sto sam uspio jeste da se prikaze jedan te isti avatar za sve
znaci da negde ti fali onaj $uid=..... ali po mome to ti je bezveze.. useri nece bit odusevljeni, jer GPRS je skup External image (may be gone)
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!
znaci da negde ti fali onaj $uid=..... ali po mome to ti je bezveze.. useri nece bit odusevljeni, jer GPRS je skup External image (may be gone)
To mi je za web skriptu pogledaj http://united1x2.com/forum dok je na wap sasvim nesto drugo i ima brdo opcija za smanjenje gprs-a npr. sakrivanje pojedinih linkova http://wap.united1x2.com
$usl je nick u postovima a on je: $usl = " <a href="index.php?action=viewuser&sid=$sid&who=$ttext[0]">$iml$unick</a>";
E sad kako dobiti ispod $usl prikaz avatara od tog nicka? E a moze li i molba da neko od Vas posto vidim da znate engleski sto meni nije jaca strana otvori temu za ovo pa valjda ce neko skontati, unaprijed hvala
Ma danima pokusavam al ne ide pa ne ide jbg, sve sto sam uspio jeste da se prikaze jedan te isti avatar za sve
Croatian: tebi fali ono "ciji avatar" a da probas ovo $avatar = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE id='$ttext[0]'")); nisam siguran al probaj........
English: ur mising whos avatar try this $avatar = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE id='$ttext[0]'")); im nt sure but try....
lol okay amy...
multylanguage lol
eeeeerrr....
Croatian: tebi fali ono "ciji avatar" a da probas ovo $avatar = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE id='$ttext[0]'")); nisam siguran al probaj........
English: ur mising whos avatar try this $avatar = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE id='$ttext[0]'")); im nt sure but try....
lol okay amy...
multylanguage lol
Nece , rezultat je: Array
it worksssss!!!!
echo " <img src=\"$avatar[0]\" alt=\"avatar\"/>";
External image (may be gone) kod mene ne radi
Radi samo na prvom postu kod usera koji je otvorio topic
Evo radi sve hvala majstore na ideji p.s. ako nesto zatreba External image (may be gone)
ovo ide dole u postove
$avattar = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE id='$post[2]'")); echo " <img src="$avattar[0]" alt="avatar"/>";
MALAY:
pukimak korg mcm lancau babi anjing sial anak gampang burit mak korg tebelah dua..
ENGLISH:
i want full coding for nick color..post here plz....
hmmm "u want"??
well "i want" 1.000.000€ but no1 wanna give 2 me lol i wonder why?? WHY"" WHHHHHHHHHHHHHHHHHY??????? lol
i already posted an example 4 u and i told u ill not do it 4 u
read it again in case u missed! u have an example and go from there
eeeeerrr....
$nickboja?? whats that?re post in english pls alesh..
$nickboja is just a declared variable, you can use it by changing $alexism or $alexism_wants_it_translated_but_its_really_useless or $IDontKnow or $_variable .no need to tranlslate it.you posts are now very very funny