[Template] viewtopic_body_post_author_before/after

Request hook events and what data needs to be sent for the new hook system.
Post Reply
User avatar
kinerity
Registered User
Posts: 22
Joined: Mon Sep 01, 2014 10:54 pm

[Template] viewtopic_body_post_author_before/after

Post by kinerity » Sun Dec 14, 2014 4:23 am

I'm developing an extension that adds template data before and after the username in viewtopic_body.html. To achieve this, new events need created. This will allow extension authors to add, for example, images to indicate something special about the username (i.e. an image for administrators, etc).

Location in prosilver (as of 3.1.2): Line 140

Code: Select all

<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
Location in subsilver2 (as of 3.1.2): Line 166

Code: Select all

<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b>
Ticket: https://tracker.phpbb.com/browse/PHPBB3-13437

Post Reply