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 |
#72
|
|||
|
|||
Quote:
<a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>Post No</smallfont><smallfont>$post[postcount]</smallfont></a> i have installed mine where the profiles and pm buttons are. www.gamblingforums.net Hope that helps a little Phil |
#73
|
||||
|
||||
I can't get this to work with 2.2.5 Got any ideas? I see it's running here...
EDIT: I got it working, nevermind. |
#74
|
||||
|
||||
I have some Problems with the position of the hack, in the postbit templat. I would like make it the same as here on vbulletin.org, but the problem is, when I add it after $post[title], it disapear only in the right corner, when there is no title. If there is a title, it is in next line. -> not parallel.
I hope you have some ideas. PHP Code:
Thanks Ordo |
#75
|
|||
|
|||
look what mine has done u can see it on page like 8 and number 1 shows up at the top of every page and starts again !! some1 plz help me
|
#76
|
||||
|
||||
Can you let us in on the code to position it in the spot you have it (like it is here on this site)?
|
#77
|
||||
|
||||
Can somebody help me?
I posted my problem 2 postings before. |
#78
|
|||
|
|||
[QUOTE]Originally posted by Ordovicium
Can somebody help me? I posted my problem 2 postings before. |
#79
|
||||
|
||||
Ok, that works great except now when you click on the Post #1, it contracts all of the messages back into a list (I'm using Expand All, Contract All also) instead of going to the beginning of the message like it does here.
Also, where in postbit_ignore do I place it and what is postnit_ignore actually for? |
#80
|
||||
|
||||
@NerdNations: Thanks a lot. I didn't saw. I was searching after a Code/Php-Box in this thread.
|
#81
|
||||
|
||||
I just re-installed vb and the post counter works great except that I am still having problems that if the messages are contracted (I am also using the great Expand and Contract Hack), when I click on the post counter link, it does not open up the message like it does here. Does anyone here have any idea what might be causing this? I have been through the code at least 10 times and everything is where it should be and LIKE it should be. Please fellas (and females, too), can someone lend a hand on this one? This one really has me stumped.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|