我有一个基本上是“上一页”和“下一页”按钮的代码。问题是'previous_page'正常工作,但是'next_page'无效,我也不知道为什么。
有人看到这段代码有问题吗?
if ($vbulletin->GPC['pagenumber'] > 1) {
k_add_function(
$vbphrase['k_showthread_previous_page']
,$vbulletin->options['k_previous_page']
,"showthread.php?t={$threadinfo['threadid']}&page=" . ($vbulletin->GPC['pagenumber']-1)
,$vbphrase['k_showthread']
);
} else if ($vbulletin->GPC['pagenumber'] < ceil($totalposts / $perpage)) {
k_add_function(
$vbphrase['k_showthread_next_page']
,$vbulletin->options['k_next_page']
,"showthread.php?t={$threadinfo['threadid']}&page=" . ($vbulletin->GPC['pagenumber']+1)
,$vbphrase['k_showthread']
);
}
我想知道是否可能与我的modrewrite url-path [forum_title]/index[forum_page].html
有关,但事实是,previous_page起作用了,所以我不知道...我将不胜感激。
答案 0 :(得分:0)
我刚刚看到了潜在的错字,这可能是问题所在
在上一个链接中,您有$vbphrase['kb_showthread']
,但在下一个链接中,您有$vbphrase['k_showthread']
,下一个链接也应为$vbphrase['kb_showthread']