Scandal
Well-known member
Hello all!
Maybe someone knows what code event listener or template extension do I have to apply so as to ignore the template visitor tries to show and show my own template (like a stop message/ not allow visitor to show something else) ?
Of course I will apply my if conditions as php before print this template, but I need some info what kind of code event listener or class extension do I have to apply.
I don't want to extend each /XF/Pub/ controller. I need to apply my stop message in all Pub controllers (default XF/or addons).
I have detected some code event listeners fire like:
app_pub_setup
app_pub_start_begin
app_pub_start_end
app_pub_complete
... but I don't know how could I use the $reply or anything else param to show something like my $this->view('', 'my_template_name') stop message.
My purpose: print a template on any page visitor try to visit. Not individual page like we can do via extend of specific XF/Pub controllers.
Any idea?
Maybe someone knows what code event listener or template extension do I have to apply so as to ignore the template visitor tries to show and show my own template (like a stop message/ not allow visitor to show something else) ?
Of course I will apply my if conditions as php before print this template, but I need some info what kind of code event listener or class extension do I have to apply.
I don't want to extend each /XF/Pub/ controller. I need to apply my stop message in all Pub controllers (default XF/or addons).
I have detected some code event listeners fire like:
app_pub_setup
app_pub_start_begin
app_pub_start_end
app_pub_complete
... but I don't know how could I use the $reply or anything else param to show something like my $this->view('', 'my_template_name') stop message.
My purpose: print a template on any page visitor try to visit. Not individual page like we can do via extend of specific XF/Pub controllers.
Any idea?