View Full Version : Post locking
heretic
06-27-2002, 09:58 PM
me forum members have the ability to edit/delete their posts, althogh sometimes a post comes up that I wish could be "locked" so that that specific post couldn't be modified by the user
would this be possible? some kind of nuke varient?
Logician
06-27-2002, 10:33 PM
I recall a hack that does not allow the user to edit his post if an admin edited it. You can use it and then edit his post and it's automatically locked.
If the hack doesnt exist, well I say it must, it's a nice hack lol.. :laugh: Anyway it's not hard to add that code to editpost.php, just one query to check last editer, before letting him to edit.. Easy..
Xenon
06-27-2002, 11:24 PM
i have only found the same request long time ago, but no answer:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=17533&highlight=admin+edit+user+not
so i'd say test this method:
open editpost.php find:
$postinfo=getpostinfo($postid);
if (!$postinfo[visible]) {
$idname="post";
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
}
below it add:
if($postinfo[edituserid]!=$bbuserinfo[userid] && $postinfo[edituserid]!=0 && $postinfo[userid]==$bbuserinfo[userid] && $bbuserinfo[usergroupid]==2) {
show_nopermission();
}
edit: i know it's not perfect, because it just prevents posts from normal members in usergroup2, to be reedited, but this is all i'll do today anymore, its late at night here ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.