I dont know how to have the real questions number on front page, but if it is ok for You to show 0, 1, 2, 3 more or 0,1,2,3,4,5,6,7,8,9,more You can copy the following two functions to Your qa-theme.php
That would do it. Just once on a questions page the preview tab is not prefectly positioned... but for a work around it should be ok.
Now, please review it Yourself and optimize the code...
function page_links()
{
$page_links=@$this->content['page_links'];
if (!empty($page_links)) {
$this->output('<DIV CLASS="qa-page-links">');
$this->page_links_label(@$page_links['label']);
$this->page_links_list(@$page_links['items']);
$this->page_links_clear();
$this->output('</DIV>');
//added the else if which shows a fake pagination when You are on activity or qa page
//THAT DEPENDS on which homepage You are linking to through the configuration file.
}elseif ((($this->template=='qa')||($this->template=='activity'))&& (empty($this->content['categoryids']))){
// Edited the line above to make sure that on category pages the fake pagination does not show up
//}elseif (($this->template=='qa')||($this->template=='activity')){
$this->output('<DIV CLASS="qa-page-links">');
$this->output('<SPAN CLASS="qa-page-links-label">Pages</SPAN>');
$this->output('<UL CLASS="qa-page-links-list">');
$this->output('<LI CLASS="qa-page-links-item">');
$this->output('<SPAN CLASS="qa-page-selected">0</SPAN>');
$this->output('</LI>');
$this->output('<LI CLASS="qa-page-links-item">');
$this->output('<A HREF="../questions" CLASS="qa-page-link">1</A>');
$this->output('</LI>');
$this->output('<LI CLASS="qa-page-links-item">');
$this->output('<A HREF="../questions?start=20" CLASS="qa-page-link">2</A>');
$this->output('</LI>');
$this->output('<LI CLASS="qa-page-links-item">');
$this->output('<A HREF="../questions?start=40" CLASS="qa-page-link">3</A>');
$this->output('</LI>');
$this->output('<LI CLASS="qa-page-links-item">');
$this->output('<A HREF="../questions" CLASS="qa-page-next">next »</A>');
$this->output('</LI>');
$this->output('</UL>');
$this->page_links_clear();
$this->output('</DIV>');
}else{
}
}
function page_links_list($page_items)
{
if (!empty($page_items)) {
$this->output('<UL CLASS="qa-page-links-list">');
//six lines added
//setting a new page link to 0 with a link to the matching page ../activity here
if($this->template=='questions'){
$this->output('<LI CLASS="qa-page-links-item">');
//where to link depends on which pages you have activated and which one is set as homepage try ../activity or ../
$this->output('<A HREF="../activity" CLASS="qa-page-link">0</A>');
$this->output('</LI>');
}else{}
$index=0;
foreach ($page_items as $page_link) {
$this->set_context('page_index', $index++);
$this->page_links_item($page_link);
if ($page_link['ellipsis'])
$this->page_links_item(array('type' => 'ellipsis'));
}
$this->clear_context('page_index');
$this->output('</UL>');
}
}
--------------------------------------
It does work well but is not really correct. So if You choose on questions page sorted by answers or votes the content of page 0 remains the same. thatfore i think it is ok to have the 0 left of the prev tab. Let me know what You think, may be we can make it better.
EDIT 1
I have edited the following line in the code above. Otherwise the pagination would show up on mypage.com/category1/...
}elseif ((($this->template=='qa')||($this->template=='activity'))&& (empty($this->content['categoryids']))){