vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Self Delete: Allow users to self-delete their account (https://vborg.vbsupport.ru/showthread.php?t=161335)

Videx 02-29-2008 01:27 AM

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?

Soonerdude 03-09-2008 01:41 AM

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?

velias 03-09-2008 11:06 PM

Quote:

Originally Posted by Mike-D (Post 1447248)
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??:confused:

AngelBlue 03-10-2008 02:36 AM

Quote:

Originally Posted by Videx (Post 1453314)
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 (Post 1460396)
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.

b6gm6n 03-10-2008 12:34 PM

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

AngelBlue 03-20-2008 07:35 PM

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.

quasan 04-28-2008 06:58 AM

needs an update for 3.6.10 security token issue

MrD 04-29-2008 05:03 PM

Here is a xml with SecToken Fix.
Works in 3.6.10 and 3.7.0

Robru 05-05-2008 12:47 PM

Quote:

Originally Posted by MrD (Post 1502495)
Here is a xml with SecToken Fix.
Works in 3.6.10 and 3.7.0

Works perfect in vB 3.7.0 :)

Andy Dean 05-06-2008 11:25 AM

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?

Andy Dean 05-06-2008 06:59 PM

Sorted it!

For some reason 'cron_script_cleanup_hourly' was not specified as the Hook Location in the 'Self Delete Cron Script Clean' plugin, the field was just blank despite installing/uninstalling the .xml several times :confused:.

pixel-shock 06-01-2008 12:34 PM

Nice Mod!
Thanks A Lot :d

Here is the german translation of this mod (works with 3.7.0)

CU
Tino

GreasySpoon 06-02-2008 02:25 PM

And here is the german translation for "Deutsch (Sie)" based on pixel-shocks german translation for "Deutsch (Du)" ;)

Thanks for the usefull mod.

GPTB 06-03-2008 12:43 PM

Does this work with v3.7.1?

GreasySpoon 06-03-2008 02:08 PM

Quote:

Originally Posted by GPTB (Post 1539661)
Does this work with v3.7.1?

Not for me :(

cannabis-world 06-11-2008 03:17 PM

It did not work for me either....it just went to a blank screen when I clicked the 'delete account' link

GreasySpoon 06-13-2008 01:27 PM

You need this fixed xml with the SecurityTokens.

GPTB 06-17-2008 10:23 AM

Are you saying that it works on 3.7.1 with that SecurityTokens file?

MrD 06-17-2008 11:01 AM

Hi,
i run the hack with the Fixed xml file.
It works, but only the Bug with the Cron (Delete Time) works not.
But this dont work in the original Hack, too.

just77me 07-16-2008 08:22 PM

it works not it says makrs for deletion but i guess the cron job does not work i dont see it in the cron job list in the admincp - why? any solution - that i can use it with 3.7 thank you.

alfaowner 07-27-2008 10:22 PM

I get a blank email after the cool off period has ended... Any ideas?

danielm 07-28-2008 04:49 PM

@pixel-shock:
I tried to upload your XML for the german "Du"-Version, but I get the error, that the file is not valid ("Datei ungültig"). Anyone any idea why happends? I use vBulletin 3.7.0.

Mike-D 07-28-2008 08:01 PM

Quote:

Originally Posted by danielm (Post 1586088)
@pixel-shock:
I tried to upload your XML for the german "Du"-Version, but I get the error, that the file is not valid ("Datei ung?ltig"). Anyone any idea why happends? I use vBulletin 3.7.0.

The translated Product has no errors. The question is how you imported that file! The file itself is an Product and has to be imported via "Import Product". Probably you thought it's an Language file so you imported that file via "Download / Upload Languages". Isn't it? Just an idea ;)

gigglegirl 07-29-2008 08:58 PM

I added the link to the control panel but i can not figure out how to get the link in the navbar for the cool off period. And I don't see a stop delete link anywhere..

Mike-D 07-30-2008 06:18 PM

Quote:

Originally Posted by gigglegirl (Post 1586934)
I added the link to the control panel but i can not figure out how to get the link in the navbar for the cool off period. And I don't see a stop delete link anywhere..

Both actions are displayed while Members being deleted. Usually Admins (for example "You") can't see that, because they are undeletable. Unless you are a Member who is willing to start to self delete itself. Then you can see it :)

gigglegirl 07-30-2008 07:36 PM

thanks for responding.. I was checking with a test account and did not see the stop delete button, or anything in the nav bar. I think I was reading that I have to add hooks to the template. I don't know how to go about that. I'm searching for info.. but having no luck so far. Could anyone that had to add the hooks explain how they did it? I would really appreciate it. :)

gigglegirl 07-30-2008 08:36 PM

Getting errors.. I think I need to uninstall this..

Hourly Cleanup

Warning: include_once(/home/.ayla/XXX/XXX.com/XXX/includes/cron/self_delete_cron.php) [function.include-once]: failed to open stream: No such file or directory in /includes/cron/cleanup.php(77) : eval()'d code on line 19

Warning: include_once() [function.include]: Failed opening '/home/.ayla/XXXXXX/XXX.com/XXX/includes/cron/self_delete_cron.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /includes/cron/cleanup.php(77) : eval()'d code on line 19
Done

Cocko 08-07-2008 07:27 PM

Installed in vb 3.7.2

Delete account immediatly, nobody is allowed to even the group permissions are set.

Fixed the missing Hook entry for hourly cron. Own individual cron does not work.
Made my own german phrases because the two ones in this thread didn't work.

Last action is the following issue:

Quote:

Originally Posted by alfaowner (Post 1585526)
I get a blank email after the cool off period has ended... Any ideas?

Does somebody get correct mails from deletion after the cool off period?

Regards,
Cocko.

Jann Hendrik 08-15-2008 03:24 PM

Quote:

Originally Posted by pixel-shock (Post 1537770)
Nice Mod!
Thanks A Lot :d

Here is the german translation of this mod (works with 3.7.0)

CU
Tino

Do you if this hack works with version 3.7.2?
I'm not experienced in installing hacks.

MrD 08-31-2008 02:55 PM

Hi,
the Hack works fine in 3.7.2 and 3.7.3

Dontom 11-18-2008 08:26 AM

Any hint how to get the cron part working?

I tried to set it up like this, but it doesnt seem to work...
Thomas

Mike-D 11-18-2008 04:06 PM

Quote:

Originally Posted by MrD (Post 1611214)
Hi,
the Hack works fine in 3.7.2 and 3.7.3

Markus,
what about the Cron Job in that Addon? Does it finally works in your Forum? Still today it won't works. Dunno what the cause can be :(

German: Wie siehts denn bei Dir aus mit diesem Addon? L?uft bei Dir der Cron Job? Bei mir bis heute nicht und so hab ich das Addon bei mir wieder gel?scht, da auch der Support zu w?nschen l??t :(

Jens* 12-29-2008 10:39 AM

Hi everybody, did anyone tried this mod in 3.8?

Thanks for feedback

exetel 01-15-2009 12:34 AM

Quote:

Originally Posted by Jens* (Post 1696287)
Hi everybody, did anyone tried this mod in 3.8?

Thanks for feedback

Doesn't seem to work with 3.8 i just tested it :S u get this

Quote:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

MrD 01-15-2009 06:21 AM

Hi,
the Hack works fine on vb3.7.x and 3.8.x
But you must have the Sec token Fix.
Look at Page 4 my posting #48

Dontom 02-09-2009 07:03 AM

HI,
this worked perfect for us on 3.7.x - but now on 3.8.x all I get here is just a blank page (forum/profile.php?do=delacc)

I also enabled the debug mode, but still just get that white page. Already tried uninstall & reinstall, didnt help.

Any idea or hint?
thanks

Dontom 02-17-2009 12:37 PM

figured it out: during the upgrade somehow the setting of the usergroup ("Can Self Delete ") was set to "no" - set it back to yes and it works like a charm with 3.8.1

dai-kun 02-18-2009 04:38 AM

Works good in 3.8 thanks for the token fix also.

trippyskip 02-27-2009 06:26 PM

Isn't this feature supposed to reset the username to "Guest"? All it seems to do is change the user title to Guest, the username remains. Can anyone point me to where this change is in the code so I can modify it to change the username too? Earlier versions did this, but 3.8 seems to fail...

Thanks!

alfaowner 02-28-2009 12:27 PM

Quote:

Originally Posted by Cocko (Post 1593671)
Installed in vb 3.7.2

Delete account immediatly, nobody is allowed to even the group permissions are set.

Fixed the missing Hook entry for hourly cron. Own individual cron does not work.
Made my own german phrases because the two ones in this thread didn't work.

Last action is the following issue:



Does somebody get correct mails from deletion after the cool off period?

Regards,
Cocko.

Well I get an email stating "username" has be slated for deletion, when the person is then deleted, I receive an email but its 100% a white blank page, please advise if you can, I guess its just a phrase missing but its nice to know who was deleted.

Cheers


All times are GMT. The time now is 09:42 PM.

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.01456 seconds
  • Memory Usage 1,842KB
  • 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_html_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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