The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hooks related to private messages not working?
Hi there,
is it possible that there is some feature/function or something else that prevents plugins that hook some private message related stuff from being executed? I checked the general settings for hooks, but there I can just enable or disable hooks completely. Maybe its just me, but I tried to add a hook for private_insertpm_complete and it just did nothing. First I checked my code again and again, added ebug outputs, and in the end, I just typed in some random stuff that is not valid PHP Code, so I expected to get a "parse error in eval()'d code" when I would try to send a private message, but it still worked, no errors. Then I tried to hook pmdata_postsave, but also no luck. And yes, I selected "activate this plugin" Other hooks work just fine, like reputation_add_complete... Any help would be appreciated. |
#2
|
|||
|
|||
whats happening if you try [php]die('here it should stop'); ???
thats the way, i debug/check my plugins/hook positions |
#3
|
|||
|
|||
Just tried that, and it still executes as if there was no plugin
|
#4
|
|||
|
|||
Could some other addon or plugin cause this, technically?
There are no plugins that directly hook any private message stuff, but still... This is really annoying and I have no clue where to start looking for the cause. |
#5
|
||||
|
||||
Are you sure you are doing an action that actually uses the plugin where you have it hooked?
|
#6
|
|||
|
|||
Well... private_insertpm_complete should definetely be triggered when you send a pm, no?
At least as far as I understand by reading the source of private.php |
#7
|
||||
|
||||
That hook should get processed if everything is fine in the PM. Is the PM being sent?
|
#8
|
|||
|
|||
Yep, I already annoyed several people in my forum with test messages.
I still have die("test"); as plugin code, but it just takes me to my inbox again after sending. Also tried to hook private_insertpm_process, which should be triggered both, when actually sending the pm and when just displaying a preview... But no luck. Its either me being very stupid or something is really broken... (Running 3.6.7 btw) EDIT: Hooking private_start works... |
#9
|
|||
|
|||
Strange, if i create a plugin at insertpm_complete with die('here'); it stops here
have you maybe some other plugins at this hook which redirect on some other side? |
#10
|
|||
|
|||
No, there are no private_* related plugins, that's what confuses me too.
I'm gonna disable all addons except mine now, let's see if that helps. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|