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 |
#42
|
|||
|
|||
Ok I run 2.2.1 and I did freddies method then did crinos's postbit edit and I don;t see anything new in my postbit... Any ideas?
Also how can I make it look similar to how it looks on here? Upper right and make it a link like on here? Thanks! |
#43
|
||||
|
||||
LuBi, replace $countposts with $post[postcount]
|
#44
|
|||
|
|||
I tried.. and it showed but I can't get it in the upper right or as a link. Thanks though bira
|
#45
|
||||
|
||||
LuBi, that's a design issue
you need to put it in a <td align=right></td> |
#46
|
||||
|
||||
I have Tommy Boy's current post counter hack installed, and then I installed this one, and I have a sort of weird problem.
The post numbers come up fine...except they are the current post number not the number of that post. So if this is the second post in a thread, and is my 34th out of 56 posts, it comes up "Post #34" instead of "Post #2". I haven't been able to find where the conflict is, so I was wondering if anyone else had this same problem and fixed it? Thanks! |
#47
|
||||
|
||||
sadie what is the variable you use in the postbit template for each of these hacks? Can you paste it here?
|
#48
|
|||
|
|||
Looks like we're using the same variable name (postcount), bira!
|
#49
|
||||
|
||||
Great thing, installed it with no probs... thx !
|
#50
|
||||
|
||||
Quote:
I modified Tommy's use of postcount because Freddie already added the postcount variable to vb 3.0. Since Bira's code is going to be built in to the official release, I chose to leave it alone. |
#51
|
||||
|
||||
This is my postbit template
Oh yeah - I see the postcount now - duh! So can I just rename the variables? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|