Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Allow users to delete themselves Details »»
Allow users to delete themselves
Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

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:
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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 04-10-2002, 04:08 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhm .. I tried a few things, but only ended up with errors. grr.. I wish I knew more about PHP
Reply With Quote
  #33  
Old 04-10-2002, 05:51 PM
Smellycat's Avatar
Smellycat Smellycat is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by xiphoid
Uhm .. I tried a few things, but only ended up with errors. grr.. I wish I knew more about PHP
maybe if you offer Firefly, a free holiday he might come and teach you some more of his leet php skills?

*Grin*
Reply With Quote
  #34  
Old 05-05-2002, 04:42 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you don't hear from FireFly for a while .. :P
Code:
	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.
Reply With Quote
  #35  
Old 08-07-2002, 09:35 AM
Derek Derek is offline
 
Join Date: Mar 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm hoping this "bump" will be able to give someone the opprotunity to add the "email confirmation to user" feature.
Reply With Quote
  #36  
Old 09-11-2002, 04:18 PM
wolfman wolfman is offline
 
Join Date: Aug 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I have it installed I just have no idea where to find this new option at nor do I know how to add it in someplace so the user can find it.

Thanks in advance.
Reply With Quote
  #37  
Old 09-11-2002, 04:49 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Time to re-read the thread is all I can advice.
Reply With Quote
  #38  
Old 09-12-2002, 01:40 AM
wolfman wolfman is offline
 
Join Date: Aug 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uh thanks, I think.

I have read and re-read this thread I am seeing bits and pieces of it but how to put these pieces together is just not falling together in my head.
Reply With Quote
  #39  
Old 09-12-2002, 02:10 AM
wolfman wolfman is offline
 
Join Date: Aug 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Code:
	<td bgcolor="$cpnav[7]"><smallfont><b><a href="member2.php?s=&action=deleteme">Delete me</a></b></smallfont></td>

Edited the code in here as I posted the wrong one in there this can be pasted in the usercpnav after the last line like this one.
Reply With Quote
  #40  
Old 09-12-2002, 09:31 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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 >
Reply With Quote
  #41  
Old 09-13-2002, 02:15 AM
wolfman wolfman is offline
 
Join Date: Aug 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much I do appreciate the help
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05401 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete