Chatfarben-Mod
Autor: Chaosmaker <webmaster@chaosonline.de>
URL: http://logd.chaosonline.de
Letztes Update: 2004-12-20
Editierte Dateien: prefs.php, common.php

Hinweis:
Fngt falsche Angaben ab, lsst immer noch Farbnderungen im Chat selbst zu.

--- ffne common.php
--- suche
	$talkline = translate($talkline);
--- fge danach ein:
	if (substr($commentary,0,1)==':' || substr($commentary,0,3)=='/me') {
		if (substr($commentary,0,3)=='/me') $strpos = 3;
		elseif (substr($commentary,0,2)=='::') $strpos = 2;
		else $strpos = 1;
		if ($session['user']['prefs']['commentemotecolor']) $commentary = substr($commentary,0,$strpos).$session['user']['prefs']['commentemotecolor'].substr($commentary,$strpos);
	}
	else {
		if ($session['user']['prefs']['commenttalkcolor']) $commentary = $session['user']['prefs']['commenttalkcolor'].$commentary;
	}
--- ffne prefs.php
--- suche
	if (closetags(stripslashes($_POST['bio']),'`i`b`c`H')!=$session['user']['bio']){
--- fge davor ein:
	if (substr($session['user']['prefs']['commenttalkcolor'],0,1)!='`') $session['user']['prefs']['commenttalkcolor'] = '';
	else $session['user']['prefs']['commenttalkcolor']=preg_replace("'[`][^\^123456789!@#$%&QqRr*~?VvGgTtAa]'","",substr($session['user']['prefs']['commenttalkcolor'],0,2));
	if (substr($session['user']['prefs']['commentemotecolor'],0,1)!='`') $session['user']['prefs']['commentemotecolor'] = '';
	else $session['user']['prefs']['commentemotecolor']=preg_replace("'[`][^\^123456789!@#$%&QqRr*~?VvGgTtAa]'","",substr($session['user']['prefs']['commentemotecolor'],0,2));
--- suche
	,"nosounds"=>"Die Sounds deaktivieren?,bool"
--- fge danach ein:
	,"commenttalkcolor"=>"Standardfarbe bei Gesprchen"
	,"commentemotecolor"=>"Standardfarbe bei Emotes (/me)"