Redirect after delete user

3 years 9 months ago #1 by Raasta
Hello, how i can redirect to certain component (by default redirects me to user component).

Thank you :)
3 years 9 months ago - 3 years 9 months ago #2 by Raasta
If is it usefull for someone...

I changed a js file (dma.js) at line 24

// setTimeout(function(){location.reload();}, 3000);
setTimeout(function(){window.location.href = '/';}, 3000);

And now redirects to home and not to user component :)

pd: I had to change the f90deletemyaccount.php file to send mails with the latest joomla (3.6.4)
3 years 9 months ago #3 by Function90
Hello Raasta,

Sorry for delay.
We are glad that you solved the issue.
We will check emailing issue and will fix if there is any issue in that.

Thank you
Team Function90
You can share your views regarding our extension at JED ( extensions.joomla.org/profile/profile/details/225115#extensions )

Hire Professional Joomla Developers. ( www.function90.com/contact-us.html )
3 years 9 months ago #4 by Function90
I have just checked with Joomla 3.6.4, email is working properly.
What changes have you done regarding email?

Thank you
Team Function90
You can share your views regarding our extension at JED ( extensions.joomla.org/profile/profile/details/225115#extensions )

Hire Professional Joomla Developers. ( www.function90.com/contact-us.html )
3 years 9 months ago - 3 years 9 months ago #5 by Raasta
Hello Function90 ;)

In f90deletemyaccount.php file at line 183, original code...
$mail = JFactory::getMailer()
		->setSender(
			array(
				$data['mailfrom'],
				$data['fromname']
				)
			)
		->addRecipient($recipient)
		->setSubject($emailSubject)
		->setBody($emailBodyAdmin);
I changed to...
		$mail = JFactory::getMailer();
		$mail->setSender(
			array(
				$data['mailfrom'],
				$data['fromname']
			)
		);
		$mail->addRecipient($recipient);
		$mail->setSubject($emailSubject);
		$mail->setBody($emailBodyAdmin);
With original code, its hangs at the request parsing (see the capture). Its delete the user but don't send any mail (and hangs), changing that all works OK. If you want more info tell me ;).
Thank you for that great plug-in, i must study the ajax requests in joomla more in deep any good source for that? I'm skilled with component, modules, plugins, theme making but that plugin amazed me :)
Attachments:
Powered by Kunena Forum
Cron Job Starts