A event inside a template condition(comment)

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
Vinny
Style Customisations
Style Customisations
Posts: 129
Joined: Thu May 20, 2010 4:01 am
Location: Brazil
Contact:

A event inside a template condition(comment)

Post by Vinny »

I have two mods that modify the line:
prosilver/template/viewtopic_body.html

Code: Select all

<!-- IF postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE -->
And now with in 3.1, I want to know if is possible to add an event into the condition, like that:

Code: Select all

<!-- IF postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE <!-- EVENT mod_event --> -->
Is possible?

User avatar
nickvergessen
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany
Contact:

Re: A event inside a template condition(comment)

Post by nickvergessen »

no, thats not possible. but we could change the line to:

Code: Select all

<!-- DEFINE $DISPLAY_POST_BUTTONS = postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE -->
<!-- EVENT mod_event -->
<!-- IF $DISPLAY_POST_BUTTONS -->
Member of the Development-TeamNo Support via PM

User avatar
Vinny
Style Customisations
Style Customisations
Posts: 129
Joined: Thu May 20, 2010 4:01 am
Location: Brazil
Contact:

Re: A event inside a template condition(comment)

Post by Vinny »

Ok, thanks. :)

Post Reply