The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I need to add a hook in printthread.php that will be similar to showthread.php when it pulls the posts for the thread....
I want to make sure that it also shows up in the admin section for me to add my plugins too, and I didn't see the table in the database where those were stored right off... I'm shocked that the printthread post query doesn't have the $hook_query_fields, $hook_query_joins, and $hook_query_where variables... it seems like TONS of users would customize this page greatly, but the hooks aren't in the right spot, and that much customization isn't currently available on printthread.php I'm sure I could easily add in the ($hook = vBulletinHook::fetch_hook('printthread_my_new_hook ')) ? eval($hook) : false; and add the variables in the correct location ($hook_query_fields, $hook_query_joins, and $hook_query_where) But I need to make sure it's working properly from the admincp... where do I add the information for that so it's in the dropdown list of plugin locations? |
#2
|
||||
|
||||
![]()
forums/includes/xml/hooks_vbulletin.xml
Find, and add you're hook in this list in that file: Code:
<hooktype type="printthread"> <hook>printthread_start</hook> <hook>printthread_post</hook> <hook>printthread_complete</hook> </hooktype> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|