As the post a new reply action is on ajax, something like
$post_id = $this->get('post_id');
Does not execute in the manner I expect.. how would I log the post ID to confirm the method is being fired?
Thanks for the reply, Mike. Yeah, the title was a bit confusing, I thought it was a nice double meaning haha.
Just to clarify - I would add a new Code Event Listener on the Code Event for load_class_datawriter, and then my code event listener would essentially look like
I am creating an add on.
I want to run a custom action to save the post ID to a custom table based on an algorithm I am developing.
However, I have looked at XenForo_DataWriter, and I see the _preSave method, and this is where my understanding goes a bit hazy.
I see in...
* Method designed to be overridden by child classes to add pre-save behaviors. This
* is not callbed in import mode.
protected function _preSave()
*I did say minor, right?