Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

How can users delete the own account?

  • Pickeboe
  • Pickeboe
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
12 years 3 weeks ago #211963 by Pickeboe
How can users delete the own account? was created by Pickeboe
How can users delete the own account?

I can't find any menutyp to add a menuentry. Also I found no option to enable a "delete-option" in the logged in user account in the frontend.

It should be possible, to delete my own account.
Maybe the solution is in the forum... but I couldn't find. Can someone help?


greets,
Pick

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
12 years 3 weeks ago #211973 by krileon
Replied by krileon on topic Re: How can users delete the own account?
CB has no such feature, but there's a 3rd party CB plugin to do it. Please see the below directory entry.

www.joomlapolis.com/cb-solutions/directory/core-enhancements/user-management/dt-delete-me

I've no experience with this plugin and we're also not its developer so use at ones own risk.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • tommytoxen
  • tommytoxen
  • OFFLINE
  • Posts: 61
  • Thanks: 11
  • Karma: 6
11 years 11 months ago #214099 by tommytoxen
Replied by tommytoxen on topic Re: How can users delete the own account?

Pickeboe wrote: How can users delete the own account?

I can't find any menutyp to add a menuentry. Also I found no option to enable a "delete-option" in the logged in user account in the frontend.

It should be possible, to delete my own account.
Maybe the solution is in the forum... but I couldn't find. Can someone help?


greets,
Pick


Hi Pick. No there isn't a way. The plugin Krileon has directed you to is for Joomla 1.5 could really mess up your database if you try using it.

I thought since Joomlapolis have been so helpful to make my site a success with little things such as this I'd give a little back.

Install CB Auto-Actions if you haven't done so already, then install RegReminder.

First, set RegReminder to delete all unconfirmed/inactive accounts after X amount of days. I've set mine to 90.

Create a tab visible only in edit profile titled "Security".

Create a checkbox titled cb_delete and place it in Security.

Publish it all. Then go to CB Auto Actions and do as Krileon told me:

Type: Query
Triggers: onAfterUserUpdate
Access: Everybody
Conditional: [cb_delete] Equal To 1
Query:
Code:
UPDATE `#__comprofiler` SET `confirmed` = 0 WHERE `id` = '[user_id]'

Go to your FTP to the Community Builder lang file.

Find "this user has not confirmed their e-mail address" and change to "Your account is de-activated"

Now. All a user has to do is go to security, click a check box, as soon as they press update their account will be unconfirmed and they'll get the "Your account is de-activated" notice.

If they leave their account de-activated after X amount of days, RegReminder will purge & delete it.

They can re-confirm their account and keep it active by logging in again within X amount of days.


Example:


Hope this helps :)
Attachments:
The following user(s) said Thank You: krileon, fribse2011

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
11 years 11 months ago #214387 by fribse2011
Replied by fribse2011 on topic Re: How can users delete the own account?
Hey, that IS clever! Very good solution.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
11 years 11 months ago #214390 by fribse2011
Replied by fribse2011 on topic Re: How can users delete the own account?
I would suggest a small change in the query, so it does this instead:
Code:
UPDATE `#__comprofiler` SET `confirmed` = 0 WHERE `id` = '[user_id]'; UPDATE `#__comprofiler` SET `cb_delete` = 0 WHERE `id` = '[user_id]'
That way, if people want's to reactivate, it's ready, and not marked as deleted (which would then delete it again on next profile update).

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

  • tommytoxen
  • tommytoxen
  • OFFLINE
  • Posts: 61
  • Thanks: 11
  • Karma: 6
11 years 11 months ago #214393 by tommytoxen
Replied by tommytoxen on topic Re: How can users delete the own account?
Great thinking Fribse, I missed that one, thanks for sharing. I've updated mine.

Community Builder + creative thinking = fantastic websites eh? :cheer:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum