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 |
#202
|
||||
|
||||
Create a Borderless table and place this (The Post Counter Hack) in that table, above the Quick Quote hack button...
|
#203
|
|||
|
|||
i cant find any of those lines in showthread.php=( does this hack work for 2.3.2?
|
#204
|
|||
|
|||
Quote:
i just installed this hack on 2.3.2 worked great after spending a half hour tearing this thread apart...lol sweet22 in freddies post here the line Code:
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { then, refer to the post below to find the second line. https://vborg.vbsupport.ru/showthrea...217#post259217 than, refer to this post for the rest. https://vborg.vbsupport.ru/showthrea...182#post257182 great hack. *clicks install |
#205
|
|||
|
|||
i am having a bit of trouble with this. when i click on the post# link...sometimes it lines that post up at the top...other times it doesnt...any way to fix this? vb 2.3.2
also...is there a way to set it up like it is in vb3 where you click the post# link and it opens in a new window with only that post in the window? thanks in advance |
#206
|
|||
|
|||
Quote:
Because you should have followed my directions located here w/in this very same thread: https://vborg.vbsupport.ru/showthrea...883#post338883 |
#207
|
|||
|
|||
Quote:
i just did (very little difference between what i followed before and yours). still the same problem. everything displays fine...post number of number, the post link appears in the address bar etc... the problem is when i click on the post# link, it doesnt align that post at the top like it is supposed to... any other ideas? |
#208
|
||||
|
||||
[QUOTE=The Wise One]i just installed this hack on 2.3.2
worked great after spending a half hour tearing this thread apart...lol sweet22 in freddies post here the line Code:
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { then, refer to the post below to find the second line. https://vborg.vbsupport.ru/showthrea...217#post259217 than, refer to this post for the rest. https://vborg.vbsupport.ru/showthrea...182#post257182 great hack. *clicks install |
#209
|
|||
|
|||
nothing shows up=(i installed, no errors anymore but nothing shows up=(
|
#210
|
||||
|
||||
I installed the hack, but I've seen a problem in the showpost function... how can I display there the number of the post in the Thread? There's only Post #1
|
#211
|
|||
|
|||
Use my instructions a few pages back. Do a search for BfB. They work like a charm on v2.3.2 as well.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|