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)

webhost 04-07-2002 02:53 PM

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.

Smellycat 04-07-2002 02:55 PM

See what you started now Chen, you cant let them all down can you! ;)

Admin 04-07-2002 03:22 PM

Quote:

Originally posted by Smellycat
See what you started now Chen, you cant let them all down can you! ;)
Watch me. ;)

Velocd 04-07-2002 11:07 PM

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

If you don't want to do it for us, do it for Germany! ;)

Admin 04-08-2002 12:50 PM

Heh, sorry but no. If people want feel free to take this hack and add stuff to it, I really don't mind.

Matt 04-08-2002 04:13 PM

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?

Velocd 04-08-2002 07:44 PM

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

Somebody please? :p

Floris 04-10-2002 05:22 AM

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.

Floris 04-10-2002 06:21 AM

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>

Admin 04-10-2002 10:11 AM

I believe you need to unhtmlspecialchars() the username before sending it.


All times are GMT. The time now is 07:03 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.01118 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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