Version: 1.00, by Admin (Coder)
Developer Last Online: Nov 2024
Version: 2.2.x
Rating:
Released: 04-05-2002
Last Update: Never
Installs: 39
No support by the author.
This one was requested by Webhost. Personally I can't see the use for this, but a hacker's gotta do what a hacker's gotta do.
Anyway, this one is really simple.
First, create a new template named "deleteself" with this:
Code:
<center>Are you sure you want to delete your user account from this message board?<br>
All of your current posts will be set to "Guest".
<b>This is not revertible!</b>
<form action="member2.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="killme">
<input type="submit" value=" Yes " class="bginput">
</form></center>
Now open the attached text file, and add the code from it to member2.php right after this code:
That's it. Now people can go to member2.php?s=&action=deleteme, and if they click Yes there their profile (and the rest of the data associated with that user) will be deleted.
I put in a nice 'done' message, I'll post a screen shot in a minute.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
mail("$webmasteremail", "User $bbuserinfo[username] Unregistered", "Username ".unhtmlspecialchars($bbuserinfo['username'])." \n UserID $bbuserinfo[userid] \n Unregistered", "From: $webmasteremail\r\n");
eval("standarderror(\"<br><br>You've just been erased from our database, you are now browsing the forum as Guest.<br><br>\");");
should do the trick. I tried with username ^test*^'\er and that worked just fine.
Now.. all I need is an input field where users can give a quick reason why they no longer wish to be a registered member.
For anyone that cares I added this to the usercpnav template under User Control Panel Templates this gives the users a button within the user cp. I am sure someone will do it on accident as many do not seem to read anything, but hey they will learn when they make this big of a mistake. I have this installed in vbb 2.2.7 and I have tested it and it does work.
Originally posted by wolfman Ok I have it installed I just have no idea where to find this new option
.. from the first post in this thread:
Quote:
That's it. Now people can go to member2.php?s=&action=deleteme, and if they click Yes there their profile (and the rest of the data associated with that user) will be deleted.
You can put it anywhere you want.
You can make a link in any template like
<a href="member2.php?s=&action=deleteme">Delete me</a>
As suggested above, you can do this in the usercp, where someone might suspect it. I made a unregister.mysite.com link, so when they go there, they can unregister. You could add it in your footer < contact us - register - unregister - yoursite.com >