wersja skryptu MyBB: 1.8.4
adres forum: http://pistolecik.pl/showthread.php?tid=32
na czym polega problem (screen, opis, komunikaty, nazwa i wersja wtyczki):

Z góry zaznaczę, że mój problem jest bardziej ambitny niż zmienienie "compatibility" w pluginie czy wyłączenie czegoś w ACP.

Jak widzicie(bądź nie) w postach widnieje przycisk "Usuń". Usuwa/ukrywa on posty. Chciałbym by usuwał on je trwale z bazy danych.

Tak... Wyłączyłem nietrwałe usuwanie postów. Nawet sprawdzałem na włączonym(przyjąłem błąd w tłumaczeniu). Jego trzeba przerobić. Tylko, że trwałe usuwanie posta jest zrobione na select-option z value="deletethread"

Przycisk jest pomieszany z JS.

Teraz podejrzewam zmiany w skrypcie/php

POSTBIT_QUICKDELETE
<span class="ima_p_button"><a href="editpost.php?pid={$post['pid']}" onclick="Thread.deletePost({$post['pid']}); return false;" style="display: none;" id="quick_delete_{$post['pid']}" title="{$postbit_qdelete}"><i style="font-size: 14px;" class="fa fa-trash fa-fw"></i> {$lang->postbit_button_qdelete}</a></span>
<script type="text/javascript">
// <!--
    $('#quick_delete_{$post['pid']}').css('display', '{$display}');
// -->
</script>



SHOWTHREAD_MODERATIONOPTIONS_DELETE
<option value="deletethread">{$lang->delete_thread}</option>


Ja biorę się za trzepanie kodów. Jeśli ktoś ambitny miał by jakiś pomysł, nie pogardzę ;)






@ADD

Znalazłem taki kodzik w php
        // Quick Delete button
        $can_delete_thread = $can_delete_post = 0;
        if($mybb->user['uid'] == $post['uid'] && $thread['closed'] == 0)
        {
            if($forumpermissions['candeletethreads'] == 1 && $postcounter == 1)
            {
                $can_delete_thread = 1;
            }
            else if($forumpermissions['candeleteposts'] == 1 && $postcounter != 1)
            {
                $can_delete_post = 1;
            }
        }

        $postbit_qdelete = $postbit_qrestore = '';
        if($mybb->user['uid'] != 0)
        {
            if((is_moderator($fid, "candeleteposts") || is_moderator($fid, "cansoftdeleteposts") || $can_delete_post == 1) && $postcounter != 1)
            {
                $postbit_qdelete = $lang->postbit_qdelete_post;
                $display = '';
                if($post['visible'] == -1)
                {
                    $display = "none";
                }
                eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";");
            }
            else if((is_moderator($fid, "candeletethreads") || is_moderator($fid, "cansoftdeletethreads") || $can_delete_thread == 1) && $postcounter == 1)
            {
                $postbit_qdelete = $lang->postbit_qdelete_thread;
                $display = '';
                if($post['visible'] == -1)
                {
                    $display = "none";
                }
                eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";");
            }

            // Restore Post
            if(is_moderator($fid, "canrestoreposts") && $postcounter != 1)
            {
                $display = "none";
                if($post['visible'] == -1)
                {
                    $display = '';
                }
                $postbit_qrestore = $lang->postbit_qrestore_post;
                eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";");
            }

            // Restore Thread
            else if(is_moderator($fid, "canrestorethreads") && $postcounter == 1)
            {
                $display = "none";
                if($post['visible'] == -1)
                {
                    $display = "";
                }
                $postbit_qrestore = $lang->postbit_qrestore_thread;
                eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";");
            }
        }

teraz muszę wyszukać kod odpowiadający za usuwanie z bazy danych i podmienić $display = "none" na zapytanie SQL