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
  #22  
Old 04-07-2002, 02:53 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again Chen, what we did was a long time back we installed this hack by Chris https://vborg.vbsupport.ru/showthrea...threadid=18718
Which is for a user to subscribe to a forum in return they receive a email when there is a new thread made. We have a forum where we post all important network and site information that we subscribed everyone to.
We wanted this option where we could add it to the email to give a user not only the option to unsubscribe to the forum but also delete their selve if they so desire. So this works great for that.
Reply With Quote
  #23  
Old 04-07-2002, 02:55 PM
Smellycat's Avatar
Smellycat Smellycat is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See what you started now Chen, you cant let them all down can you!
Reply With Quote
  #24  
Old 04-07-2002, 03:22 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Smellycat
See what you started now Chen, you cant let them all down can you!
Watch me.
Reply With Quote
  #25  
Old 04-07-2002, 11:07 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For somebody like you it would take no time at all to make. I think users should have the option to delete themselves if they no longer want to be registered, but there needs to be extra security to prevent hackers. Please

If you don't want to do it for us, do it for Germany!
Reply With Quote
  #26  
Old 04-08-2002, 12:50 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh, sorry but no. If people want feel free to take this hack and add stuff to it, I really don't mind.
Reply With Quote
  #27  
Old 04-08-2002, 04:13 PM
Matt's Avatar
Matt Matt is offline
 
Join Date: Oct 2001
Location: UK
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should be pretty straight forward in theory, why not just have it so that they are all moved into a "deleted" usergroup which you clear out every so often?
Reply With Quote
  #28  
Old 04-08-2002, 07:44 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The email verification is probably the easiest way of all. I just don't have the time to code it.

Somebody please?
Reply With Quote
  #29  
Old 04-10-2002, 05:22 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
I'm not going to build on this hack, I don't find it very useful and don't think it's worth it (I'm glad Overgrow and Webhost like it tho ).

xiphoid: no this won't be a feature in vB3 (and please stop asking me that question, I'm really not in a position to say that -- simply because I have no idea!).
Thank you for replying, and sorry for asking ( .. if you guys just know how vB3 is eating us up!!! - but sorry, I will)


[update]
I was not able to let a user enter a reason yet, but I was able to code an extra line that will give the webmaster an Email which user with userid unregistered. Making it work with vB now .. and will post soon.
Reply With Quote
  #30  
Old 04-10-2002, 06:21 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will NOT E-mail the user who unregisters, but it will E-mail the webmaster that the user unregistered. And gives the username and userid.

After applying Firefly's hack, open member2.php and search for:

Code:
	$DB_site->query("DELETE FROM session WHERE userid=$bbuserinfo[userid]");

	eval("standarderror(\"<br><br>You've just been erased.<br><br>\");");
And replace that with:

Code:
	$DB_site->query("DELETE FROM session WHERE userid=$bbuserinfo[userid]");
	mail("$webmasteremail", "User $bbuserinfo[username] Unregistered", "Username $bbuserinfo[username] \n UserID $bbuserinfo[userid] \n Unregistered", "From: $webmasteremail\r\n");
	eval("standarderror(\"<br><br>You've just been deleted.<br><br>\");");
You will get an E-mail to/from webmaster email with msg

username: <the user>
userid: <the userid>
unregistered!

I tested it on my board (2.2.5) and it works. But I used username "tester". I am not sure how to handle (and if it is needed) usernames with weird characters. Maybe somebody can test?

And maybe now someone can make addition so user can give up a reason, and the webmaster will also get: reason: <reason>
Reply With Quote
  #31  
Old 04-10-2002, 10:11 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe you need to unhtmlspecialchars() the username before sending it.
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 09:33 AM.


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.08148 seconds
  • Memory Usage 2,311KB
  • 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
  • (2)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
  • (4)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