7.3可用回帖倒序显示
read.php大概196左右
if ($pageinverse) {
$start_limit = $count-$page*$db_readperpage;
$order = $rewardtype != null ? \"t.ifreward ASC,t.postdate DESC\" : \"t.postdate DESC\";
} else {
$start_limit = ($page-1)*$db_readperpage-1;
$order = $rewardtype != null ? \"t.ifreward DESC,t.postdate\" : \"t.postdate\";
}
改成
if ($pageinverse) {
$start_limit = $count-$page*$db_readperpage;
$order = $rewardtype != null ? \"t.ifreward ASC,t.postdate DESC\" : \"t.postdate DESC\";
} else {
$start_limit = ($page-1)*$db_readperpage-1;
$order = $rewardtype != null ? \"t.ifreward DESC,t.postdate DESC\" : \"t.postdate DESC\";
}
220左右
$start_limit = ($page - 1) * $db_readperpage;
foreach ($readdb as $key => $read) {
isset($bandb[$read]) && $read = 6;
$authorids[]= $read;
$readdb[$key] = viewread($read,$start_limit++);
$db_menuinit .= \",td_read_\".$read.\":menu_read_\".$read.\"\";
}
改成
$start_limit = ($page - 1) * $db_readperpage;
$start_limit1 = 0;
foreach ($readdb as $key => $read) {
isset($bandb[$read]) && $read = 6;
$authorids[]= $read;
$readdb[$key] = viewread($read,$start_limit1);
$start_limit1 = $count - $start_limit -1;
$start_limit++;
$db_menuinit .= \",td_read_\".$read.\":menu_read_\".$read.\"\";
}
页:
[1]