View Full Version : Self Delete Hack
AlphaWolf
12-14-2004, 10:00 PM
What does this hack?
This Hack give your users the option to delete their own account from the User CP. I know this hack is disputed, but i release for the ones who really want this hack. I hope the hack is save enough. Please report if users abuse this funktion.
Compatibility
-3.0.3
-For 3.0.1 compatibility read the Notes (thx to Odysseus (http://member.php?u=22669))
To do
To change:
PHP Files : 2
Templates : 1
To add:
Templates: 2
Phrases : 10
Queries : 1
History
1.1.1
Bugfix
Translation mistake
1.1.0
Features
Checkbox confirmation
Password confirmation
Email confirmation
Confirmationemail to admin
Bugfix
Graphical glitches
1.0.0
Features
Usercp integration
Use phrases
Clean deletion through existing admin_function
Notes
Please excuse my bad english. I did the translation of the hack by myself and its bad. Report language mistakes. Don't forget to press the install button.
For 3.0.1 compatibility do this:
You have to add this line:
require_once('./includes/adminfunctions.php');
before the line in the hack code (~1564) that calls this function.
This makes sure that the adminfunctions.php file, in which the delete_user() function is located, will be included.
The hack will then work with vB 3.0.1, too.
pjdaley
12-15-2004, 07:44 PM
if a user erases himself lets say, 6 months after his stay on the forum, does all his posts and threads dissappear also?
Bryan Ex
12-15-2004, 07:48 PM
Thank you AlphaWolf !!! I've been wanting this hack since RC4. I will install tonight.
jluerken
12-15-2004, 08:04 PM
Thank you AlphaWolf !!! I've been wanting this hack since RC4. I will install tonight.
There should be an option that an admin must approve the deletion. Then its safe I think.
Another option would be that the user gets a warning pm that his account will be deleted within 48 hours. This would also prevent people from deleting other users accounts when they get their logindata.
AlphaWolf
12-15-2004, 08:39 PM
if a user erases himself lets say, 6 months after his stay on the forum, does all his posts and threads dissappear also?
nope. The posts stay until you delete them.
There should be an option that an admin must approve the deletion. Then its safe I think.
Another option would be that the user gets a warning pm that his account will be deleted within 48 hours. This would also prevent people from deleting other users accounts when they get their logindata.
Not easy for me. I have no experience in creating ACP options. Maybe in a further release.
KTBleeding
12-15-2004, 11:16 PM
nope. The posts stay until you delete them.What username does it appear under? Their deleted one?
What username does it appear under? Their deleted one?
Unregistered?
AlphaWolf
12-16-2004, 03:11 AM
Unregistered?
Right. They get the title from the Unregistered usergroup.
Bryan Ex
12-16-2004, 11:18 AM
Okay AlphaWolf... a couple of notes on this;
Most importantly I get the following error when trying to delete a user...
Fatal error: Call to undefined function: delete_user() in /var/www/hosts/adultshowoffs.com/forum/profile.php on line 1564
-> In my files line 1564 is - delete_user($bbuserinfo['userid']);
Second, it will be very confusing for most members to enter their confirmation code because if they leave the delete membership screen to go get it a new confirmation code is issued each time they return. If they are using web based email they must do so in a new window and most will not figure that out and keep getting the "bad code" message each time they try. One option would be to include a link within the actual email that they just need to click on and that contains the variables needed to complete the function or to have the confirmation code remembered somehow so that when they return to the delete screen the same code can be used for a set period of time... 48 hours perhaps?
One minor issue... because you have done this in two languages a small note in the install file about changing the email subject line would also be helpful for others when they install this.
I have this installed now but have hidden the link until I can get it working correctly. This is on VB 3.01 with many many other hacks installed so it my be specific to my use.
AlphaWolf
12-16-2004, 11:39 AM
Fatal error: Call to undefined function: delete_user() in /var/www/hosts/adultshowoffs.com/forum/profile.php on line 1564
-> In my files line 1564 is - delete_user($bbuserinfo['userid']);
Are you sure you do that in ./profile.php:
Search:
require_once('./includes/functions_register.php');
Add below:
require_once('./includes/adminfunctions.php');
Maybe in 3.0.1 the function has annother name.
One option would be to include a link within the actual email that they just need to click on and that contains the variables needed to complete the function
This is possible. Maybe next release.
One minor issue... because you have done this in two languages a small note in the install file about changing the email subject line would also be helpful for others when they install this.
I forgot to translate them. Translated!
Bryan Ex
12-16-2004, 12:17 PM
Are you sure you do that in ./profile.php:
Yes, I double checked that is was there and correct and also checked the adminfunctions.php. I guess I'll have to wait and see if anyone else has the same issue to determine if it's specific to my board. If I can get past this error somehow I can just add some text to the deletion screen telling users to use a new window to access their email if needed.
require_once('./includes/functions_misc.php');
require_once('./includes/functions_register.php');
require_once('./includes/adminfunctions.php');
if (
AlphaWolf
12-16-2004, 12:27 PM
Did you find the funktion in your adminfunctions.php?:
function delete_user
Bryan Ex
12-16-2004, 12:31 PM
Ah-ha... a slightly different version in my file;
function delete_user($userid = 0)
AlphaWolf
12-16-2004, 12:34 PM
I have the same, but i post this, because i didn't know if you have the same function. I don't know why it doesn't work with you Board.
Bryan Ex
12-16-2004, 01:04 PM
I appreciate your time AlphaWolf. I'll just wait until someone else installs to find out if the problem is just for me.
T3MEDIA
12-17-2004, 11:54 PM
There should be an option that an admin must approve the deletion. Then its safe I think.
Another option would be that the user gets a warning pm that his account will be deleted within 48 hours. This would also prevent people from deleting other users accounts when they get their logindata.
lord....
T3MEDIA
12-17-2004, 11:57 PM
Please a clear answer.
Does this hack erase any attachemnts and PM left by the user?
Please and thank you.
AlphaWolf
12-18-2004, 05:17 AM
Attachments will not be erased because they belong to the posts. PM's will be deleted.
mcyates
12-18-2004, 02:55 PM
I have done everything and my pages are blank when i click on delete account in the usercp. The templates are installed properly. I just don't see what the problem is!!
AlphaWolf
12-18-2004, 08:18 PM
Do you uploaded the php Files corectly? I have installed the Hack with a clear 3.0.3 vB today. It defenatly work.
mcyates
12-18-2004, 08:21 PM
Do you uploaded the php Files corectly? I have installed the Hack with a clear 3.0.3 vB today. It defenatly work.
yes i followed it to a "T" and then re-checked everything. I dunno, it may conflict with other hacks on my forum
T3MEDIA
12-18-2004, 11:10 PM
The hack has a loop that doesnt make sense. why send a code to the users email to have them paste it in the site to terminate. lol. edit your email is in the same area as delete account.
Any user can put in a new email send it out and close the account the same way.
besides that. its what I was looking for before I got scammed.
T3MEDIA
12-18-2004, 11:11 PM
Attachments will not be erased because they belong to the posts. PM's will be deleted.
thank you for your answer. so how would the attachements be delted? a con job or something? I have a hack that puts attachments in pm's so go figure why im worried.
AlphaWolf
12-19-2004, 09:46 AM
The Hack deletes no posts so it doesn't delete the attachments. But the Pm's will be deleted. Cause of your Hack the attachments will be without a PM. I think one of the vBulletin crons will delete them. I can't give support for annother Hack.
Holidazed
12-24-2004, 07:06 PM
Okay AlphaWolf... a couple of notes on this;
Most importantly I get the following error when trying to delete a user...
Fatal error: Call to undefined function: delete_user() in /var/www/hosts/adultshowoffs.com/forum/profile.php on line 1564
-> In my files line 1564 is - delete_user($bbuserinfo['userid']);
I am having the EXACT same problem in my v3.01. What is the solution?
AlphaWolf
12-24-2004, 07:28 PM
Sorry I have no 3.0.1 Version to Test:ermm: I'll write in the Hack posting that it is incompatible to 3.0.1. Sorry i can't fix that bug without a 3.0.1 Version to test.
ArAb4NoKiA
12-25-2004, 01:50 AM
Thanx
Odysseus
01-10-2005, 12:39 PM
I am having the EXACT same problem in my v3.01. What is the solution?
I also had this problem with 3.0.1 and was able to fix it.
You have to add this line:
require_once('./includes/adminfunctions.php');
before the line in the hack code (~1564) that calls this function.
This makes sure that the adminfunctions.php file, in which the delete_user() function is located, will be included.
The hack will then work with vB 3.0.1, too.
MAybe you can update this info, AlphaWolf.
AlphaWolf
01-10-2005, 12:54 PM
Thx I have updatet my Post!
T3MEDIA
02-25-2005, 03:17 AM
thank you for your answer. so how would the attachements be delted? a con job or something? I have a hack that puts attachments in pm's so go figure why im worried.
anyone has a idea that would check if a user deletes himself to also delete any pictures they may have in photopost???
Could someone be so kind to make this hack suitable with the new 3.5 version ?
Would be really appreciated..
AlphaWolf
10-14-2005, 05:10 PM
I do not have the new 3.5 Version:disappointed:
Maybe someone other is able to port it to the new version. Here is the permission for everyone. Just gimme credit :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.