hi moin ich möchte gerne das der name vor der nachricht des users auch gleichzeitig ein link zu seinem profil ist hab aber kein plan wie ich das machen soll.
<?php
defined ('main') or die ( 'no direct access' );
$datum=date(" j.n.Y");
$zeit=date(" H:i");
if (loggedin()) {
$shoutbox_VALUE_name=$_SESSION['authname'];
}
else {
$shoutbox_VALUE_name = 'Nickname';
}
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('DELETE FROM `prefix_shoutbox` WHERE nickname = "'.$shoutbox_VALUE_name.'" AND textarea = "'.$shoutbox_textarea.'"' );
db_query('INSERT INTO `prefix_shoutbox` VALUES ( "" , "'.$shoutbox_VALUE_name.'" , "'.$shoutbox_textarea.'" ) ' );
}
}
echo '
<div align="left" style="width:50%; height:auto; overflow:auto; border:0px solid #347; margin:0px;">
<table width="100%" cellpadding="2" cellspacing="1" border="0">';
$erg = db_query('SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 2');
while ($row = db_fetch_object($erg) ) {
$class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' );
echo '
<tr class="'.$class.'">
<td align="lest" style="font-size:11px;" width="10%"><b>'.$row->nickname.'</b>:</td><td style="font-size:11px;"> '.preg_replace( '/([^\s]{'.$allgAr['sb_maxwordlength'].'})(?=[^\s])/', "$1\n", BBcode($row->textarea)).'</td>
</tr>';
}
echo '</table></div>';
if (has_right($allgAr['sb_recht'])) {
echo '
<form method="post" name="post" action="index.php">';
echo get_antispam ('shoutbox', 0); echo '
</form>';
}
betroffene Homepage: insidertreff.in.ohost.de