Omranic
04-23-2006, 10:00 PM
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):
$delinfo = array(
'userid' => $vbulletin->userinfo['userid'],
'username' => $vbulletin->userinfo['username'],
'reason' => $vbulletin->GPC['deletereason'],
'keepattachments' => $vbulletin->GPC['keepattachments']
);
& post under it the following 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
if ( empty($vbulletin->GPC['deletereason']) ) {
eval(standard_error("برجاء كتابة سبب الحذف."));
}
Thats ALL
Don't Forget to press https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=113896)
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):
$delinfo = array(
'userid' => $vbulletin->userinfo['userid'],
'username' => $vbulletin->userinfo['username'],
'reason' => $vbulletin->GPC['deletereason'],
'keepattachments' => $vbulletin->GPC['keepattachments']
);
& post under it the following 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
if ( empty($vbulletin->GPC['deletereason']) ) {
eval(standard_error("برجاء كتابة سبب الحذف."));
}
Thats ALL
Don't Forget to press https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=113896)