PDA

View Full Version : Allow deleting threads only when there is one post


sparklywater
09-07-2009, 11:05 PM
Is it possible to allow users to delete their own thread only when the first post is the only one in the thread, but not allow this if there are other posts in the thread? This would prevent users from deleting long discussions in threads while allowing them to delete threads created by mistake. How can I make my forum work like that?

Lynne
09-08-2009, 03:31 AM
There is no default option to do that. I think you'd have to write a modification to do that.

sparklywater
09-08-2009, 11:57 AM
I know, that's what I'm asking about...

Lynne
09-08-2009, 02:11 PM
You asked if it was possible and I said not with default vbulletin.

Anyway, you'd probably want to write a plugin that does a quick check to count posts in a thread. If there is more than 1 post, give them a No Permission for deleting the thread. I think you'd do this for the editpost.php file but I'm not positive (look at the form action for the Edit Post).

Programming Discussions is for help writing the code (you write it, tell us what is wrong, we make suggestions on how to fix it). If you need someone else to write it for you, you should post in Modifications Requestions (unpaid) or Paid Requests.

sparklywater
09-08-2009, 03:44 PM
okay thank you.