![]() |
Hooks showthread_query_postids and showthread_query
|
But how can I modify this query with the hook ?
If I add a query to this hook, it's the same thing that if I added it to the file ? How could I modify the query in the file ? I don't understand ... |
It allows you to add extra columns to the query without adding a new query.
|
An example amy ? :)
You're interesting me ! |
You can use the variables $hook_query_fields to add new fields, $hook_query_joins to add joins and $hook_query_where to add conditions.
Example PHP Code:
|
Thanks Andreas :)
Can this (by replacing variable's name) be done in every hook ? How could I have known it if you had not said it to me ? Isn't there a guide "the perferct vbulletin hacker's guide ?" ;) |
No, only in special query Hooks.
Well, you could just take a look at the source files - they are fully documented and the query Hooks as well as the variables are clearly visible there ;) |
OK, thank you
Other replies for the survey now, else my thread will be moved to an other forum ... :p |
All times are GMT. The time now is 06:59 AM. |
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:
|