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 |
#22
|
||||
|
||||
ok, how postbit is parsed has changed since 2.0.3 so here's what you need to do to install this:
Quote:
|
#23
|
||||
|
||||
Installed here.
(as requested by FWC ) |
#24
|
||||
|
||||
yay!!! Thank you!
|
#25
|
||||
|
||||
Quote:
|
#26
|
||||
|
||||
For those of us the REALLY SUCK with html, it was very hard to figure out how and where to get the link to show up where I wanted it, but I finally got it.
Forcing myself to learn something sure can be painful during the process. Thanks for the hack. Very useful. |
#27
|
||||
|
||||
Easy installed ... thanks for the hack!
|
#28
|
|||
|
|||
What would be the code to place (post #1) in the right corner on the same line as the $post[icon] and $post[title], just like this forum ??
Thank you. |
#29
|
|||
|
|||
Oops I found it !
After the line : <td bgcolor="$post[backcolor]" width="100%" valign="top"> I inserted this : <table border="0" width="100%"> <tr> <td width="79%"> <smallfont>$post[icon] <b>$post[title] </td> <td width="21%"> <smallfont> <p align="right"><a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$countposts</a></td> </tr> </table> Cool huh for a starter |
#30
|
||||
|
||||
nice hack and Easy installed
thanks |
#31
|
||||
|
||||
A slightly different approach...
In postbit, After this: Code:
<td bgcolor="$post[backcolor]" width="100%" valign="top"> Code:
<smallfont>$post[icon] <b>$post[title]</b></smallfont> Code:
<table border="0" width="100%"> <tr> <td width="85%"> <smallfont>$post[icon] <b>$post[title] </b></smallfont> </td> <td width="15%" align="right"> <smallfont> <a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$countposts</a></smallfont></td> </tr> </table> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|