The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$template_hook[postbit_start]
question about :$template_hook[postbit_start]
Hey guys, if i wanted to add something (a database call) to that hook, where would i do that... keep in mind that i am not a vbulletin modder, but i do know php..... please point me in the right direction... thanks |
#2
|
||||
|
||||
A template_hook is just for adding html into a template. You would actually want to use the plugin system to put in the database call and then spit the output into the $template_hook.
If you are just starting out, I'd recommended looking through the mods and finding one that is kinda like what you want (that adds something to the postbit) and looking at the code for that product. |
#3
|
|||
|
|||
Thanks for the quick reply Lynne
im not sure where to look for something i want this is what i am trying to do... I have a table in our db that gets updated with info from battletracker.com... in the postbit i would like to show player stats from that table.... |
#4
|
||||
|
||||
Most likely, you would want to hook into the $post query and grab that information right then by doing a JOIN to your table.
hook location - showthread_query: PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Great, thanks for your help. i will give this a try..
your the bestestest, lol |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|