http://technosmarter.com/qa/212/how-to-increase-maximum-content-length-is-12000-characters-in-q2a
How to increase maximum content length is 12000 characters in Q2A ?
You are using Question2answer (Q2A) QA base application. Under the Q2A application answer characters already set to 12000. You can increase the length of answer characters through the maximum.php file from the DB folder.
I understand your concern. Yes, you can increase the length of characters.
Question2answer allows you to customize the QA application.
Increase maximum content length is 12000 characters in Q2A application
Navigate to the path -
qa/qa-include/db/maxima.php
Edit the maxima.php file and find below code -
'QA_DB_MAX_CONTENT_LENGTH' => 12000,
change to
'QA_DB_MAX_CONTENT_LENGTH' => 18000,
Now save your Q2A file and execute. You will not get the error "Maximum length is 12000 characters"
=================================================
remove search bar, and side panel
C:\Apache24\htdocs\cleargov1\qa-theme\Donut-theme\qa-donut-layer.php
1) comment out this line
if ( !$this->donut_do_hide_sidebar() ) {
// remove side panel and search bar
// $this->sidepanel();
}
2) adjust the width
function main()
{
$content = $this->content;
// no right side panel, no search bar in right side panel.
// $width_class = ( $this->donut_do_hide_sidebar() && $this->template != 'admin' ) ? 'col-xs-12' : 'qa-main col-md-9 col-xs-12 pull-left';
$width_class = ( $this->template != 'admin' ) ? 'col-xs-12' : 'qa-main col-md-9 col-xs-12 pull-left';
..................................................................................................
change page title, recent to empty,
C:\Apache24\htdocs\cleargov1\qa-include\lang\qa-lang-main.php
'nav_most_recent' => 'Recent',
change to
'nav_most_recent' => '',
-----------------------------------------------------------------
'recent_qs_as_title' => '', //'Recent ',
'recent_qs_title' => '', //'Recent ',
...............................................................................................
remove tab, hot, most answered
comment out below
C:\Apache24\htdocs\cleargov1\qa-include\app\q-list.php
/*
'hot' => array(
'label' => qa_lang('main/nav_hot'),
'url' => qa_path_html($request, array('sort' => 'hot')),
),
*/
/*
'votes' => array(
'label' => qa_lang('main/nav_most_votes'),
'url' => qa_path_html($request, array('sort' => 'votes')),
),
*/
/*
'answers' => array(
'label' => qa_lang('main/nav_most_answers'),
'url' => qa_path_html($request, array('sort' => 'answers')),
),
*/
remove most viewed page by comment out:
/*
'views' => array(
'label' => qa_lang('main/nav_most_views'),
'url' => qa_path_html($request, array('sort' => 'views')),
),
*/
No comments:
Post a Comment