Template Conditional, posts

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Jon Reid
Registered User
Posts: 243
Joined: Mon Feb 10, 2003 7:50 pm
Location: Manchester, United Kingdom

Template Conditional, posts

Post by Jon Reid »

Its been a while since I delved into modding phpBB templates... anyway, I want to alter a style so that I can make a block with a preset message or advertisment message appear after every first post, what conditional could I wrap around the template code to tell it to only appear after post number one?

Administrator of Star Trek Online || Moderator of The Admin Zone
Former Team Member
Posts: 802
Joined: Fri Aug 09, 2002 3:40 pm
Location: Chattanooga, TN

Post by Graphic »


It may be cleaner to break your main query into two queries. Add the first set of results, add your adds, then loop though the second set of results.

If not that, you might have to add a Boolean and set it to false after it has run once.
What Is Real!?
Latest phpBB2 Styles: [What Is Real!?] [Avalanche]

Return to “[2.0.x] Styles Development & Discussion”