NovoCiv
12-15-2014, 09:13 PM
Nothing happens when I make a plugin for that hook. I looked into plugins from addons that I've installed and they're not firing on the hook either.
For example, with Digital Point Spy there should be an entry in the log for post reports, but every time I make a report there's no new entry in the log.
Looking at my class_reportitem.php I do see the hook code in the correct place:
($hook = vBulletinHook::fetch_hook('report_send_complete')) ? eval($hook) : false;
However, when I make a plugin with the report_send_complete hook it doesn't seem to do anything. My plugin is very simple, for testing purposes:
standard_error(fetch_error('noguests_error', $vbulletin->userinfo['username']));
This should generate an error when I try to report a post. But reporting posts works as normal, and no error can be found.
I've been trying to simplify everything to identify the source of the problem, but I can't figure it out. Any suggestions?
For example, with Digital Point Spy there should be an entry in the log for post reports, but every time I make a report there's no new entry in the log.
Looking at my class_reportitem.php I do see the hook code in the correct place:
($hook = vBulletinHook::fetch_hook('report_send_complete')) ? eval($hook) : false;
However, when I make a plugin with the report_send_complete hook it doesn't seem to do anything. My plugin is very simple, for testing purposes:
standard_error(fetch_error('noguests_error', $vbulletin->userinfo['username']));
This should generate an error when I try to report a post. But reporting posts works as normal, and no error can be found.
I've been trying to simplify everything to identify the source of the problem, but I can't figure it out. Any suggestions?