Quote:
Originally posted by Littlebit
Is it an impossible thing to make it so if you have your forums threads post order set to 'newest first' in your adminCP, the post count for the newest post will be post# 99 (for example) or whatever it is instead of 1? post# 1 still being the original first post...
What would be the best way to go about trying this?
|
I did this... because I have it where each user can select the post order... (that is where $bbuserinfo[postorder]==0 comes from.. I don't know what the variable would be for the whole BBS.. but the structure would be similar)
PHP Code:
if($bbuserinfo[postorder]==0) {
$post[postcount] = ++$postcount;
} else {
$postrev = $totalposts - $postcount;
++$postcount;
$post[postcount] = $postrev;
}
$post[totalposts] = $totalposts;
..also I added the
$post[totalposts] = $totalposts; line so that I can show Post # x of y
..just change the postbit template to have...
PHP Code:
<smallfont>Post #$post[postcount] of $post[totalposts]</smallfont>
..wherever you want it.
Hope that helps,
Kyle