How to add redirect to another page, after adding a comment
-
- Phoca Newbie
- Posts: 5
- Joined: 24 Nov 2016, 22:13
How to add redirect to another page, after adding a comment
Hi I am from Ukraine and I find it difficult to use the forum, but this is one place where I can get help. Please tell me how to add redirect to another page, after adding a comment in Phoca Guestbook.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to add redirect to another page, after adding a comment
Hi, which version of Phoca Guestbook do you use?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 24 Nov 2016, 22:13
Re: How to add redirect to another page, after adding a comment
com_phocaguestbook/controllers/phocaguestbook.php
// Flush the data from the session
$session->clear('time', 'pgb'.$params->get('session_suffix'));
$app->setUserState('com_phocaguestbook.guestbook.data', null);
$app->enqueueMessage($msg, 'success');
$this->setRedirect(JRoute::_('http://site/redirect.html', false));
return true;
}
// Flush the data from the session
$session->clear('time', 'pgb'.$params->get('session_suffix'));
$app->setUserState('com_phocaguestbook.guestbook.data', null);
$app->enqueueMessage($msg, 'success');
$this->setRedirect(JRoute::_('http://site/redirect.html', false));
return true;
}
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to add redirect to another page, after adding a comment
Ok, thank you for the info.
Jan
Jan
If you find Phoca extensions useful, please support the project