Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 07 Jun 2017, 03:55
chloe101 chloe101 is offline
 
Join Date: Dec 2007
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?

Last edited by chloe101; 07 Jun 2017 at 04:23. Reason: additional info
Reply With Quote
  #2  
Old 01 Jul 2017, 14:54
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And "comment it out" (make it)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

then find the line


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and comment it out too...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then save changes. (Maybe backup the original file first.)

In my testing the next/previous worked in Hybrid mode after these changes.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.

Last edited by BirdOPrey5; 02 Jul 2017 at 14:10.
Reply With Quote
  #3  
Old 02 Jul 2017, 03:43
chloe101 chloe101 is offline
 
Join Date: Dec 2007
Originally Posted by BirdOPrey5 View Post
So this turned out to be harder than I thought, and I know the solution is optimum because while the next/previous links will work in Hybid mode it doesn't cache the post so the entire page reloads.
It worked!!! You rock! Thank you SO much

--------------- Added 02 Jul 2017 at 10:21 ---------------

Originally Posted by BirdOPrey5 View Post
So this turned out to be harder than I thought, and I know the solution is optimum because while the next/previous links will work in Hybid 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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And "comment it out" (make it)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

then find the line


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and comment it out too...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then save changes. (Maybe backup the original file first.)

In my testing the next/previous worked in Hybrid mode after these changes.
Oh dear. Next/previous worked great but unfortunately it duplicated all the posts in the thread creating a mirror copy underneath with the exact same post ids.

Also, when I retraced my steps to see if I'd done something wrong, I noticed there are two lines of


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

one on line 1355 and one on line 1606

and two lines of


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

one on line 1405 and one on line 1610

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.

Last edited by chloe101; 02 Jul 2017 at 10:18. Reason: No edit. Mistake. Meant to make a new post
Reply With Quote
  #4  
Old 02 Jul 2017, 14:14
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #5  
Old 02 Jul 2017, 14:23
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(The above is code from threaded mode that I believe makes the next/previous links work.)
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #6  
Old 02 Jul 2017, 19:36
chloe101 chloe101 is offline
 
Join Date: Dec 2007
Originally Posted by BirdOPrey5 View Post
After restoring back to an original showthread.php file for VB 4.2.4 instead of the edits above instead do this edit- .....
Sadly no, I did that and got "Parse error: syntax error, unexpected 'else' (T_ELSE) in (...)/showthread.php on line 1477"

the error line, my 1477, is
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #7  
Old 02 Jul 2017, 23:00
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
OK, let me try playing with it a bit more, you're still on VB 4.2.4, right?
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #8  
Old 02 Jul 2017, 23:04
chloe101 chloe101 is offline
 
Join Date: Dec 2007
Originally Posted by BirdOPrey5 View Post
OK, let me try playing with it a bit more, you're still on VB 4.2.4, right?

Yes Still on 4.2.4. Thanks
Reply With Quote
  #9  
Old 10 Jul 2017, 03:58
chloe101 chloe101 is offline
 
Join Date: Dec 2007
Originally Posted by BirdOPrey5 View Post
OK, let me try playing with it a bit more, you're still on VB 4.2.4, right?
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
Reply With Quote
  #10  
Old 10 Jul 2017, 14:47
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It's at or about line 1404 (the first instance of else // threaded display mode)

But also above the closing bracket }

So really, directly below this text in the file:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Paste in the following code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


So in the end the code looks like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That is working for me, Please try it.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #11  
Old 13 Jul 2017, 05:49
chloe101 chloe101 is offline
 
Join Date: Dec 2007
Originally Posted by BirdOPrey5 View Post
Let's try this one more time before we go about removing the links. I tested this, seemed to work for me.

-snip-
WOW! It works!! You should see the huge smile on my face right now Thank you SO much.

This, THIS, is why I love VB.org so much. If I were Internet Brands, I'd be paying the support staff and coders here serious money. Since I'm not, all I can offer you is my joyful thanks for all the volunteer time and effort it took you to help me

I really appreciate it. And you

Thank you

On edit: Oh gosh, I "cannot like anymore posts today". It seems I used up all my likes earlier. Well, consider it liked until tomorrow when I can.
Reply With Quote
  #12  
Old 13 Jul 2017, 11:57
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by chloe101 View Post
WOW! It works!! You should see the huge smile on my face right now Thank you SO much.

This, THIS, is why I love VB.org so much. If I were Internet Brands, I'd be paying the support staff and coders here serious money. Since I'm not, all I can offer you is my joyful thanks for all the volunteer time and effort it took you to help me

I really appreciate it. And you

Thank you

On edit: Oh gosh, I "cannot like anymore posts today". It seems I used up all my likes earlier. Well, consider it liked until tomorrow when I can.
You're welcome, you were the last random person I helped as a staff member. https://www.vbulletin.org/forum/showthread.php?t=325300
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #13  
Old 14 Jul 2017, 02:37
chloe101 chloe101 is offline
 
Join Date: Dec 2007
Originally Posted by BirdOPrey5 View Post
You're welcome, you were the last random person I helped as a staff member. https://www.vbulletin.org/forum/showthread.php?t=325300
I'm happy that my timing was so perfect but even a day later, I'm extremely upset over the news in that thread. I hope IB reconsiders because they just shot themselves in both feet. You really rock for fixing this for me. Thank you
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Social Group and Album Enhancements [AJAX] Album Next & Prev Links Use AJAX Abe1 vBulletin 3.8 Add-ons 63 22 Dec 2013 06:33



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:39.

Layout Options | Width: Wide Color: