MyBB Community Forums

Full Version: How to get the tid of threads?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2014-12-14, 09:02 PM)Clear Wrote: [ -> ]The line 33 is the following:
$plugins->run_hooks('datahandler_post_insert_thread_end', 'mynews_insert_data');

(2014-12-14, 08:47 PM)Destroy666 Wrote: [ -> ]What?

run_hooks = the definition of the hook which makes it available for developers
add_hook = executing your code in an available hook
(2014-12-14, 10:46 PM)Destroy666 Wrote: [ -> ]
(2014-12-14, 09:02 PM)Clear Wrote: [ -> ]The line 33 is the following:

$plugins->run_hooks('datahandler_post_insert_thread_end', 'mynews_insert_data');

(2014-12-14, 08:47 PM)Destroy666 Wrote: [ -> ]What?

run_hooks = the definition of the hook which makes it available for developers
add_hook = executing your code in an available hook

Ok, no error for now.. But the tid field is still empty! The debug function returns this array (again):

Array
(
[topic] => efefefefefefef
[cover] => fefefef
[tid] =>
)
And why are you trying to use $handler->data['tid']? Try $handler->tid instead.
(2014-12-14, 11:38 PM)Destroy666 Wrote: [ -> ]And why are you trying to use $handler->data['tid']? Try $handler->tid instead.

Finally, IT WORKS! Thank you for your patience! I'll mention you in plugin's credits! Also @Rakes and @Shade
Pages: 1 2 3