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 :)

Advertisement: