Is your hope this?
In case of using admin panel (If there is little processing...)
-
Make new plugin
-
Override qa_content_prepare() function of qa-include/qa-page.php
-
Modify L497 in your qa_content_prepare() function.
e.g.
//'sidebar' => qa_opt('show_custom_sidebar') ? qa_opt('custom_sidebar') : null,
'sidebar' => qa_opt('show_custom_sidebar') ? eval(qa_opt('custom_sidebar')) : null,
-
Login as admin
-
Input PHP code in "Admin" > "Layout" > "Custom HTML in sidebar box on every page:"
e,g,
$ret = 'Hello World!';
return $ret;
In case of not using admin panel (If there is many processing...)
-
Make new plugin
-
Override qa_content_prepare() function of qa-include/qa-page.php
-
Make new qa-my-sidebar.php on qa-include directory
e.g. (Don't add "<?php")
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
return '';
}
$ret = 'Hello World';
return $ret;
-
Modify L497 in your qa_content_prepare() function.
e.g.
//'sidebar' => qa_opt('show_custom_sidebar') ? qa_opt('custom_sidebar') : null,
'sidebar' => qa_opt('show_custom_sidebar') ? eval(file_get_contents(QA_INCLUDE_DIR.'qa-my-sidebar.php')) : null,
Reference:
http://php.net/manual/en/function.eval.php
Caution:
This suggestion is for seniors who were familiar with PHP. This code is risky. If you do wrong operation, your site may not move at all. If it happen, it will be necessary to repair specific record of qa_options table in your database directly OR put back source file. Anyway, be careful.
There may be other methods.