The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to get Prev Post / Next Post working in 4.2.4?
Hi,
Each thread has a Prev Post/Next Post navigational feature. In the hybrid mode, it's right undr the hybrid window. Unfortunately, it's not working on my forum and I don't see any setting to control it. When I hover above Prev Post/Next Post, there's a little message saying "javascript:showPreveNextPost(0)" Have I overlooked a setting? Or is this a VBulletin error? I already tried with add-on/hooks disabled. It still didn't work Thank you! On edit: The "Prev Post/Next Post" navigation works in the threaded view, but not the hybrid view. Is this something I should ask over at VB.com instead? |
#2
|
||||
|
||||
So this turned out to be harder than I thought, and I know the solution isn't optimal because while the next/previous links will work in Hybrid mode it doesn't cache the post so the entire page reloads.
What you need to do is edit showthread.php file. Find the line: Code:
if ($threadedmode == 2) // hybrid display mode Code:
//if ($threadedmode == 2) // hybrid display mode Code:
else // threaded display mode Code:
//else // threaded display mode In my testing the next/previous worked in Hybrid mode after these changes. |
#3
|
|||
|
|||
Quote:
--------------- Added [DATE]1498990892[/DATE] at [TIME]1498990892[/TIME] --------------- Quote:
Also, when I retraced my steps to see if I'd done something wrong, I noticed there are two lines of Code:
if ($threadedmode == 2) // hybrid display mode and two lines of Code:
else // threaded display mode Can you please clarify which lines I should comment out in case that's what caused the duplication? The combinations I tried either duplicated all the posts or gave me errors. I'm so sorry for coming back with a problem. Thanks for taking your time to help me. I really appreciate it. |
#4
|
||||
|
||||
Hmmm, it would have been the first instance of each I edited. You can always copy an unedited file back from an original download zip if you need to restore back.
|
#5
|
||||
|
||||
After restoring back to an original showthread.php file for VB 4.2.4 instead of the edits above instead do this edit-
Go to line 1356. after the { hit enter a few times for some blank lines. Paste this code into the middle of the blank lines, save, and try again. I haven't tested it but I have a feeling it may work. Worst case you restore back to the original showthread.php file, it won't hurt anything. PHP Code:
|
#6
|
|||
|
|||
Quote:
the error line, my 1477, is Code:
else // threaded display mode |
#7
|
||||
|
||||
OK, let me try playing with it a bit more, you're still on VB 4.2.4, right?
|
#8
|
|||
|
|||
Quote:
Yes Still on 4.2.4. Thanks |
#9
|
|||
|
|||
If it's too much of a pain to get this working, please don't feel obligated to spend a ton of time on it. Could you maybe help me instead to remove the previous/next post text on the hybrid page? Thanks
|
#10
|
||||
|
||||
Let's try this one more time before we go about removing the links. I tested this, seemed to work for me.
Again, edit an original showthread.php file. Find this code: PHP Code:
But also above the closing bracket } So really, directly below this text in the file: PHP Code:
PHP Code:
So in the end the code looks like: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|