vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Self Delete Hack (https://vborg.vbsupport.ru/showthread.php?t=72932)

AlphaWolf 12-14-2004 10:00 PM

Self Delete Hack
 
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)


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:

Quote:

Originally Posted by Odysseus
You have to add this line:

Code:

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

Quote:

Originally Posted by Bryan Ex
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

Quote:

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.

Quote:

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

Quote:

Originally Posted by AlphaWolf
nope. The posts stay until you delete them.

What username does it appear under? Their deleted one?

Moya 12-15-2004 11:37 PM

Quote:

Originally Posted by KTBleeding
What username does it appear under? Their deleted one?


Unregistered?

AlphaWolf 12-16-2004 03:11 AM

Quote:

Originally Posted by stitch
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

Quote:

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:


Code:

Search:
 
 require_once('./includes/functions_register.php');
 
 
 Add below:
 
 require_once('./includes/adminfunctions.php');


Maybe in 3.0.1 the function has annother name.

Quote:

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.

Quote:

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!


All times are GMT. The time now is 08:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01267 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete