hab mal ausprobiert, funzt alles, ging eigentlich sogar relativ easy, das anpassen war nur scheiße
das ist mein gesamter quelltext:
<style type="text/css">
<!--
.fhr {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<?php
# Copyright by Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
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['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` (`nickname`,`textarea`) VALUES ( "'.$shoutbox_nickname.'" , "'.$shoutbox_textarea.'" ) ' );
}
}
echo '<form action="index.php?'.$menu->get_complete().'" method="POST">';
echo '<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" height="50" align="center" valign="top" background="http://www.vampire-records.com/include/images/shoutbox/shoutbox_01.png"></td>
</tr>
<tr>
<td align="center"><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="22" height="20" align="center" valign="top" background="include/images/shoutbox/shoutbox_02.png"></td>
<td width="105" height="20" align="center" valign="middle" background="include/images/shoutbox/shoutbox_03.png"><input type="text" size="17" name="shoutbox_nickname" value="'.$shoutbox_VALUE_name.'" onFocus="if (value == \''.$shoutbox_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$shoutbox_VALUE_name.'\'}" maxlength="15" style="border:0;background-color:transparent;"></td>
<td width="23" height="20" align="center" valign="top" background="include/images/shoutbox/shoutbox_04.png"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="150" height="54" align="center" valign="top" background="include/images/shoutbox/shoutbox_05.png"></td>
</tr>';
echo ' <tr>
<td align="center"><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="9" height="93" align="center" valign="top" background="include/images/shoutbox/shoutbox_06.png"></td>
<td width="131" height="93" align="center" valign="middle" background="include/images/shoutbox/shoutbox_07.png"><textarea style="width:92%;height:92%;border:0;background-color:transparent;" cols="15" rows="5" name="shoutbox_textarea">Text</textarea></td>
<td width="10" height="93" align="center" valign="top" background="include/images/shoutbox/shoutbox_08.png"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="150" height="10" align="center" valign="top" background="include/images/shoutbox/shoutbox_09.png"></td>
</tr>';
echo get_antispam ('shoutbox', 0);
echo '<tr>
<td align="center"><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="22" height="32" background="include/images/shoutbox/shoutbox_10.png"></td>
<td width="104" height="32" align="center" valign="middle"><input type="image" value="'.$lang['formsub'].'" name="shoutbox_submit" src="include/images/shoutbox/shoutbox_11.png" align="middle" border="0" width="104" height="32" alt="Absenden" style="width:104;height:32;border:0;background-color:transparent;"></td>
<td width="24" height="32" background="include/images/shoutbox/shoutbox_12.png"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="150" height="5" align="center" valign="top" background="include/images/shoutbox/shoutbox_13.png"></td>
</tr>
</table></td>
</tr>
</table><br>
';
echo '</form>';
}
echo '<table width="92%" cellpadding="1" cellspacing="1" border="1">';
$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 '<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" height="8" align="center" valign="top" background="include/images/shoutbox/shoutbox_15.png"></td>
</tr>
<tr>
<td><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14" height="35" align="center" valign="middle" background="include/images/shoutbox/shoutbox_16.png"></td>
<td width="121" height="35" align="center" valign="middle" background="include/images/shoutbox/shoutbox_17.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" align="center" valign="middle"><span class="fhr">'.$row->nickname.'</span></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table></td>
<td width="15" height="35" align="center" valign="middle" background="include/images/shoutbox/shoutbox_18.png"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="11" align="center" valign="top" background="include/images/shoutbox/shoutbox_19.png"></td>
<td width="125" align="center" valign="top" background="include/images/shoutbox/shoutbox_20.png">'.preg_replace( '/([^\s]{'.$allgAr['sb_maxwordlength'].'})(?=[^\s])/', "$1\n", $row->textarea).'</td>
<td width="14" align="center" valign="top" background="include/images/shoutbox/shoutbox_21.png"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="150" height="15" align="center" valign="top" background="include/images/shoutbox/shoutbox_22.png"></td>
</tr>
</table>';
}
echo '<a class="box" href="index.php?shoutbox">'.$lang['archiv'].'</a>';
?>
Resultat ist zufinden unter
externer Link