vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [Request] Nubering replyes in a thread (https://vborg.vbsupport.ru/showthread.php?t=15955)

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

PHP Code:

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

and ABOVE it put:

PHP Code:

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


Find

PHP Code:

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

and ABOVE it put:

PHP Code:

$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/showthrea...threadid=22083

fineclicks 12-14-2001 05:28 AM

Great!
Thanks for the tip :)


All times are GMT. The time now is 06:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01587 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete