Get first post_id from each page

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Registered User
Posts: 28
Joined: Thu Mar 21, 2013 2:20 pm

Get first post_id from each page

Post by marc60 » Thu Sep 22, 2016 9:41 am


I need the post_id from the first post of each page in viewtopic.php

I know:

S_FIRST_ROW --> Use in the template but this is not the ID

topic_first_post_id -> The ID of the first post from the first page but not for bigger pages.

Is it easy possible to get the id of the first post from each page?

Thank you

User avatar
Registered User
Posts: 5588
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Get first post_id from each page

Post by AmigoJack » Fri Sep 23, 2016 6:22 am

Inside the loop it'd be

Code: Select all

<!-- IF postrow.S_FIRST_ROW --> first post displayed = {postrow.POST_ID} <!-- ENDIF -->
Outside the loop it's not possible without modification.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
We will not come anybody anyway, nevertheless, it's best to shit this.


Return to “[3.0.x] Support Forum”