How to detect thread starter post not sub posts

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
waxxie
Registered User
Posts: 119
Joined: Fri Oct 16, 2009 5:21 pm

How to detect thread starter post not sub posts

Post by waxxie »

I am trying to add the DIGG button to threads

In my viewtopic_body.html I'm using

Code: Select all

<!-- IF postrow.S_FIRST_ROW -->button code<!-- END IF -->
It works but it shows the digg button at the top of each page in the thread and not just the starting post.

Is there way to do this so it shows in only the first post of the thread? (the thread starter post)

Thanks!
Last edited by Pit$Bull on Tue Nov 10, 2009 5:46 pm, edited 1 time in total.
Reason: Topic icon changed
User avatar
waxxie
Registered User
Posts: 119
Joined: Fri Oct 16, 2009 5:21 pm

Re: How to detect thread starter post not sub posts

Post by waxxie »

figured it out

Code: Select all

<!-- IF postrow.S_FIRST_POST -->
data you want for first post only, goes here
<!-- ENDIF -->
very useful for inserting social post data like digg, reddit, etc
Locked

Return to “[3.0.x] Support Forum”