View Full Version : Allowing users to delete a post or topic for limited time?
MistViper
03-24-2015, 09:40 PM
Like is there a mod for that or a setting?
Say if a user posted somewhere wrong and wants to delete that then they can for the next 10 minutes.
Maybe a permission setting on forum basis or usergroup basis.
Elite_360_
03-24-2015, 10:07 PM
Their are forum and Usergroup Permissions for that except for the 10 minutes part
MistViper
03-24-2015, 10:09 PM
Their are forum and Usergroup Permissions for that except for the 10 minutes part
That isn't useful because then someone could delete a topic with 100 posts.
Elite_360_
03-24-2015, 10:14 PM
i can look into that for you their might be file edits.
--------------- Added 1427239463 at 1427239463 ---------------
They would only be able to do a soft delete on post or threads anyways so you could always restore them.
MistViper
03-24-2015, 10:26 PM
i can look into that for you their might be file edits.
--------------- Added 1427239463 at 1427239463 ---------------
They would only be able to do a soft delete on post or threads anyways so you could always restore them.
That would be cool but editing core files is a temp solution not a long term one. Because core files get overridden in future updates.
Still I appreciate your time spent to look into this.
They would only be able to do a soft delete on post or threads anyways so you could always restore them.
True enough but you can't notice it everywhere they do it and I don't feel its a great solution either. Don't want to babysit that thought. The goal is to decrease moderation work.
Elite_360_
03-24-2015, 11:43 PM
Looking at the vb code trying to figure it out their is a time limit on editing post and that the way your user would not be able to delete their post or thread you could do this.
Go to AdminCP > Setting > Options > Message Posting and Editing Options > Time Limit on Editing of Posts
Only Admin and mods could edit or delete posts, threads after this time limit has past.
Elite_360_
03-25-2015, 12:02 AM
I you don't like the vb option Time Limit on Editing of Posts in post #6 (https://vborg.vbsupport.ru/showpost.php?p=2541445&postcount=6)
you would have to edit two file ajax.php and editpost.php
Find this code
else if (((($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletepost']) AND !$isfirstpost) OR (($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletethread']) AND $isfirstpost)) AND $vbulletin->userinfo['userid'] == $postinfo['userid'])
And replace with this code
else if (((($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletepost']) AND !$isfirstpost) OR (($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletethread']) AND $isfirstpost)) AND $vbulletin->userinfo['userid'] == $postinfo['userid'] AND $postinfo['dateline'] < (TIMENOW - (10 * 60)))
rmadeat
03-25-2015, 12:39 PM
The same problems, the solution was
Thank you
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.