Updated for V3 credit to Original Author
In shoutbox.php find
add after
find
replace with
add shoutboxedit.php
In shoutbox.php find
echo date('jS M, g:ia', utc_to_tz_time($row['date']));add after
$ol3 = @mysqli_fetch_array(SQL_Query_exec("SELECT avatar FROM users WHERE id=".$row["userid"]));
$av=$ol3['avatar'];
if(!empty($av)){
$av="<img src='".$ol3[avatar]."' alt='my_avatar' width='27' height='27'>";
}else{
$av="<img src='images/default_avatar.png' alt='my_avatar' width='27' height='27'>";
}
if($row['userid']==0){
$av="<img src='images/default_avatar.png' alt='default_avatar' width='27' height='27'>";
}
@mysqli_free_result($ol3);find
if ( ($CURUSER["edit_users"]=="yes") || ($CURUSER['username'] == $row['user']) ){
echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutbox.php?del=".$row['msgid']."' style='font-size: 8px'>[D]</a></div>";
}
echo '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
replace with
if ( ($CURUSER["edit_users"]=="yes") || ($CURUSER['username'] == $row['user']) ){
echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutedit.php?action=edit&msgid=".$row['msgid']."' style='font-size: 8px'>[E]</a> <a href='".$site_config['SITEURL']."/shoutedit.php?action=delete&msgid=".$row['msgid']."' style='font-size: 8px'>[D]</a> ".$av."<div>";
}
echo "<div align='right' style='float: right'></div>";
echo '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
add shoutboxedit.php
