New link in the top of page "IRC Chat". |
Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Last Posts
| IRC Chat
| Online users Ranks | FAQ | XPW | Stats | Color Chart | Photo album |
| |
0 users currently in General Chat. |
User | Post | ||||||||||||
Yngwie Malmsteen Posts: 37/40 |
Yeah, symbols killed it. | ||||||||||||
Banned Posts: 3090/-3459 |
MasterNaruto on the banned users had a totally black name. XD | ||||||||||||
Kard Ayals Posts: 1784/2915 |
Oh, and the code I posted has one terrible flaw.
Special chars are not removed, which could potentialy make some crappy usernames and stuff. EDIT: And yeah, Xk abused it. | ||||||||||||
Xeoman Posts: 5394/11751 |
Originally posted by Lord Shaddow Yeah, but it happened like monthly at Acmlm's. "Ah, everyones pink ................. Again. Great." | ||||||||||||
Kard Ayals Posts: 1780/2915 |
I prefer ereg_replace.
And then the x_replace functions are case sensitive, while xi_replace wouldn't be. (replace x with whatever) | ||||||||||||
DSMagnum Posts: 306/368 |
That code you posted is similar to what I thought it would be, except instead of eregi_replace, I thought you would've used preg_replace, mostly because I've never heard of eregi_replace. That's interesting though. | ||||||||||||
Banned Posts: 3086/-3459 |
I allways thought the lol-everyone's a girl was funny. *shrugs* Maybe I'm sexist. | ||||||||||||
Kard Ayals Posts: 1779/2915 |
Didn't know what to write. | ||||||||||||
Xeoman Posts: 5387/11751 |
"Links and stuff" = ??
| ||||||||||||
Kard Ayals Posts: 1778/2915 |
Originally posted by DragonXeo I think it might've been you who gave me the idea (well, it think it was you who posted at Ace's basically complaining that the lol random colors are getting old). I wanted to do something different at least. (but hey, even if the colors are away, I changed my layouts color =D) | ||||||||||||
FX Posts: 1785/3775 |
But... I liked the lol random colors... | ||||||||||||
Xeoman Posts: 5386/11751 |
It was fun and interesting though, instead of the typical "lol random colors or lol everyons a girl, etc" crap. | ||||||||||||
Kard Ayals Posts: 1777/2915 |
Well, it thought it was smoother too.
But hey... it's not like I asked people's opinion before doing it (therefore, not permanent) | ||||||||||||
Banned Posts: 3082/-3459 |
Awwwwwwwwww you changed it back. lol.
I liked the way most of the posters had their colors changed to my hot pink. ^^; | ||||||||||||
Kard Ayals Posts: 1776/2915 |
Double Post oh sht;
Oh well, I did say I was gonna post how I did it... Not the best way and very flawed. But hey, it was to last less than a week anyway. So that's the function: function getnamecolor($sex,$powl,$unames=""){ global $nmcol; // $sex=3; $special = 0; if($unames == "") $special = 0; if($special == 0){ //Stuff Happens } else{ $name = $unames."kasjasdk"; $name = preg_replace("/s/", "1", $name); $name=eregi_replace("g",'A',$name); $name=eregi_replace("h",'B',$name); $name=eregi_replace("i",'C',$name); $name=eregi_replace("j",'D',$name); $name=eregi_replace("k",'E',$name); $name=eregi_replace("l",'F',$name); $name=eregi_replace("m",'A',$name); $name=eregi_replace("n",'B',$name); $name=eregi_replace("o",'C',$name); $name=eregi_replace("p",'D',$name); $name=eregi_replace("q",'A',$name); $name=eregi_replace("r",'B',$name); $name=eregi_replace("s",'C',$name); $name=eregi_replace("t",'D',$name); $name=eregi_replace("u",'E',$name); $name=eregi_replace("v",'F',$name); $name=eregi_replace("w",'A',$name); $name=eregi_replace("x",'B',$name); $name=eregi_replace("y",'C',$name); $name=eregi_replace("z",'D',$name); $namecolor ="color=.substr($name, 0, 6); } return $namecolor; } Kard Ayals |
Posts: 1774/2915 I'll post the code soon, so you guys can see exactly what I did. | DSMagnum |
Posts: 301/368 Originally posted by R2D2 Too long in my opinion, but it was probably only 15 minutes. I know very well what you did, I just don't know HOW you did it. That's what I was trying to figure out. Kard Ayals |
Posts: 1771/2915 Wow.
| How much time did it take you? Indeed, spaces become 1. As for if the name is too long? Basically typed random letters =D DSMagnum |
Posts: 300/368 Psh. I have a whole container of those.
| Anyways, I know what the code does, but I'm not sure exactly how it works. And seeing as I'm not very PHP knowledgable, I wouldn't be able to figure it out. Also, Vulkar and Leviathen aren't the same. If you look at the source, it shows that V=L, U=E, but K and I aren't the same, as for T and R. Vulkar's color = FEFEaB Leviathen's color = FeFCaD Also, spaces=1, and if the name isn't long enough... well there I'm lost. It's not just 0s added at the end, because then R2D2 would be B2D200 in hex, but it's B2D2Ea, and I don't know how that works. I'm done thinking about this for now. FX |
Posts: 1763/3775 Because we get a cookie.
| Duh. This is a long thread. Click here to view it. | |