![]() |
userdata_postsave hook query
PHP Code:
|
Any help on this? I have posted this twice now with no reply and it seems to be a simple fix. I just don't know the variabled to use for this hook.
|
Try checking the variable $type, I think that should be set to 'thread' or 'post'.
|
i updated the hook from (which works)
PHP Code:
PHP Code:
|
Can someone at least tell me which php document contains this hook so I can find the answer myself?
|
Sorry but i don't know the hook called 'userpost_datasave'.
|
Sorry it's userdata_postsave.
|
A Hook "userpost_datasave" does not exist, at least not in standard vBulletin 3.5.1 code.
|
Well I found class_dm_user.hp thanks to Andreas, but after taking a look I couldn't find anything relevant to defining whether or not the post is a new thread or just a post. While functions_newpost.php does contain the variable $type which seems to store thread or reply it allways adds 10 (does the else) if I change:
PHP Code:
PHP Code:
|
Can anyone help me with this? I can't get it.
|
I managed to temporarily fix this by using different hooks and code, but no I have to have 3 different hooks for what could be done with one (i think).
- ajax_complete - newreply_post_complete - newthread_post_complete Can anyone fix the code below to work with userdata_postsave (or another 1 hook solution): PHP Code:
|
All times are GMT. The time now is 10:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|