The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | ||||||||||||||||||||||||||
This is a small hack I have on my BB that I posted some 2 months ago in reply to a thread in the hacks request forum. Since then, a couple of people contacting me asking me this hack, so I'm posting it here in the release forum.
It numbers your posts in a thread - the first one has the number 1 written on it, the second 2 etc. This will accurately count the post number irrespective of the page you are on, and tt helps orientation on long threads (and our threads are long). The post number on my BB is also a hyperlink, so people can copy the direct URL to that specific post. Installation is simple: INSTALLATION INSTRUCTIONS FOR VERSIONS BEFORE 2.0.3 scroll down for installation in version 2.0.3 and later Open showthread.php Find PHP Code:
PHP Code:
Find PHP Code:
PHP Code:
Edit template postbit and place the variable $countposts where you want the post # to show. For example, place <smallfont>Post #$countposts</smallfont> somewhere at the bottom or <a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>$countposts</smallfont></a> if you want the numebr to also be a hyperlink directly to that post. ------------------------------------------------------------------------- INSTALLATION INSTRUCTION FOR VERSIONS 2.0.3 AND UP ok, how 'postbit' is parsed has changed since 2.0.3 so here's what you need to do to install this: Quote:
Edit template postbit AND postbit_ignore and place the variable $countposts where you want the post # to show. For example, place <smallfont>Post #$post[postcount]</smallfont> somewhere at the bottom or <a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>$post[postcount]</smallfont></a> if you want the numebr to also be a hyperlink directly to that post. --------------------------------------- You can see it on my BB, on any of the threads (near the date/time of the post, to the right of the small folder icon). Example: http://www.atlasf1.com/bb/showthread...threadid=24656 Cheers, Bira Show Your Support
|
Comments |
#112
|
|||
|
|||
At me on each new page of number of posts begin with 1
|
#113
|
|||
|
|||
A slight problem I'm noticing with freddie's code (https://vborg.vbsupport.ru/showthrea...914#post205914) which doesn't appear on this site:
When viewing an ignored user's message, a small window pops up with "View single message" at the top. This window *seems* to be using the postbit template and not have a template of it's own, however, $post[postcount] returns nothing in this window. On vb.org, it shows "post #1". Preferably it would be more accurate to show the actual link number in this window (i.e. if this is the 20th post in the thread, to show "post #20" in the view single message window. Any ideas on how to account for this situation? Paul Edit: Steps to reproduce problem: 1. Place a user on your ignore list. 2. View a thread where they've posted. 3. Click on the <click here to view this post> link. 4. Stare mindlessly at weird post # value ;D |
#114
|
||||
|
||||
G'day gang,
I've taken the liberty of compiling a new text file of instructions for this hack for recent versions of vBulletin, taking into account the change of variable name from postcount to postnumber, as well as the placing of the post number as it is here at vBulletin.org (top right of posts). This works perfectly on my forums (on which I use the postbit_first hack for a couple of forums). All posts are numbered from #1 down, and continue on across multiple pages (it doesn't reset to #1 at the top of another page in a thread). Thanks to bira for a great and useful hack! Here's hoping this comes standard with vB3. |
#115
|
|||
|
|||
X-fan: I'm not understanding why you changed $post[postcount] to $post[postnumber], other than you just prefered that naming convention.
This does not fix the problem I described above however. showpost, the template that displays ignored posts when they are viewed, uses the postbits template to create the message. This breaks things when it comes to post numbering. I've tried simply copying in the contents of postbits into showpost, however it appears that all $post[...] variables don't work when you do that. I haven't really looked into why, but it probably involves editing showthread.php. Any pointers here would be appreciated. There are a number of things I'd like to change in the single view post and this would help a lot. Paul |
#116
|
|||
|
|||
how is it possible to put the latest 'postid' and 'threadid' on the index page?
|
#117
|
||||
|
||||
Using X-Fan's instructions and Knux' info on the changed line [which I also have] I got this working on 2.2.6 on my first attempt [I read the whole thread before starting]. Thanks everyone who contributed, especially Bira!
|
#118
|
|||
|
|||
Hi all !
There is a bug here. Try this : + Ignore one member in this page. + Come back this page, and look at her/his post + You will see one report about "ignore list". Try click at "here" word on his/her post. + You will see one new pop-up window with alone his/her post. However, look at the corner right and top, you'll see "(post #1)", although it must be #106 - #117. Who can fix this bug ... for vbulletin.org ? ) J/k man ! |
#119
|
|||
|
|||
For some reason I can't get this to work properly in 2.2.6
Guess I have to miss out on this great hack |
#120
|
||||
|
||||
Oh, so it doesn't work in 2.2.6? Well.... It has to, FireFly's using it here.... Or it is a different code? FireFly?
|
#121
|
||||
|
||||
Quote:
I use this Hack on my Version 2.2.6, work's great! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|