- Posts: 3
- Thank you received: 0
(Solved) HTML formatting will not apply on save
- TechWild
- Topic Author
- Offline
- New Member
-
Less
More
13 years 6 months ago - 13 years 5 months ago #12168
by TechWild
(Solved) HTML formatting will not apply on save was created by TechWild
When I edit configuration/Messages, the html formatting doesn’t save.
I searched through the forums and found this solution
joomdonation.com/index.php?option=com_ku...ew&catid=62&id=11841
But that didn’t work for me.
I have:
Joomla 1.5.24
Any ideas?
I searched through the forums and found this solution
joomdonation.com/index.php?option=com_ku...ew&catid=62&id=11841
But that didn’t work for me.
I have:
Joomla 1.5.24
Any ideas?
Last edit: 13 years 5 months ago by TechWild.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 6 months ago #12229
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: HTML formatting will not apply on save
Hi
1. Open the file administrator/components/com_eventbooking/controller.php.
2. Find the code below :
Change it to :
After that, it should work as expected !
Tuan
1. Open the file administrator/components/com_eventbooking/controller.php.
2. Find the code below :
Code:
function save_configuration() {
$data = JRequest::get('post', JREQUEST_ALLOWHTML) ;
unset($data['option']) ;
unset($data['task']) ;
if (isset($data['payment_methods']) && is_array($data['payment_methods']))
$data['payment_methods'] = implode(',', $data['payment_methods']);
$model = & $this->getModel('configuration');
$ret = $model->store($data);
if ($ret) {
$msg = JText::_('EB_CONFIGURATION_DATA_SAVED');
} else {
$msg = JText::_('EB_CONFIGURATION_DATA_ERROR');
}
$this->setRedirect('index.php?option=com_eventbooking&task=show_configuration', $msg);
}
Change it to :
Code:
function save_configuration() {
$data = JRequest::get('post', JREQUEST_ALLOWRAW) ;
unset($data['option']) ;
unset($data['task']) ;
if (isset($data['payment_methods']) && is_array($data['payment_methods']))
$data['payment_methods'] = implode(',', $data['payment_methods']);
$model = & $this->getModel('configuration');
$ret = $model->store($data);
if ($ret) {
$msg = JText::_('EB_CONFIGURATION_DATA_SAVED');
} else {
$msg = JText::_('EB_CONFIGURATION_DATA_ERROR');
}
$this->setRedirect('index.php?option=com_eventbooking&task=show_configuration', $msg);
}
After that, it should work as expected !
Tuan
Please Log in or Create an account to join the conversation.
- TechWild
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
13 years 6 months ago #12240
by TechWild
Replied by TechWild on topic Re: HTML formatting will not apply on save
It works now!
Thank you
Thank you
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.