XF 2.0 PHP function call on button press?

RyanStonebraker

New member
Hi,

I am trying to create an add-on option where a button press triggers a PHP script (or preferably function) to be called. The only way I could figure out to do this was to either use the on/off checkbox option or the named template under the "Edit Option" screen and then have a verification callback do some event based on what was submitted. However, I preferably want this button to trigger the PHP function before the entire options page is saved and to return text back to the screen when this occurs. Is this possible in Xenforo?
 
Back
Top Bottom