Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.0k views
in Q2A Core by
I want to show user vote like Stackoverflow.com. I mean I want to show for example 1k instead of 1000 or 13k instead of 13000

thank you.

1 Answer

+3 votes
by
selected by
 
Best answer

You can add this in 'qa-theme.php' in your theme (between the class brackets) : 

 

function view_count($post)
{
 
//print_r(@$post['views']['data']);
if (isset($post['views_raw']) && $post['views_raw'] > 999) {
@$post['views']['data'] = round($post['views_raw']/1000).'k';
}
 
$this->output_split(@$post['views'], 'qa-view-count');
}
by
This should be an option in Q2A.
...