The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
"In reply to" Hack (threaded info for linear users) Details »» | |||||||||||||||||||||||||||
"In reply to" Hack (threaded info for linear users)
Developer Last Online: Sep 2014
vB3.0/hack version "frozen"; vB3.5/plugin version released
You can get the plugin for vb3.5 here. There will be no more releases for the vB3.0 version. Description This hack allows the display of the title and author of the post that each post is in response to. (See screenshot if clarification is needed) The purpose of this hack is to provide missing information to linear view mode users. I got the idea from a board I visit that used to be UBB Threads, though my choice of presentation is a bit different. See the attached screenshot for an example of how this can look. The hack itself only provides the additional items in $post, so it is up to the templates exactly how it looks. (The changes I used are included as an example in the hack instructions) Complexity This hack changes one file, requires no queries, and requires changes to one template. Technical This hack has been tested on vB3.0.3,vB3.0.0RC4 and vB3.0.0RC2. It adds 1 query to showthread in linear mode, and adds 1 additional query in linear mode for each consecutive layer of deleted parents of posts displayed on a page. (If a displayed post is a reply to a deleted reply to an undeleted reply to a deleted reply to an undeleted post, 2 total queries are added to showthread, but if a displayed post is a reply to a deleted reply to a deleted reply to a deleted reply to an undeleted post, 4 total queries are added to showthread. If both examples are displayed in the same page, only 4 total queries are added to showthread.) Update (v1.10 2004-03-01) Version 1.10 released, which uses the beginning of a post as a title if the post does not have a title, and also trims long titles down to a decent size. Minor optimizations. regardinghackupdate.txt added for existing users, regardinghack.txt updated for new users. Support Please click the install button above if you install this hack. The hack version of this modification will have no further updates, but I will still answer questions in this thread. Show Your Support
|
Comments |
#62
|
||||
|
||||
Quote:
|
#63
|
||||
|
||||
Quote:
|
#64
|
||||
|
||||
Quote:
Thanks for your reply. The problem I was having was it would show up to guests but not to logged in users. I totally removed all the changes and redid it and it's working perfectly. Thanks for doing this, its really really useful - clicks install. Regards, Renada |
#65
|
|||
|
|||
Hi,
I'm new to these boards and I've been running a small private board that was formerly on CompuServe. My users are screeming for this information. I'm not really sure about the term "hack." Sounds like I'd be required to open up a PHP file and insert code. I'll have a look at the files, but my real question is two fold: 1) Has this been tested in 3.6.2? 2) Does a hack need to be "re-hacked" every time vBull updates the application? I'm very new to this, so please be easy on my. I'm reading "PHP for Dummies;" but at the moment I'm dummer than Bush aranoid:. |
#66
|
||||
|
||||
As indicated in the opening post, there is a newer version at
https://vborg.vbsupport.ru/showthread.php?t=93247 which is designed for 3.5 . That version does not require code insertion. Noone has verified that that version works with 3.6, though it may; as simple as it is to add and remove the plugin version, it can't hurt to try (please post your results in that thread, either way). |
#67
|
|||
|
|||
Quote:
I installed (I think) the modification is discribed in the 3.5 version. There was no change to the display at all. I am new, and I'm not sure at all what "style" (postbit-legacy or just postbit). This change would be fantastic; but I'm not getting it to work. Bern |
#68
|
||||
|
||||
While there are no manual code changes, you have to change the templates for the changes to become apparent.
You can edit the templates in "Styles & Templates"|"Style Manager". Click the <<>> button to open the list of templates. Double click "Postbit templates >>" from the list to see the postbit templates. The changes are pretty simple. You just need to search for the code snippets in the style and place the stuff above and below. The only complicated thing is that if you have horizontal postbits (the default), you need to edit the "POSTBIT" template using the stuff in the first section, while if you have vertical postbits (like here), you need to edit the "postbit_legacy" template using the stuff in the second section. |
#69
|
|||
|
|||
I pasted into Postbit the code for "horizontal" though just putting "Posted" above the if clause seemed a bit odd. I tried it with and without the word "Posted". With no joy. Today, I'll try it with BOTH styles changed, and get back to you with the result. I'd love to confirm your hack works in 3.6 and my users are going to kill me if I don't get something done soon. There is talk of going back to CompuServe.
If my next try fails, I will copy what I pasted into the styles to you and we'll see what I'm doing wrong. Thanks for your help. Quote:
|
#70
|
|||
|
|||
I'll be damned. We're on legacy and that code works okay.
I'll let the members +++++ about how this is not good enough, and I'll get back to ya with any 3.6 hicups I might find. Thank you VERY much for writing this hack. Bern |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|