Wrap first post in div

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Ideas Centre
Locked
Neon_
Registered User
Posts: 79
Joined: Wed Jul 26, 2006 2:50 am

Wrap first post in div

Post by Neon_ »

I was wondering how I might go about placing a div tag around the first post in a topic in order to give it a different style then all the replies. Also if it would be possible to make it so this formatting only applies to posts within certain forums.
Image
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Wrap first post in div

Post by 3Di »

That's a Q that better fits into the Styles related forum, where you surely will find better help, I guess.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! 🚀
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26812
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: Wrap first post in div

Post by Paul »

Moved to styles forum, please post it next time in the correct forum, thanks :).
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52105
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Wrap first post in div

Post by Brf »

You could use

Code: Select all

<!-- IF postrow.S_FIRST_ROW -->
much as is already done for the first row's topic to give it the class "first" in prosilver.
Neon_
Registered User
Posts: 79
Joined: Wed Jul 26, 2006 2:50 am

Re: Wrap first post in div

Post by Neon_ »

Thanks a lot, worked like a charm. Sorry for posting it in the wrong forum.
Image
Locked

Return to “[3.0.x] Styles Support & Discussion”