vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I need some help please (https://vborg.vbsupport.ru/showthread.php?t=15827)

Remi 05-02-2001 11:09 PM

I want to number replyes inside a thread so if you have a long thread you can refer the reader to the reply number instead of describing wich reply you are talking about.

It is very usefull, I realy don't know why it is not a standerd feature of this great board.

Thanks very much in advance

tubedogg 05-02-2001 11:59 PM

You can give them a URL which includes a post number, which will send them to that post specifically. If you run your mouse over the "edit/delete" icon of any post, you will see &postid=XXX where XXX is the postid. To link to that, just do the following:

http://mysite.com/forums/showthread....id=XXX#postXXX

again, replacing the XXX in both places with the post number.

Remi 05-03-2001 12:14 AM

Thanks tubedogg for your reply :)

It is a nice idia, but I realy think it is much nicer to refer them to a reply number.

I was talled it is easy to be done but not more than that :)

Remi 05-03-2001 12:53 AM

tubedogg

I am so sorry, perhaps I did not make my self very cleare.

I did not mean extracting the post number from the data base, what I meant is a basic numbring, for example.

Your reply was number 1 and my previous reply was number 2 this reply is 3 and so on.

:)

Freddie Bingham 05-04-2001 07:00 PM

You just need to put a counter in the loop that processes messages and refer to $count in your postbit template. Make sure to take care of multiple page threads by by using the pagenumber and the postsperpage settings also.

bira 05-13-2001 12:03 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


All times are GMT. The time now is 01:28 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.01058 seconds
  • Memory Usage 1,724KB
  • 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
  • (6)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