PDA

View Full Version : [Request] Nubering replyes in a thread


Remi
05-04-2001, 03:02 PM
I am looking for a basic numbering to replyes in a thread.

For example, the first reply to this post will be 1, second will have the number 2 and so on,

I have seen this freature on other boards I think it is very usefull.

bira
05-13-2001, 12:04 AM
For those interested in the same thing:

Open showthread.php

Find


while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {


and ABOVE it put:


$countposts = ($pagenumber-1)*$perpage;



Find


eval("\$postbits .= \"".gettemplate("postbit")."\";");


and ABOVE it put:


$countposts = $countposts+1;


save and upload.

Edit template postbitp and place the variable $countposts where you want the post # to show.

For example, place <smallfont>Post #$countposts</smallfont> somewhere at the bottom.

This will accurately count the post number irrespective of the page you are on.

Cheers,

Bira


p.s.

You can see it on my BB, on any of the threads (near the date/time of the post, to the left of the small folder icon)
http://www.atlasf1.com/bb

fineclicks
12-14-2001, 05:06 AM
I cannot see any code like this at all in my showthread.php file...
eval("\$postbits .= \"".gettemplate("postbit")."\";");

FWC
12-14-2001, 05:11 AM
Bira's excellent hack has been available for ages and is installed on this board:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=22083

fineclicks
12-14-2001, 05:28 AM
Great!
Thanks for the tip :)