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?

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 11 months ago #214399 by nant
I have been following this thread with great interest - nice to see people helping each other ...

RegReminder - not familiar with this script.

If it just removes the user from the Joomla user tables then there will be problems with left-over garbage in databases and file system.

Example: When a user is deleted from the CB User Manager triggers fire to clean up things like:

- user avatar
- profile gallery items (files and database)
- profilebook items
- uddeIM messages

If you just remove the Joomla user you are not really purging the data of the user.

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 #214401 by tommytoxen
Replied by tommytoxen on topic Re: How can users delete the own account?
It's integrated with Community Builder so I should imagine it deletes the CB data too.

But good point Nant, I'll e-mail RegReminder and ask them.

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

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
11 years 10 months ago #217250 by fribse2011
Replied by fribse2011 on topic Re: How can users delete the own account?
I've asked the regreminder developer, and he uses joomla functions to remove the user ("When regreminder deletes a user it uses the standard Joomla delete method."). I'm not sure if that will trigger the cleanup properly?

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 10 months ago #217256 by tommytoxen
Replied by tommytoxen on topic Re: How can users delete the own account?
Hmmm.

Perhaps the code to remove CB tables etc can be added to the existing code?

Oris there a CB clean up plugin that we can just run from time to time?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 10 months ago #217278 by krileon
Replied by krileon on topic Re: How can users delete the own account?
Deleting a Joomla user does not delete the CB user, it's not running any cleanup or triggers that let plugins do cleanup. It should fire the below CB function to properly delete the user.

cbDeleteUser( $user_id );

So you'll probably want to modify the extension to load in CB API and fire the above instead of doing a Joomla delete.


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.

  • gvaneijk
  • gvaneijk
  • OFFLINE
  • Posts: 23
  • Thanks: 2
  • Karma: 1
11 years 6 months ago #224526 by gvaneijk
Replied by gvaneijk on topic Re: How can users delete the own account?
I have a question about this way of unsubscribing.

The unsubscribing works fine with auto actions, however I have a connection with an external system which also needs to know when a user is unsubscribed.

I can do this by making a link or redirect and adding "?unsubscribe_confirmed=1" behind it. I just don't know how to make this happen when a user unsubscribes.

When taking the steps it should be in the following order
1) User ticks the unsubscribe box on his profile and presses 'edit'
2) The ?unsubscribe_confirmed=1 needs to be used to tell the external database that the currently still logged in user has been unsubscribed
3) The auto action will set the confirmed field to 0

I noticed that the auto action doesn't log the user out, so maybe I can use that somehow.

Can I use an auto-action that adds/runs ?unsubscribe_confirmed=1 somehow in the background before it sets the confirmed field to 0?

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

Moderators: beatnantkrileon
Powered by Kunena Forum