WebStyles
Fri 12th May '00, 2:29pm
Actually, Aaron (werehere) and I found it together. :)
Line 95 of editpost.php reads as follows in the stock version:
if (($getperms[canedit]==0 or $getperms[candelete]==0) and $getperms[canadminedit]==0) {
We don't have deleting of posts enabled, that's why it was such a problem on our board (and not a problem on this board). We changed this line to read:
if ($getperms[canedit]==0 and $getperms[canadminedit]==0) {
And it works flawlessly now... And people are not allowed to delete their posts, since that check is later in the script. Basically, the first code checks to see if either editing or deleting is disabled (if the person isn't an admin or mod of that forum) and gives the no_permission error. I would caution everyone to get John's ok before adding this to your board, but it's running on were-here.com (http://www.were-here.com/forums/index.php) and everything looks to work exactly as planned. :)
Line 95 of editpost.php reads as follows in the stock version:
if (($getperms[canedit]==0 or $getperms[candelete]==0) and $getperms[canadminedit]==0) {
We don't have deleting of posts enabled, that's why it was such a problem on our board (and not a problem on this board). We changed this line to read:
if ($getperms[canedit]==0 and $getperms[canadminedit]==0) {
And it works flawlessly now... And people are not allowed to delete their posts, since that check is later in the script. Basically, the first code checks to see if either editing or deleting is disabled (if the person isn't an admin or mod of that forum) and gives the no_permission error. I would caution everyone to get John's ok before adding this to your board, but it's running on were-here.com (http://www.were-here.com/forums/index.php) and everything looks to work exactly as planned. :)