Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by

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->post_tags($q_view, 'qa-q-view');
$this->post_avatar_meta($q_view, 'qa-q-view');
$this->c_list(@$q_view['c_list'], 'qa-q-view');
if (isset($q_view['main_form_tags'])) {
$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 

1 Answer

0 votes
You could write a plugin which should make ajax call after some time interval frequently . When ever it gets a new value or updated value it should update that element .

Needs some effort . All the best :)