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 |
#102
|
||||
|
||||
It's in there. Do this...look for $postbits and it should be about the third time you find that one.
Quote:
|
#103
|
|||
|
|||
Can someone tell me what the postbit_ignore-template actually is?
I was able to place the variable next to the "edit"-button in the postbit-template but where to put it in the postbit_ignore-template? Thanks in advance. |
#104
|
||||
|
||||
The postbit_ignore template is what is used when you have users on the ignore list. As far as where to put it in the postbit_ignore template, I asked that same question in here quite a while ago and have never received an answer.
Quote:
|
#105
|
|||
|
|||
I now put it in there like this (I hope you don't mind the translation):
<normalfont>Dieser Benutzer ist auf Deiner <b>Ignorier-Liste</b>. Um diesen Beitrag (<a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>Posting Nr. $post[postcount]</smallfont></a>) zu sehen,... |
#106
|
||||
|
||||
Sounds like it is right, but I don't know for sure. Does it work?
Quote:
|
#107
|
|||
|
|||
Looks like it does
|
#108
|
||||
|
||||
Looks like you have it mastered! I'll be coming to you for help from now on.
|
#109
|
|||
|
|||
No problem
|
#110
|
||||
|
||||
I put the post number thing in front of the Report Post to Moderator link to save space. Putting it at the top of the post creates a gap.
Just put this code in the postbit before that report post link. Code:
<a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$post[postcount</a> |
#111
|
|||
|
|||
Thx alot I fixed it the thrid one down was actually:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|