Force Reason for Deletion

Started by Jalkson, February 11, 2008, 04:30:42 PM

Previous topic - Next topic

Jalkson




Requires members to give a reason when deleting their forum account.

If 'Require admin approval when member deletes account' is checked, admins will receive a PM from the member with the reason they gave.

If 'Require admin approval when member deletes account' is not checked, it will show the member as being a 'Guest', but will still have the username.

Manual installations may need to be done for various reasons ( custom theme, other mods installed, etc ), if that's the case for you please use this:

As of now the mod is set so that the 'Reason' field needs a minimum of 10 characters to be accepted.  If you'd like that changed follow this:

In your /Sources/Profile.php

FIND

if(strlen(trim($_POST['delreason'])) < 10)


And replace the 10 with whatever you'd like.


I would like to thank Kays for his help in making this mod as well.


ne.miguelito


ne.miguelito

Fatal error: Cannot redeclare preparsecode() (previously declared in /home/nemigue/public_html/Sources/Subs-Post.php:158) in /home/nemigue/public_html/Sources/Subs-Post.php on line 286

Jalkson

#4
Seems to me you may have another mod affecting the file, or you've installed it twice. 

Could you post the Subs-Post.php file here?


For IE, I actually forgot to remove some code that I had left in there previously.

You can edit it manually, or if you'd like wait for the next release.  I should be releasing an update in the next couple of days, with an option in the admin panel.

For a manual edit do the following.

/Themes/default/Profile.template.php

FIND
Code (Find) Select

<td class="windowbg2" align="', !$context['right_to_left'] ? 'left' : 'right', '">
                                                                       <form>
<input type="text" name="delreason" size="20" />&nbsp;&nbsp;&nbsp;&nbsp;
                                                                        </form>
<br />
</td>


REPLACE WITH

Code (Replace) Select

<td class="windowbg2" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<input type="text" name="delreason" size="20" />&nbsp;&nbsp;&nbsp;&nbsp;
<br />
</td>


Basically you're just removing the form tags.

eslao

Türkçesi

Themes/default/languages/modifications.turkish.php
de bul

?>

hemen üzerine ekle

$txt['del_reason'] = 'Ayrilma Nedeni:';
$txt['send_pm_error'] = 'Lütfen forumdan ayrilma nedeninizi belirtiniz.Minimum 10 karakter.';
$txt['del_rea_subj'] = 'Hesabimin silinmesini istememin sebebi.';


Jalkson


ne.miguelito

Maybe, can you please check the file, and fix...

thank you...

Jalkson

I'm not receiving any errors while using that file. 

Was my mod the only one you installed?  My mod doesn't affect the Subs-Post.php file, so I'm unsure what's wrong.


ne.miguelito

No, I have these:


1.    YouTube BBCode      1.5 
2.    SSI Member Color Link    1.0.1    
3.    Country Flags    1.0.1    
4.    hidden for guests    1.0.3    
5.    Topic Ratings    1.03    
6.    Admin member list registration date    1.0    
7.    Page View Counter    1.0    
8.    Save PM as HTML    1.0.6    
9.    VisualWarning    1.41    
10.    Global Announcements    1.0    
11.    AvatarSelect    1.1.2    
12.    SMF 1.1.4 Search "brd" Bug Fix (1.0.1)    1.0.1    
13.    Topics Filter    2.0    
14.    ed2k links support    2.6    
15.    sapovideo_bbc_xhtml_1.0    1.0    
16.    Global Headers Footers    1.3    
17.    Downloads System    1.0.3    
18.    SMF Shoutbox    1.16b    
19.    SMF Arcade    2.0.11    
20.    Related Topics    1.2.0    
21.    View Single PM    1.3    
22.    Contact Page    1.1    
23.    View Only Boards    1.1    
24.    Auto Email Inactive Ordinary Users    1.2    
25.    Registration - Show Language mod    1.0.0    
26.    Moderator Color    1.0    
27.    Reg Bar    1.0.1    
28.    Are You Human? Anti-Bot Registration Check    1.0    
29.    PM On Registration    1.0.2    
30.    Member Color Link    2.0.5    
31.    SMF Modarator Fix    1.0.0    
32.    Multilingual Agreements    1.0.0    
33.    Reason For Editing Mod    1.14    
34.    Registration - Show Gender mod    1.0.0    
35.    TopicCountOnDispla    1.1.4    
36.    Report Icon Mod    1.0    
37.    RemovePM    1.1.4    
38.    Signature Area BBCode Buttons    1.5    
39.    Post Prefix    1.1    
40.    Invite    1.14    
41.    Popup PM Message - Uses The Same Window

Jalkson

What's the last mod you installed before receiving this error? 

Irockman1

This mod is good.

It helped a good friend of mine find something he'd been missing for a while.

Thank you.

Kays

Quote from: Jalkson on February 12, 2008, 06:53:21 PM
I'm not receiving any errors while using that file. 

Was my mod the only one you installed?  My mod doesn't affect the Subs-Post.php file, so I'm unsure what's wrong.

This mod does include Subs-Post.php and it's possible that an other mod does the same. Change include() to include_once(). That should take care of that problem.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Jalkson

I just released a 1.1 update, it fixes the subs-post ( I believe ), and the positioning in Internet Explorer.

Let me know if you have any more issues. =]

ne.miguelito

#14
thank you, its work fine...

Portuguese translate:

$txt['del_reason'] = 'Razão para Apagar a Conta:';
$txt['send_pm_error'] = 'Por favor escreva a razão para apagar a sua conta. Número mínimo de caracteres obrigatório: 10.';
$txt['del_rea_subj'] = 'Razão pela qual quero que seja apagada a minha conta.';

Jalkson


Chriss Cohn

Its a great mod, no question! Kepp up the good work ;D

Jalkson


The_Guardian

for some reason i cant start a new topic so i am posting here.  i want to get rid of my smf shoutbox but i dont know how can someone please help me.  here is my forum/

www.computerangelz.com/forum/

thank you

MissyNL

Hi there,

I have the Dutch translation for you :D

$txt['del_reason'] = 'Reden voor vertrek:';
$txt['send_pm_error'] = 'Geef a.u.b. een reden waarom je je account wilt verwijderen. Een minimum van 10 tekens zijn verplicht.';
$txt['del_rea_subj'] = 'Reden waarom ik mijn account verwijders wil hebben.';   

Great MOD! Thanks!   
Sorry for my poor English, but i think it's probably better then your Dutch :)

Jalkson

Thank you for the translation. =]

MissyNL

Sorry for my poor English, but i think it's probably better then your Dutch :)

Marcus Forsberg

Swedish translation

$txt['del_reason'] = 'Varf&ouml;r l&auml;mnar du oss?:';
$txt['send_pm_error'] = 'V%auml;nligen ange varf&ouml;r du raderar ditt konto. Minst 10 tecken kr&auml;vs.';
$txt['del_rea_subj'] = 'Anlednigen till att jag ville radera mitt konto.';

Jalkson


sorosh1

Can you make this awesome mod please also able for smf 1.1.5?

Thanks in advance

Robin1989

yeh i would love thisw mod to be possible for 1.1.5

Jalkson

Sorry for the late replies, I've been busy moving and haven't had internet access until today.

I'll get to work on an update for 1.1.5 as well as 2.0 as soon as I get a chance.

Jalkson

Sorry for the extremely long wait.  It's now compatible with 1.1.5, and am currently working on doing the same for 2.0.

digit

Great mod.  I manually install all my mods, and regularly find little errors, and quirks.

This one is peeeeerfect.

Thanks for a great little mod.


Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Jalkson

Thank you.  If anyone is still interested I plan on releasing the 2.0 update after I finish some more testing. =]

Marcus Forsberg

Will this work whit 2.x?

And if not, will it do in the future?

Jalkson

No as of now it does not work with 2.x.  I've been meaning to do an update, just haven't had the time.  It's functioning for 1.4/1.5, however I will hopefully have it working with 2.x sometime in the next few weeks.

chrisb

Installations actions for "Force Reason for Deletion":

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

i am running 1.1.6

Jalkson

Sorry about that, it's now updated and working for SMF 1.1.x.  It should work fine on 1.1.6

Thank you for reminding me about this, now I have a little free time I'll work on a 2.0 upgrade.

The Saviour

QuoteIf 'Require admin approval when member deletes account' is checked, admins will receive a PM from the member with the reason they gave.

Using SMF 1.1.6.  The above does not happen.

I created a Test account on another computer.  I made a test post...then deleted the account.

I logged in as Admin on another computer...no PMs.  I went to my Admin Control Panel and made sure that 'Require admin approval when member deletes account' was checked.

Went back to home and even checked messages...nothing there.

I approved deletion through the Admin Control Panel...and still received no PMs.

I believe there may be an issue with your PM feature...or a conflict with another mod.

I received no errors Applying and Installing your mod.

Any suggestions?

BillyBob31

I am running 1.1.6 and I manually installed everything checked it over 3 times now and I made a test account and went to delete accoutn and delete reason isn't there. what could be the problem?

BillyBob31

Yea I checked everything again all is perfect to what the manual install says and I checked to require admin aproval for deletion and it still its working.

BillyBob31

seems no one knows. Might just have to remove it :(

kizer

This mod works, but how do you disapprove the deletion? There is a URL to remove the account, but no way to disapprove the removal.
Own a Jeep? Links4Jeeps.com

wonky

Too bad that this mod doesn't seem to be supported anymore.

I use 1.1.11 and after installing this mod I get a "database error" message when trying to delete an account. It would have been a great feature.

demlak

anyone tried to port it to 2.x?

KittyGalore

Just had a member wanting their account to be deleted would be nice if this mod would be updated and fixed.
SMF Curve 2.0x

Advertisement: