Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Permission change - users can delete own threads with no replies Details »»
Permission change - users can delete own threads with no replies
Mod Version: 1.00, by MoMan (Coder) MoMan is offline
Developer Last Online: Aug 2014 I like it Show Printable Version Email this Page

vB Version: 3.8.7 Rating: (1 vote - 5.00 average) Installs: 4
Released: 03 Mar 2011 Last Update: Never Downloads: 0
Not Supported Code Changes Re-usable Code  

I've seen people ask about this feature many times without getting a definitive answer, so I thought I'd chime in as I recently implemented this on my forum.

Question: Is it possible to allow members to delete their own threads if and only if they have no replies?

Answer: The stock vbulletin installation only allows you to specify whether or not users can delete their own threads, regardless of the number of replies. To change this, you can make a simple code modification.

The related usergroup permission is called "Can Delete Own Threads". If you would like to change this permission so that it limits users to deleting only threads with no replies, open ajax.php, editpost.php, and postings.php and find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now, users will be able to delete their own threads if they have no replies! I have tested this on vB 3.8.7 using both the ajax and non-ajax editors. I suspect this will work with vB 3.x.x, as well as with 4.x, however. Enjoy!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Canned Replies v4.x - User Saved Text for Replies, Threads, PMs & Infractions bananalive vBulletin 4.x Add-ons 231 01 Oct 2014 12:48
Canned Replies - User Saved Text for Replies, Threads, PMs & Infractions bananalive vBulletin 3.7 Add-ons 292 08 Aug 2013 06:53

Comments
  #2  
Old 04 Mar 2011, 17:33
Qima Qima is offline
 
Join Date: Feb 2011
Real name: Zineddine
thanks , for this modification
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 06:54.

Layout Options | Width: Wide Color: