apptha.com
https://www.apptha.com/forum/

How do I disable the filter and save html elements into albu
https://www.apptha.com/forum/viewtopic.php?f=16&t=717
Page 1 of 1

Author:  varshahema [ Thu Apr 12, 2012 7:47 pm ]
Post subject:  How do I disable the filter and save html elements into albu

Dear ming liang,

Greetings!!

1)How do I disable the filter and save html elements into album description?

#)For your changes kindly follow the below steps:

File path:administrator\components\com_macgallery\models\album.php

line no:128 find the function savealbum($album){}
and replace the following code

function savealbum($album)
{
$album['description']=$_REQUEST['description'];
$albumTableRow =& $this->getTable('album');

if (!$albumTableRow->bind($album)) {
JError::raiseError(500, 'Error binding data');
}
if (!$albumTableRow->check()) {
JError::raiseError(500, 'Invalid data');
}
if (!$albumTableRow->store()) {
$errorMessage = $albumTableRow->getError();
JError::raiseError(500, 'Error binding data: '.$errorMessage);
}
}


For further more clarification, kindly contact us.

Thanks & Regards,
D.Hema

Page 1 of 1 All times are UTC + 5:30 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/