Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Feb 2014, 13:33
ia7 ia7 is offline
 
Join Date: Feb 2010
Show last post of previous page as first on next?

Hi vB coding gurus, I have a question that's probably been asked maybe a number of times (a google search is hard to get right).

Is it possible to create a plug-in that will make 'showthread' show the last post of the previous page as the first post on the next page?

Example: Say 20 posts per page. I want that 20th post to show as the first post on Page 2 and so on. Why? Well as you get on a bit you forget what you saw 5secs earlier and so having that topic of discussion being readily available will make it easier to continue it on... hopefully!

I'm not looking for a global first page or anything, I've already seen them.

I had a look at showthread.php but it made me cry a little so I'm asking you, the wise ones, if this is possible to do and how.

Thanks.
Reply With Quote
  #2  
Old 13 Feb 2014, 22:44
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Hmm...I guess you could try subtracting 1 from $lowerlimit if it's not 0, then I think you'd also need to increase the number of posts read when $perpage is used, to be $perpage + 1. I haven't tried it but I have a feeling if you were to just add one to $perpage, the page counters wouldn't work right.

Maybe another approach would be to only display $perpage posts, but calculate the first post based on the page (that's what's done now, but it just uses $limitlower = ($vbulletin->GPC['pagenumber'] - 1) * $perpage) But that way, I don't know if the page numbers make sense. It might be easier to just have the post from the previous page be in addition to $perpage.
Reply With Quote
  #3  
Old 17 Feb 2014, 14:51
ia7 ia7 is offline
 
Join Date: Feb 2010
Thanks kh99 I'll try some of those suggestions out on my test board. Appreciate the reply.
Reply With Quote
Reply



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 03:03.

Layout Options | Width: Wide Color: