In functions.php, I added this:
Code:
if ($post[userid]==$bbuserinfo[userid] or ($bbuserinfo[usergroupid]=="5" or $bbuserinfo[usergroupid]=="6" or $bbuserinfo[usergroupid]=="7")) {
eval("\$post[editpost] = \"".gettemplate("postbit_editpost")."\";");
} else {
$post[editpost]="";
}
if ($post[userid]!=$bbuserinfo[userid]) {
eval("\$post[report] = \"".gettemplate("postbit_report")."\";");
} else {
$post[report]="";
}
right after this:
Code:
$post[joindate]=vbdate($registereddateformat,$post[joindate]);
You need to make some changes in the postbit template though.
Replace the edit button with $post[editpost], and create another template "postbit_editpost" that will contain that buttons.
Same thing for the report button, replace it with $post[report] and create a new template "postbit_report".