Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Self Delete: Allow users to self-delete their account Details »»
Self Delete: Allow users to self-delete their account
Version: 1.0.0, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: End-User Options - Version: 3.6.8 Rating:
Released: 10-27-2007 Last Update: Never Installs: 138
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Self Delete: Allow users to self-delete their account

What is it? This modification allows users to self-delete their account if they have permission. This modification is a port to vB 3.6.8 from a port to vB 3.5.3 of AlphaWolf's 'Self Delete' modification for vB 3.0.3.

New Features: This latest port comes with the following new features:
  • Can permit or deny self deletion usage by usergroup
  • Can force cool off time period before deletion occurs
  • Can send confirmation code to user via PM and/or email
  • Can receive reason for deletion via email if provided
  • Can send email to user confirming deletion by usergroup
  • User can stop deletion if user is in cool off time period
Requirements: vB 3.6.6+ as template hooks are used (only tested on vB 3.6.8)

Does it work on vB 3.5 and vB 3.6? See the requirements.

AngelBlue adds an option: If you wish to place members into a special usergroup instead of removing them, see this post.

Port Information: Ported to vB 3.6.8 with permission via AlphaWolf's post:

https://vborg.vbsupport.ru/showpost....9&postcount=32

Quote:
Originally Posted by AlphaWolf
I do not have the new 3.5 Version:disappointed:

Maybe someone other is able to port it to the new version. Here is the permission for everyone. Just gimme credit
/**
* Original Self Delete Hack
* https://vborg.vbsupport.ru/showthread.php?t=72932
* @copyright 2004 by AlphaWolf ( http://www.celebdb.de )
**/

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Insta-Gator

Comments
  #42  
Old 02-29-2008, 01:27 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AngelBlue, you're most of the way to a whole separate mod "Virtual Delete a user". This is an often requested feature. Why don't you take it all the way?
Reply With Quote
  #43  
Old 03-09-2008, 01:41 AM
Soonerdude Soonerdude is offline
 
Join Date: Mar 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AngelBlue, if the virtually deleted member decided to return later, can they just be moved back to their original usergroup and be just like they were before?
Reply With Quote
  #44  
Old 03-09-2008, 11:06 PM
velias's Avatar
velias velias is offline
 
Join Date: Apr 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mike-D View Post
When your Link inside the UserCP isn't showing up, your Template isn't corrected edited. Here's the way...

Template USERCP_SHELL => Search / Insert

Code:
<tr>
  <td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td>
</tr>

<!-- Self Delete Account -->
<tr>
  <td class="$navclass[sd_kill]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=delacc">$vbphrase[sd_delacc]</a></td>
</tr>
<!-- / Self Delete Account -->

In case of using TMS...
HTML Code:
<templateedits> <!-- TMS Replacements --> 	
  <templateedit template="USERCP_SHELL" varname="sd_link_usercp" username="MikeD" version="3.6.8" searchorder="5">
  <title>UserCP Link Einf?gen</title>
  <searchstr><![CDATA[<tr>
  <td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td>
</tr>]]></searchstr>
	
  <replacestr><![CDATA[<tr>
  <td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td>
  </tr>
<!-- Self Delete Account -->
  <tr>
  <td class="$navclass[sd_kill]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=delacc"><Font Color="Red">$vbphrase[sd_delacc]</Font></a></td>
  </tr>
<!-- / Self Delete Account -->]]></replacestr>
  </templateedit>
</templateedits> <!-- / TMS Replacements -->



Code:
YOUR-SITE.com/YOUR-FORUM/profile.php?do=delacc

Don?t work??
Reply With Quote
  #45  
Old 03-10-2008, 02:36 AM
AngelBlue AngelBlue is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Videx View Post
AngelBlue, you're most of the way to a whole separate mod "Virtual Delete a user". This is an often requested feature. Why don't you take it all the way?
Several reasons.
First is that I would like people to test my modified version of this hack before I release it as my own product. After all, testing is good
Second is that I'd prefer, for simplicity, that the two hacks were merged into one. Why have two very similar hacks? Why not just have one hack with the option to toggle between the two modes of behaviour? My version of calorie's mod includes a setting in vB options that toggles between either using my "disable, but don't delete" method, or using calorie's "really remove them from the database" method. Calorie could include my code in this mod, adding another option to the mod with no effort required on his part.

If he decides that he doesn't want to use my code, I will probably release my own version of the virtual self delete hack, with the ability to do both what calorie's mod can do and also support the virtual or "fake" deletion behaviour. If calorie really doesn't want me using his code in my mod, I could probably strip out his code and create an entirely different fake deletion mod, based on the same principles, but without using this code. I really don't want to do this, however, as I would consider it reinventing the wheel, and hence, a waste of effort. I think it would be much better if calorie included my code in his mod, or at least, replied here saying that it would be OK for me to create a development fork of his mod to explore adding to the virtual/fake deletion code... maybe they could be merged later once the fake deletion part of it has been tested for awhile and I've added a few more things that I think would be nice to add.

Quote:
Originally Posted by Soonerdude View Post
AngelBlue, if the virtually deleted member decided to return later, can they just be moved back to their original usergroup and be just like they were before?
Yes, simply changing their usergroup back to any other usergroup will completely reverse the effect of the "deletion". However... I advise against doing this, because if you do, then users will quickly figure out that "deleted" accounts *aren't* really deleted.

In future, I plan to have the option to either phrase this as a "delete" mod (useful if you don't re-activate accounts that users want deleted, but you want to keep them on file anyway)... or a disable mod (useful if you don't want to suggest to your users that their accounts are gone forever, or you aren't able to do so because you sometimes reactivate them).

I'd also like to add a "permit self re-enable" option, which, if enabled, causes the account to be un-deleted when the owner logs in and clicks a link. If disabled, behaviour would be as currently, where once deleted, the account cannot be used and admin intervention is required to re-enable it.

It would probably be possible for me to expand this fake deletion system into a system whereby users could choose, from a set drop-down menu, a list of usergroups to move their account to. Deletion would be one of those options... but there might be other options, too... like newbies having a choice of setting their account to the "Men" or "Women" groups, and getting access accordingly (but, that doesn't necessarily mean that the admin would have to allow movement from the Men group to the Women group, or vice versa!).

In effect this system could be expanded to a usergroup movement flowchart, where admins define which usergroups allow their members to move to which other usergroups. Allowing all accounts to set themselves "deleted" (fake deleted, I mean) might be one option there.
Reply With Quote
  #46  
Old 03-10-2008, 12:34 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

3.7 beta (i think here) all works, anyone know about the blank email sent to webmaster account after the 'whatever marked for deletion' email? usually after the cool off period the webmaster then gets a blank
Reply With Quote
  #47  
Old 03-20-2008, 07:35 PM
AngelBlue AngelBlue is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have split away the code that I was using to provide 'fake deletion' behaviour into a separate fake deletion mod.

Compatibility with this "Self Delete: allow users to self-delete their account" mod by calorie is provided in the form of a very easy integration... simply replace one of the files calorie's mod uses with the one that I provided in this post.

For further discussion of the fake deletion mod, please post in my thread on the subject, as I don't want to create a bunch of off-topic replies in this thread.
Reply With Quote
  #48  
Old 04-28-2008, 06:58 AM
quasan quasan is offline
 
Join Date: Jan 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

needs an update for 3.6.10 security token issue
Reply With Quote
  #49  
Old 04-29-2008, 05:03 PM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a xml with SecToken Fix.
Works in 3.6.10 and 3.7.0
Reply With Quote
  #50  
Old 05-05-2008, 12:47 PM
Robru Robru is offline
 
Join Date: Aug 2005
Location: Netherlands
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrD View Post
Here is a xml with SecToken Fix.
Works in 3.6.10 and 3.7.0
Works perfect in vB 3.7.0
Reply With Quote
  #51  
Old 05-06-2008, 11:25 AM
Andy Dean Andy Dean is offline
 
Join Date: May 2006
Location: Glenrothes, Scotland
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm... seem to have a problem, when the cool off period is set to 0 accounts are deleted straight away, but when i set it to 60, accounts don't delete, even when running the hourly cleanup crons. Everything worked fine before 3.7, can anyone 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 01:00 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.13833 seconds
  • Memory Usage 2,331KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_html
  • (5)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
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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