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.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
marc60
Registered User
Posts: 28
Joined: Thu Mar 21, 2013 2:20 pm

Get first post_id from each page

Post by marc60 »

Hi,

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
AmigoJack
Registered User
Posts: 5799
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Get first post_id from each page

Post by AmigoJack »

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 ███████████
  • "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." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
Locked

Return to “[3.0.x] Support Forum”