XF 1.1 First attachment for [attach] BBCode


Well-known member
IS it possible with some tweaks to have the first attachment in a thread as the attachment for [ATTACH ] BBCode, currently just using [ATTACH ][/ATTACH] has no result. What I would like is for that to be replaced by [ATTACH ]<fiirst attchment number>[/ATTACH].

Reason: I need to set a template where the first attachment of a post is differently presented than the rest and thus is automatically pulled.