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 |
#92
|
||||
|
||||
Good luck! They won't support it any better there, I'm afraid. Don't worry, though, I have someone checking it over to see if we can fix it ourselves. As soon as we find something, we'll post it in here.
|
#93
|
|||
|
|||
Thanks !
|
#94
|
|||
|
|||
working great on vb 2.2.6
with freddy's code and bira's template =) thank you guys ! Mone' |
#95
|
||||
|
||||
Quote:
Second, if all of you complaining had actually read through this thread, instead of complaining, you would have figured it out. I'll even use this very hack to help you on your way. Post 21 has the easy code for showthread.php that works with 2.2.x on up. Post 33 has a very nice template change (Postbit) that makes the link to posts appear just like it does on these forums. Finally, post 47 has a minor update to the link, in case you get "Post #" but no actual number to show up. I installed this on 2.2.6. A heavily hacked 2.2.6 at that. It works fine. Posts count across threads like they should and I have noticed zero change in server load. There's no need to "update" this to 2.2.6 because if you read this thread it already is. They've even put Freddies easy update for 2.03 and above (and yes, that means all the way to 2.2.6) in the first post. It took me 5 minutes of skimming through this thread to discover the above and maybe another 2 minutes to install the working hack. Please keep this in mind next time before you complain about lack of support. |
#96
|
||||
|
||||
Thanks for the spelling lesson. However it is spelled, I got my point across. As far as complaining goes, the only complaint I have is that getting help for some hacks is dependent on who you are, it seems. I have an Admin CP hack I am working on myself, but I also remember what it was like in the beginning with installing some of these hacks. It was overwhelming, to say the least. As you do more of them and tinker with things, you start to pick up a few things here and there along the way.
All I was trying to say was that we ALL need to remember that we were once in the same spot as alot of the newbies here. We didn't know as much about it then as we know now. I still have alot to learn, but I'm learning more and more with every hack install. Everyone needs to be a little more patient and understanding. Nobody knows it all and anyone who says he or she does, is a liar. If you don't want to help the new people with the "stupid" questions (as I have heard them called), then don't release your hack to the public. I thought we were all here to learn and have some fun along the way, and I STILL believe that is the case here. People like Firefly and Lesane (and some others, too) make installing hacks alot easier to understand and learn something from. We need more people like them here, that is all I was trying to say. Quote:
|
#97
|
||||
|
||||
Didn't say they were "stupid" questions. And as for helping newbies, I agree - and I think that's exactly what I did, by providing links to the relevent posts. I mean, I could have just said "read the thread!" and left it at that, right?
There are tons of hacks here. Sometimes authors may not be able to keep up with them after months - I mean, this hack was released what, 8 months ago? Newbies need to learn just like we did that a lot of the time the answer may be right in front of them |
#98
|
||||
|
||||
I wasn't referring to you saying anything. I was referring to what I have heard here before. And, yes, you did help by supplying the links, and I'm sure the new people thank you for that. But making users who are new at this feel bad by "scolding them", doesn't make them feel any better about not knowing.
As far as authors not supporting their hacks, I don't agree with you on that. There are a few authors here who STILL support their hacks no matter how long it's been. There are very few authors here who have done that many hacks that they can't find the time to support them. Some people just get the attitude that "if it works for me, then that's all I care about". I do agree with you, however, that the new people DO need to learn to read the threads a little more carefully. I find myself at times not wanting to go through 20 pages of messages looking for an answer, too, so I have been bad at that myself. I'm trying to do better on that and read more. If we know an answer, or like you did here, can point it out, then maybe the new people will catch on faster and have the opportuninty that alot of users didn't and get the help they need so they can go on to help others along the way. Like a chain reaction sort of thing. For every one person you help, they can help 10. And so on and so on. I'll help anyone I can. And I have tried to, but there are alot of things I don't know enough about yet to be of too much help to alot of people. All I can do is try and hope I help someone somewhere along the way. We should all do more of that, don't you agree? Quote:
|
#99
|
|||
|
|||
Ironic??? I read the whole post and I still get Post # here is a link to prove it....
http://www.pbfreak.net/forums/showth...=6967#post6967 |
#100
|
||||
|
||||
Somewhere in this thread there are some posts about the postcount variable clashing with a variable from another hack. Since I never had the same problem you are having, I didn't pay much attention to it, sorry.
Let's start here...what version of vbulletin are you running? If you are running version 2.03 and up here is what you need to do. (If you've already done this, try it again and if it still doesn't work, let me know and we WILL get it working for you somehow. ) Code:
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: Originally posted by freddie If you want a one file hack for this then do this: find in showthread.php: while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { Put this before it: $postcount = ($pagenumber - 1 ) * $perpage; Find in showthread.php: $postbits .= getpostbit($post); Put this before it: $post[postcount] = ++$postcount; Then put $post[postcount] in your postbit template. save and upload. Edit template postbit AND postbit_ignore and place the variable $post[postcount] where you want the post # to show. Quote:
|
#101
|
|||
|
|||
I am running 2.2.5 and thx for the help and I have had that stuff there that is what I origonally put it... Oh and another thing I can't find:
$postbits .= getpostbit($post); But I can find: $postbits = getpostbit($post); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|