hier de code, da du ihn ja nicht lesen konntest :-)
<?php
$ILCH_HEADER_ADDITIONS .= '
<style type="text/css">
<!--
/* Bubble with an isoceles triangle
------------------------------------------ */
.example-right {
position:relative;
padding:5px 5px;
margin:0;
color:#fff;
background:#5a8f00; /* default background for browsers without gradient support */
/* css3 */
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
/* NOTE: webkit gradient implementation is not as per spec */
background:-webkit-gradient(linear, left top, left bottom, from(#b8db29), to(#5a8f00));
background:-moz-linear-gradient(top, #b8db29, #5a8f00);
background:-o-linear-gradient(top, #b8db29, #5a8f00);
background:linear-gradient(top, #b8db29, #5a8f00);
}
/* display of quote author (alternatively use a class on the element following the blockquote) */
.example-right + p {margin:5px 0 2em 40px; font-style:italic;}
/* creates the triangle */
.example-right:after {
content:"\00a0";
display:block; /* reduce the damage in FF3.0 */
position:absolute;
bottom:-30px;
left:10px;
width:0;
height:0;
border-width:0 20px 30px 0px;
border-style:solid;
border-color:transparent #5a8f00;
}
-->
</style>
<script type="text/javascript">
function toggle(control){
var elem = document.getElementById(control);
if(elem.style.display == "none"){
elem.style.display = "block";
}else{
elem.style.display = "none";
}
}</script>
<script type="text/javascript" src="include/includes/js/bbcode.js"></script>
';
// Copyright by Manuel
// Support www.ilch.de
defined ('main') or die ('no direct access');
$smile = getsmilies();
$datum=date("j.n.Y");
$zeit=date(" H:i ");
if (loggedin()) {
$shoutbox_VALUE_name = $_SESSION['authname'];
} else {
$shoutbox_VALUE_name = 'Nickname';
}
if (has_right($allgAr['sb_recht'])) {
if (!empty($_POST['shoutbox_submit']) AND chk_antispam ('shoutbox')) {
$shoutbox_nickname = escape($_POST['shoutbox_nickname'], 'string');
$shoutbox_nickname = substr($shoutbox_nickname, 0, 15);
$shoutbox_textarea = escape($_POST['txt'], '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` (`nickname`,`textarea`) VALUES ( "' . $shoutbox_nickname . '" , "' . $shoutbox_textarea . '" ) ');
}
}
echo '<form action="index.php?' . $menu->get_complete() . '" method="POST" name="form">';
echo '<input type="text" style="width: 95%" 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 style="width: 95%" rows="2" name="txt"></textarea><br />';
$antispam = get_antispam ('shoutbox', 0);
echo $antispam;
if (!empty($antispam)) {
echo '<br />';
}
echo '<input type="submit" value="' . $lang['formsub'] . '" name="shoutbox_submit">';
echo ' <a href="javascript:toggle(\'test\')">Smilies</a><br /><center><div id="test" style="display: none">'.$smile.'</div></center>';
echo '</form><br />';
}
$erg = db_query('SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT ' . (is_numeric($allgAr['sb_limit'])?$allgAr['sb_limit']:5));
$class = 'Cnorm';
while ($row = db_fetch_object($erg)) {
$class = ($class == 'Cmite' ? 'Cnorm' : 'Cmite');
echo '<blockquote class="example-right"><p>' . preg_replace('/([^\s]{' . $allgAr['sb_maxwordlength'] . '})(?=[^\s])/', "$1\n", bbcode($row->textarea)) . '</p></blockquote>
<p><b>' . $row->nickname . ':</b><br />'.$datum.'|'.$zeit.'</p>
';
}
echo '<a class="box" href="index.php?shoutbox">' . $lang['archiv'] . '</a>';
?>
da siehst du wie das funktioniert. vielleicht klappts ja auch bei dir ;-)