You can try this edit to inc/xthreads/xt_forumdhooks.php
Replace
PHP Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
$filterargs_html= htmlspecialchars_uni($xthreads_forum_filter_args);$GLOBALS['sorturl'].=$filterargs_html;// inject URL into multipage - template cache hacks
global$templates;$tpls=array('multipage_end','multipage_nextpage','multipage_page','multipage_prevpage','multipage_start');foreach($tplsas&$t)if(!isset($templates->cache[$t])){$templates->cache(implode(',',$tpls));break;}// may need to replace first & with a ?
if(($mybb->settings['seourls']=='yes'||($mybb->settings['seourls']=='auto'&&$_SERVER['SEO_SUPPORT']==1))&&$GLOBALS['sortby']=='lastpost'&&$GLOBALS['sortordernow']=='desc'&&($GLOBALS['datecut']<=0||$GLOBALS['datecut']==9999))$filterargs_html='?'.substr($filterargs_html,5);foreach($tplsas&$t){$templates->cache[$t]= str_replace('{$page_url}','{$page_url}'.$filterargs_html,$templates->cache[$t]);}
// if Google SEO is active, force our URL into that
if(function_exists('google_seo_url_cache')){// force cache load
$gsurl= google_seo_url_cache(GOOGLE_SEO_FORUM,$foruminfo['fid']);if(strpos($gsurl,'?')!==false)$gsurl.=$xthreads_forum_filter_args;else$gsurl.='?'.substr($xthreads_forum_filter_args,1);// pollute Google SEO's cache with our param
$GLOBALS['google_seo_url_cache'][GOOGLE_SEO_FORUM][$foruminfo['fid']]=$gsurl;}else{// use standard multipage template hack
$filterargs_html= htmlspecialchars_uni($xthreads_forum_filter_args);$GLOBALS['sorturl'].=$filterargs_html;// inject URL into multipage - template cache hacks
global$templates;$tpls=array('multipage_end','multipage_nextpage','multipage_page','multipage_prevpage','multipage_start');foreach($tplsas&$t)if(!isset($templates->cache[$t])){$templates->cache(implode(',',$tpls));break;}// may need to replace first & with a ?
if(($mybb->settings['seourls']=='yes'||($mybb->settings['seourls']=='auto'&&$_SERVER['SEO_SUPPORT']==1))&&$GLOBALS['sortby']=='lastpost'&&$GLOBALS['sortordernow']=='desc'&&($GLOBALS['datecut']<=0||$GLOBALS['datecut']==9999))// && (strpos(FORUM_URL_PAGED, '{page}') === false) - somewhat unsupported, since MyBB hard codes the page 1 elimination behaviour
$filterargs_html='?'.substr($filterargs_html,5);foreach($tplsas&$t){$templates->cache[$t]= str_replace('{$page_url}','{$page_url}'.$filterargs_html,$templates->cache[$t]);}}