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 |
#172
|
|||
|
|||
Quote:
Are you sure you're searching for: $postbits .= getpostbit($post); (it's normally best to copy/paste to minimize typing error on your part) If you just do a search on just $postbits you'll fine it in 3 places. Look for which one has the "." in it, which will be the 3rd $postbits from the top of the .php file. Use the text file I put together to help you do this hack with ease, found within this post (just several up): https://vborg.vbsupport.ru/showthrea...883#post338883 I hope this helps! Sincerely, James |
#173
|
||||
|
||||
yeh, you probably have the arcade hack or something installed ...which slightly changes that line...
|
#174
|
|||
|
|||
ok thanks friends it`s running now, but now i have the same Problem of post# (no Number) , but i can livinh with this.
ups my english greetz subu1 |
#175
|
||||
|
||||
works fine on 2.3.0
clicks install |
#176
|
|||
|
|||
Quote:
thx for your help, but in my Showthread i have a lot of Hacks :dead: in moment i find this PHP Code:
|
#177
|
||||
|
||||
Just installed it (2.3.0) and it works great. I customized the postbit function though a bit, since I already have space where the default code goes, so I just replaced the Report|IP Logged links with the Post number one, and put the report/ip elsewhere.
Oh and thanks BfB! |
#178
|
|||
|
|||
whoei, nice, installed in 5sec's. It works great with vb 2.3.0. Tnx for the hack!
|
#179
|
|||
|
|||
how can i get this hack to work in my quote box template just like on here, when you quote someone it says originally quoted by username and shows the postid#... help plz...
|
#180
|
||||
|
||||
Works great on vb2.3.0, thnx!!
|
#181
|
|||
|
|||
BfB's worked perfectly with 2.3.0. Nice work. Small but neat.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|