forum_root/styles/prosilver/template/event/viewtopic_body_postrow_post_after.html
Contents of the file are simple:
Code: Select all
<p>test</p>
Code: Select all
<p>test</p>
Yep, nothing.
I guess I misread the documentation, why does this have to be so hard? I know I can include another template but that requires editing the core template and for maintenance purpose I'd prefer not doing that.
Yes - all you need for template events to run is athecoalman wrote: ↑Fri Aug 18, 2017 12:15 pm guess i need to just create a basic custom extension so they load?
composer.json
file and the template event files in the correct directory structure.Code: Select all
{
"name": "yourname/loadtemplates",
"type": "phpbb-extension",
"description": "Basic extension so template events can be used for custom templates",
"version": "1",
"license": "Dont steal my stuff LOL",
"authors": [
{
"name": "Some Dude"
}
],
"require": {
"php": ">=5.4.0",
"composer/installers": "~1.0"
},
"extra": {
"display-name": "Load Custom Templates",
"soft-require": {
"phpbb/phpbb": "~3.2"
}
}
}
Code: Select all
forum_root/ext/yourname/loadtemplates/
Code: Select all
forum_root/ext/yourname/loadtemplates/styles/prosilver/template/event
Code: Select all
<!-- EVENT viewtopic_body_postrow_post_after -->
Not ship but in CDB - https://www.phpbb.com/customise/db/offi ... _skeleton/thecoalman wrote: ↑Fri Aug 18, 2017 1:36 pm I'm surprised something like this doesn't ship with phpBB