fehlt da noch was bei mir?
der rest funtkioniert perfekt sprich wenn ich das smily kürzel eingebe denn wird er auch angezeigt nur das draufklicken und automatische einfügen in der textarea funktioniert nich
<center> <?php # Copyright by Manuel # Support www.ilch.de # # Modul by Daniel Müller (DeutscheMark) # Support www.Ctf-Clan-Gaming.de defined ('main') or die ( 'no direct access' ); $shoutbox_VALUE_name = getenv("REMOTE_ADDR"); $datum=date(" | j.n.Y"); $zeit=date(" | H:i"); function shoutboxsmileys($string){ $smileys = array( ':)' => ':1:#@#-_-_-#@#1.gif', ':(' => ':6:#@#-_-_-#@#6.gif', ':o' => ':3:#@#-_-_-#@#3.gif', ':D' => ':12:#@#-_-_-#@#12.gif', ':/' => ':9:#@#-_-_-#@#9.gif', ':P' => ':4:#@#-_-_-#@#4.gif', 'lol' => ':8:#@#-_-_-#@#8.gif', ':X' => ':2:#@#-_-_-#@#2.gif' ); foreach ($smileys as $icon => $info) { list($emo, $url) = explode('#@#-_-_-#@#', $info); $string = str_replace($icon,'<img src="include/images/smiles/'.$url.'" border="0" alt="'.$emo.'" title="'.$emo.'" />',$string); } return $string; } if ( $_SESSION['authright'] <= -1 ) { // registrierte User if ( loggedin() ) { $shoutbox_VALUE_name = $_SESSION['authname']; } else { $shoutbox_VALUE_name = 'Nickname'; } if ( !empty($_POST['shoutbox_submit']) ) { $shoutbox_nickname = escape($_POST['shoutbox_nickname'],'string'); $shoutbox_nickname = substr($shoutbox_nickname, 0, 15); $shoutbox_textarea = escape($_POST['shoutbox_textarea'],'textarea'); $shoutbox_textarea = preg_replace("/\[.?(url|b|i|u|img|code|quote)[^\]]*?\]/i","",$shoutbox_textarea); $shoutbox_textarea = strip_tags($shoutbox_textarea); if ( !empty($shoutbox_nickname) AND !empty($shoutbox_textarea) ) { db_query('INSERT INTO `prefix_shoutbox` VALUES ( "" , "'.$shoutbox_nickname.''.$zeit.''.$datum.'" , "'.$shoutbox_textarea.'" ) ' ); } } echo '<form action="index.php" method="POST">'; echo '<input type="text" size="15" name="shoutbox_nickname" value="'.$shoutbox_VALUE_name.'" onFocus="if (value == \''.$shoutbox_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$shoutbox_VALUE_name.'\'}" maxlength="15">'; echo '<br /><textarea cols="15" rows="2" name="shoutbox_textarea"></textarea><br />'; echo '<input type="submit" value="'.$lang['formsub'].'" name="shoutbox_submit"><br />'; echo '<script language="JavaScript" type="text/javascript" src="include/includes/js/bbcode.js"></script>'; echo '<a href="javascript:put_sb(\':)\')"><img src="include/images/smiles/1.gif" border ="0"/></a>'; echo '<a href="javascript:put_sb(\':(\')"><img src="include/images/smiles/6.gif" border ="0"/></a>'; echo '<a href="javascript:put_sb(\':o\')"><img src="include/images/smiles/3.gif" border ="0"/></a>'; echo '<a href="javascript:put_sb(\':D\')"><img src="include/images/smiles/12.gif" border ="0"/></a>'; echo '<a href="javascript:put_sb(\':/\')"><img src="include/images/smiles/9.gif" border ="0"/></a>'; echo '<a href="javascript:put_sb(\':P\')"><img src="include/images/smiles/4.gif" border ="0"/></a>'; echo '<a href="javascript:put_sb(\'lol\')"><img src="include/images/smiles/8.gif" border ="0"/></a>'; echo '<a href="javascript:put_sb(\':X\')"><img src="include/images/smiles/2.gif" border ="0"/></a><br />'; } else { //Gaeste echo "<font color=#FFFFFF><b><br>Zum Posten<br>Bitte Einloggen!<p></p></b></font>"; echo "Deine IP:<br><b>$shoutbox_VALUE_name</b><br><br>"; echo '</form><table width="100%" align="center" class="border" cellpadding="2" cellspacing="1" border="0">'; } echo '</form><table width="90%" class="border" cellpadding="2" cellspacing="1" border="0">'; $erg = db_query('SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 10'); $class = 'Cnorm'; while ($row = db_fetch_object($erg) ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); echo '<tr class="'.$class.'"><td><b>'.$row->nickname.':</b><br />'.shoutboxsmileys(preg_replace( '/([^\s]{20})(?=[^\s])/', "$1\n", $row->textarea)).'</td></tr>'; } echo '</table><a class="box" href="index.php?shoutbox">'.$lang['archiv'].'</a>'; ?> </center>