By Jay on Sunday, 06 May 2018
Posted in Technical Issues
Replies 18
Likes 0
Views 608
Votes 0
Is there a way to redirect a user to a particular page when they delete their account, so, for instance, we can have a form they can fill in if they wish to let us know why they closed their account?
+1
·
Monday, 07 May 2018 01:57
·
0 Likes
·
0 Votes
·
0 Comments
·
+1
·
Monday, 07 May 2018 04:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Itamar,

Unfortunately currently we do not have a setting for this at this point of time.

If you really need this, you can modify on this file -> JoomlaFolder/components/com_easysocial/views/profile/view.html.php


// Under this line 1046

public function delete()
{
$this->info->set($this->getMessage());

$return = ESR::dashboard(array(), false);

$this->redirect($return);
}


Replace to


public function delete()
{
$this->info->set($this->getMessage());

// $return = ESR::dashboard(array(), false);

// Set your custom redirection url here
$return = 'http://site.com/redirection-url-page';

$this->redirect($return);
}
·
Monday, 07 May 2018 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Rob, Peter

Perhaps you guys can request this feature into our Easysocial feature request here https://stackideas.com/forums/easysocial/feature-requests-2 .
·
Monday, 07 May 2018 10:44
·
0 Likes
·
0 Votes
·
0 Comments
·
It's already there! https://stackideas.com/forums/last-goodbye-with-an-account-confirmation-email-deleted

And from your code it looks like it would only take a few minutes to build this option in :-)
Jay
·
Monday, 07 May 2018 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing there already someone requested this.

We will prioritize this feature during the development process for the next major version of EasySocial if there are more people request on this.
·
Monday, 07 May 2018 18:20
·
0 Likes
·
0 Votes
·
0 Comments
·
How does this process work? It seems quite hard to see what features people are asking for and how many votes etc there are - this is a good example as it seems you weren't aware that this feature had already been requested?

Perhaps you could use the EasyDiscus polls feature?
Jay
·
Monday, 07 May 2018 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your input, if you check on our feature request page for Easysocial https://stackideas.com/forums/easysocial/feature-requests-2 , our user already requested more than 1000 posts.

We actually need time to read all the single feature request post when we start development process for the next major version of EasySocial, so we only can decide which feature request prioritize to add in.

Currently all our developer focusing development in progress compliance GDPR for all our existing extension, because this GDPR due date on May 28, 2018, we need to push this out as soon as possible.
·
Tuesday, 08 May 2018 10:10
·
0 Likes
·
0 Votes
·
0 Comments
·
For the modification I tried doing it by putting the modified copy of the file into

../templates/our_template/html/com_easysocial/views/profile

but that didn't work. Please advice how I should set it up, thanks.
Jay
·
Tuesday, 08 May 2018 17:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Based on what i checked, it seems like you do not have modify this file JoomlaFolder/components/com_easysocial/views/profile/view.html.php before.

For now, I already help you set that redirection to your site homepage, you can modify by yourself now, you can refer on my attached screenshot below.
·
Thursday, 10 May 2018 10:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, I should have said that I am trying this out (always for code tweaks etc!) first on our test site, not the live site. Please don't make code changes to our live site without getting our okay first, thanks.

I think also perhaps you misunderstood my question. Obviously I don't want to directly modify the file at JoomlaFolder/components/com_easysocial/views/profile/view.html.php as it will just get overwritten at next ES update, What I was trying to do was to create an override by putting the modified file at .JoomlaFolder./templates/our_template/html/com_easysocial/views/profile but that didn't seem to work?
Jay
·
Thursday, 10 May 2018 22:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Noted, it seems like you already revert back original code from your live site when i trying to check the code just now.

Yes, that template override only for the theme file only, that was not possible to override the function code.

In other word, you have to modify the code every new update for now.
·
Friday, 11 May 2018 14:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Okay thanks. So +2 for it being added as an actual feature!
Jay
·
Friday, 11 May 2018 17:17
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Monday, 14 May 2018 12:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post