huhu
weiss einer wie ich die Shoutbox kleiner machen kann ???
siehe hier externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
| Geschlossen | ||







echo '<form action="index.php" method="POST">';
echo "<center>Es ist der<br> $datum $zeit <br>Deine IP:<br><b> $shoutbox_VALUE_name</b><br>";
echo '<input readonly type="text" size="20" name="shoutbox_nickname" value="'.$shoutbox_VALUE_name3.'" onFocus="if (value == \''.$shoutbox_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$shoutbox_VALUE_name.'\'}" maxlength="30">';
echo '<br /><textarea rows="4" cols="25" name="shoutbox_textarea"></textarea>';
echo '<br><input type="submit" value="...und wech" name="shoutbox_submit"></center>';
echo '</form><table width="100%" align="center" class="border" cellpadding="2" cellspacing="1" border="0">';
} else {
echo '<form action="index.php" method="POST">';
echo "<center>Es ist der<br> $datum $zeit <br>Deine IP:<br><b> $shoutbox_VALUE_name</b><br>";
echo '<input readonly type="text" size="4" name="shoutbox_nickname" value="'.$shoutbox_VALUE_name2.' '.$shoutbox_VALUE_name.'" onFocus="if (value == \''.$shoutbox_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$shoutbox_VALUE_name.'\'}" maxlength="30">';
echo '<br /><textarea rows="4" cols="25" name="shoutbox_textarea"></textarea>';
echo '<br><input type="submit" value="...und wech" name="shoutbox_submit"></center>';
echo '</form><table width="100%" align="center" 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' );
//// old:
// echo "<b><font style=\"background-color: #2E4C2E\">$row->nickname</font></b>";
// $shout = '<tr class="'.$class.'"<td>'.bbcode($row->textarea).'</td></tr>';
// $shoutneu = wordwrap( $shout, 20, "\n",1);
// echo "$shoutneu\n";
//// new entry:
echo "<tr class=\"Chead\"><td><b>\n$row->nickname\n</b></td></tr>\n";
$shout = "<tr class=\"$class\"><td>\n".bbcode(wordwrap($row->textarea, 20, " ",1))."\n</td></tr>";
echo "$shout\n";
}
echo '</table><a class="box" href="?m=boxes/shoutbox&archiv=1" onClick="window.open(\'#\', \'external\',\'width=500,height=400,scrollbars=yes,resizable=no\')" target="external">Archiv</a>';
} else {
$title = $allgAr['title'].' :: Shoutbox Archiv';
$hmenu = 'Shoutbox Archiv';
$design = new design ( $title , $hmenu , 0 );
$design->header();
$class = 'Cnorm';
echo '<table width="100%" align="center" class="border" cellpadding="2" cellspacing="1" border="0"><tr class="Chead"><td><b>Shoutbox Archiv</b></td></tr>';
$erg = db_query('SELECT * FROM `prefix_shoutbox` ORDER BY id DESC');
while ($row = db_fetch_object($erg) ) {
$class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' );
echo '<tr class="'.$class.'"><td>';
if ( $_SESSION['authright'] == -5 ) {
echo '<b><a href="?m=boxes/shoutbox&delete='.$row->id.'">Loeschen</a> </b>';
}
echo ''.$row->nickname.':</b> '.bbcode($row->textarea).'</td></tr>';
}
echo '</table>';
$design->footer();
}
?>








$shout = "<tr class=\"$class\"><td>\n".bbcode(wordwrap($row->textarea, 20, " ",1))."\n</td></tr>";
$shout = "<tr class=\"$class\"><td>\n".bbcode(wordwrap($row->textarea, 15, " ",1))."\n</td></tr>";
| Geschlossen | ||
![]() |
Zurück zu Fehlersuche und Probleme | |