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 |
#2
|
|||
|
|||
thanks
easy hack but the idea is quite interresting especially for very long threads thanks again bira !! |
#3
|
|||
|
|||
A useful hack,THANKS.
|
#4
|
||||
|
||||
Thank you, bira. A relatively simple, but incredibly useful hack. Sometimes it's the simple things in life that mean the most, ya know?
Anyway, when I install hacks, I prefer to work from a text file saved locally. I think they're easier to work with, especially when copying things to put in the vB file. Also, if I have the hack instructions saved locally, I know I'll have it handy when I have to upgrade the board and reinstall all the hacks. That way, I don't have to go searching through this board to find everything that I can remember. So I hope you don't mind, but I've taken the liberty of copying your instructions into a text file and attaching it to this message. This way people can download it and have it to work with permanently. |
#5
|
|||
|
|||
great easy hack
|
#6
|
||||
|
||||
That's funny, I could have sworn I had attached that file as mentioned earlier...but here it is now.
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
I don't understand how it could have an activex error. It's a plain text file, and all it includes is the text of bira's first post in this thread, plus I added a line to the effect that bira wrote it, and I also put in the URL to this thread. There's nothing in the file itself that needs to work, unless you mean the hack itself, which doesn't include any activex stuff that I see.
Oh...and if I did indeed attach it the first time, as I remember and as you admit, but it's not there now, then someone must have removed it. Does anyone think it may have been a good or nice idea to let me know about something like that? (My board was founded mainly on the principle that if somebody screws up or does something wrong, whether intentional or not, he/she will be informed of the problem and the solution, publically if possible, so hopefully the mistake will not occur again in the future, by either the original person, or by anybody else. My board was founded on this principle to provide an alternative for disgruntled members of another high-volume message board where threads and posts mysteriously disappeared and nobody knew why, or members were banned without knowing why, etc.) |
#9
|
||||
|
||||
It turns out the activex is on all posts for me. Maybe I remember it wrong and you didn't post the attachment? Anyways, by clicking save as i don't get the activex problem.
|
#10
|
||||
|
||||
Quote:
<a href="showthread.php?threadid=$post[threadid]#post$post[postid]"><smallfont>$countposts</smallfont></a> Otherwise it will try to link to a different post...? Forgive me if I'm wrong, I'm new at this |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|