Hi,
##) To fix the html layout showing within the editor, kindly follow the below steps.
Steps:
1) Go to file path ../components/com_userarticle/views/article/tmpl/default_articleedit.php
In this file find, echo $editor->display('content', $this->onearticle->introtext, '550', '300', '60', '20', false );
and replace 'content' with 'userarticle_content'
2) Go to ../components/com_userarticle/views/article/tmpl/default_articleadd.php
In this find echo $editor->display('content', $this->onearticle->introtext, '550', '300', '60', '20', false );
and replace 'content' with 'userarticle_content'
3) Go to file path ../components/com_userarticle/models/article.php
In this find the below code
function save_article() { $contents = JRequest::getvar('content','', 'post', 'string', JREQUEST_ALLOWRAW); }
function edit_article() { $contents = JRequest::getvar('content','', 'post', 'string', JREQUEST_ALLOWRAW); }
and replace with the below code
and replace 'content' with 'userarticle_content'
##) For error in publishing, the timezone is vary so that the message is displayed. For this,
1) Go to file path ../components/com_userarticle/models/article.php
In this file find the code $start_b = JRequest::getvar('start',null,'POST'); and before that add the following code date_default_timezone_set('Your time zone');
2) After that, go to ../administrator/components/com_userarticle/views/userarticle/tmpl/default.php
In this find the below code $down=date("Y-m-d H:i:s"); and add the code date_default_timezone_set('Your time zone'); above to the line. Kindly replace the text Your time zone with your time zone based on your country. Ex: date_default_timezone_set('Asia/Kolkata');
##) By default, user can edit their own articles and not possible to edit other users.
|
|