Back to Modification Graveyard

Deleting Thread Require Reason (inline Mode + Normal Mode) included
Mod Version: 1.0.0, by Omranic

This thread is in the Modification Graveyard.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 10
Released: 24 Apr 2006 Last Update: Never Downloads: 2
Not Supported Uses Plugins Code Changes  

Hello Every body

in my forums my moderators delete threads without giving a reason so I did this plugin to require deletion reason.

its simple
it takes from me only 2minutes to write it & post the thread, So Installation time may be 60 secs max.

this thread has two parts the first is "Require Deletion Reason" when deleting though inline mode & the second is "Require Deletion Reason" when deleting the thread though the normal mode (from the thread tools itself).

the first is done by the plugin Attached & the second is done by the following Edit for the file "posting.php" coz of there is no hooks can do this.

History:
1.0.0 initial version (24/4/2006)

Installation:
1- import the attached plugin (require deletion reason-en.xml OR require deletion reason-ar.xml) [en => English / ar => Arabic].
2- open the file called posting.php & search in it for the following code (approx. @ line (382-388):
PHP Code:
    $delinfo = array(
        
'userid' => $vbulletin->userinfo['userid'],
        
'username' => $vbulletin->userinfo['username'],
        
'reason' => $vbulletin->GPC['deletereason'],
        
'keepattachments' => $vbulletin->GPC['keepattachments']
    ); 
& post under it the following code:
PHP Code:
if ( empty($vbulletin->GPC['deletereason']) ) {
eval(
standard_error("Please add a deletion reason."));


===> For Arab Users Don't make the Previous edit & do the following only

PHP Code:
if ( empty($vbulletin->GPC['deletereason']) ) {
eval(
standard_error("برجاء كتابة سبب الحذف."));


Thats ALL

Don't Forget to press

Download

This modification cannot be downloaded.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024