[ABD] Unsubcribe User (User can delete his account in UCP)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [BETA] Unsubcribe User (User can delete his account in UCP)

Post by lugsciath »

Code: Select all

Class 'arcade_admin'
seams to be a error from arcade Mod, check your installation ;)

btw:

Is there any possibility for a new release with "soft deleting" the useraccount e.g. set to inaktive or similiar? I saw that function in smf boards - if possible, it should be in phpbb3 , too ;)

regards

Uwe
herbert00
Registered User
Posts: 4
Joined: Sun Jul 19, 2009 8:12 pm

Re: [BETA] Unsubcribe User (User can delete his account in UCP)

Post by herbert00 »

I installed the mod, but where can the user find the "delete" button?
thanks
Herb
mykee
Registered User
Posts: 271
Joined: Thu Jun 07, 2007 9:46 pm

Re: [BETA] Unsubcribe User (User can delete his account in UCP)

Post by mykee »

Under UCP, if you follow instructions...
beedy
Registered User
Posts: 11
Joined: Fri Jul 31, 2009 10:35 pm
Location: Berlin / Germany

Re: [BETA] Unsubcribe User (User can delete his account in UCP)

Post by beedy »

lugsciath wrote:

Code: Select all

Class 'arcade_admin'
seams to be a error from arcade Mod, check your installation ;)
This isn't an error of the installation, I have this error too... :cry:

When you delete an user over ACP, this error message don't appear. Only when the user tries to delete himself, this error comes up.

Greetz

beedy
Philippe B
Registered User
Posts: 5
Joined: Mon May 14, 2007 4:16 pm

Re: [BETA] Unsubcribe User (User can delete his account in UCP)

Post by Philippe B »

It is the same for me, I can't see where user can delete account.
where exactly ?
Does it still work with phpbb 3.06 ?

mykee wrote:Under UCP, if you follow instructions...
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [BETA] Unsubcribe User (User can delete his account in UCP)

Post by lugsciath »

Please add a possibility for backup /restoring the useraccount - sometimes some users failed don´t reading hints and push the buttons very quickly ...
roller24
Registered User
Posts: 97
Joined: Mon Jul 29, 2002 7:26 am

Re: [BETA] Unsubcribe User (User can delete his account in UCP)

Post by roller24 »

Philippe B wrote:It is the same for me, I can't see where user can delete account.
where exactly ?
Does it still work with phpbb 3.06 ?
The first error of not being able to find the delete feature is a 3.06 issue.
The install fails to add a row to the modules table in the database.
I added it by hand through phpmyadmin.
it looks like this
(284, 1, 1, 'unsubcribe', 'ucp', 0, 351, 352, 'UCP_UNSUBCRIBE_USER', '', '');

be careful as the developer has spelled unsubscribe as unsubcribe without the S

emmea90 wrote:I get this error:

Fatal error: Class 'arcade_admin' not found in /membri/emmea/phpbb/includes/functions_user.php on line 326
the problem here is with the Arcade Module code within the delete user function in the /includes/function_user.php file
Goto line 326 of that file and comment out the area pertaining to the Arcade Mod.
the effect will be that a users scores will remain in the arcade area, no big deal on my end.
I'm not savvy enough to tell you the proper fix for that, but it will make that error go away. ;)
roller24
Registered User
Posts: 97
Joined: Mon Jul 29, 2002 7:26 am

Re: [BETA] Unsubcribe User (User can delete his account in UCP)

Post by roller24 »

roller24 wrote: (284, 1, 1, 'unsubcribe', 'ucp', 0, 351, 352, 'UCP_UNSUBCRIBE_USER', '', '');

be careful as the developer has spelled unsubscribe as unsubcribe without the S
THE NUMBERS IN THIS EXAMPLE ARE UNIQUE FOR MY DATABASE.
If you enter the row by hand, check the table to insure no duplicate entries exist
An SQL insert command would be best.
User avatar
Mrraider
Registered User
Posts: 100
Joined: Thu Apr 02, 2009 7:54 pm

Re: [BETA] Unsubcribe User (User can delete his account in U

Post by Mrraider »

Works great... but if i want to remove this mod how do i do that?
User avatar
Mrraider
Registered User
Posts: 100
Joined: Thu Apr 02, 2009 7:54 pm

Re: [BETA] Unsubcribe User (User can delete his account in U

Post by Mrraider »

Mrraider wrote:Works great... but if i want to remove this mod how do i do that?
Please anyone....
User avatar
Mrraider
Registered User
Posts: 100
Joined: Thu Apr 02, 2009 7:54 pm

Re: [BETA] Unsubcribe User (User can delete his account in U

Post by Mrraider »

please??
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [BETA] Unsubcribe User (User can delete his account in U

Post by lugsciath »

Hi,

simply edit the same files you change before (or restore it, if they didnt change between install and deinstalling this mod) and change the added files, if any. If someone delete his account, so this would be changed in the database, so you have to restore it or simply accept it... btw. if there any changes on the database, you have to change it to the original scheme.

I think that above is logical by adding any mod - there are mostly no deinstall instructions (you have doing it simply reverse!).

- Remember: Better you didnt use it in Beta/Aphaversions on a live system
- 2nd: Dont forget to make your backupfiles / sql backup - this might be useful in such cases.
User avatar
Jorup16
Registered User
Posts: 427
Joined: Sun Dec 14, 2008 5:13 am
Location: Guatemala
Name: Jorge

Re: [BETA] Unsubcribe User (User can delete his account in U

Post by Jorup16 »

Spansih Translation:

info_ucp_unsubcribe.php

Code: Select all

<?php
/**
*
* posting [Spanish � Sp]
*
* @package language
* @version $Id: unsubcribe.php,v 0.1.2 2008/03/18 18:22:12 tas2580 Exp $
* @copyright (c) SEO phpBB http://www.seo-phpbb.org
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

// Traduccion del MOD por Jorup16 www.FIFA-XGamers.com - www.FIFA-Guate.com 
$lang = array_merge($lang, array(
	'UNSUBCRIBE_USER'		=> 'Borrar Cuenta',
));

?>
permissions_unsubcribe.php

Code: Select all

<?php
/** 
*
*
* @package language
* @version $Id: permissions_unsubcribe.php,v 0.1.2 2008/03/18 18:22:12 tas2580 Exp $
* @copyright (c) SEO phpBB http://www.seo-phpbb.org
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (empty($lang) || !is_array($lang))
{
    $lang = array();
}


// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

// Adding new category
// Traduccion del MOD por Jorup16 www.FIFA-XGamers.com - www.FIFA-Guate.com 
// Adding the permissions
$lang = array_merge($lang, array(
		'acl_u_unsubcribe_del'		=> array('lang' => 'Tus mensajes seran borrados cuando se borre tu cuenta', 'cat' => 'perfil'),
));
?>
unsubcribe.php

Code: Select all

<?php
/**
*
* posting [Spanish � Sp]
*
* @package language
* @version $Id: unsubcribe.php,v 0.1.2 2008/03/18 18:22:12 tas2580 Exp $
* @copyright (c) SEO phpBB http://www.seo-phpbb.org
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
// Traduccion del MOD por Jorup16 www.FIFA-XGamers.com - www.FIFA-Guate.com
$lang = array_merge($lang, array(
	'USER_DELETED'			=> 'La cuenta del usuario ha sido borrada satisfactoriamente!',
	'UNSUBCRIBE_USER_TXT'	=> 'Aqui puedes borrar la cuenta de tu usuario. Nota que no podras recuperar tu cuenta.',
	'DEL_POSTINGS'			=> 'Conservar mensajes',
	'DEL_POSTINGS_DESC'		=> 'Decide que pasara con tus mensajes.',
	'DEL_POST'				=> 'Borrar mis mensajes',
	'KEEP_POST'				=> 'Conservar mis mensajes como mensajes escritos por usuario invitado',
	'CURRENT_PASSWORD_DESC'	=> 'Escribe tu clave para confirmar, para asi poder borrar tu cuenta',
	'LOG_USER_DELETED'		=> 'El usuario ha borrado su cuenta',
	'USER_REALY_DEL'		=> 'Confirmar eliminacion',
	'UNSUBCRIBE_USER'		=> 'Eliminar usuario',
	'UNSUBCRIBE_USER_DESC'	=> 'Confirma que realmente deseas eliminar tu cuenta',
	'USER_NOT_DELETED'		=> '<b> ERROR !!!</ b> La cuenta no ha sido borrada! <br /> Ingresaste la clave correcta para confirmar el borrado?',
));

?>
Spanish Translations for Ext phpBB :D - Traducciones al español para Ext phpBB :)
>>>>> https://github.com/Jorup16 <<<<<
sleevedbiker
Registered User
Posts: 789
Joined: Mon Oct 12, 2009 4:33 pm

Re: [BETA] Unsubcribe User (User can delete his account in U

Post by sleevedbiker »

a great addition to this would be a form on the delete account page for the user to give us feedback as to why they are deleting their account.
You ride with an outlaw, You die with an outlaw
Garfield312
Registered User
Posts: 20
Joined: Mon Oct 31, 2005 1:13 pm

Re: [BETA] Unsubcribe User (User can delete his account in U

Post by Garfield312 »

sleevedbiker wrote:a great addition to this would be a form on the delete account page for the user to give us feedback as to why they are deleting their account.
Even if this is a quite old topic, I also think, that's a good feature.

So I did a quick and dirty solution for me (using subsilver2-based template).

There will be a new textarea for entering a reason. An email will be sent to the administrator with information about, which user deleted himself and the reason, if entered by user.

To get this, do the following steps after installing the Mod:

Open language/en/mods/unsubcribe.php

Find:

Code: Select all

	'USER_NOT_DELETED'		=> '<b> ERROR !!!</ b> The account could not be deleted! <br /> Do you have the correct password to confirm?',
After, add:

Code: Select all

	'UNSUBCRIBE_REASON'		=> 'Why do you unsubscribe?',
	'UNSUBCRIBE_REASON_DSC'	=> 'Please tell us the reason...',
Now, insert text as you want to in description (my English is quite bad).

Open includes/ucp/ucp_unsubcribe.php

Find:

Code: Select all

		$delete_type	= request_var('delete_type', '');
		$delete			= request_var('delete', '');
		$cur_password	= request_var('cur_password', '');
After, add:

Code: Select all

		$unsubscribe_reason	= request_var('unsubscribe_reason', '');
Find:

Code: Select all

		if ($delete && phpbb_check_hash($cur_password, $user->data['user_password']))
		{
			user_delete($delete_type, $user->data['user_id'], $user->data['username']);
			add_log('user', 'LOG_USER_DELETED', $user->data['username']);
After, add:

Code: Select all

			$delsender = "Name of your forum";
            $delsendermail = "[email protected]";
            $delempfaenger = "[email protected]";
            $delbetreff = "Member deleted himself!";
            $deltext = "Info to the admin: Your board member " . $user->data['username'] . " just deleted himself.\n\nReason (if entered):\n " . $unsubscribe_reason . "\n\nEnd of message.";
            mail($delempfaenger, $delbetreff, $deltext,
                 "From: $delsender <$delsendermail>");
Open styles/subsilver2/template/ucp_unsubcribe.html

Find (subsilver2):

Code: Select all

<!-- IF S_CAN_DELPOSTS -->
<tr> 
	<td class="row1" width="35%"><b class="genmed">{L_DEL_POSTINGS}: </b><br /><span class="gensmall">{L_DEL_POSTINGS_DESC}</span></td>
	<td class="row2"><input type="radio" value="retain" checked name="delete_type" /> {L_KEEP_POST}<br><input type="radio" name="delete_type" value="remove" /> {L_DEL_POST}</td>
</tr>
<!-- ENDIF -->
After, add:

Code: Select all

<tr> 
	<td class="row1" width="35%" valign="top"><b class="genmed">{L_UNSUBCRIBE_REASON}: </b><br /><span class="gensmall">{L_UNSUBCRIBE_REASON_DSC}</span></td>
	<td class="row2">
	<textarea name="unsubscribe_reason" id="unsubscribe_reason" rows="10" cols="76" class="inputbox">{UNSUBSCRIBE_REASON}</textarea>
	</td>
</tr>
That's all, works fine for me - use at your own risk.

Return to “[3.0.x] Abandoned MODs”