driving me crazy
| Elgan |
|
|---|---|
1. //Added Function for User_Display Creation
2. function Split_String($namesplit) {
G[color=#EF2929]global $cfg;[/color]
3. $STR_LEN = strlen($namesplit);
4. $newdisplay = "";
5. for ($i = 0; $i < $STR_LEN; $i++) {
6. $newdisplay .= "<span style=\"color:#".$cfg['defaultcolor']."\">" . $namesplit{$i} . "</span>";
7. }
8. return $newdisplay;
9. }
10. $displayname = "".$ruserdisplay."";
11. //Added Function for User_Display Creation
red is what i added. EDIT: it dindt show up right. Could colours work in codes? bug not meant to? so, you need to add a global to call cfg. so glboal cfg; before its needed will work. make sense? php.net may explain better. |