MyBB Community Forums

Full Version: Deleting a thread not work properly.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
re,
with the tutorial from Destroy666

Open editpost.php, find this line: https://github.com/mybb/mybb/blob/featur...t.php#L275 and change it to:
if(false)

Do the same with this for posts: https://github.com/mybb/mybb/blob/featur...t.php#L319
[/quote]

I have this problem:

[Image: 7QxJ.jpg]

[Image: vNpD.jpg]

I have after delete the message box: "The post was deleted successfully".

But now, the background is lila and the thread is not delete permanently.

[Image: AQkq.jpg]

I can restore the thread.

So how can I delete permanently the thread with the click on the button delete?

Thanks in advance for your help!


I tried to express myself as clearly as possible Angel

Greets,
blongso
There's a setting for this. Go in AdminCP -> Configuration -> Posting and select no for the setting Enable Soft Delete for Users
(2017-04-02, 07:43 AM)chack1172 Wrote: [ -> ]There's a setting for this. Go in AdminCP -> Configuration -> Posting and select no for the setting Enable Soft Delete for Users

Thank you chack1172,
Enable Soft Delete for Users - No was already activated
You can try to edit file editpost.php
At line 278, change this:
if($mybb->settings['soft_delete'] == 1 || is_moderator($fid, "cansoftdeletethreads"))
with this:
if($mybb->settings['soft_delete'] == 1 && is_moderator($fid, "cansoftdeletethreads"))
YES!!!!!!!!!!!!!!!!!!!!!!!!!!! Big Grin Big Grin

Thanks chack1172!!
That was the solution for me!

Thank you very much!

Greets,
blongso
Pages: 1 2