on a question page, i want to remove the answer count from the answer list header and put it rather on the question box, here is what i did : in q_view_main i added the red line :
function q_view_main($q_view)
{
$this->output('<div class="qa-q-view-main">');
if (isset($q_view['main_form_tags']))
$this->output('<form '.$q_view['main_form_tags'].'>'); // form for buttons on question
$this->view_count($q_view);
$this->q_view_content($q_view);
$this->q_view_extra($q_view);
$this->q_view_follows($q_view);
$this->q_view_closed($q_view);
$this->post_tags($q_view, 'qa-q-view');
//insert
$this->post_avatar_meta($q_view, 'qa-q-view');
$this->q_view_buttons($q_view);
$this->c_list(@$q_view['c_list'], 'qa-q-view');
if (isset($q_view['main_form_tags'])) {
$this->form_hidden_elements(@$q_view['buttons_form_hidden']);
$this->output('</form>');
}
$this->c_form(@$q_view['c_form']);
$this->output($q_view['raw']['acount']);
$this->output('</div> <!-- END qa-q-view-main -->');
}
As a result i can see the answer count on question view but it does not update in real time whenever i add a question as the old one did.
Any idea please on how can i solve this problem?
Thank you