@PatM
Thank you very much! That piece of code worked beautifully.
@grisha2217
It's something that needed to be done before a post is actually made. I'm not sure if it's the right way but it kind of make sense in my head and it works so far.
Thanks for the info.
I will need to omit quite a few things here but essentially I'm trying to execute a function here
DataWriter\DiscussionMessage\Post
protected function _messagePreSave()
{
parent::_messagePreSave();
$node_id = '';
$exclude_list =...
Hi!
The plugin I'm working on gets executed when a user makes post/thread. I'm trying to make it where it is only executed in certain nodes. Is there a good way to get node ID in a similar fashion as "XenForo_Visitor::getInstance()". I tried to find a method similar to getNodeID() but I...