A event inside a template condition(comment)

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.2/Rhea followed by 3.3.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.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: 126
Joined: Thu May 20, 2010 4:01 am
Location: Brazil
Contact:

A event inside a template condition(comment)

Post by Vinny » Tue Dec 17, 2013 3:53 am

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 » Tue Dec 17, 2013 9:11 am

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: 126
Joined: Thu May 20, 2010 4:01 am
Location: Brazil
Contact:

Re: A event inside a template condition(comment)

Post by Vinny » Tue Dec 17, 2013 7:42 pm

Ok, thanks. :)

Post Reply