It is currently Wed Oct 21, 2020 3:51 pm

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Apr 12, 2012 7:47 pm 

Joined :
Tue Apr 03, 2012 7:06 pm

Posts : 43
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


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron