vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Allow users to delete themselves (https://vborg.vbsupport.ru/showthread.php?t=37072)

Admin 04-05-2002 10:00 PM

Allow users to delete themselves
 
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:
Code:

  eval("dooutput(\"".gettemplate("subscribe")."\");");
}

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. ;)

Admin 04-06-2002 01:18 PM

;)

el3m3nt 04-06-2002 01:20 PM

hehe. GJ and nice screenshot, FireFly :).

webhost 04-06-2002 02:40 PM

Thanks Chen He will appreciate it.

Joey

Overgrow 04-06-2002 02:51 PM

Actually that's pretty frickin swift Chen! I get at least 4 or 5 "delete me" messages a week. Thanks man, going to install it now.

I think I may add a mod that either allows them to prune all of their posts at the same time or set the username of those posts to "Unregistered."

Overgrow 04-06-2002 03:09 PM

Sweet, thanks! Will save me some time.. I have it setting all the posts/threads to Unregistered instead of their username since that seems a little more like deletion.

If you have my Karma, add in:

$DB_site->query("DELETE FROM karma WHERE userid=$bbuserinfo[userid] or whoadded=$bbuserinfo[userid]");

Smellycat 04-06-2002 04:24 PM

Quote:

Originally posted by FireFly
[B 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.
[/B]

how would i put a link to that in the control panel?

Smellycat 04-06-2002 04:32 PM

Its ok i went brain dead there for a moment, found the template

Tech_Koss 04-06-2002 05:00 PM

haha....love the picture :)

Xelation 04-06-2002 05:57 PM

kool hack, I will be sure to add this. :)


All times are GMT. The time now is 11:17 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.01071 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)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