Oh cool. Thanks Xenon.
I have a question though, I tried making the edited by part the same as it is in editpost.php, which would look like:
PHP Code:
else {
$editedbysql="";
if ($showeditedby and $postinfo[dateline]<(time()-($noeditedbytime*60)) and !($getperms[ismoderator] and !$showeditedbyadmin)) {
$editedbysql=",edituserid='$bbuserinfo[userid]',editdate='".time()."'";
}
Except that for some reason it still shows the "Edited by" if I have admins set to not show edited by. I tried it with:
PHP Code:
else {
$editedbysql="";
if ($bbuserinfo['usergroupid'] == 6) {
$editedbysql="";
}
if ($showeditedby and $lastpost['dateline'] < (time() - ($noeditedbytime * 60))) {
$editedbysql = ",edituserid='$bbuserinfo[userid]',editdate='" . time() . "'";
}
and that did work (I think, I tested it really quickly), but I want it to work with the setting in vb options in Admin CP. How would I do this?
Thanks.