MyBB Community Forums
Retrieve First and Last Post ID's from a thread? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Retrieve First and Last Post ID's from a thread? (/thread-193859.html)



Retrieve First and Last Post ID's from a thread? - Nuance - 2016-06-04

Does MyBB provide these variables / If not how would this be possible

Ex: 
Instead of: /showthread.php?tid=1&action=lastpost
It would just show what lastpost shows without without having to click on the link: /showthread.php?tid=1&pid=2#2


RE: Retrieve First and Last Post ID's from a thread? - .m. - 2016-06-04

instead of such method this plugin might be useful => First/Last Post/PM Preview


RE: Retrieve First and Last Post ID's from a thread? - Nuance - 2016-06-04

(2016-06-04, 12:59 PM).m. Wrote: instead of such method this plugin might be useful => First/Last Post/PM Preview

This isn't exactly what I want, but I'll use this plugin since I like the feature haha.

I'm asking for variables to distinguish posts in threads. I'm making a Newest Threads/Newest Posts column and the problem is that whenever a new thread is posted it shows as a new thread and new posts. So to remove the message about the post I'm thinking a simple statement (pseudo code) <if {$lastpostid} != {$firstpostid}> output recent posts </if> would work.


RE: Retrieve First and Last Post ID's from a thread? - Omar G. - 2016-06-04

Open showthread.php and find the code that runs for the action=lastpost input.