This product makes it possible for users to remove their accounts themselves.
It works in following way:
kill.php - the script that will be used with the account removal
killaccount_swedish.xml - Swedish translation
product-user_unregister.xml - The product
template-kill_account.txt - The template that works with the product
template-navbar.txt - Code for navbar, if you want to include "remove me" there
No modifications on any other templates is needed.
7 phrases added, and swedish is included.
SQL
user_deleted will be created at installation, to keep track of ips and account deletions.
Settings
In the plugin "Registration/Block deleted users", look for this string:
$regdelay = 7200;
Change this value (in seconds) to change the delay of how long time after an unregister-request a user have to wait before new registrations are allowed again. This function is IP-based.
Instructions
1. Copy kill.php to your forumroot
2. Add a new template, named kill_account and paste the code from template-kill_account.txt
3. Install product-code product-user_unregister.xml
For swedish language, import killaccount_swedish.xml
***[ NAVBAR ] **********
If you want to offer the function from your navbar, edit the template 'navbar'. Look for:
<if condition="$show['member']">
Add after that code:
<!-- Removing account, visible if logged in only (start) -->
<td class="vbmenu_control"><a href="kill.php">$vbphrase[kill_unregister]</a></td>
<!-- Removing account, visible if logged in only (stop) -->
************************
It works in following way:
- The user choose to remove his/hers account
- As the account is deleted, the mailaddress used at registration will be blocked until someone resets the account
- As the account is deleted, the ip that was used at the removal will be blocked for XX hours ($regdelay has a default of 2 hours or 7200 seconds)
- No posts or threads will be erased with the removal
- Spoofing of kill.php is not possible - a hashcode prevents bad clicks
kill.php - the script that will be used with the account removal
killaccount_swedish.xml - Swedish translation
product-user_unregister.xml - The product
template-kill_account.txt - The template that works with the product
template-navbar.txt - Code for navbar, if you want to include "remove me" there
No modifications on any other templates is needed.
7 phrases added, and swedish is included.
SQL
user_deleted will be created at installation, to keep track of ips and account deletions.
Settings
In the plugin "Registration/Block deleted users", look for this string:
$regdelay = 7200;
Change this value (in seconds) to change the delay of how long time after an unregister-request a user have to wait before new registrations are allowed again. This function is IP-based.
Instructions
1. Copy kill.php to your forumroot
2. Add a new template, named kill_account and paste the code from template-kill_account.txt
3. Install product-code product-user_unregister.xml
For swedish language, import killaccount_swedish.xml
***[ NAVBAR ] **********
If you want to offer the function from your navbar, edit the template 'navbar'. Look for:
<if condition="$show['member']">
Add after that code:
<!-- Removing account, visible if logged in only (start) -->
<td class="vbmenu_control"><a href="kill.php">$vbphrase[kill_unregister]</a></td>
<!-- Removing account, visible if logged in only (stop) -->
************************
